/* ============================================
   CRONIQ — style.css
   2026 Production-ready stylesheet
   Dark mode default · Mobile first · WCAG AA
   Glassmorphism · Scroll-driven · Micro-interactions
   ============================================ */

/* ---------- Local Fonts (self-hosted, no tracking) ---------- */

/* Cormorant Garamond — Normal — Latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond — Normal — Latin Extended */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Cormorant Garamond — Italic — Latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Cormorant Garamond — Italic — Latin Extended */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/cormorant-garamond-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans — Normal — Latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — Normal — Latin Extended */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* DM Sans — Italic — Latin */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Sans — Italic — Latin Extended */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/dm-sans-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================
   DESIGN TOKENS — CSS Custom Properties
   ============================================ */
:root {
  /* --- Palette --- */
  --color-navy:        #1A3A5C;
  --color-navy-light:  #24507A;
  --color-navy-dark:   #122842;
  --color-gold:        #C9A84C;
  --color-gold-light:  #D4BA6A;
  --color-gold-muted:  rgba(201, 168, 76, 0.15);
  --color-gold-subtle: rgba(201, 168, 76, 0.06);
  --color-dark:        #0F1A2E;
  --color-dark-alt:    #13203A;
  --color-dark-card:   rgba(22, 35, 64, 0.6);
  --color-dark-card-solid: #162340;
  --color-white:       #F4F1EC;
  --color-white-pure:  #FFFFFF;
  --color-gray-100:    #E8E4DD;
  --color-gray-200:    #C8C4BD;
  --color-gray-300:    #9B978F;
  --color-gray-400:    #6E6B65;

  /* --- Semantic colours (dark mode default) --- */
  --bg-primary:        var(--color-dark);
  --bg-secondary:      var(--color-dark-alt);
  --bg-card:           var(--color-dark-card);
  --bg-card-solid:     var(--color-dark-card-solid);
  --bg-accent:         var(--color-gold-muted);
  --bg-glass:          rgba(15, 26, 46, 0.4);
  --text-primary:      var(--color-white);
  --text-secondary:    var(--color-gray-200);
  --text-muted:        var(--color-gray-300);
  --text-heading:      var(--color-white-pure);
  --accent:            var(--color-gold);
  --accent-hover:      var(--color-gold-light);
  --border:            rgba(255, 255, 255, 0.06);
  --border-subtle:     rgba(255, 255, 255, 0.03);
  --border-accent:     rgba(201, 168, 76, 0.25);
  --status-success:    #34a853;
  --status-error:      #e74c3c;
  --status-success-bg: rgba(52, 168, 83, 0.1);

  /* --- Typography --- */
  --font-display:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:     'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-md:    1.125rem;
  --fs-lg:    1.25rem;
  --fs-xl:    1.5rem;
  --fs-2xl:   2rem;
  --fs-3xl:   2.5rem;
  --fs-4xl:   3.25rem;
  --fs-hero:  4.5rem;

  --lh-tight:   1.1;
  --lh-heading: 1.2;
  --lh-body:    1.7;

  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  /* --- Spacing --- */
  --space-2xs:  0.125rem;
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  3rem;
  --space-4xl:  4.5rem;
  --space-5xl:  6rem;
  --space-6xl:  8rem;

  /* --- Layout --- */
  --max-width:        1200px;
  --max-width-narrow:  800px;
  --max-width-text:    680px;
  --gutter:           clamp(1.25rem, 5vw, 3rem);

  /* --- Radii --- */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-pill:  100px;

  /* --- Shadows --- */
  --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-lg:   0 12px 40px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-xl:   0 24px 64px rgba(0, 0, 0, 0.3);
  --shadow-glow:  0 0 32px rgba(201, 168, 76, 0.08);
  --shadow-glow-strong: 0 0 48px rgba(201, 168, 76, 0.15);
  --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /* --- Transitions --- */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-bounce:  cubic-bezier(0.34, 1.8, 0.64, 1);
  --duration-fast:    120ms;
  --duration-normal:  250ms;
  --duration-slow:    500ms;
  --duration-slower:  800ms;

  /* --- Glass effect --- */
  --glass-bg:     rgba(22, 35, 64, 0.5);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur:   20px;
}

