/* ── FONTS ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500&display=swap');

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --bg:       #0a0a0a;
  --bg2:      #111111;
  --bg3:      #181818;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.13);
  --text:     #ffffff;
  --muted:    #777777;
  --muted2:   #aaaaaa;
  --blue:     #4a7fff;
  --blue-h:   #6b94ff;
  --nav-h:    68px;
  --max:      1120px;
  --r:        10px;
  --r2:       16px;
  --t:        0.2s ease;
  --f-head:   'Space Grotesk', sans-serif;
  --f-body:   'Inter', sans-serif;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }

/* ── CONTAINER ──────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ── NAV ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,0.90);
  backdrop-filter: blur(16px);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 40px;
}
.nav__logo {
  display: flex; align-items: center;
  font-family: var(--f-head); font-weight: 700;
  font-size: 1rem; letter-spacing: -0.01em;
}
.nav__logo img { height: 44px; width: auto; }
.nav__links {
  display: flex; align-items: center; gap: 2px;
}
.nav__links a, .nav__links button {
  padding: 7px 14px; border-radius: 8px;
  font-size: 0.875rem; color: var(--muted2);
  transition: color var(--t), background var(--t);
  display: flex; align-items: center; gap: 4px;
}
.nav__links a:hover, .nav__links a.active,
.nav__links button:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__cta {
  padding: 9px 22px; border-radius: 100px;
  background: var(--blue); color: #fff;
  font-family: var(--f-head); font-size: 0.875rem; font-weight: 600;
  transition: background var(--t), transform var(--t);
}
.nav__cta:hover { background: var(--blue-h); transform: translateY(-1px); }

/* Dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-menu {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r2); padding: 8px; min-width: 220px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  z-index: 100;
}
.nav__dropdown.open .nav__dropdown-menu {
  display: block;
}
.nav__dropdown-menu a {
  display: block; padding: 10px 14px; border-radius: 8px;
  font-size: 0.875rem; color: var(--muted2);
  transition: color var(--t), background var(--t);
}
.nav__dropdown-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav__dropdown-menu a span {
  display: block; font-size: 0.75rem; color: var(--muted); margin-top: 2px;
}
.nav__dropdown-menu .soon {
  padding: 8px 14px; font-size: 0.8rem; color: var(--muted);
  font-style: italic;
}

/* Hamburger */
.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 6px; }
.nav__burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--t); }

/* Mobile nav */
.nav--open .nav__links {
  display: flex !important; flex-direction: column; align-items: flex-start;
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--bg); padding: 24px; gap: 4px;
  overflow-y: auto;
}
.nav--open .nav__links a, .nav--open .nav__links button { font-size: 1.1rem; width: 100%; }

/* ── PAGE OFFSET ────────────────────────────────── */
.page { padding-top: var(--nav-h); }

/* ── LABELS ─────────────────────────────────────── */
.lbl {
  font-family: var(--f-head);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px; display: block;
}

/* ── HEADINGS ───────────────────────────────────── */
.h1 {
  font-family: var(--f-head);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700; line-height: 1.0; letter-spacing: -0.03em;
}
.h2 {
  font-family: var(--f-head);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -0.025em;
}
.h3 {
  font-family: var(--f-head);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
}
.blue { color: var(--blue); }

/* ── BODY TEXT ──────────────────────────────────── */
.body-lg { font-size: 1.15rem; color: var(--muted2); line-height: 1.75; }
.body-md { font-size: 1rem; color: var(--muted); line-height: 1.7; }

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 100px;
  font-family: var(--f-head); font-size: 0.9rem; font-weight: 600;
  transition: all var(--t); cursor: pointer;
  white-space: nowrap;
}
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-h); transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid var(--border2); color: var(--text);
  background: transparent;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn-ghost { color: var(--muted2); font-weight: 400; }
.btn-ghost:hover { color: var(--text); }

/* ── DIVIDER ────────────────────────────────────── */
hr { border: none; border-top: 1px solid var(--border); }

/* ── SECTION ────────────────────────────────────── */
.sec { padding: 100px 0; }
.sec-sm { padding: 64px 0; }
.sec-border { border-top: 1px solid var(--border); }

