:root {
  --midnight: #0B1D26;
  --deep-teal: #0F3A3F;
  --teal: #1A6B5A;
  --green-accent: #2EC4A0;
  --warm-gold: #D4A853;
  --cream: #FAF7F2;
  --light-sage: #E8F0EC;
  --text-primary: #0B1D26;
  --text-secondary: #4A5E6A;
  --text-light: #8A9BA5;
  --white: #FFFFFF;
  --border: rgba(11,29,38,0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green-accent);
  outline-offset: 3px;
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,247,242,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(11,29,38,0.06); }
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--midnight);
}
.logo-icon {
  width: 36px; height: 36px; background: var(--teal);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal) !important; color: var(--white) !important;
  padding: 10px 22px !important; border-radius: 8px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--deep-teal) !important; }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span {
  display: block; width: 22px; height: 2px; background: var(--midnight);
  margin: 5px 0; transition: 0.3s;
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 32px 80px;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--cream) 0%, var(--light-sage) 50%, var(--cream) 100%);
}
.hero::before {
  content: ''; position: absolute; top: -30%; right: -15%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(46,196,160,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1160px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600; color: var(--teal);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--green-accent); border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -0.03em; color: var(--midnight);
  animation: fadeUp 0.6s 0.1s ease both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal), var(--green-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  margin-top: 24px; font-size: 1.1rem; color: var(--text-secondary);
  max-width: 460px; line-height: 1.7;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-actions {
  margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white);
  padding: 14px 28px; border-radius: 10px; border: none;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all 0.25s;
}
.btn-primary:hover { background: var(--deep-teal); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,107,90,0.2); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--text-primary);
  padding: 14px 28px; border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all 0.25s;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.hero-visual {
  position: relative;
  animation: fadeUp 0.8s 0.3s ease both;
}
.hero-card {
  background: var(--white); border-radius: 20px;
  padding: 40px; box-shadow: 0 20px 60px rgba(11,29,38,0.06);
  border: 1px solid var(--border);
}
.hero-card-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.hero-avatar {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--green-accent));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700;
  color: var(--white); font-size: 1.1rem;
}
.hero-card-name { font-weight: 600; font-size: 1rem; }
.hero-card-role { font-size: 0.82rem; color: var(--text-light); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-item {
  background: var(--light-sage); border-radius: 12px; padding: 18px;
}
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--teal);
}
.stat-label { font-size: 0.78rem; color: var(--text-light); margin-top: 2px; }
.hero-float-tag {
  position: absolute; background: var(--white);
  padding: 12px 18px; border-radius: 12px;
  box-shadow: 0 8px 30px rgba(11,29,38,0.08);
  border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.float-1 { top: -16px; right: -16px; animation: float 6s ease-in-out infinite; }
.float-2 { bottom: -10px; left: -20px; animation: float 6s 1.5s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SECTIONS ─── */
section { padding: 100px 32px; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-label {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--teal); margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.2;
}
.section-subtitle {
  margin-top: 16px; font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; line-height: 1.7;
}

/* How it works */
.how-it-works { background: var(--white); }
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; margin-top: 56px;
}
.step-card {
  padding: 36px; border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.step-card:hover {
  border-color: var(--green-accent);
  box-shadow: 0 12px 36px rgba(46,196,160,0.08);
}
.step-num {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--light-sage); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem; margin-bottom: 20px;
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--deep-teal), var(--teal));
  border-radius: 24px; padding: 72px 48px; text-align: center;
  margin: 0 32px; color: var(--white); position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,196,160,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section .section-title { color: var(--white); }
.cta-section p { color: rgba(255,255,255,0.8); margin: 16px auto 0; max-width: 480px; }
.cta-section .btn-primary {
  margin-top: 32px; background: var(--warm-gold); color: var(--midnight);
  position: relative;
}
.cta-section .btn-primary:hover {
  background: #e0b45f; box-shadow: 0 8px 24px rgba(212,168,83,0.3);
}
.cta-section .cta-alt { margin-top: 18px; font-size: 0.9rem; position: relative; }
.cta-section .cta-alt a { color: var(--white); }

/* ─── FOOTER ─── */
footer {
  padding: 60px 32px 40px; background: var(--midnight); color: rgba(255,255,255,0.6);
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; gap: 40px;
}
.footer-brand .logo-text { color: var(--white); }
.footer-brand p {
  margin-top: 12px; font-size: 0.88rem; max-width: 300px; line-height: 1.6;
}
.footer-links { display: flex; gap: 64px; }
.footer-col h4 {
  color: var(--white); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px;
}
.footer-col a {
  display: block; color: rgba(255,255,255,0.5);
  text-decoration: none; font-size: 0.88rem;
  padding: 4px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px; font-size: 0.82rem; flex-wrap: wrap; gap: 16px;
}

/* ─── LEGAL PAGES ─── */
.legal-page {
  padding: 120px 32px 80px;
  min-height: 100vh; background: var(--cream);
}
.legal-inner { max-width: 760px; margin: 0 auto; }
.legal-inner h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700; margin-bottom: 8px;
}
.legal-updated {
  color: var(--text-light); font-size: 0.88rem; margin-bottom: 40px;
}
.legal-inner h2 {
  font-size: 1.15rem; font-weight: 700; margin: 36px 0 12px;
  color: var(--midnight);
}
.legal-inner p, .legal-inner li {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.75;
  margin-bottom: 12px;
}
.legal-inner ul { padding-left: 20px; margin-bottom: 16px; }
.legal-inner li { margin-bottom: 8px; }
.legal-inner p a { color: var(--teal); }
.legal-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal); text-decoration: none; font-weight: 600;
  font-size: 0.9rem; margin-bottom: 32px;
}
.legal-back:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; }
  .steps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(250,247,242,0.98);
    padding: 24px 32px; gap: 20px;
    border-bottom: 1px solid var(--border);
  }
  .mobile-toggle { display: block; }
  .footer-links { gap: 40px; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 20px 60px; }
  section { padding: 64px 20px; }
  .cta-section { margin: 0 16px; padding: 48px 24px; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}