/* --- Light mode override --- */
[data-theme="light"] {
  --bg-primary:      #F8F6F1;
  --bg-secondary:    #EFEDE7;
  --bg-card:         rgba(255, 255, 255, 0.7);
  --bg-card-solid:   #FFFFFF;
  --bg-accent:       rgba(201, 168, 76, 0.08);
  --bg-glass:        rgba(248, 246, 241, 0.5);
  --text-primary:    #1A1A1A;
  --text-secondary:  #4A4A4A;
  --text-muted:      #7A7A7A;
  --text-heading:    var(--color-navy);
  --accent:          var(--color-navy);
  --accent-hover:    var(--color-navy-light);
  --border:          rgba(0, 0, 0, 0.06);
  --border-subtle:   rgba(0, 0, 0, 0.03);
  --border-accent:   rgba(26, 58, 92, 0.15);
  --status-success:  #2e8b57;
  --status-error:    #c0392b;
  --status-success-bg: rgba(46, 139, 87, 0.12);
  --shadow-sm:       0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:       0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg:       0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl:       0 24px 64px rgba(0, 0, 0, 0.1);
  --shadow-glow:     0 0 32px rgba(26, 58, 92, 0.05);
  --shadow-glow-strong: 0 0 48px rgba(26, 58, 92, 0.08);
  --shadow-inner:    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --glass-bg:        rgba(255, 255, 255, 0.6);
  --glass-border:    rgba(0, 0, 0, 0.06);
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--color-navy) transparent;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-wrap: pretty;
}

/* Ambient grain texture — subtle film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

[data-theme="light"] body::before {
  opacity: 0.03;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

a:hover,
a:focus-visible {
  color: var(--accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  color: var(--text-heading);
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background: rgba(201, 168, 76, 0.25);
  color: var(--text-heading);
}

[data-theme="light"] ::selection {
  background: rgba(26, 58, 92, 0.2);
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 1001;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transition: none;
  will-change: width;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.heading-hero {
  font-size: clamp(var(--fs-3xl), 7vw, var(--fs-hero));
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
}

.heading-1 {
  font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
  font-weight: var(--fw-semibold);
  letter-spacing: -0.02em;
}

.heading-2 {
  font-size: clamp(var(--fs-xl), 3.5vw, var(--fs-3xl));
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
}

.heading-3 {
  font-size: clamp(var(--fs-lg), 2.5vw, var(--fs-2xl));
  font-weight: var(--fw-medium);
}

.text-lg  { font-size: var(--fs-lg);  line-height: var(--lh-body); }
.text-md  { font-size: var(--fs-md);  line-height: var(--lh-body); }
.text-sm  { font-size: var(--fs-sm);  line-height: var(--lh-body); }
.text-xs  { font-size: var(--fs-xs);  line-height: var(--lh-body); }

.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent    { color: var(--accent); }
.text-center    { text-align: center; }
.text-balance   { text-wrap: balance; }

.u-inline-flex      { display: inline-flex; }
.u-text-center      { text-align: center; }
.u-mx-auto          { margin-inline: auto; }
.u-w-full           { width: 100%; }
.u-max-width-text   { max-width: var(--max-width-text); }
.u-max-width-narrow { max-width: var(--max-width-narrow); }
.u-max-width-480    { max-width: 480px; }
.u-mb-sm            { margin-bottom: var(--space-sm); }
.u-mb-md            { margin-bottom: var(--space-md); }
.u-mb-lg            { margin-bottom: var(--space-lg); }
.u-mb-2xl           { margin-bottom: var(--space-2xl); }
.u-mb-3xl           { margin-bottom: var(--space-3xl); }
.u-mt-md            { margin-top: var(--space-md); }
.u-mt-3xl           { margin-top: var(--space-3xl); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--max-width-narrow); }
.container--text   { max-width: var(--max-width-text); }

.section {
  padding-block: var(--space-4xl);
  position: relative;
}

.section--lg { padding-block: var(--space-5xl); }
.section--sm { padding-block: var(--space-2xl); }

/* Below-fold performance */
.section:not(:first-of-type) {
  content-visibility: auto;
  contain-intrinsic-size: 0 600px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.2);
  border-bottom: 1px solid var(--glass-border);
  transition: padding var(--duration-slow) var(--ease-out),
              background var(--duration-slow) var(--ease-out);
}

