:root {
  /* Color tokens */
  --ink-950: #07070c;
  --ink-900: #0a0a0f;
  --ink-800: #12121a;
  --ink-700: #1a1a24;
  --ink-600: #24242f;
  --white: #ffffff;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f5f9;
  --text-muted: #a7a7b8;
  --text-dim: #6f6f82;
  --accent: #7c5cff;
  --accent-2: #00e0b0;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --accent-2-soft: rgba(0, 224, 176, 0.14);
  --grad: linear-gradient(120deg, #7c5cff 0%, #9a5cff 45%, #00e0b0 100%);

  /* Typography */
  --font-display: "Fraunces", "Bodoni", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --sp-1: 0.5rem;  --sp-2: 1rem;  --sp-3: 1.5rem;  --sp-4: 2rem;
  --sp-5: 3rem;    --sp-6: 4rem;  --sp-7: 5rem;    --sp-8: 6.5rem;

  /* Layout */
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Effects */
  --shadow-1: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 24px 60px -20px rgba(124, 92, 255, 0.55);

  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0; color: var(--white); }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

/* Layout */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: var(--sp-6) 0; }
.section-tight { padding: var(--sp-4) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-2, #b79cff); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.display-hero { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.9rem); }
.lede { font-size: 1.1rem; color: var(--text-muted); max-width: 62ch; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-muted); }

/* Grid helpers */
.grid { display: grid; gap: var(--sp-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.5rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem; line-height: 1; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -12px rgba(124, 92, 255, 0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.btn-outline { border: 1px solid var(--line-strong); color: var(--white); background: rgba(255,255,255,0.02); }
.btn-outline:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-ghost { color: var(--white); padding: 0.85rem 0.5rem; }
.btn-ghost:hover { color: var(--accent); }
.btn-sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-logo { display: block; width: auto; height: 32px; object-fit: contain; }
.brand-mark { filter: drop-shadow(0 0 12px rgba(124,92,255,0.5)); }
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-name em { font-style: normal; color: var(--accent); }

.nav-list { display: flex; align-items: center; gap: 0.4rem; }
.site-nav .nav-list a, .site-nav-mobile .nav-list a {
  position: relative; padding: 0.5rem 0.9rem; font-weight: 500; font-size: 0.95rem; color: var(--text-muted); border-radius: 8px;
  transition: color 0.2s;
}
.site-nav .nav-list a:hover, .site-nav .nav-list button:hover,
.site-nav-mobile .nav-list a:hover { color: var(--white); }
.site-nav .nav-list a.is-active { color: var(--white); }
.site-nav .nav-list a::after, .site-nav .nav-list button.nav-trigger::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad);
  opacity: 0; transform: scaleX(0.55); transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.site-nav .nav-list a:hover::after, .site-nav .nav-list a:focus-visible::after,
.site-nav .nav-list button.nav-trigger:hover::after, .site-nav .nav-list button.nav-trigger:focus-visible::after {
  opacity: 1; transform: scaleX(1);
}
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
@media (max-width: 980px) { .site-nav { display: none; } }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
@media (max-width: 980px) { .nav-toggle { display: flex; } }

.site-nav-mobile {
  position: fixed; left: 0; right: 0; top: var(--nav-h); bottom: 0;
  background: rgba(7, 7, 12, 0.98); backdrop-filter: blur(20px);
  padding: var(--sp-3) var(--gutter); flex-direction: column; gap: 0.25rem;
  transform: translateX(100%); transition: transform 0.4s var(--ease); overflow-y: auto;
}
.site-nav-mobile.is-open { transform: translateX(0); }
.site-nav-mobile .nav-list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
.site-nav-mobile .nav-list a { padding: 0.9rem 0.5rem; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
body.nav-open { overflow: hidden; }

/* Footer */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--line); padding: var(--sp-6) 0 var(--sp-3); margin-top: var(--sp-6); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tagline { color: var(--text-muted); max-width: 34ch; margin: 1rem 0 1.25rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text-muted); transition: all 0.25s; }
.footer-social a:hover { color: var(--white); border-color: var(--accent); transform: translateY(-2px); }
.footer-col h3 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 1rem; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a, .footer-contact p a { color: var(--text-muted); transition: color 0.2s; }
.footer-col ul a:hover, .footer-contact p a:hover { color: var(--white); }
.footer-contact { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1.25rem; }
.footer-contact p { margin: 0; color: var(--text-muted); }
.footer-contact a { display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-contact svg { flex-shrink: 0; color: var(--text-dim); }
.footer-contact a:hover svg { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: var(--sp-3); border-top: 1px solid var(--line); color: var(--text-dim); font-size: 0.9rem; flex-wrap: wrap; }
.footer-legal { display: flex; gap: 1.25rem; }
.footer-legal a { color: var(--text-dim); transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* Cards */
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--sp-4); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.card:hover { transform: translateY(-6px); border-color: rgba(124,92,255,0.4); box-shadow: var(--shadow-2); }
.card-hover-glow:hover { box-shadow: 0 20px 60px -20px rgba(124,92,255,0.4); }

/* Aurora background blobs */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; will-change: transform; }
.aurora .b1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(124,92,255,0.5), transparent 70%); top: -120px; left: -100px; animation: drift 22s infinite alternate var(--ease); }
.aurora .b2 { width: 420px; height: 420px; background: radial-gradient(circle, rgba(0,224,176,0.35), transparent 70%); top: 20%; right: -120px; animation: drift 28s infinite alternate-reverse var(--ease); }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, 30px) scale(1.08); } }