/* ── METRICS ROW ────────────────────────────────── */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r2); overflow: hidden;
}
.metric {
  padding: 36px 28px; border-right: 1px solid var(--border);
}
.metric:last-child { border-right: none; }
.metric__num {
  font-family: var(--f-head); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; line-height: 1; margin-bottom: 8px;
}
.metric__label { font-size: 0.95rem; color: var(--muted); line-height: 1.4; }

/* ── CARDS ──────────────────────────────────────── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r2); padding: 32px;
  transition: border-color var(--t), transform var(--t);
}
.card:hover { border-color: var(--border2); }

/* ── TAGS ───────────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 500;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--muted2);
}

/* ── BADGE ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 100px;
  font-size: 0.78rem; font-weight: 500;
}
.badge-blue { background: rgba(74,127,255,0.12); color: var(--blue); border: 1px solid rgba(74,127,255,0.2); }
.badge-green { background: rgba(0,200,100,0.1); color: #00c864; border: 1px solid rgba(0,200,100,0.2); }
.badge-amber { background: rgba(212,150,26,0.12); color: #d4961a; border: 1px solid rgba(212,150,26,0.2); }

/* ── FORM ───────────────────────────────────────── */
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.fc {
  width: 100%; padding: 12px 16px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r); color: var(--text);
  font-family: var(--f-body); font-size: 0.9rem; font-weight: 300;
  transition: border-color var(--t); outline: none;
}
.fc:focus { border-color: var(--blue); }
.fc::placeholder { color: var(--muted); }
select.fc { appearance: none; }
textarea.fc { resize: vertical; min-height: 110px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ── TOAST ──────────────────────────────────────── */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  padding: 13px 20px; border-radius: var(--r2);
  font-size: 0.88rem; font-weight: 500;
  background: var(--bg2); border: 1px solid var(--border2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.6);
  transform: translateY(80px); opacity: 0;
  transition: all 0.3s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.ok { color: #00c864; border-color: rgba(0,200,100,0.3); }
.toast.err { color: #ff6060; border-color: rgba(255,80,80,0.3); }

/* ── MODAL ──────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.overlay.open { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: var(--r2); padding: 40px;
  width: 100%; max-width: 540px; max-height: 92vh; overflow-y: auto;
  position: relative;
}
.modal__x {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg3); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: color var(--t);
}
.modal__x:hover { color: var(--text); }

/* ── SPINNER ────────────────────────────────────── */
.spin {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff;
  border-radius: 50%; animation: spinning 0.7s linear infinite;
}
@keyframes spinning { to { transform: rotate(360deg); } }

/* ── FOOTER ─────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 64px 0 36px; }
.footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer__brand p { color: var(--muted); font-size: 0.88rem; margin-top: 12px; max-width: 260px; line-height: 1.6; }
.footer__col h5 {
  font-family: var(--f-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.footer__col a {
  display: block; font-size: 0.88rem; color: var(--muted2);
  margin-bottom: 10px; transition: color var(--t);
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}
.footer__bottom a { color: var(--muted); transition: color var(--t); }
.footer__bottom a:hover { color: var(--text); }
.footer__icons { display: flex; gap: 14px; }
.icon-link {
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all var(--t);
}
.icon-link:hover { border-color: var(--border2); color: var(--text); }

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:none; } }
.au { animation: fadeUp 0.6s ease both; }
.d1 { animation-delay: 0.08s; }
.d2 { animation-delay: 0.18s; }
.d3 { animation-delay: 0.3s; }
.d4 { animation-delay: 0.45s; }

/* ── PAGE HERO (inner pages) ────────────────────── */
.page-hero { padding: 100px 0 72px; border-bottom: 1px solid var(--border); }
.page-hero .body-lg { max-width: 540px; margin-top: 20px; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .wrap { padding: 0 28px; }
  .nav__inner { padding: 0 28px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(3) { border-top: 1px solid var(--border); }
  .metric:nth-child(4) { border-top: 1px solid var(--border); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .wrap { padding: 0 20px; }
  .nav__inner { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .sec { padding: 72px 0; }
  .sec-sm { padding: 48px 0; }
  .frow { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 14px; text-align: center; }
}

@media (max-width: 480px) {
  .h1 { font-size: 2.4rem; }
  .h2 { font-size: 1.9rem; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 24px 18px; }
  .metric:nth-child(2) { border-right: none; }
  .modal { padding: 28px 20px; }
}