.site-header.scrolled {
  padding-block: var(--space-sm);
  background: var(--glass-bg);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* --- Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: auto;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.logo:hover img {
  transform: scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  letter-spacing: 0.06em;
}

/* --- Desktop Nav --- */
.main-nav {
  display: none;
}

.main-nav a {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) 0;
  transition: color var(--duration-normal) var(--ease-out);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-normal) var(--ease-out),
              left var(--duration-normal) var(--ease-out);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
  left: 0;
}

.main-nav a.active::after {
  background: var(--accent);
  opacity: 0.5;
}

/* --- Mobile Nav: fullscreen overlay --- */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-slow) var(--ease-out),
              visibility var(--duration-slow);
}

.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-overlay a {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-2xl), 6vw, var(--fs-4xl));
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out);
  transform: translateY(20px);
  opacity: 0;
}

.nav-overlay.is-open a {
  transform: translateY(0);
  opacity: 1;
}

.nav-overlay.is-open a:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.is-open a:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.is-open a:nth-child(3) { transition-delay: 0.3s; }

.nav-overlay a:hover,
.nav-overlay a.active {
  color: var(--accent);
}

/* --- Nav Toggle (hamburger → X) --- */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav-toggle span::before { transform: translateY(-8px); }
.nav-toggle span::after  { transform: translateY(8px); }

.nav-toggle.is-active span { background: transparent; }
.nav-toggle.is-active span::before { transform: rotate(45deg); }
.nav-toggle.is-active span::after  { transform: rotate(-45deg); }

/* --- Theme Toggle --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--text-muted);
  font-size: var(--fs-md);
  transition: all var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-accent);
  transform: rotate(15deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
  }

  .nav-toggle { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--space-5xl) + 72px);
  padding-bottom: var(--space-4xl);
  position: relative;
  overflow: hidden;
}

/* Atmospheric gradient mesh */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(26, 58, 92, 0.2) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 25% 70%, rgba(201, 168, 76, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(26, 58, 92, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: meshPulse 12s var(--ease-in-out) infinite alternate;
}

[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(26, 58, 92, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 25% 70%, rgba(201, 168, 76, 0.04) 0%, transparent 60%);
}

@keyframes meshPulse {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0.7; transform: scale(1.05); }
}

/* Ambient floating orbs */
.hero-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  will-change: transform;
}

.hero-orb--1 {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  background: var(--color-navy);
  top: 10%;
  left: 15%;
  animation: orbFloat1 18s var(--ease-in-out) infinite alternate;
}

.hero-orb--2 {
  width: clamp(150px, 25vw, 350px);
  height: clamp(150px, 25vw, 350px);
  background: var(--color-gold);
  bottom: 20%;
  right: 10%;
  opacity: 0.06;
  animation: orbFloat2 22s var(--ease-in-out) infinite alternate;
}

.hero-orb--3 {
  width: clamp(100px, 20vw, 250px);
  height: clamp(100px, 20vw, 250px);
  background: var(--color-navy-light);
  top: 50%;
  right: 30%;
  opacity: 0.08;
  animation: orbFloat3 15s var(--ease-in-out) infinite alternate;
}

[data-theme="light"] .hero-orb { opacity: 0.06; }
[data-theme="light"] .hero-orb--2 { opacity: 0.04; }

@keyframes orbFloat1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.1); }
}
@keyframes orbFloat2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-30px, 25px) scale(0.95); }
}
@keyframes orbFloat3 {
  from { transform: translate(0, 0); }
  to   { transform: translate(25px, 20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
}

.hero-logo {
  width: clamp(72px, 10vw, 100px);
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: heroReveal 1s var(--ease-out) 0.1s forwards;
}

.hero-title {
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: heroReveal 1s var(--ease-out) 0.25s forwards;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(var(--fs-md), 2.5vw, var(--fs-xl));
  font-weight: var(--fw-regular);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: heroReveal 1s var(--ease-out) 0.45s forwards;
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: clamp(var(--fs-base), 2vw, var(--fs-lg));
  color: var(--text-secondary);
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: heroReveal 1s var(--ease-out) 0.45s forwards;
}

.hero-cta {
  opacity: 0;
  animation: heroReveal 1s var(--ease-out) 0.65s forwards;
}

/* Hero scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroReveal 1s var(--ease-out) 1.2s forwards;
}

.hero-scroll__line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s var(--ease-in-out) infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1; transform: scaleY(1); }
}

/* Hero compact (sub-pages) */
.hero--compact {
  min-height: auto;
  padding-top: calc(var(--space-4xl) + 100px);
  padding-bottom: var(--space-3xl);
}

.hero--compact .hero-content { max-width: 680px; }

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Shimmer effect on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transition: left var(--duration-slow) var(--ease-out);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-dark);
  box-shadow: var(--shadow-sm), 0 0 0 0 rgba(201, 168, 76, 0);
}

