/* ============================================
   Caelum Marketing Site - Editorial Warmth
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colour palette */
  --navy: #1A2B4A;
  --navy-deep: #0F1B30;
  --gold: #B8A04C;
  --gold-light: #D4C27A;
  --cream: #F2EDE4;
  --cream-light: #FAF8F4;
  --warm-white: #FEFDFB;
  --text-dark: #1A2B4A;
  --text-muted: #6B7280;
  --border: #E8E1D5;

  /* Typography */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', Verdana, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 10rem;

  /* Shadows */
  --shadow-warm: 0 2px 8px rgba(26, 43, 74, 0.04), 0 8px 32px rgba(26, 43, 74, 0.06);
  --shadow-warm-hover: 0 4px 12px rgba(26, 43, 74, 0.06), 0 16px 48px rgba(26, 43, 74, 0.1);
  --shadow-gold: 0 4px 16px rgba(184, 160, 76, 0.25);

  /* Borders */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 76px;

  /* Noise SVG (inline for performance) */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-dark);
  background-color: var(--warm-white);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  font-variation-settings: 'opsz' 72;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  font-variation-settings: 'opsz' 144;
}

h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-variation-settings: 'opsz' 100;
}

h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  font-variation-settings: 'opsz' 36;
}

p {
  color: var(--text-muted);
  max-width: 60ch;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--gold);
  color: var(--navy);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
}

.skip-link:focus {
  top: var(--space-md);
}

/* --- Labels --- */
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.label--gold {
  color: var(--gold-light);
}

.label--navy {
  color: var(--navy);
}

/* --- Gold gradient underline utility --- */
.gold-underline {
  background-image: linear-gradient(90deg, var(--gold), var(--gold-light));
  background-size: 100% 3px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 4px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  position: relative;
  padding: var(--space-5xl) 0;
}

.section--cream {
  background-color: var(--cream);
}

.section--white {
  background-color: var(--warm-white);
}

.section--navy {
  background-color: var(--navy);
}

.section__noise {
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline-light:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background-color var(--transition-base), box-shadow var(--transition-base);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav__logo img {
  height: 28px;
  width: auto;
}

/* Logo switching: show light by default (over hero), hide dark */
.nav__logo-dark {
  display: none;
}

.nav--scrolled .nav__logo-light {
  display: none;
}

.nav--scrolled .nav__logo-dark {
  display: block;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: #fff;
}

.nav--scrolled .nav__link {
  color: var(--text-muted);
}

.nav--scrolled .nav__link:hover {
  color: var(--text-dark);
}

/* Scrolled state */
.nav--scrolled {
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav--scrolled .nav__toggle span {
  background: var(--text-dark);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--navy-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    transition: right var(--transition-slow);
    z-index: 1000;
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__menu.active .nav__link {
    color: rgba(255, 255, 255, 0.75);
  }

  .nav__menu.active .nav__link:hover {
    color: #fff;
  }

  .nav__links {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .nav__link {
    font-size: 1.25rem;
  }

  .nav__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-deep) 100%);
  overflow: hidden;
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-4xl);
}

