

@import url('./colors_and_type.css');

:root {
  --accent:      #ff4d00;
  --accent-hi:   #ff8700;
  --accent-soft: rgba(255, 77, 0, .12);

  
  --bg-0:   #faf7f3;
  --bg-1:   #ffffff;
  --bg-2:   #f5efe9;
  --bg-3:   #ede5dc;
  --ink-0:  #0f0d0b;
  --ink-1:  #2a2722;
  --ink-2:  #6b6660;
  --ink-3:  #a8a29a;
  --line:   rgba(15,13,11,.08);
  --line-2: rgba(15,13,11,.14);
  --glass:  rgba(255,255,255,.72);
  --shadow-card:  0 20px 40px -20px rgba(15,13,11,.15), 0 2px 6px rgba(15,13,11,.04);
  --shadow-float: 0 30px 60px -20px rgba(255,77,0,.35);

  
  --mesh-a: #ffdcc0;
  --mesh-b: #ffd1b0;
  --mesh-c: #fff7ef;
  --mesh-d: #ffe7d4;
}

[data-theme="dark"] {
  --bg-0:  #0a0907;
  --bg-1:  #121110;
  --bg-2:  #1a1816;
  --bg-3:  #252220;
  --ink-0: #fbf7f1;
  --ink-1: #e8e3db;
  --ink-2: #a8a29a;
  --ink-3: #6b6660;
  --line:  rgba(251,247,241,.08);
  --line-2:rgba(251,247,241,.16);
  --glass: rgba(18,17,16,.7);
  --shadow-card:  0 20px 40px -20px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.2);
  --shadow-float: 0 30px 60px -20px rgba(255,77,0,.6);
  --mesh-a: #2a1608;
  --mesh-b: #3b1f0f;
  --mesh-c: #110905;
  --mesh-d: #1a0e07;
}

[data-accent="red"]      { --accent: #e5233c; --accent-hi: #ff5a6f; --accent-soft: rgba(229,35,60,.14); --shadow-float: 0 30px 60px -20px rgba(229,35,60,.4); }
[data-accent="electric"] { --accent: #5b5bff; --accent-hi: #9d8bff; --accent-soft: rgba(91,91,255,.14); --shadow-float: 0 30px 60px -20px rgba(91,91,255,.4); }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-0);
  color: var(--ink-1);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
}

.mesh-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 48rem at 12% 18%, var(--mesh-a) 0%, transparent 55%),
    radial-gradient(54rem 48rem at 88% 32%, var(--mesh-b) 0%, transparent 55%),
    radial-gradient(50rem 40rem at 48% 88%, var(--mesh-d) 0%, transparent 60%),
    var(--bg-0);
  transition: opacity .4s ease;
}
.mesh-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.aurora {
  position: absolute; inset: -10% -10% auto -10%; height: 80vh; z-index: -1;
  background: conic-gradient(from 140deg at 50% 50%,
    var(--accent) 0%,
    var(--accent-hi) 18%,
    transparent 35%,
    transparent 60%,
    var(--accent) 80%,
    transparent 100%);
  filter: blur(80px) saturate(1.3);
  opacity: .30;
  animation: aurora-drift 22s linear infinite;
  pointer-events: none;
}
@keyframes aurora-drift {
  0%   { transform: rotate(0)   translate(0,0) scale(1); }
  50%  { transform: rotate(180deg) translate(2%, -3%) scale(1.1); }
  100% { transform: rotate(360deg) translate(0,0) scale(1); }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .5;
}
.display {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: .94;
  color: var(--ink-0);
}
.text-xl-lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--ink-2); }
.text-body    { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ink-0 { color: var(--ink-0); }
.ink-2 { color: var(--ink-2); }
.ink-3 { color: var(--ink-3); }
.accent { color: var(--accent); }

.btn {
  --bg: var(--ink-0); --fg: var(--bg-1);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: none;
  background: var(--bg); color: var(--fg);
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .35s cubic-bezier(.2,.9,.2,1), box-shadow .3s ease, background .3s ease;
  will-change: transform;
  overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--bg) 40%, transparent);
  transition: box-shadow .3s ease;
}
.btn:hover::after { box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--bg) 55%, transparent); }
.btn--primary { --bg: var(--accent); --fg: #fff; box-shadow: var(--shadow-float); }
.btn--primary:hover { background: var(--accent-hi); }
.btn--ghost   { --bg: transparent; --fg: var(--ink-0); border: 1.5px solid var(--line-2); }
.btn--ghost:hover { background: var(--bg-1); }
.btn--lg { padding: 18px 32px; font-size: 16px; }
.btn--xl { padding: 22px 40px; font-size: 17px; }

.btn--primary::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.4) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.btn--primary:hover::before { transform: translateX(120%); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-1); border: 1px solid var(--line);
  font-size: 12px; font-weight: 600; color: var(--ink-1);
}
.chip .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chip--live .dot { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .6; } }

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card--glass { background: var(--glass); backdrop-filter: blur(14px); }

.tilt { transform-style: preserve-3d; transform: perspective(900px); transition: transform .1s linear; will-change: transform; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform .9s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }

.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.split-word > span { display: inline-block; transform: translateY(110%); transition: transform .8s cubic-bezier(.2,.9,.2,1); }
.split-word.in > span { transform: none; }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; animation: marquee 30s linear infinite; width: max-content; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.tweaks-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 9000;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.tweaks-toggle {
  width: 52px; height: 52px; border-radius: 999px;
  background: var(--ink-0); color: var(--bg-1); border: none; cursor: pointer;
  box-shadow: 0 20px 30px -10px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  transition: transform .3s;
}
.tweaks-toggle:hover { transform: rotate(45deg) scale(1.05); }
.tweaks-panel {
  background: var(--glass); backdrop-filter: blur(20px);
  border: 1px solid var(--line-2); border-radius: 20px; padding: 16px;
  min-width: 220px; display: none; box-shadow: var(--shadow-card);
}
.tweaks-panel.open { display: block; animation: fade-up .25s ease-out; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
.tweaks-row { display: flex; gap: 6px; margin: 8px 0; }
.tweaks-row .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; display: block; }
.swatch {
  flex: 1; height: 32px; border-radius: 10px; border: 2px solid transparent; cursor: pointer;
  background: var(--c); position: relative;
}
.swatch[aria-selected="true"] { border-color: var(--ink-0); }
.theme-btn { flex: 1; padding: 8px; font-size: 12px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-1); cursor: pointer; font-weight: 600; }
.theme-btn[aria-selected="true"] { background: var(--ink-0); color: var(--bg-1); border-color: var(--ink-0); }

.fcursor { position: fixed; top: 0; left: 0; width: 24px; height: 24px; border: 1.5px solid var(--ink-0); border-radius: 999px; pointer-events: none; z-index: 9999; mix-blend-mode: difference; transform: translate(-50%, -50%); transition: width .25s, height .25s, background .25s, opacity .15s; }
.fcursor.hover { width: 48px; height: 48px; background: var(--ink-0); }
@media (hover: none) { .fcursor { display: none; } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; }