.btn--primary:hover {
  background: var(--color-gold-light);
  color: var(--color-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(201, 168, 76, 0.2);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow-md);
}

.btn--outline:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-sm) var(--space-md);
}

.btn--ghost:hover { color: var(--accent); }

.btn--lg {
  font-size: var(--fs-base);
  padding: var(--space-lg) var(--space-2xl);
}

/* ============================================
   CARDS — Glassmorphism
   ============================================ */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-inner);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow), var(--shadow-inner);
  transform: translateY(-4px);
}

.card--accent {
  border-color: var(--border-accent);
  background: linear-gradient(
    160deg,
    var(--bg-card) 0%,
    rgba(201, 168, 76, 0.03) 100%
  );
}

.card--accent::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-muted), transparent);
}

.card-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: clamp(var(--fs-lg), 2vw, var(--fs-xl));
  margin-bottom: var(--space-md);
}

.card-text {
  color: var(--text-secondary);
  font-size: var(--fs-base);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================
   SECTION TRANSITIONS (replaces <hr> dividers)
   ============================================ */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: var(--space-md);
}

.section-divider__line {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  position: relative;
}

.section-divider__line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

/* Legacy divider support */
.divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  border: none;
  margin: var(--space-2xl) auto;
  position: relative;
}

.divider--left { margin-left: 0; }

/* ============================================
   SECTION HEADER
   ============================================ */
.section-header {
  text-align: center;
  max-width: var(--max-width-text);
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: var(--fs-md);
  color: var(--text-secondary);
  max-width: 540px;
  margin-inline: auto;
}

/* ============================================
   FEATURES / HOW IT WORKS
   ============================================ */
.feature-list {
  display: grid;
  gap: var(--space-2xl);
  counter-reset: feature;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-lg);
  align-items: start;
  counter-increment: feature;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: background var(--duration-normal) var(--ease-out);
}

.feature-item:hover {
  background: var(--bg-card);
}

.feature-number {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--accent);
  line-height: 1;
  min-width: 48px;
  opacity: 0.4;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.feature-item:hover .feature-number { opacity: 1; }

.feature-number::before {
  content: counter(feature, decimal-leading-zero);
}

.feature-content h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-sm);
}

.feature-content p {
  color: var(--text-secondary);
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 960px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border-color: var(--border-accent);
}

.pricing-card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, var(--color-gold), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.pricing-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.pricing-period {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.pricing-features li::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.7em;
  opacity: 0.5;
}

