/* ==========================================================================
   Carbon REI — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@500;600;700&display=swap');

:root{
  color-scheme: dark;

  /* Base surfaces — off-black, layered */
  --bg: #0a0908;
  --bg-alt: #0f0e0c;
  --surface: #151310;
  --surface-2: #1c1914;
  --surface-3: #24201a;
  --border: rgba(214, 164, 96, 0.14);
  --border-strong: rgba(214, 164, 96, 0.28);

  /* Text */
  --text-primary: #f6f2ea;
  --text-secondary: #b8ae9e;
  --text-tertiary: #837a6c;

  /* Bronze brand ramp */
  --bronze-100: #f7e6c9;
  --bronze-300: #e3b573;
  --bronze-500: #cd8b3f;
  --bronze-600: #b9752f;
  --bronze-700: #8f5a24;
  --bronze-900: #4a2e14;

  --gradient-bronze: linear-gradient(135deg, #f7dfa5 0%, #d99a4e 42%, #a85f24 78%, #7a4419 100%);
  --gradient-bronze-soft: linear-gradient(135deg, rgba(247,223,165,0.9) 0%, rgba(217,154,78,0.85) 50%, rgba(122,68,25,0.85) 100%);
  --gradient-radial-glow: radial-gradient(circle at 30% 20%, rgba(217,154,78,0.25), transparent 60%);

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.35);
  --shadow-md: 0 12px 32px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.55);
  --shadow-bronze: 0 8px 30px rgba(205, 139, 63, 0.25);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

:root[data-theme="light"]{
  color-scheme: light;
  --bg: #faf7f2;
  --bg-alt: #f3ede2;
  --surface: #ffffff;
  --surface-2: #fbf6ee;
  --surface-3: #f1e9d9;
  --border: rgba(122, 68, 25, 0.14);
  --border-strong: rgba(122, 68, 25, 0.26);

  --text-primary: #1c1712;
  --text-secondary: #5c5244;
  --text-tertiary: #8a8071;

  --shadow-sm: 0 2px 8px rgba(30,20,10,0.06);
  --shadow-md: 0 12px 32px rgba(30,20,10,0.08);
  --shadow-lg: 0 24px 64px rgba(30,20,10,0.12);
  --shadow-bronze: 0 8px 30px rgba(205, 139, 63, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; }
button{ font-family: inherit; cursor: pointer; }
input, textarea{ font-family: inherit; }

.container{
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Background ambience ---------- */
.bg-glow{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(217,154,78,0.14), transparent 60%),
    radial-gradient(500px circle at 85% 30%, rgba(217,154,78,0.10), transparent 60%),
    radial-gradient(700px circle at 50% 90%, rgba(217,154,78,0.08), transparent 60%);
  transition: opacity 0.4s var(--ease);
}
:root[data-theme="light"] .bg-glow{ opacity: 0.6; }

/* ---------- Typography ---------- */
h1, h2, h3, h4{ font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-300);
  padding: 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  background: var(--surface-2);
}
.eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gradient-bronze);
  box-shadow: 0 0 10px rgba(217,154,78,0.8);
}

