/* =========================================================================
   Majestic Tool — design system
   Royal monochrome (black / white) with a single gold accent.
   Display: Cormorant Garamond · Body: Space Grotesk · Data: JetBrains Mono
   ========================================================================= */

:root {
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --gold: #e8c878;
  --gold-deep: #c9a14a;
  --gold-glow: rgba(232, 200, 120, .30);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---- Theme: dark (default) ------------------------------------------- */
[data-theme="dark"] {
  --ink: #0a0a0c;
  --surface: #121216;
  --surface-2: #191920;
  --surface-3: #20202a;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #f4f3ef;
  --muted: #9a9aa6;
  --faint: #6b6b76;
  --grid-line: rgba(255, 255, 255, .035);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---- Theme: light ---------------------------------------------------- */
[data-theme="light"] {
  --ink: #f4f3ef;
  --surface: #ffffff;
  --surface-2: #f3f2ec;
  --surface-3: #ebe9e1;
  --line: rgba(20, 19, 26, .10);
  --line-2: rgba(20, 19, 26, .20);
  --text: #14131a;
  --muted: #56555f;
  --faint: #8b8a93;
  --gold: #a9802a;
  --gold-deep: #8a6720;
  --gold-glow: rgba(169, 128, 42, .22);
  --grid-line: rgba(20, 19, 26, .045);
  --shadow: 0 30px 70px -34px rgba(40, 32, 10, .35);
  color-scheme: light;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
  position: relative;
  min-height: 100vh;
}

/* Subtle grid backdrop — the structural "сетка" running through the page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

/* Ambient animated gold mesh */
.mesh {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 40% at 20% 15%, var(--gold-glow), transparent 60%),
    radial-gradient(35% 35% at 85% 10%, var(--gold-glow), transparent 60%),
    radial-gradient(30% 30% at 60% 80%, var(--gold-glow), transparent 65%);
  filter: blur(20px);
  opacity: .55;
  animation: meshDrift 22s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(-2%, 1%, 0) scale(1.04); }
}

/* Fine film grain */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .site-header, .site-footer, .flash-stack { position: relative; z-index: 2; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  background: color-mix(in oklab, var(--ink) 92%, transparent);
  border-bottom: 1px solid transparent;
  transition: padding .35s var(--ease), border-color .35s var(--ease),
              background .35s var(--ease);
}
.site-header.scrolled {
  padding-top: 12px;
  padding-bottom: 12px;
  background: var(--ink);
  border-bottom-color: var(--line);
}
/* Browsers without backdrop-filter get a fully solid bar (no bleed-through) */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .site-header { background: var(--ink); }
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-mark { color: var(--gold); display: grid; place-items: center; }
.crown-path {
  stroke-dasharray: 110;
  stroke-dashoffset: 110;
  animation: drawCrown 1.6s var(--ease) .2s forwards;
}
@keyframes drawCrown { to { stroke-dashoffset: 0; } }

.brand-word {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
}
.brand-word.small { font-size: 1.25rem; }
.brand-thin { font-weight: 400; color: var(--gold); font-style: italic; margin-left: .12em; }

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  position: relative;
  transition: color .25s;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* Theme toggle */
.theme-toggle { background: none; border: none; cursor: pointer; padding: 4px; }
.tt-track {
  display: block; width: 46px; height: 24px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface-2);
  position: relative; transition: background .3s;
}
.tt-thumb {
  position: absolute; top: 50%; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--gold);
  transform: translateY(-50%);
  transition: left .35s var(--ease), background .3s;
  box-shadow: 0 0 12px var(--gold-glow);
}
[data-theme="light"] .tt-thumb { left: 25px; }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  --pad-y: 14px; --pad-x: 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  position: relative; overflow: hidden; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s, border-color .3s, color .3s;
}
.btn-sm { --pad-y: 9px; --pad-x: 18px; font-size: .85rem; }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #1a1405;
  box-shadow: 0 10px 30px -10px var(--gold-glow);
}
.btn-gold::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--gold-glow); }
.btn-gold:hover::before { transform: translateX(120%); }

.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.btn-block { width: 100%; }
.btn-lg { --pad-y: 18px; --pad-x: 34px; font-size: 1.02rem; }