.hero__noise {
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

.hero__glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(184, 160, 76, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero__headline {
  color: #fff;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.hero__subtitle {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: rgba(242, 237, 228, 0.7);
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero__stat {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(242, 237, 228, 0.55);
  letter-spacing: 0.02em;
}

.hero__stat-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(242, 237, 228, 0.25);
  flex-shrink: 0;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-top: var(--space-lg);
}

.section-header p {
  margin: var(--space-md) auto 0;
  text-align: center;
}

.section-header--light h2 {
  color: #fff;
}

.section-header--light p {
  color: rgba(242, 237, 228, 0.7);
}

.section-header__accent {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: var(--space-lg) auto 0;
}

/* --- Problem Cards --- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.problem-card {
  background: var(--warm-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-warm);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.problem-card:hover {
  box-shadow: var(--shadow-warm-hover);
  transform: translateY(-2px);
}

.problem-card__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--gold);
  margin-bottom: var(--space-md);
  font-variation-settings: 'opsz' 9;
}

.problem-card__title {
  margin-bottom: var(--space-sm);
}

.problem-card__text {
  font-size: 0.9375rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Feature Cards --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--cream-light);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-warm);
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.feature-card:hover {
  box-shadow: var(--shadow-warm-hover);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  color: var(--navy);
  border: 1px solid var(--border);
}

.feature-card__title {
  margin-bottom: var(--space-xs);
}

.feature-card__desc {
  font-size: 0.875rem;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Early Access Cards --- */
.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
  z-index: 1;
}

.access-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.access-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.access-card__title {
  color: #fff;
  margin-bottom: var(--space-sm);
}

.access-card__desc {
  font-size: 0.9375rem;
  color: rgba(242, 237, 228, 0.65);
  line-height: 1.7;
}

.section-cta {
  text-align: center;
  margin-top: var(--space-3xl);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Footer --- */
.footer {
  background: var(--navy-deep);
  padding: var(--space-4xl) 0 var(--space-2xl);
  color: rgba(242, 237, 228, 0.6);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand img {
  margin-bottom: var(--space-md);
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(242, 237, 228, 0.5);
  font-variation-settings: 'opsz' 24;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: 0.9375rem;
  color: rgba(242, 237, 228, 0.55);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--gold-light);
}

.footer__link--static {
  cursor: default;
}

.footer__link--static:hover {
  color: rgba(242, 237, 228, 0.55);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
}

.footer__copyright {
  font-size: 0.8125rem;
  color: rgba(242, 237, 228, 0.35);
}

.footer__built {
  font-size: 0.8125rem;
  color: rgba(242, 237, 228, 0.3);
  font-style: italic;
}

@media (max-width: 768px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* --- Reveal animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Diagonal accent decorative line --- */
.section-header__accent::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  transform: rotate(-45deg);
  transform-origin: left center;
  margin-top: 6px;
  margin-left: 24px;
}

/* --- Print --- */
@media print {
  .nav,
  .hero__noise,
  .hero__glow,
  .section__noise,
  .skip-link {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: #fff !important;
    color: #000 !important;
    padding: 2rem 0;
  }

  .hero__headline,
  .hero__subtitle,
  .hero__stat {
    color: #000 !important;
  }

  .section {
    padding: 2rem 0;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Responsive section padding --- */
@media (max-width: 768px) {
  .section {
    padding: var(--space-3xl) 0;
  }

  .hero {
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-3xl);
  }
}

/* --- Interactive Animations --- */

/* Hero split layout */
.hero__split {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero__content { flex: 1; }

.hero__visual {
  flex: 0 0 480px;
  display: none;
}

@media (min-width: 1024px) {
  .hero__visual { display: block; }
}

/* Animated dashboard mockup */
.hero__mockup {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(184,160,76,0.08);
  animation: mockupFloat 6s ease-in-out infinite;
}

@keyframes mockupFloat {
  0%, 100% { transform: translateY(0) rotate(0.5deg); }
  50% { transform: translateY(-8px) rotate(-0.5deg); }
}

.mockup__body {
  display: flex;
  min-height: 320px;
}

/* Sidebar */
.mockup__sidebar {
  width: 52px;
  background: rgba(15,27,48,0.6);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0 14px;
  gap: 0;
}

.mockup__logo-mark {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  opacity: 0.7;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.mockup__nav-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mockup__nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  transition: background 0.3s ease;
}

.mockup__nav-dot--active {
  background: var(--gold);
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(184,160,76,0.4);
}

/* Main area */
.mockup__main {
  flex: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Greeting */
.mockup__greeting {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup__greeting-line {
  width: 45%;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.14);
}

.mockup__greeting-date {
  width: 28%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
}

/* KPI cards */
.mockup__cards {
  display: flex;
  gap: 8px;
}

.mockup__kpi {
  flex: 1;
  padding: 10px 10px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 52px;
  animation: kpiSlideUp 0.8s ease-out forwards;
  opacity: 0;
  transform: translateY(12px);
}

.mockup__kpi--1 { animation-delay: 0.5s; }
.mockup__kpi--2 { animation-delay: 0.7s; }
.mockup__kpi--3 { animation-delay: 0.9s; }
.mockup__kpi--4 { animation-delay: 1.1s; }

.mockup__kpi-label {
  width: 60%;
  height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,0.1);
}

.mockup__kpi-number {
  width: 45%;
  height: 10px;
  border-radius: 4px;
  background: rgba(255,255,255,0.18);
  margin-top: 6px;
}

@keyframes kpiSlideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Chart area */
.mockup__chart {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 14px 12px 10px;
  display: flex;
  align-items: flex-end;
  min-height: 100px;
}

.mockup__chart-svg {
  width: 100%;
  height: 100%;
}

.mockup__line {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawLine 2s ease-out 2s forwards;
  opacity: 0.85;
}

.mockup__area {
  animation: areaFade 1s ease-out 3.5s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes areaFade {
  to { opacity: 1; }
}

/* Bottom section: progress bars + donut */
.mockup__bottom {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.mockup__progress-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.mockup__progress {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.mockup__progress-bar {
  height: 100%;
  border-radius: 4px;
  width: 0;
  animation: progressGrow 1s ease-out forwards;
}

.mockup__progress-bar--green {
  background: rgba(34,197,94,0.55);
  animation-delay: 1.5s;
  --target-width: 82%;
}

.mockup__progress-bar--amber {
  background: rgba(245,158,11,0.55);
  animation-delay: 1.7s;
  --target-width: 58%;
}

.mockup__progress-bar--red {
  background: rgba(239,68,68,0.45);
  animation-delay: 1.9s;
  --target-width: 34%;
}

@keyframes progressGrow {
  to { width: var(--target-width); }
}

/* Donut chart */
.mockup__donut-wrap {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup__donut {
  width: 100%;
  height: 100%;
}

.mockup__donut-ring {
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  animation: donutFill 1.5s ease-out 2s forwards;
  opacity: 0.7;
}

@keyframes donutFill {
  to { stroke-dashoffset: 50; }
}

/* Word reveal on hero headline */
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordReveal 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Feature card tilt (smooth return) */
.feature-card {
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  will-change: transform;
}

/* Gold shimmer on buttons */
.btn--gold {
  position: relative;
  overflow: hidden;
}

.btn--gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -60%; }
  50% { left: 120%; }
}

/* Stat counter pulse */
.problem-card__number {
  transition: color 0.3s ease, transform 0.3s ease;
}

.problem-card:hover .problem-card__number {
  color: var(--gold);
  transform: scale(1.1);
}

/* Section divider animated line */
.section-header__accent {
  position: relative;
  overflow: hidden;
}

.section-header__accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  animation: accentSlide 3s ease-in-out infinite;
}

@keyframes accentSlide {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Early access cards glow on hover */
.early-card:hover,
.cta-card:hover {
  box-shadow: 0 0 30px rgba(184, 160, 76, 0.15), 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Smooth scroll indicator */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============================================
   Sub-Page Styles
   ============================================ */

/* --- Page Hero (sub-pages) --- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-4xl)) 0 var(--space-3xl);
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-deep) 100%);
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(184, 160, 76, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: #fff;
  max-width: 720px;
  margin: var(--space-lg) auto var(--space-xl);
}

.page-hero p {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: rgba(242, 237, 228, 0.7);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
}

.badge--gold {
  background: rgba(184, 160, 76, 0.15);
  color: var(--gold-light);
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: var(--space-md) 0 var(--space-lg);
}

/* --- Button variants for sub-pages --- */
.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  position: relative;
  overflow: hidden;
}

.btn--primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

.btn--primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: shimmer 4s ease-in-out infinite;
}

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--navy);
  box-shadow: var(--shadow-warm);
  transform: translateY(-1px);
}

.btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

/* --- CTA Section --- */
.cta-section {
  position: relative;
  padding: var(--space-5xl) 0;
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-deep) 100%);
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

.cta-section__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.cta-section__content h2 {
  color: #fff;
  margin-bottom: var(--space-md);
}

.cta-section__content p {
  color: rgba(242, 237, 228, 0.7);
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.cta-section__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* --- Section header label --- */
.section-header__label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

/* --- Grid utility --- */
.grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

@media (max-width: 768px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Features Page
   ============================================ */

.feature-section__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.feature-section__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-white);
  border-radius: var(--radius-md);
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-warm);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-warm);
  transition: all var(--transition-base);
}