/* ============================================
   FORM
   ============================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}

.form-input {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  transition: all var(--duration-normal) var(--ease-out);
  width: 100%;
}

.form-input:hover {
  border-color: rgba(201, 168, 76, 0.15);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--color-gold-subtle);
  background: var(--bg-primary);
}

.form-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-inline {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.form-inline .form-input {
  flex: 1;
  min-width: 200px;
}

.beta-form .form-inline {
  flex-wrap: nowrap;
  align-items: center;
  position: relative;
}

.beta-form .form-inline .btn {
  flex: 0 0 9.75rem;
  width: 9.75rem;
  justify-content: center;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .beta-form .form-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .beta-form .form-inline .form-input {
    min-width: 0;
  }

  .beta-form .form-inline .btn {
    width: 100%;
    flex-basis: auto;
  }
}

.success-stars {
  position: absolute;
  right: 4.875rem;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 2;
}

.beta-signup-card {
  position: relative;
  isolation: isolate;
}

.beta-signup-card::before,
.beta-signup-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.beta-signup-card::before {
  border: 1px solid color-mix(in srgb, var(--accent) 46%, transparent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 24%, transparent);
}

.beta-signup-card::after {
  inset: -20%;
  border-radius: calc(var(--radius-xl) + var(--space-xl));
  background: linear-gradient(
    115deg,
    transparent 20%,
    color-mix(in srgb, var(--accent) 16%, transparent) 45%,
    color-mix(in srgb, var(--accent) 8%, transparent) 52%,
    transparent 74%
  );
  transform: translateX(-120%) skewX(-16deg);
}

.beta-signup-card.is-celebrating {
  animation: cardCelebrate 1900ms var(--ease-out);
}

.beta-signup-card.is-celebrating::before {
  animation: cardOutlineGlow 1900ms var(--ease-out);
}

.beta-signup-card.is-celebrating::after {
  animation: cardSheen 1450ms var(--ease-out) 220ms;
}

@keyframes cardCelebrate {
  0% {
    transform: translateY(0) scale(1);
  }
  36% {
    transform: translateY(-2px) scale(1.004);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes cardOutlineGlow {
  0% {
    opacity: 0;
    transform: scale(0.99);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 24%, transparent);
  }
  26% {
    opacity: 0.65;
  }
  68% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
    transform: scale(1.01);
    box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent);
  }
}

@keyframes cardSheen {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-16deg);
  }
  24% {
    opacity: 0.22;
  }
  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-16deg);
  }
}

.success-stars::before,
.success-stars::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  pointer-events: none;
}

.success-stars::before {
  border: 1px solid color-mix(in srgb, var(--accent) 48%, transparent);
}

.success-stars::after {
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}

.success-stars .star {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  text-shadow: 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent);
  opacity: 0;
  transform: translate(0, 0) scale(0.35);
  will-change: transform, opacity;
}

.success-stars .star--1 { font-size: 0.9rem; }
.success-stars .star--2 { font-size: 0.8rem; }
.success-stars .star--3 { font-size: 0.7rem; }
.success-stars .star--4 { font-size: 0.95rem; }
.success-stars .star--5 { font-size: 0.75rem; }

.beta-form.is-celebrating .success-stars::before {
  animation: successPulse 1700ms var(--ease-out);
}

.beta-form.is-celebrating .success-stars::after {
  animation: successPulse 1700ms var(--ease-out) 360ms;
}

.beta-form.is-celebrating .star--1 { animation: starShoot1 1650ms var(--ease-out); }
.beta-form.is-celebrating .star--2 { animation: starShoot2 1600ms var(--ease-out) 130ms; }
.beta-form.is-celebrating .star--3 { animation: starShoot3 1560ms var(--ease-out) 190ms; }
.beta-form.is-celebrating .star--4 { animation: starShoot4 1620ms var(--ease-out) 90ms; }
.beta-form.is-celebrating .star--5 { animation: starShoot5 1580ms var(--ease-out) 150ms; }

@keyframes successPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  22% {
    opacity: 0.38;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(6.8);
  }
}

@keyframes starShoot1 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.35) rotate(0deg); }
  22% { opacity: 0.9; }
  74% { opacity: 0.65; }
  100% { opacity: 0; transform: translate(42px, -36px) scale(0.95) rotate(18deg); }
}

@keyframes starShoot2 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.35) rotate(0deg); }
  22% { opacity: 0.88; }
  74% { opacity: 0.62; }
  100% { opacity: 0; transform: translate(50px, -6px) scale(0.9) rotate(24deg); }
}

@keyframes starShoot3 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.35) rotate(0deg); }
  22% { opacity: 0.86; }
  74% { opacity: 0.6; }
  100% { opacity: 0; transform: translate(-36px, -24px) scale(0.86) rotate(-14deg); }
}

@keyframes starShoot4 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.35) rotate(0deg); }
  22% { opacity: 0.88; }
  74% { opacity: 0.64; }
  100% { opacity: 0; transform: translate(18px, 38px) scale(0.92) rotate(18deg); }
}

@keyframes starShoot5 {
  0% { opacity: 0; transform: translate(0, 0) scale(0.35) rotate(0deg); }
  22% { opacity: 0.84; }
  74% { opacity: 0.58; }
  100% { opacity: 0; transform: translate(-26px, 30px) scale(0.84) rotate(-18deg); }
}

@media (max-width: 520px) {
  .success-stars {
    left: 50%;
    right: auto;
    top: calc(100% - 1.35rem);
  }
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-message {
  font-size: var(--fs-sm);
  min-height: 2.8em;
  color: var(--text-muted);
  transition: all var(--duration-normal) var(--ease-out);
}

.form-message--error {
  color: var(--status-error);
}

.form-message--success {
  color: var(--status-success);
}

/* Success state */
.form-input.is-success {
  border-color: var(--status-success);
  box-shadow: 0 0 0 4px var(--status-success-bg);
}

/* ============================================
   CONTENT SECTIONS (privacy page etc.)
   ============================================ */