/* =========================================================================
   Layout helpers
   ========================================================================= */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.section { padding-block: clamp(70px, 11vw, 140px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 600; line-height: 1.05; margin-top: 18px; letter-spacing: -.01em;
}
.section-head p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; max-width: 52ch; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { padding-top: clamp(60px, 10vw, 110px); padding-bottom: clamp(50px, 8vw, 90px); text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; }

.hero-emblem { color: var(--gold); margin-bottom: 26px; filter: drop-shadow(0 6px 24px var(--gold-glow)); }
.hero-emblem .crown-big {
  stroke-dasharray: 260; stroke-dashoffset: 260;
  animation: drawCrown 2s var(--ease) .3s forwards;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em;
  color: var(--muted); border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px; background: var(--surface);
  margin-bottom: 30px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 8rem);
  font-weight: 600; line-height: .92; letter-spacing: -.02em;
  position: relative;
}
.hero h1 .sheen {
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 40%, var(--gold) 50%, var(--text) 60%, var(--text) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sheenSweep 6s linear infinite;
}
@keyframes sheenSweep { 0%{ background-position: 150% 0; } 100%{ background-position: -50% 0; } }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--gold); }

.hero-sub {
  margin-top: 26px; max-width: 56ch; color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65;
}

.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }

.hero-stats {
  display: flex; gap: clamp(20px, 5vw, 56px); margin-top: 56px; flex-wrap: wrap; justify-content: center;
}
.hstat { text-align: center; }
.hstat .num {
  font-family: var(--font-mono); font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700;
  color: var(--text); line-height: 1; letter-spacing: -.02em;
}
.hstat .num .unit { color: var(--gold); }
.hstat .lab { font-size: .78rem; color: var(--faint); text-transform: uppercase; letter-spacing: .14em; margin-top: 10px; }
.hstat-div { width: 1px; background: var(--line); align-self: stretch; }

/* =========================================================================
   Bento feature grid
   ========================================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(150px, auto);
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--gold-glow), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card:hover::after { opacity: .8; }

.card.col-3 { grid-column: span 3; }
.card.col-2 { grid-column: span 2; }
.card.col-4 { grid-column: span 4; }
.card.row-2 { grid-row: span 2; }

.card-tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; }
.card h3 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; margin: 14px 0 8px; line-height: 1.1; }
.card p { color: var(--muted); font-size: .95rem; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--gold); margin-bottom: 18px;
  background: var(--surface-3);
}
.card-icon svg { width: 22px; height: 22px; }

.feature-num {
  position: absolute; top: 22px; right: 26px;
  font-family: var(--font-display); font-style: italic; font-size: 2.4rem; color: var(--line-2);
  line-height: 1;
}

/* highlighted "delete all friends" card */
.card.accent {
  border-color: color-mix(in oklab, var(--gold) 40%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--gold) 8%, var(--surface)), var(--surface-2));
}
.card.accent .card-icon { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 14%, var(--surface-3)); }

/* mini terminal flourish inside a card */
.mini-term {
  margin-top: 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--ink); font-family: var(--font-mono); font-size: .8rem;
  overflow: hidden;
}
.mini-term .bar { display: flex; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.mini-term .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.mini-term .body { padding: 12px 14px; color: var(--muted); line-height: 1.7; }
.mini-term .body .ok { color: var(--gold); }
.mini-term .body .dim { color: var(--faint); }

/* =========================================================================
   How it works
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  border-top: 1px solid var(--line-2); padding-top: 26px; position: relative;
}
.step .idx {
  font-family: var(--font-mono); font-size: .8rem; color: var(--gold); letter-spacing: .1em;
}
.step h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: .95rem; }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 2px; background: var(--gold);
  transition: width .6s var(--ease);
}
.step.in::before { width: 46px; }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 160% at 50% -40%, var(--gold-glow), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: clamp(40px, 7vw, 80px);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; line-height: 1.05; }
.cta-band p { color: var(--muted); margin: 16px auto 0; max-width: 50ch; }
.cta-band .hero-cta { justify-content: center; margin-top: 34px; }
.cta-meta { margin-top: 24px; font-family: var(--font-mono); font-size: .78rem; color: var(--faint); letter-spacing: .08em; }

.warn-note {
  margin-top: 30px; display: inline-flex; align-items: center; gap: 10px;
  font-size: .82rem; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; background: var(--surface);
}
.warn-note svg { color: var(--gold); width: 16px; height: 16px; flex: none; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 64px clamp(20px,5vw,56px) 36px; }
.foot-grid { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--muted); font-size: .9rem; margin-top: 14px; max-width: 42ch; }
.foot-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--faint); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--muted); text-decoration: none; font-size: .92rem; margin-bottom: 10px; transition: color .25s; }
.foot-col a:hover { color: var(--gold); }
.foot-base {
  max-width: var(--maxw); margin: 44px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--faint);
}
.mono { font-family: var(--font-mono); }

/* =========================================================================
   Flash messages
   ========================================================================= */
.flash-stack { max-width: var(--maxw); margin: 18px auto 0; padding-inline: clamp(20px,5vw,56px); display: grid; gap: 10px; }
.flash { padding: 13px 18px; border-radius: var(--r-sm); font-size: .92rem; border: 1px solid var(--line-2); background: var(--surface); }
.flash-error { border-color: #d98b8b; color: #e8b4b4; background: color-mix(in oklab, #d98b8b 12%, var(--surface)); }
.flash-ok { border-color: var(--gold); color: var(--gold); background: color-mix(in oklab, var(--gold) 12%, var(--surface)); }

/* =========================================================================
   Admin — login
   ========================================================================= */
.auth-wrap { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 420px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface), var(--surface-2));
  padding: 40px; box-shadow: var(--shadow);
}
.auth-card .lock { color: var(--gold); display: grid; place-items: center; margin-bottom: 18px; }
.auth-card h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .9rem; margin: 8px 0 28px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin-bottom: 8px; }
.input {
  width: 100%; padding: 13px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--ink); color: var(--text);
  font-family: var(--font-body); font-size: .95rem; transition: border-color .25s, box-shadow .25s;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.hint { font-family: var(--font-mono); font-size: .74rem; color: var(--faint); text-align: center; margin-top: 18px; }

