/**
 * Gradaris base.css
 * ─────────────────────────────────────────────────────────────────────────────
 * Single source of truth for design tokens, typography, layout, navigation,
 * buttons, cards, pills, page-hero, cta-band, footer, and scroll animation.
 *
 * Every page links this file. Page-specific styles stay inline in each HTML.
 * Edit once here — all pages update automatically.
 *
 * Load order in <head>:
 *   <link rel="stylesheet" href="base.css">
 *   (then page-specific <style> block)
 *   (then fonts / other links)
 */


/* ─── Reset & base ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
html, body { overflow-x: hidden; width: 100%; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #070d1a;
  color: #e2eaf6;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }


/* ─── Design tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Backgrounds */
  --bg:        #070d1a;
  --bg-2:      #0b1526;
  --surface:   #0f1d30;
  --surface-2: #132338;

  /* Borders */
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.14);

  /* Text */
  --text:      #e2eaf6;
  --muted:     #7a91b0;
  --muted-2:   #9fb3cc;

  /* Brand — amber */
  --amber:      #f59e0b;
  --amber-2:    #fbbf24;
  --amber-glow: rgba(245,158,11,.18);

  /* Brand — teal */
  --teal:      #00d1c7;
  --teal-2:    #0ea5e9;
  --teal-glow: rgba(0,209,199,.15);

  /* Semantic */
  --green:     #10b981;
  --red:       #ef4444;
  --blue:      #3b82f6;

  /* Grade scale */
  --grade-a:   #10b981;
  --grade-b:   #3b82f6;
  --grade-c:   #f59e0b;
  --grade-d:   #ef4444;

  /* Geometry */
  --radius:    14px;
  --radius-sm: 8px;

  /* Layout */
  --nav-h:     64px;
  --max-w:     1160px;

  /* Spacing scale */
  --space-xs:  clamp(24px, 3vw, 32px);
  --space-sm:  clamp(40px, 5vw, 56px);
  --space-md:  clamp(56px, 7vw, 80px);
  --space-lg:  clamp(72px, 10vw, 112px);
  --space-xl:  clamp(88px, 12vw, 136px);
  --section-py: var(--space-lg);
}


/* ─── Typography ───────────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  line-height: 1.1;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem);   font-weight: 800; }
/* Inner page hero h1 — smaller than homepage headline */
.page-hero h1 { font-size: clamp(1.85rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem);  font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }

/* Inner-page h1 — slightly smaller than homepage hero */
.page-h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }

.label {
  font-family: 'DM Mono', monospace;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}
code, .mono {
  font-family: 'DM Mono', monospace;
  font-size: .875em;
}


/* ─── Layout helpers ───────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.section    { padding-block: var(--section-py); }
.section--sm { padding-block: var(--space-sm); }
.section--md { padding-block: var(--space-md); }
.section--alt { background: var(--bg-2); }

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

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.text-muted-2 { color: var(--muted-2); }
.text-amber   { color: var(--amber); }
.text-teal    { color: var(--teal); }

.section-heading { max-width: 640px; }
.section-heading .label { margin-bottom: 10px; display: block; }
.section-heading h2 { margin-bottom: 14px; }
.section-heading p  { font-size: 1rem; color: var(--muted-2); line-height: 1.7; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.center p { margin-inline: auto; }


/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, #e88a00 100%);
  color: #07100a;
  box-shadow: 0 6px 28px rgba(245,158,11,.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(245,158,11,.4);
  filter: brightness(1.06);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.22);
}
.btn-teal {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-2) 100%);
  color: #060c18;
  box-shadow: 0 6px 28px rgba(0,209,199,.28);
}
.btn-teal:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 36px rgba(0,209,199,.38);
}
.btn-sm { padding: 9px 18px; font-size: .85rem; border-radius: 8px; }


/* ─── Cards ────────────────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.card-hover {
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card-hover:hover {
  transform: translateY(-3px);
  border-color: rgba(245,158,11,.25);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}


/* ─── Pills & badges ───────────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,.04);
  color: var(--muted-2);
}
.pill-amber  { background: rgba(245,158,11,.1); color: var(--amber-2);  border-color: rgba(245,158,11,.25); }
.pill-teal   { background: rgba(0,209,199,.1);  color: var(--teal);     border-color: rgba(0,209,199,.25); }
.pill-green  { background: rgba(16,185,129,.1); color: #34d399;          border-color: rgba(16,185,129,.25); }
.pill-blue   { background: rgba(59,130,246,.1); color: #60a5fa;          border-color: rgba(59,130,246,.25); }
.pill-red    { background: rgba(239,68,68,.1);  color: #f87171;          border-color: rgba(239,68,68,.25); }

.badge-soon {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 5px;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(122,145,176,.1); color: var(--muted); border: 1px solid rgba(122,145,176,.2);
}


/* ─── Navigation ───────────────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 200;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding-inline: clamp(16px, 3vw, 40px);
  background: rgba(7,13,26,.72);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .3s ease;
}
.site-header.scrolled { background: rgba(7,13,26,.95); }

.header-inner {
  width: 100%; max-width: var(--max-w); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
}

.site-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.site-nav a {
  padding: 7px 14px; border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  color: var(--muted-2);
  transition: color .15s, background .15s;
}
.site-nav a:hover,
.site-nav a.active { color: var(--text); background: rgba(255,255,255,.05); }

.nav-dropdown { position: relative; }
.nav-dropdown::after {
  content: ''; position: absolute; top: 100%; left: -8px; right: -8px;
  height: 10px; background: transparent;
}
.nav-dropdown > a::after { content: ' ▾'; font-size: .7em; opacity: .6; }
.nav-dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 210px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  flex-direction: column;
  z-index: 300;
}
.nav-dropdown:hover .nav-dropdown-menu { display: flex; flex-direction: column; }
.nav-dropdown-menu a {
  padding: 9px 14px; border-radius: 8px;
  font-size: .875rem; color: var(--muted-2);
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: rgba(255,255,255,.06); color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-actions .btn { padding: 9px 20px; font-size: .875rem; }

.menu-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border-2);
  color: var(--text); padding: 8px 12px;
  border-radius: 8px; font-size: 1.1rem; line-height: 1;
}
.nav-login-mobile { display: none; }

@media (min-width: 821px) {
  .nav-login-mobile { display: none !important; }
}
@media (max-width: 820px) {
  .site-nav, .nav-actions .btn-ghost { display: none; }
  .menu-toggle { display: flex; align-items: center; }
  .nav-login-mobile { display: block; }

  .site-nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(7,13,26,.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
    z-index: 199;
  }
  .site-nav.open a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }
  .site-nav.open .nav-dropdown-menu {
    display: flex; flex-direction: column;
    position: static; transform: none;
    min-width: 0; background: transparent; border: none;
    box-shadow: none; padding: 0 0 0 16px;
  }
  .site-nav.open .nav-dropdown > a::after { content: ''; }
}


/* ─── Page hero (inner pages) ──────────────────────────────────────────────── */