.content-section {
  max-width: var(--max-width-text);
  margin-inline: auto;
}

.content-section h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
}

.content-section h2:first-child {
  margin-top: 0;
  padding-top: 0;
}

.content-section h3 {
  font-size: var(--fs-xl);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.content-section p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.content-section ul {
  margin-bottom: var(--space-md);
}

.content-section ul li {
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  position: relative;
  padding-left: var(--space-xl);
}

.content-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 16px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.content-section strong {
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  position: relative;
  border-top: 1px solid var(--border);
  margin-top: var(--space-4xl);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, var(--border-accent), transparent 90%);
}

/* --- Grid: brand | nav | contact --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding-block: var(--space-3xl) var(--space-xl);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
  }
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity var(--duration-normal) var(--ease-out);
}

.footer-logo:hover { opacity: 0.75; }

.footer-logo .logo-text {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.footer-tagline {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  opacity: 0.7;
}

/* Section headings */
.footer-heading {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

/* Nav column */
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-nav a {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
  width: fit-content;
}

.footer-nav a:hover { color: var(--accent); }

/* Contact column */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-contact a {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
  width: fit-content;
}

.footer-contact a:hover { color: var(--accent); }

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-lg);
  border-top: 1px solid var(--border);
}

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  opacity: 0.5;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.footer-legal a:hover { opacity: 1; }

/* ============================================
   NOT-LIST (What it is NOT)
   ============================================ */
.not-list {
  display: grid;
  gap: var(--space-xl);
}

.not-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  transition: background var(--duration-normal) var(--ease-out);
}

.not-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="light"] .not-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.not-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: var(--fs-sm);
  line-height: 1;
}

[data-theme="light"] .not-icon {
  background: rgba(0, 0, 0, 0.03);
}

.not-item h3 {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

.not-item p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

/* ============================================
   FACTOR DISPLAY (5 factors)
   ============================================ */
.factor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .factor-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .factor-grid { grid-template-columns: repeat(5, 1fr); }
}

.factor-item {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  transition: all var(--duration-slow) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.factor-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(201, 168, 76, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.factor-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.factor-item:hover::before { opacity: 1; }

.factor-icon {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-sm);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.factor-name {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text-heading);
  position: relative;
  z-index: 1;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--duration-slower) var(--ease-out),
    transform var(--duration-slower) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Reveal from different directions */
.reveal--left {
  transform: translateX(-32px);
}
.reveal--left.is-visible { transform: translateX(0); }

.reveal--right {
  transform: translateX(32px);
}
.reveal--right.is-visible { transform: translateX(0); }

.reveal--scale {
  transform: scale(0.95);
}
.reveal--scale.is-visible { transform: scale(1); }

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  background: var(--bg-accent);
  color: var(--accent);
}

.badge--soon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

[data-theme="light"] .badge--soon {
  background: rgba(0, 0, 0, 0.03);
}

.badge--soon::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  opacity: 0.4;
  animation: badgePulse 2s var(--ease-in-out) infinite;
}

@keyframes badgePulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}

/* ============================================
   HIGHLIGHT BOX
   ============================================ */
.highlight-box {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.4;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: var(--fs-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 100;
  -webkit-tap-highlight-color: transparent;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ============================================
   SKIP LINK (a11y)
   ============================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--accent);
  color: var(--color-dark);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  z-index: 9999;
  transition: top var(--duration-fast);
}

.skip-link:focus { top: var(--space-md); color: var(--color-dark); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .section     { padding-block: var(--space-5xl); }
  .section--lg { padding-block: var(--space-6xl); }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .hero-orb { animation: none; }
  .hero-scroll__line { animation: none; opacity: 0.5; }

  .beta-form.is-celebrating .success-stars .star {
    animation: none;
    opacity: 0;
  }

  .beta-form.is-celebrating .success-stars::before,
  .beta-form.is-celebrating .success-stars::after {
    animation: none;
    opacity: 0;
  }

  .beta-signup-card.is-celebrating::before,
  .beta-signup-card.is-celebrating::after {
    animation: none;
    opacity: 0;
  }

  .beta-signup-card.is-celebrating {
    animation: none;
    transform: none;
  }
}

/* ============================================
   CUSTOM SCROLLBAR (subtle)
   ============================================ */
@media (hover: hover) {
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: transparent;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
  }

  [data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
  }
  [data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
  }
}
