@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

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

:root {
  --teal:      oklch(0.58 0.07 168);
  --teal-dark: oklch(0.45 0.07 168);
  --teal-light:oklch(0.94 0.025 168);
  --indigo:    oklch(0.55 0.16 268);
  --bg:        oklch(0.985 0.004 168);
  --bg2:       oklch(0.975 0.008 168);
  --surface:   #ffffff;
  --text:      oklch(0.16 0.015 168);
  --text-muted:oklch(0.45 0.018 168);
  --border:    oklch(0.88 0.012 168);
  --accent:    var(--teal);
  --accent2:   var(--indigo);
  --radius:    12px;
  --radius-lg: 20px;
}

/* === VARIANT THEMES === */
body.v-indigo { --accent: var(--indigo); --teal-light: oklch(0.94 0.04 268); --bg: oklch(0.985 0.004 268); --bg2: oklch(0.975 0.008 268); --border: oklch(0.88 0.012 268); }
body.v-coral  { --accent: oklch(0.62 0.14 28); --teal-light: oklch(0.95 0.03 28); --bg: oklch(0.985 0.004 28); --bg2: oklch(0.975 0.008 28); --border: oklch(0.88 0.012 28); }

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
}

/* ─── NAV ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  height: 36px;
  border-radius: 6px;
}
.nav-logo span {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  background: var(--teal-light);
}
.nav-links .btn-nav {
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 600;
}
.nav-links .btn-nav:hover {
  opacity: 0.88;
  background: var(--accent);
  color: #fff;
}

/* ─── LAYOUT ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4 { font-family: 'Syne', sans-serif; line-height: 1.15; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { opacity: 0.87; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--teal-light); }

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px oklch(0.58 0.07 168 / 0.1);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-light);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid oklch(0.88 0.04 168);
}

/* ─── GRID ─── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── DIVIDER ─── */
.divider { height: 1px; background: var(--border); margin: 0; }

/* ─── FOOTER ─── */
footer {
  background: var(--text);
  color: oklch(0.85 0.01 168);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
footer h4 { font-family: 'Syne', sans-serif; color: #fff; margin-bottom: 16px; font-size: 0.95rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer ul li a { color: oklch(0.72 0.015 168); text-decoration: none; font-size: 0.88rem; transition: color 0.15s; }
footer ul li a:hover { color: #fff; }
.footer-brand { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 0.88rem; color: oklch(0.65 0.015 168); line-height: 1.6; }
.footer-bottom { border-top: 1px solid oklch(0.28 0.015 168); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: oklch(0.55 0.015 168); }

/* ─── HERO ─── */
.hero { padding: 100px 0 80px; }
.hero-tag { margin-bottom: 28px; }
.hero-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; line-height: 1.7; margin: 20px 0 36px; }
.hero-actions { display: flex; gap: 14px; align-items: center; }
.hero-visual {
  position: relative;
  background: var(--teal-light);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-visual-inner { text-align: center; color: var(--text-muted); font-size: 0.82rem; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* ─── STATS ─── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.stat-item { background: var(--surface); padding: 36px 28px; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2.4rem; font-weight: 800; color: var(--accent); letter-spacing: -0.04em; }
.stat-label { font-size: 0.88rem; color: var(--text-muted); margin-top: 4px; }

/* ─── SECTION HEADER ─── */
.section-header { margin-bottom: 56px; }
.section-header h2 { max-width: 500px; }
.section-header p { color: var(--text-muted); max-width: 480px; margin-top: 14px; line-height: 1.7; }

/* ─── CTA BAND ─── */
.cta-band {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  color: #fff;
  margin: 80px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { opacity: 0.85; max-width: 460px; margin: 0 auto 32px; line-height: 1.7; }
.cta-band .btn { background: #fff; color: var(--accent); }
.cta-band .btn:hover { background: #fff; opacity: 0.9; }

/* ─── PAGE HERO (interior pages) ─── */
.page-hero {
  padding: 80px 0 64px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 500px; line-height: 1.7; font-size: 1.05rem; }

/* ─── FORM ─── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.58 0.07 168 / 0.1); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ─── TWEAKS PANEL ─── */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  width: 240px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  z-index: 9999;
  display: none;
  font-family: 'DM Sans', sans-serif;
}
.tweaks-panel.visible { display: block; }
.tweaks-panel h5 { font-family: 'Syne', sans-serif; font-size: 0.85rem; font-weight: 700; margin-bottom: 16px; }
.tweak-group { margin-bottom: 14px; }
.tweak-label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; display: block; }
.tweak-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-btn {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.tweak-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tweak-close { position: absolute; top: 12px; right: 12px; background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1rem; line-height: 1; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 0 20px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .cta-band { padding: 40px 24px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  h1 { font-size: 2rem; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.fade-up-d1.in-view { transition-delay: 0.1s; }
.fade-up-d2.in-view { transition-delay: 0.2s; }
.fade-up-d3.in-view { transition-delay: 0.3s; }

/* Layout variant: GEOMETRIC */
body.v-geo .page-hero, body.v-geo .hero { position: relative; overflow: hidden; }
body.v-geo .page-hero::before, body.v-geo .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--teal-light) 0%, transparent 60%);
  z-index: 0;
}
body.v-geo .page-hero > *, body.v-geo .hero > * { position: relative; z-index: 1; }
body.v-geo .card { border-radius: 4px; }
body.v-geo nav { border-radius: 0; }

/* Layout variant: BOLD */
body.v-bold h1, body.v-bold h2 { letter-spacing: -0.05em; }
body.v-bold .card { border: none; background: var(--bg2); }
body.v-bold .card:hover { background: var(--teal-light); box-shadow: none; }
body.v-bold .btn-primary { border-radius: 4px; }
body.v-bold .btn-ghost { border-radius: 4px; }
