:root {
  --color-deep: #163f49;
  --color-teal: #1d5e69;
  --color-mist: #d8ebe7;
  --color-sand: #d7af64;
  --color-sand-soft: #efe2c6;
  --color-emerald: #2d725b;
  --color-charcoal: #1f2933;
  --color-ink: #30424a;
  --color-cream: #f5f1e8;
  --color-foam: #fbfaf7;
  --color-border: rgba(22, 63, 73, 0.12);
  --shadow-soft: 0 24px 60px rgba(22, 63, 73, 0.14);
  --shadow-card: 0 14px 40px rgba(22, 63, 73, 0.1);
  --radius-xl: 1.75rem;
  --radius-lg: 1.15rem;
  --radius-md: 0.9rem;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--color-charcoal);
  background:
    radial-gradient(circle at top left, rgba(215, 175, 100, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(29, 94, 105, 0.12), transparent 34%),
    linear-gradient(180deg, #f8f5ef 0%, #f3efe5 54%, #f8f6f1 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(29, 94, 105, 0.18);
  color: var(--color-deep);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 60;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--color-deep);
  color: #fff;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.nav-glass {
  background: rgba(251, 250, 247, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(22, 63, 73, 0.09);
}

.nav-glass.nav-scrolled {
  box-shadow: 0 10px 35px rgba(22, 63, 73, 0.08);
}

.nav-link {
  position: relative;
  color: rgba(31, 41, 51, 0.82);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--color-deep), var(--color-sand));
  transition: transform 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-deep);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-deep), var(--color-teal));
  color: #fff;
  box-shadow: 0 14px 26px rgba(22, 63, 73, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(22, 63, 73, 0.22);
}

.btn-secondary {
  border: 1px solid rgba(22, 63, 73, 0.18);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-deep);
}

.btn-secondary:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 63, 73, 0.28);
  background: rgba(255, 255, 255, 0.92);
}

.btn-ghost {
  border: 1px dashed rgba(22, 63, 73, 0.18);
  color: var(--color-deep);
}

.section-shell {
  position: relative;
}

.section-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 63, 73, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 63, 73, 0.03) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.9) 18%, rgba(0, 0, 0, 0.85) 82%, transparent);
  opacity: 0.55;
}

.section-shell > * {
  position: relative;
  z-index: 1;
}

.section-foam {
  background: rgba(251, 250, 247, 0.8);
}

.section-cream {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(239, 226, 198, 0.2));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 63, 73, 0.1);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-deep);
}

.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-sand), var(--color-emerald));
}

.section-title {
  color: var(--color-deep);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.section-copy {
  color: rgba(48, 66, 74, 0.9);
}

.card-surface,
.metric-card,
.feature-card,
.journal-card,
.faq-card,
.form-panel {
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-surface,
.feature-card,
.journal-card,
.faq-card,
.form-panel {
  border-radius: var(--radius-xl);
}

.metric-card {
  border-radius: var(--radius-lg);
}

.feature-card,
.journal-card {
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.feature-card:hover,
.journal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(22, 63, 73, 0.15);
  border-color: rgba(29, 94, 105, 0.24);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1.1rem;
  color: var(--color-deep);
  background: linear-gradient(135deg, rgba(215, 175, 100, 0.22), rgba(216, 235, 231, 0.86));
}

.hero-panel,
.scenic-panel,
.diagram-panel,
.story-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  background:
    linear-gradient(155deg, rgba(11, 31, 36, 0.9), rgba(24, 78, 88, 0.76)),
    radial-gradient(circle at 18% 24%, rgba(255, 232, 189, 0.34), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(216, 235, 231, 0.2), transparent 32%),
    linear-gradient(180deg, #0b1f24 0%, #123941 100%);
  color: #fff;
}

.hero-panel::before,
.scenic-panel::before,
.story-panel::before {
  content: "";
  position: absolute;
  inset: auto -8% -20% -8%;
  height: 62%;
  border-radius: 50%;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(215, 175, 100, 0.26), rgba(22, 63, 73, 0));
}

.hero-panel::after,
.scenic-panel::after,
.story-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(215, 175, 100, 0.26), transparent 22%),
    radial-gradient(circle at 86% 10%, rgba(216, 235, 231, 0.24), transparent 24%),
    linear-gradient(180deg, transparent 52%, rgba(11, 31, 36, 0.18) 100%);
  pointer-events: none;
}

.hero-panel > *,
.scenic-panel > *,
.diagram-panel > *,
.story-panel > * {
  position: relative;
  z-index: 1;
}

.scenic-panel {
  min-height: 24rem;
  background:
    linear-gradient(180deg, rgba(206, 233, 239, 0.92) 0%, rgba(123, 181, 191, 0.78) 35%, rgba(22, 63, 73, 0.92) 100%);
}

.scenic-panel.is-dark {
  background:
    linear-gradient(180deg, rgba(16, 43, 50, 0.92) 0%, rgba(22, 63, 73, 0.84) 34%, rgba(6, 22, 26, 0.96) 100%);
  color: #fff;
}

