/* ── ROOT VARIABLES ── */
:root {
  --ink: #0D0F1A;
  --paper: #F5F4EF;
  --accent: #2A5CFF;
  --accent2: #00C6A2;
  --muted: #8A8B97;
  --card-bg: #FFFFFF;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--paper); color: var(--ink); overflow-x: hidden; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%;
  background: rgba(245,244,239,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(13,15,26,.06);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(13,15,26,.08); }

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.4rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 10px; z-index: 201;
}
.logo-mark {
  width: 34px; height: 34px; background: var(--accent);
  border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
}
.logo-mark svg { width: 20px; height: 20px; fill: #fff; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: .9rem; font-weight: 500; letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
  position: relative; padding-bottom: 2px; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent); transition: width .25s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 10px 22px; border-radius: 8px;
  font-size: .85rem !important; font-weight: 600 !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: #1a4aef !important; transform: translateY(-1px); }

.burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; cursor: pointer; z-index: 201;
  background: none; border: none; padding: 4px;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; width: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE DRAWER ── */
.nav-drawer {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 199;
  background: rgba(245,244,239,.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  visibility: hidden;
}
.nav-drawer.open { opacity: 1; pointer-events: all; visibility: visible; }
.nav-drawer a {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--ink); text-decoration: none;
  padding: 12px 32px; border-radius: 12px;
  transition: color .2s, background .2s;
  text-align: center; width: 100%; max-width: 300px;
  white-space: nowrap;
}
.nav-drawer a:hover, .nav-drawer a.active { color: var(--accent); background: rgba(42,92,255,.06); }
.nav-drawer .drawer-cta {
  background: var(--accent); color: #fff !important;
  margin-top: 12px; border-radius: 12px;
  font-size: .95rem !important;
  padding: 14px 28px;
  white-space: nowrap;
  max-width: 260px;
  width: auto !important;
}
.nav-drawer .drawer-cta:hover { background: #1a4aef !important; color: #fff !important; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: .9rem; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; text-transform: uppercase;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(42,92,255,.3);
  cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary:hover { background: #1a4aef; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(42,92,255,.4); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(13,15,26,.2); color: var(--ink);
  padding: 14px 28px; border-radius: 10px;
  font-family: 'Syne', sans-serif;
  font-size: .9rem; font-weight: 700; letter-spacing: .02em;
  text-decoration: none; text-transform: uppercase;
  transition: border-color .2s, background .2s, transform .15s;
  white-space: nowrap;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(42,92,255,.04); transform: translateY(-2px); }

/* ── SHARED SECTION ── */
section { padding: 100px 6%; }
.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -.025em; color: var(--ink);
}
.section-title em { font-style: normal; color: var(--accent); }
.section-sub { margin-top: 16px; font-size: 1rem; line-height: 1.7; color: #4a4b58; max-width: 560px; }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: rgba(255,255,255,.5);
  padding: 48px 6%;
  display: flex; flex-wrap: wrap;
  justify-content: space-between; align-items: center;
  gap: 16px; font-size: .82rem;
}
footer .logo { color: #fff; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-legal { width: 100%; text-align: center; font-size: .78rem; color: rgba(255,255,255,.35); }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, #0D0F1A 0%, #1a1f3c 100%);
  text-align: center; padding: 100px 6%;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: var(--accent); filter: blur(120px); opacity: .12;
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.cta-section h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800; color: #fff; letter-spacing: -.025em;
  margin-bottom: 16px; position: relative;
}
.cta-section p {
  font-size: 1rem; color: rgba(255,255,255,.6);
  max-width: 500px; margin: 0 auto 36px; line-height: 1.7; position: relative;
}
.cta-section .btn-primary { position: relative; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 6% 80px;
  text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.page-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 24px; position: relative;
}
.page-hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 800; color: #fff;
  letter-spacing: -.03em; line-height: 1.1; position: relative; margin-bottom: 20px;
  word-break: break-word; overflow-wrap: break-word;
}
.page-hero h1 em { font-style: normal; color: var(--accent2); }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,.6); max-width: 560px; margin: 0 auto; line-height: 1.7; position: relative; }

/* ── ANIMATION ── */
@keyframes panelIn { from{opacity:0;transform:translateY(16px);}to{opacity:1;transform:translateY(0);} }

/* ======================================================
   RESPONSIVE — SHARED
   ====================================================== */
@media (max-width: 1200px) {
  nav { padding: 0 5%; }
  section { padding: 80px 5%; }
  footer { padding: 40px 5%; }
}

@media (min-width: 901px) {
  .burger { display: none !important; }
  .nav-drawer { display: none !important; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  section { padding: 72px 5%; }
  .section-title { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
  .page-hero { padding: calc(var(--nav-h) + 72px) 5% 60px; }
}

@media (max-width: 600px) {
  footer { padding: 36px 5%; flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-direction: column; gap: 12px; }
  .cta-section { padding: 72px 5%; }
  .page-hero { padding: calc(var(--nav-h) + 64px) 5% 48px; }
}

@media (max-width: 400px) {
  .logo { font-size: 1.2rem; }
  .logo-mark { width: 30px; height: 30px; }
  .page-hero { padding: calc(var(--nav-h) + 56px) 5% 40px; }
}
