:root {
  --primary-blue: #6a9fb5;
  --primary-blue-light: #b4d0de;
  --primary-blue-soft: #d7ecf7;
  --primary-blue-deep: #1a6fa7;
  --primary-blue-night: #0d4b78;
  --primary-green: #a8d5ba;
  --primary-green-light: #d6edde;
  --primary-green-deep: #3da27c;
  --accent-coral: #ff6b6b;
  --accent-coral-soft: #ffb3b3;
  --accent-coral-light: #ffd0ca;
  --accent-coral-deep: #f24c5e;
  --text-dark: #24404d;
  --text-muted: #5e7984;
  --text-light: #fafafa;
  --ink: #15384b;
  --placeholder: #6e8892;
  --surface-ivory: #fff9f4;
  --surface-blue: #e6f5fd;
  --surface-green: #e7f8ec;
  --surface-coral: #ffe0d9;
  --embedded-box-background: #ebf5f2;
  --border-soft: rgba(255, 255, 255, 0.45);
  --border-blue: rgba(26, 111, 167, 0.16);
  --border-green: rgba(61, 162, 124, 0.18);
  --border-coral: rgba(242, 76, 94, 0.18);
  --shadow-soft: 0 10px 18px rgba(11, 79, 110, 0.12);
  --shadow-medium: 0 14px 24px rgba(11, 79, 110, 0.18);
  --shadow-floating: 0 18px 28px rgba(9, 63, 97, 0.22);
  --gradient-app: linear-gradient(145deg, #148fd2 0%, #4cb8bc 48%, #b8eea7 100%);
  --gradient-shell: linear-gradient(180deg, #fff8f3 0%, #f4f7f9 100%);
  --gradient-tab: linear-gradient(180deg, #f3fbf7 0%, #daf2e8 100%);
  --gradient-thought: linear-gradient(160deg, #fff6f1 0%, #ffd7cd 100%);
  --gradient-insight: linear-gradient(160deg, #f2fbff 0%, #cdebfa 100%);
  --gradient-progress: linear-gradient(160deg, #f1fceb 0%, #d5f2c8 100%);
  --gradient-coral: linear-gradient(135deg, #ff8f88 0%, #ff6b6b 55%, #f24c5e 100%);
  --radius-pill: 999px;
  --radius-card: 30px;
  --radius-section: 26px;
  --radius-button: 24px;
  --content-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #d8f0f9;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: "Nunito", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--gradient-app);
  line-height: 1.6;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  content: "";
  pointer-events: none;
  border-radius: 999px;
  filter: blur(2px);
}

body::before {
  top: -120px;
  left: -80px;
  width: 360px;
  height: 220px;
  background: rgba(255, 255, 255, 0.34);
}

body::after {
  right: -60px;
  top: 200px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.18);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), 1120px);
  margin: 0 auto;
  padding: 18px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.nav-shell {
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.nav-shell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: var(--radius-pill);
  background: var(--gradient-tab);
}

.nav-shell a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  color: var(--primary-blue-night);
  font-size: 0.96rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-shell a:hover,
.nav-shell a:focus-visible {
  background: rgba(255, 255, 255, 0.58);
  color: var(--primary-blue-deep);
  outline: none;
  transform: translateY(-1px);
}

.nav-shell a.active {
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.hero-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  padding: 34px 32px;
  border: 1px solid var(--border-soft);
  border-radius: 34px;
  background: var(--gradient-shell);
  box-shadow: var(--shadow-floating);
}

.hero-card::before,
.hero-card::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  pointer-events: none;
}

.hero-card::before {
  top: -32px;
  right: 26px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 72%);
}

.hero-card::after {
  bottom: -40px;
  left: -20px;
  width: 220px;
  height: 120px;
  background: radial-gradient(circle, rgba(180, 208, 222, 0.42) 0%, rgba(180, 208, 222, 0) 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-content h1 {
  margin: 0;
  color: var(--primary-blue-night);
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.05;
  font-weight: 800;
}

.hero-content p {
  margin: 10px 0 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.content-card {
  position: relative;
  overflow: hidden;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255, 249, 244, 0.9) 0%, rgba(255, 255, 255, 0.78) 100%);
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(12px);
}

.content-card::before {
  position: absolute;
  top: -70px;
  right: -30px;
  width: 180px;
  height: 180px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 179, 0.28) 0%, rgba(255, 179, 179, 0) 70%);
  pointer-events: none;
}

.section {
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  padding: 22px 22px 20px;
  border-radius: var(--radius-section);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: var(--gradient-insight);
  box-shadow: var(--shadow-soft);
}

.section:last-child {
  margin-bottom: 0;
}

.section::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 78px;
  height: 78px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.section:nth-of-type(3n + 1) {
  background: var(--gradient-insight);
}

.section:nth-of-type(3n + 2) {
  background: var(--gradient-progress);
}

.section:nth-of-type(3n + 3) {
  background: var(--gradient-thought);
}

.section h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: var(--primary-blue-night);
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 800;
}

.section p,
.section li {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 1rem;
}

.section p:last-child,
.section li:last-child {
  margin-bottom: 0;
}

.section strong {
  color: var(--ink);
}

ul {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 1.3em;
}

a {
  color: var(--primary-blue-deep);
}

a:hover,
a:focus-visible {
  color: var(--primary-blue-night);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 8px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: var(--radius-button);
  background: var(--gradient-coral);
  box-shadow: var(--shadow-medium);
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--text-light);
  filter: saturate(1.04);
  outline: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-floating);
}

footer {
  max-width: var(--content-width);
  margin: 20px auto 0;
  padding: 0 8px;
  color: rgba(21, 56, 75, 0.8);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 740px) {
  .page-shell {
    width: min(calc(100% - 20px), 1120px);
    padding-top: 12px;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .title-pill,
  .nav-shell {
    width: 100%;
  }

  .nav-shell {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-card {
    padding: 28px 20px;
    border-radius: 30px;
  }

  .hero-content h1 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .content-card {
    padding: 12px;
    border-radius: 28px;
  }

  .section {
    padding: 20px 18px 18px;
    border-radius: 24px;
  }
}