/* =========================================================================
   Admin — dashboard
   ========================================================================= */
.dash { max-width: 1240px; margin-inline: auto; padding: 40px clamp(20px,4vw,48px) 80px; }
.dash-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.dash-top h1 { font-family: var(--font-display); font-size: clamp(2rem,4vw,2.8rem); font-weight: 600; }
.dash-top .who { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); padding: 24px;
  position: relative; overflow: hidden;
}
.stat .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); }
.stat .v { font-family: var(--font-mono); font-size: 2.2rem; font-weight: 700; margin-top: 12px; letter-spacing: -.02em; }
.stat .v .unit { color: var(--gold); font-size: 1.2rem; }
.stat.feature { border-color: color-mix(in oklab, var(--gold) 35%, var(--line)); }

.panel {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); padding: 28px; margin-bottom: 22px;
}
.panel h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; margin-bottom: 6px; }
.panel .desc { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.dash-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; align-items: start; }

/* CSS bar chart */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 10px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .bar .fill {
  width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  box-shadow: 0 0 14px -2px var(--gold-glow);
  height: 0; transition: height 1s var(--ease);
}
.chart .bar .fill.flat { background: var(--surface-3); box-shadow: none; }
.chart .bar .lbl { font-family: var(--font-mono); font-size: .64rem; color: var(--faint); }
.chart .bar .val { font-family: var(--font-mono); font-size: .68rem; color: var(--muted); }

/* tables */
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th { text-align: left; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.table td.mono { font-family: var(--font-mono); font-size: .8rem; color: var(--text); }
.table tr:hover td { background: color-mix(in oklab, var(--gold) 5%, transparent); }
.badge-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: .72rem; color: var(--gold); }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

.upload-zone {
  border: 1.5px dashed var(--line-2); border-radius: var(--r-md); padding: 26px;
  text-align: center; transition: border-color .25s, background .25s; cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--gold); background: color-mix(in oklab, var(--gold) 6%, transparent); }
.upload-zone .big { font-family: var(--font-display); font-size: 1.2rem; }
.upload-zone .file-name { font-family: var(--font-mono); font-size: .82rem; color: var(--gold); margin-top: 8px; }
.row-2col { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; margin-top: 18px; }

.mini-btn {
  font-family: var(--font-mono); font-size: .72rem; padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--ink); color: var(--muted); cursor: pointer;
  transition: border-color .2s, color .2s;
}
.mini-btn:hover { border-color: var(--gold); color: var(--gold); }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
html:not(.js) .reveal { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 940px) {
  .site-nav { display: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card.col-3, .card.col-4, .card.col-2 { grid-column: span 2; }
  .card.row-2 { grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-cols { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .card.col-3, .card.col-4, .card.col-2 { grid-column: span 1; }
  .stat-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
  .hstat-div { display: none; }
  .row-2col { grid-template-columns: 1fr; }
}

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