.feature-item:hover {
  box-shadow: var(--shadow-warm-hover);
  transform: translateY(-2px);
}

.section--cream .feature-item {
  background: var(--cream-light);
}

.feature-item__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 2px;
}

.feature-item__text h4 {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.feature-item__text p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .feature-section__header {
    flex-direction: column;
    gap: var(--space-md);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Pricing Page
   ============================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}

.pricing-card {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-warm);
  transition: all var(--transition-base);
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-warm-hover);
  transform: translateY(-3px);
}

.pricing-card--featured {
  border-color: var(--gold);
  border-width: 2px;
  box-shadow: var(--shadow-gold);
}

.pricing-card--featured:hover {
  box-shadow: 0 8px 24px rgba(184, 160, 76, 0.3);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 1rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.pricing-card__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: var(--space-xl);
}

.pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1;
}

.pricing-card__period {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.pricing-card__original {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: -4px;
  opacity: 0.6;
}

.pricing-card__saving {
  font-size: 0.8125rem;
  color: var(--gold);
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: var(--space-md);
}

.pricing-card__features {
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.875rem;
  color: var(--text-dark);
}

.pricing-card__feature svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- All plans include banner --- */
.included-banner {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-warm);
  text-align: center;
}

.included-banner h3 {
  margin-bottom: var(--space-lg);
}