.gradient-text{
  background: var(--gradient-bronze);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary{
  background: var(--gradient-bronze);
  color: #221507;
  box-shadow: var(--shadow-bronze);
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 40px rgba(217,154,78,0.35); }
.btn-primary:active{ transform: translateY(0); }

.btn-ghost{
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover{ background: var(--surface-2); border-color: var(--bronze-500); transform: translateY(-2px); }

.btn-block{ width: 100%; }
.btn-lg{ padding: 16px 32px; font-size: 1rem; }
.btn-sm{ padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled{
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.logo-mark{
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--gradient-bronze);
  display: flex; align-items: center; justify-content: center;
  color: #221507;
  font-weight: 800;
  font-family: var(--font-sans);
  box-shadow: var(--shadow-bronze);
  flex-shrink: 0;
}
.logo-text span{ color: var(--bronze-300); }
.logo-img{ height: 44px; width: auto; display: block; }
.logo-img-light{ display: none; }
:root[data-theme="light"] .logo-img-dark{ display: none; }
:root[data-theme="light"] .logo-img-light{ display: block; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a{
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--gradient-bronze);
  transition: width 0.3s var(--ease);
  border-radius: 2px;
}
.nav-links a:hover{ color: var(--text-primary); }
.nav-links a:hover::after{ width: 100%; }

.nav-actions{ display: flex; align-items: center; gap: 12px; }

.theme-toggle{
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover{ border-color: var(--bronze-500); transform: rotate(20deg); }
.theme-toggle svg{ width: 18px; height: 18px; }
.theme-toggle .sun{ display: none; }
:root[data-theme="light"] .theme-toggle .moon{ display: none; }
:root[data-theme="light"] .theme-toggle .sun{ display: block; }

.nav-toggle{
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  align-items: center; justify-content: center;
  color: var(--text-primary);
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span{ width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: all 0.3s var(--ease); }
.nav-toggle.active span:nth-child(1){ transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2){ opacity: 0; }
.nav-toggle.active span:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero{
  position: relative;
  padding: 190px 0 140px;
  overflow: hidden;
}
.hero-inner{
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.hero h1{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.08;
  margin: 24px 0 22px;
}
.hero p{
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.hero-orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  opacity: 0.55;
}
.hero-orb.one{
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(217,154,78,0.55), transparent 70%);
  top: -180px; left: -120px;
  animation: float-slow 14s ease-in-out infinite;
}
.hero-orb.two{
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(180,110,50,0.4), transparent 70%);
  top: 60px; right: -140px;
  animation: float-slow 18s ease-in-out infinite reverse;
}

@keyframes float-slow{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(30px,-30px) scale(1.08); }
}

.trust-line{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin-bottom: 56px;
}
.trust-line .stars{ display: inline-flex; gap: 2px; color: var(--bronze-500); margin-right: 2px; }
.trust-line .stars svg{ width: 14px; height: 14px; }
.trust-line .trust-sep{ color: var(--text-tertiary); }

.hero-stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.hero-stat{ text-align: center; }
.hero-stat .num{
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
}
.hero-stat .label{
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ---------- Logo strip ---------- */
.logo-strip{
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-strip-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  opacity: 0.6;
}
.logo-strip span{
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

/* ---------- Section shared ---------- */
section{ position: relative; z-index: 1; padding: 140px 0; }
.section-head{
  max-width: 640px;
  margin: 0 auto 72px;
  text-align: center;
}
.section-head h2{
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin: 20px 0 16px;
  line-height: 1.15;
}
.section-head p{ color: var(--text-secondary); font-size: 1.05rem; }

/* ---------- Feature cards ---------- */
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-radial-glow);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.card:hover{
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card:hover::before{ opacity: 1; }

.card-icon{
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--bronze-300);
  position: relative;
  z-index: 1;
}
.card-icon svg{ width: 24px; height: 24px; }
.card h3{ font-size: 1.25rem; margin-bottom: 12px; position: relative; z-index: 1; }
.card p{ color: var(--text-secondary); font-size: 0.95rem; position: relative; z-index: 1; }

/* ---------- Process / steps ---------- */
.steps{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step{ position: relative; padding: 32px 24px; }
.step-num{
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-bronze);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(122, 68, 25, 0.35);
  margin-bottom: 20px;
  display: block;
}
.step h4{ font-size: 1.1rem; margin-bottom: 10px; font-family: var(--font-sans); font-weight: 700; }
.step p{ color: var(--text-secondary); font-size: 0.92rem; }
.step:not(:last-child)::after{
  content: '';
  position: absolute;
  top: 40px; right: -12px;
  width: 24px; height: 1px;
  background: var(--border-strong);
  display: none;
}

/* ---------- Showcase / split ---------- */
.split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-visual{
  aspect-ratio: 4/3.2;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-visual::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-radial-glow);
}
.split-visual .mock-bar{
  position: absolute;
  left: 24px; right: 24px;
  height: 46px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.split-visual .mock-bar span{ width: 8px; height: 8px; border-radius: 50%; background: var(--bronze-500); }
.split-visual .mock-chart{
  position: absolute;
  left: 24px; right: 24px; bottom: 28px; top: 96px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 20px;
}
.split-visual .mock-chart div{
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: var(--gradient-bronze);
  opacity: 0.85;
  animation: bar-grow 1.4s var(--ease) both;
}
@keyframes bar-grow{ from{ transform: scaleY(0); transform-origin: bottom; } to{ transform: scaleY(1); } }

.split-list{ margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.split-list li{ display: flex; gap: 14px; align-items: flex-start; }
.split-list .check{
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gradient-bronze);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  color: #221507;
}
.split-list .check svg{ width: 13px; height: 13px; }
.split-list strong{ display: block; font-size: 1rem; margin-bottom: 2px; }
.split-list span.desc{ color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- Testimonials ---------- */
.testimonial-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.pull-quote{
  margin-top: 48px;
  padding: 36px 40px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.pull-quote::before{
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-radial-glow);
  pointer-events: none;
}
.pull-quote p{
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text-primary);
  text-align: center;
  font-weight: 500;
  margin: 0;
}
.testimonial-card:hover{ transform: translateY(-6px); border-color: var(--border-strong); }
.stars{ display: flex; gap: 4px; color: var(--bronze-500); }
.stars svg{ width: 16px; height: 16px; }
.testimonial-card p{ color: var(--text-secondary); font-size: 0.98rem; line-height: 1.65; }
.testimonial-person{ display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar{
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-bronze);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #221507; font-size: 0.9rem;
}
.testimonial-person strong{ display: block; font-size: 0.92rem; }
.testimonial-person span{ color: var(--text-tertiary); font-size: 0.82rem; }

/* ---------- Pricing ---------- */
.pricing-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.pricing-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pricing-card.featured{
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative;
  box-shadow: var(--shadow-bronze);
}
.pricing-badge{
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-bronze);
  color: #221507;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
}
.pricing-name{ font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.pricing-desc{ color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 24px; }
.pricing-price{ font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; margin-bottom: 4px; }
.pricing-price span{ font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500; color: var(--text-tertiary); }
.pricing-setup{ font-size: 0.85rem; font-weight: 600; color: var(--bronze-300); }
.pricing-setup-note{ font-size: 0.82rem; color: var(--text-tertiary); margin-top: 10px; line-height: 1.5; }

.pricing-single{ max-width: 460px; margin: 0 auto; }
.pricing-single .pricing-card{ text-align: center; }
.pricing-single .pricing-badge{ position: static; transform: none; display: inline-block; margin-bottom: 20px; }
.pricing-single ul{ text-align: left; }
.pricing-card ul{ margin: 28px 0 32px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.pricing-card ul li{ display: flex; gap: 10px; align-items: center; font-size: 0.9rem; color: var(--text-secondary); }
.pricing-card ul li svg{ width: 16px; height: 16px; color: var(--bronze-400, var(--bronze-500)); flex-shrink: 0; }

/* ---------- Pricing comparison table ---------- */
.compare-wrap{ max-width: 820px; margin: 72px auto 0; }
.compare-head{ text-align: center; margin-bottom: 32px; }
.compare-head h3{ font-family: var(--font-serif); font-size: 1.5rem; margin: 16px 0 10px; }
.compare-head p{ color: var(--text-secondary); font-size: 0.95rem; max-width: 520px; margin: 0 auto; }
.compare-table-scroll{ overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare-table{ width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td{ padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: top; }
.compare-table thead th{ font-family: var(--font-sans); font-weight: 700; color: var(--text-primary); font-size: 0.95rem; white-space: nowrap; }
.compare-table tbody tr:last-child td{ border-bottom: none; }
.compare-table td.feature-label{ color: var(--text-secondary); font-weight: 600; white-space: nowrap; }
.compare-table th.highlight-col, .compare-table td.highlight-col{
  background: color-mix(in srgb, var(--bronze-500) 8%, transparent);
  color: var(--text-primary);
}
.compare-table th.highlight-col{ color: var(--bronze-300); }
.compare-table td:not(.feature-label):not(.highlight-col){ color: var(--text-tertiary); }
.compare-table svg.yes, .compare-table svg.no{ width: 15px; height: 15px; flex-shrink: 0; vertical-align: -2px; margin-right: 4px; }
.compare-table svg.yes{ color: var(--bronze-500); }
.compare-table svg.no{ color: var(--text-tertiary); }
.compare-disclaimer{ font-size: 0.78rem; color: var(--text-tertiary); text-align: center; margin: 20px auto 0; max-width: 560px; }

/* ---------- FAQ ---------- */
.faq-list{ max-width: 780px; margin: 0 auto; }
.faq-item{ border-bottom: 1px solid var(--border); }
.faq-question{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 4px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  transition: color 0.25s var(--ease);
}
.faq-question:hover{ color: var(--bronze-300); }
.faq-chevron{ width: 20px; height: 20px; flex-shrink: 0; color: var(--text-tertiary); transition: transform 0.35s var(--ease), color 0.35s var(--ease); }
.faq-item.open .faq-chevron{ transform: rotate(180deg); color: var(--bronze-500); }
.faq-answer{ max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer-inner{ padding: 0 4px 26px; }
.faq-answer-inner p{ color: var(--text-secondary); font-size: 0.95rem; line-height: 1.65; max-width: 660px; }

/* ---------- CTA banner ---------- */
.cta-banner{
  border-radius: var(--radius-lg);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}
.cta-banner::before{
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at 50% 0%, rgba(217,154,78,0.22), transparent 70%);
}
.cta-banner h2{ font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; position: relative; }
.cta-banner p{ color: var(--text-secondary); margin-bottom: 36px; position: relative; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions{ position: relative; margin-bottom: 0; }

/* ---------- Footer ---------- */
footer{
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  position: relative; z-index: 1;
}
.footer-grid{
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 56px;
}
.footer-brand p{ color: var(--text-secondary); font-size: 0.9rem; margin: 18px 0 24px; max-width: 280px; }
.footer-col h5{ font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 20px; color: var(--text-primary); }
.footer-col ul{ display: flex; flex-direction: column; gap: 12px; }
.footer-col a{ color: var(--text-secondary); font-size: 0.9rem; transition: color 0.25s var(--ease); }
.footer-col a:hover{ color: var(--bronze-300); }
.footer-bottom{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-tertiary);
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom .legal-links{ display: flex; gap: 24px; }

/* ---------- Reveal animations ---------- */
.reveal{ opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view{ opacity: 1; transform: translateY(0); }
.reveal-delay-1{ transition-delay: 0.1s; }
.reveal-delay-2{ transition-delay: 0.2s; }
.reveal-delay-3{ transition-delay: 0.3s; }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth-body{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
}
.auth-wrap{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-visual{
  position: relative;
  padding: 56px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(500px circle at 20% 10%, rgba(247,223,165,0.18), transparent 60%),
    linear-gradient(160deg, #1c140a 0%, #0a0908 70%);
  color: #f6f2ea;
  overflow: hidden;
}
:root[data-theme="light"] .auth-visual{
  background:
    radial-gradient(500px circle at 20% 10%, rgba(247,223,165,0.5), transparent 60%),
    linear-gradient(160deg, #3a2a16 0%, #1c1712 70%);
}
.auth-visual .logo{ color: #f6f2ea; }
.auth-visual::after{
  content: '';
  position: absolute;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,154,78,0.35), transparent 70%);
  bottom: -160px; right: -120px;
  filter: blur(20px);
  animation: float-slow 16s ease-in-out infinite;
}
.auth-quote{ position: relative; z-index: 1; }
.auth-quote p{ font-family: var(--font-serif); font-size: 1.4rem; line-height: 1.5; margin-bottom: 20px; }
.auth-quote .testimonial-person strong{ color: #f6f2ea; }
.auth-quote .testimonial-person span{ color: rgba(246,242,234,0.6); }

.auth-form-side{
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-form-side h1{ font-size: 1.9rem; margin-bottom: 10px; }
.auth-form-side .sub{ color: var(--text-secondary); margin-bottom: 32px; font-size: 0.95rem; }

.form-group{ margin-bottom: 20px; }
.form-group label{ display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.input-wrap{ position: relative; }
.input-wrap svg.leading-icon{
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-tertiary); pointer-events: none;
}
.form-group input{
  width: 100%;
  padding: 14px 16px 14px 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.form-group input::placeholder{ color: var(--text-tertiary); }
.form-group input:focus{
  outline: none;
  border-color: var(--bronze-500);
  box-shadow: 0 0 0 4px rgba(205,139,63,0.15);
}
.form-group.error input{ border-color: #d9534f; }
.form-error-msg{ color: #e08079; font-size: 0.8rem; margin-top: 6px; display: none; }
.form-group.error .form-error-msg{ display: block; }

.toggle-visibility{
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-tertiary);
  display: flex; padding: 4px;
}
.toggle-visibility svg{ width: 18px; height: 18px; }
.toggle-visibility:hover{ color: var(--text-primary); }

.form-row-between{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; font-size: 0.88rem; }
.checkbox-row{ display: flex; align-items: center; gap: 8px; color: var(--text-secondary); transition: color 0.3s var(--ease); }
.checkbox-row input{ accent-color: var(--bronze-500); width: 16px; height: 16px; }
.checkbox-row.error{ color: #e08079; }
.link-bronze{ color: var(--bronze-300); font-weight: 600; }
.link-bronze:hover{ text-decoration: underline; }

.divider{
  display: flex; align-items: center; gap: 16px;
  margin: 28px 0; color: var(--text-tertiary); font-size: 0.82rem;
}
.divider::before, .divider::after{ content: ''; flex: 1; height: 1px; background: var(--border); }

.social-auth{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.social-btn{
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  font-size: 0.88rem; font-weight: 600;
  transition: all 0.3s var(--ease);
}
.social-btn:hover{ border-color: var(--bronze-500); transform: translateY(-2px); }
.social-btn svg{ width: 18px; height: 18px; }

.auth-footer-link{ text-align: center; margin-top: 28px; font-size: 0.9rem; color: var(--text-secondary); }

.password-strength{ display: flex; gap: 6px; margin-top: 10px; }
.password-strength div{ height: 4px; flex: 1; border-radius: 2px; background: var(--surface-3); transition: background 0.3s var(--ease); }

.form-toast{
  position: fixed; top: 24px; right: 24px; z-index: 999;
  background: var(--surface); border: 1px solid var(--border-strong);
  padding: 16px 20px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  transform: translateX(120%); opacity: 0;
  transition: all 0.5s var(--ease);
  font-size: 0.9rem; font-weight: 600;
}
.form-toast.show{ transform: translateX(0); opacity: 1; }
.form-toast svg{ width: 20px; height: 20px; color: var(--bronze-400, var(--bronze-500)); flex-shrink: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .grid-3, .steps{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; gap: 40px; }
  .footer-grid{ grid-template-columns: 1fr 1fr; gap: 32px 24px;}
  .auth-visual{ display: none; }
  .auth-wrap{ grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 760px){
  .nav-links{ display: none; }
  .nav-actions > a.btn{ display: none; }
  .nav-toggle{ display: flex; }
  .grid-3, .grid-2, .steps{ grid-template-columns: 1fr; }
  .hero-stats{ grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .footer-grid{ grid-template-columns: 1fr; }
  section{ padding: 90px 0; }
  .hero{ padding: 150px 0 90px; }
  .social-auth{ grid-template-columns: 1fr; }
  .auth-form-side{ padding: 40px 28px; }
}

.mobile-menu{
  position: fixed;
  top: 0; right: 0;
  width: 78%; max-width: 340px; height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 200;
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  display: flex; flex-direction: column; gap: 28px;
}
.mobile-menu.open{ transform: translateX(0); }
.mobile-menu a{ font-size: 1.1rem; font-weight: 600; }
.mobile-menu .hero-actions{ flex-direction: column; margin: 0; }
.menu-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 150; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease);
}
.menu-backdrop.open{ opacity: 1; pointer-events: auto; }

.mobile-sticky-cta{
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-sticky-cta.visible{ transform: translateY(0); }
.mobile-sticky-cta div{ display: flex; flex-direction: column; line-height: 1.3; }
.mobile-sticky-cta strong{ font-size: 1rem; }
.mobile-sticky-cta span{ font-size: 0.78rem; color: var(--text-tertiary); }

@media (max-width: 760px){
  .mobile-sticky-cta{ display: flex; }
}