.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(64px, 9vw, 104px) clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--border);
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 700px 400px at 70% 30%, rgba(0,209,199,.06), transparent),
    radial-gradient(ellipse 600px 500px at 20% 80%, rgba(245,158,11,.05), transparent);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero .label { display: block; margin-bottom: 12px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead {
  color: var(--muted-2);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 560px;
}



/* ─── Icon box utility ──────────────────────────────────────────────────────── */
.icon-box {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
/* ─── CTA band ─────────────────────────────────────────────────────────────── */

.cta-band {
  position: relative; overflow: hidden;
  padding-block: clamp(64px, 8vw, 100px);
  text-align: center;
  background: linear-gradient(135deg, #0b1526 0%, #0f1d30 50%, #07130e 100%);
  border-block: 1px solid var(--border);
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 50% 50%, rgba(245,158,11,.08), transparent),
    radial-gradient(ellipse 600px 400px at 80% 80%, rgba(0,209,199,.06), transparent);
  pointer-events: none;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2   { margin-bottom: 16px; }
.cta-band p    { font-size: 1.05rem; color: var(--muted-2); max-width: 560px; margin-inline: auto; margin-bottom: 36px; }
.cta-band-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* ─── Footer ───────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-block: 64px 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .brand  { margin-bottom: 14px; }
.footer-brand p {
  font-size: .875rem; color: var(--muted); line-height: 1.7;
  margin-bottom: 20px; max-width: 280px;
}
.footer-pills  { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-col h5 {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 16px;
}
.footer-col ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.footer-col ul li a { font-size: .875rem; color: var(--muted-2); transition: color .15s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--muted); transition: color .15s; }
.footer-bottom-links a:hover { color: var(--muted-2); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border-2); background: rgba(255,255,255,.03);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); transition: background .15s, color .15s;
}
.footer-social a:hover { background: rgba(255,255,255,.07); color: var(--text); }
site-footer ul, site-footer ol { list-style: none; padding-left: 0; margin: 0; }


/* ─── Scroll reveal animation ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
  }
  [data-reveal].visible { opacity: 1; transform: none; }
  [data-reveal-delay="1"] { transition-delay: .1s; }
  [data-reveal-delay="2"] { transition-delay: .2s; }
  [data-reveal-delay="3"] { transition-delay: .3s; }
  [data-reveal-delay="4"] { transition-delay: .4s; }
  [data-reveal-delay="5"] { transition-delay: .5s; }
  [data-reveal-delay="6"] { transition-delay: .6s; }
}


/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .grid-4     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .footer-brand    { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid     { grid-template-columns: 1fr; }
  .footer-bottom   { flex-direction: column; align-items: flex-start; }
  .btn             { width: 100%; justify-content: center; }
  .cta-band-actions { flex-direction: column; align-items: center; }
  .cta-band-actions .btn { max-width: 320px; }
  .page-hero { padding-block: 44px 32px; }
}