.included-banner__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.included-banner__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-dark);
}

.included-banner__item svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--gold);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 600px;
}

.comparison-table thead {
  background: var(--navy);
  color: #fff;
}

.comparison-table th {
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.comparison-table th.featured {
  background: rgba(184, 160, 76, 0.15);
}

.comparison-table td {
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--border);
  color: var(--text-dark);
}

.comparison-table tbody tr:hover {
  background: var(--cream-light);
}

.comparison-table .check {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
}

.comparison-table .dash {
  color: var(--text-muted);
  opacity: 0.4;
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--gold);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform var(--transition-base);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
}

.faq-item__answer p {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================
   About Page
   ============================================ */

.about-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-hero h2 {
  margin-bottom: var(--space-md);
}

.about-hero p {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-variation-settings: 'opsz' 24;
  max-width: none;
}

.about-hero__image {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-hero__photo {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-gold);
}

.about-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero__image {
    order: -1;
  }

  .about-hero__photo {
    width: 200px;
    height: 200px;
  }
}

/* --- Values --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.value-card {
  background: var(--warm-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-warm);
  transition: all var(--transition-base);
}

.value-card:hover {
  box-shadow: var(--shadow-warm-hover);
  transform: translateY(-2px);
}

.value-card__icon {
  width: 40px;
  height: 40px;
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.value-card h3 {
  margin-bottom: var(--space-sm);
}

.value-card p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   Contact Page
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Form Styles --- */
.form {
  background: var(--warm-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-warm);
  border: 1px solid var(--border);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 640px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.form__label span {
  color: var(--gold);
}

.form__input,
.form__textarea {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 160, 76, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

select.form__input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

/* --- Contact Info Sidebar --- */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info h2 {
  margin-bottom: var(--space-xs);
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  color: var(--gold);
  border: 1px solid var(--border);
}

.contact-info__text h4 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.contact-info__text p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-info__text a {
  color: var(--gold);
  transition: color var(--transition-fast);
}

.contact-info__text a:hover {
  color: var(--gold-light);
}

/* --- Sub-page footer (4-col grid) --- */
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid .footer__brand p {
  font-size: 0.9375rem;
  color: rgba(242, 237, 228, 0.55);
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242, 237, 228, 0.4);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__legal {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal a {
  font-size: 0.8125rem;
  color: rgba(242, 237, 228, 0.35);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--gold-light);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__legal {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* --- Reveal delay variants --- */
.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* --- Responsive page-hero --- */
@media (max-width: 768px) {
  .page-hero {
    padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
  }
}
