/* ==========================================================
   Start Innovations — shared styles
   Monochrome (black/white) + single accent, with "light play"
   ========================================================== */

:root {
  --bg: #070708;
  --bg-elev: #0d0d10;
  --bg-card: #111115;
  --fg: #f5f5f7;
  --fg-muted: #9a9aa3;
  --fg-dim: #55555d;
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.18);
  --accent: #ffffff;
  --accent-soft: rgba(255,255,255,0.12);
  --glow: 255, 255, 255;
  --radius: 2px;
  --radius-lg: 6px;
  --ff-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
  --maxw: 1320px;
  --pad: clamp(20px, 4vw, 48px);
}

[data-theme="light"] {
  --bg: #f7f7f5;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --fg: #0a0a0b;
  --fg-muted: #5a5a62;
  --fg-dim: #a8a8b0;
  --line: rgba(0,0,0,0.09);
  --line-strong: rgba(0,0,0,0.2);
  --accent: #0a0a0b;
  --accent-soft: rgba(0,0,0,0.08);
  --glow: 0, 0, 0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* Logo: original on light, inverted on dark */
.brand-logo { filter: invert(1); }
[data-theme="light"] .brand-logo { filter: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--line-strong);
}

h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 500; line-height: 1.04; letter-spacing: -0.02em; }
.h-display { font-size: clamp(52px, 9vw, 132px); font-weight: 400; letter-spacing: -0.035em; }
.h-xl { font-size: clamp(40px, 6vw, 80px); }
.h-lg { font-size: clamp(30px, 4vw, 54px); }
.h-md { font-size: clamp(22px, 2.2vw, 30px); }

.mono { font-family: var(--ff-mono); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 28px; width: auto; }
.nav {
  display: flex; gap: 4px;
}
.nav a {
  padding: 8px 14px;
  font-size: 13.5px;
  color: var(--fg-muted);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--fg); background: var(--accent-soft); }
.header-right { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-family: var(--ff-mono); font-size: 11px;
}
.lang-switch button {
  padding: 7px 12px; color: var(--fg-muted); letter-spacing: 0.1em;
}
.lang-switch button.active { color: var(--fg); background: var(--accent-soft); }
.theme-switch button { padding: 7px 10px; font-size: 13px; line-height: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line-strong);
  transition: transform .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--fg); }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: color-mix(in oklab, var(--fg) 85%, transparent); }
.btn .arr { transition: transform .3s; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Section ---------- */
section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; max-width: 820px; }
.section-head p { color: var(--fg-muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 620px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  background: var(--bg);
  position: relative;
}
.site-footer .cols {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.site-footer h5 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 16px; font-family: var(--ff-mono); font-weight: 500; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { color: var(--fg-muted); font-size: 14px; }
.site-footer ul a:hover { color: var(--fg); }
.site-footer .bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--ff-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.08em;
}
.site-footer .big-mark {
  font-family: var(--ff-display); font-size: clamp(80px, 14vw, 180px); line-height: 0.85;
  letter-spacing: -0.04em; color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
  margin-top: 40px;
  user-select: none;
}

/* ---------- Grid lines overlay ---------- */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 80%);
  pointer-events: none;
  opacity: 0.6;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.6,.2,1), transform .9s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Tweaks panel ---------- */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 16px;
  width: 280px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--fg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h6 { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: 12px; font-weight: 500; display: flex; justify-content: space-between; }
.tweaks-panel .row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tweaks-panel label { color: var(--fg-muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.tweaks-panel .opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tweaks-panel .opts button {
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--fg-muted); font-family: var(--ff-mono); font-size: 10.5px;
}
.tweaks-panel .opts button.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tweaks-panel .swatches { display: flex; gap: 8px; }
.tweaks-panel .swatches button {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line);
  padding: 0;
}
.tweaks-panel .swatches button.active { border-color: var(--fg); transform: scale(1.1); }

/* ---------- Mobile ---------- */
@media (max-width: 820px) {
  .nav { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .site-footer .bottom { flex-direction: column; align-items: flex-start; }
}
