/* Ascent — Design Tokens */

:root {
  /* Base */
  --bg: #0D0D12;
  --bg-2: #12121A;
  --bg-3: #1A1A25;
  --ink: #F1EFE8;
  --ink-dim: rgba(241, 239, 232, 0.72);
  --ink-mute: rgba(241, 239, 232, 0.48);
  --ink-faint: rgba(241, 239, 232, 0.24);

  /* Glass */
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);

  /* Accents */
  --violet: #7F77DD;
  --violet-dim: rgba(127, 119, 221, 0.45);
  --violet-glow: rgba(127, 119, 221, 0.28);
  --teal: #1D9E75;
  --teal-dim: rgba(29, 158, 117, 0.45);
  --teal-glow: rgba(29, 158, 117, 0.22);
  --amber: #E8B974;

  /* Type */
  --f-display: 'Syne', 'Space Grotesk', ui-sans-serif, sans-serif;
  --f-body: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 22px;

  /* Shadows / glows */
  --shadow-soft: 0 30px 80px -30px rgba(0,0,0,0.8);
  --glow-violet: 0 0 0 1px rgba(127,119,221,0.35), 0 0 30px rgba(127,119,221,0.25);
  --glow-teal:   0 0 0 1px rgba(29,158,117,0.35), 0 0 30px rgba(29,158,117,0.22);
}

/* --- Global reset-ish --- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* --- Textures --- */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(241,239,232,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241,239,232,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-grid-fine {
  background-image:
    linear-gradient(to right, rgba(241,239,232,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(241,239,232,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-noise::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.bg-scan::before {
  content:'';
  position:absolute; inset:0;
  pointer-events:none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255,255,255,0.015) 3px 4px);
}
.bg-glow-violet {
  position: absolute;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(127,119,221,0.35), rgba(127,119,221,0) 70%);
  filter: blur(20px);
  pointer-events: none;
}
.bg-glow-teal {
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(29,158,117,0.3), rgba(29,158,117,0) 70%);
  filter: blur(20px);
  pointer-events: none;
}

/* --- Glass card --- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(24px) saturate(130%);
  -webkit-backdrop-filter: blur(24px) saturate(130%);
  border-radius: var(--r-lg);
}
.glass-strong {
  background: var(--glass-2);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border-radius: var(--r-lg);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--glass-border-strong);
  background: var(--glass-2);
  color: var(--ink);
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  backdrop-filter: blur(10px);
}
.btn:hover {
  border-color: var(--violet-dim);
  box-shadow: 0 0 24px var(--violet-glow);
  transform: translateY(-1px);
}
.btn.primary {
  background: linear-gradient(180deg, rgba(127,119,221,0.28), rgba(127,119,221,0.12));
  border-color: rgba(127,119,221,0.55);
  color: #fff;
}
.btn.primary:hover {
  background: linear-gradient(180deg, rgba(127,119,221,0.4), rgba(127,119,221,0.18));
  box-shadow: 0 0 36px var(--violet-glow), inset 0 0 0 1px rgba(255,255,255,0.06);
}
.btn.ghost { background: transparent; }
.btn.sm { padding: 8px 14px; font-size: 12px; }

/* --- Chip / Tag --- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
}
.chip.violet { color: #C6C2F5; border-color: rgba(127,119,221,0.4); background: rgba(127,119,221,0.08); }
.chip.teal   { color: #8AE3C2; border-color: rgba(29,158,117,0.4); background: rgba(29,158,117,0.08); }
.chip.amber  { color: #F2D49B; border-color: rgba(232,185,116,0.4); background: rgba(232,185,116,0.08); }

/* --- Mono/eyebrow --- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.mono { font-family: var(--f-mono); }

/* --- Display headings --- */
.display {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

/* --- Scroll --- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* --- Focus glow --- */
.focus-glow:focus-within {
  border-color: rgba(127,119,221,0.6);
  box-shadow: 0 0 0 3px rgba(127,119,221,0.12), 0 0 24px rgba(127,119,221,0.2);
}

/* --- Input --- */
.input {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--glass-border);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 13.5px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus {
  border-color: rgba(127,119,221,0.55);
  box-shadow: 0 0 0 3px rgba(127,119,221,0.12);
}
.input::placeholder { color: var(--ink-mute); }
.label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}

/* --- Divider --- */
.hr { height: 1px; background: var(--glass-border); border: 0; width: 100%; }

/* --- Animations --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 1px rgba(127,119,221,0.25), 0 0 20px rgba(127,119,221,0.18); } 50% { box-shadow: 0 0 0 1px rgba(127,119,221,0.55), 0 0 40px rgba(127,119,221,0.35); } }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@keyframes drift { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, -20px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp .9s cubic-bezier(.2,.8,.2,1) both; }
.fade-in { animation: fadeIn .9s ease both; }

/* Horizontal scroll fade masks */
.mask-x {
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

/* Utility */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