.scenic-panel .shoreline,
.story-panel .shoreline {
  position: absolute;
  inset: auto -8% -10% -8%;
  height: 48%;
  background:
    radial-gradient(circle at top, rgba(255, 241, 209, 0.9), rgba(239, 226, 198, 0.55) 42%, transparent 58%),
    linear-gradient(180deg, rgba(239, 226, 198, 0.85), rgba(215, 175, 100, 0.28));
  transform: rotate(-3deg);
}

.story-panel {
  min-height: 28rem;
  background:
    linear-gradient(180deg, rgba(223, 240, 241, 0.95) 0%, rgba(101, 154, 166, 0.85) 36%, rgba(20, 65, 74, 0.95) 100%);
}

.story-panel .dune {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  opacity: 0.9;
}

.story-panel .dune-a {
  inset: auto auto 3.5rem -1.5rem;
  width: 16rem;
  height: 7rem;
  background: linear-gradient(90deg, rgba(242, 229, 194, 0.96), rgba(228, 210, 164, 0.88));
}

.story-panel .dune-b {
  inset: auto 2rem 1rem auto;
  width: 11rem;
  height: 5rem;
  background: linear-gradient(90deg, rgba(232, 215, 181, 0.9), rgba(215, 175, 100, 0.78));
}

.diagram-panel {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(240, 247, 246, 0.92)),
    linear-gradient(180deg, rgba(216, 235, 231, 0.3), rgba(255, 255, 255, 0));
}

.diagram-ring {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  border: 1px solid rgba(22, 63, 73, 0.12);
  background: rgba(255, 255, 255, 0.84);
  color: var(--color-deep);
  font-weight: 800;
}

.timeline-card {
  position: relative;
  padding-left: 2.35rem;
}

.timeline-card::before {
  content: "";
  position: absolute;
  left: 0.62rem;
  top: 0.15rem;
  bottom: -1.7rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(22, 63, 73, 0.25), rgba(215, 175, 100, 0.28));
}

.timeline-card:last-child::before {
  display: none;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.92);
  background: var(--color-sand);
  box-shadow: 0 0 0 1px rgba(22, 63, 73, 0.15);
}

.timeline-dot.is-complete {
  background: var(--color-emerald);
}

.timeline-dot.is-next {
  background: var(--color-deep);
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.tag-teal {
  background: rgba(29, 94, 105, 0.1);
  color: var(--color-deep);
}

.tag-sand {
  background: rgba(215, 175, 100, 0.18);
  color: #6d531c;
}

.tag-emerald {
  background: rgba(45, 114, 91, 0.12);
  color: #205241;
}

.stat-kicker {
  color: rgba(251, 250, 247, 0.76);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.stat-value {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.divider-wave {
  width: 6.2rem;
  height: 0.6rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 10% 50%, var(--color-sand) 0 20%, transparent 22%),
    radial-gradient(circle at 35% 50%, rgba(215, 175, 100, 0.8) 0 20%, transparent 22%),
    radial-gradient(circle at 60% 50%, rgba(29, 94, 105, 0.75) 0 20%, transparent 22%),
    radial-gradient(circle at 85% 50%, rgba(45, 114, 91, 0.75) 0 20%, transparent 22%);
}

.list-check {
  display: grid;
  gap: 0.85rem;
}

.list-check li {
  position: relative;
  padding-left: 1.75rem;
  color: rgba(48, 66, 74, 0.92);
}

.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-sand), var(--color-emerald));
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(22, 63, 73, 0.12);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.92rem 1rem;
  color: var(--color-charcoal);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(29, 94, 105, 0.55);
  box-shadow: 0 0 0 4px rgba(29, 94, 105, 0.09);
}

.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-deep);
}

.form-note {
  color: rgba(48, 66, 74, 0.76);
  font-size: 0.9rem;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.faq-toggle svg {
  transition: transform 0.2s ease;
}

.faq-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, margin-top 0.22s ease;
}

.faq-answer.open {
  max-height: 18rem;
  margin-top: 0.9rem;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(255, 241, 209, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(251, 250, 247, 0.98), rgba(244, 239, 229, 0.98));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-deep);
}

.filter-btn {
  border-radius: 999px;
  border: 1px solid rgba(22, 63, 73, 0.12);
  background: rgba(255, 255, 255, 0.74);
  color: var(--color-deep);
  font-weight: 700;
  transition: all 0.2s ease;
}

.filter-btn.is-active,
.filter-btn:hover {
  background: var(--color-deep);
  border-color: var(--color-deep);
  color: #fff;
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

.footer-shell {
  background:
    radial-gradient(circle at top right, rgba(215, 175, 100, 0.18), transparent 26%),
    linear-gradient(180deg, #102d34 0%, #0a1c21 100%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1024px) {
  .story-panel,
  .hero-panel,
  .scenic-panel {
    min-height: 20rem;
  }
}

@media (max-width: 640px) {
  .section-shell::before {
    background-size: 26px 26px;
  }

  .feature-card,
  .journal-card,
  .faq-card,
  .form-panel {
    border-radius: 1.4rem;
  }
}
