/* ==========================================================================
   SPINCYCLE — Global Stylesheet
   Provenance You Can Smell. We don't clean. We curate.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0a14;
  --bg-alt: #0d0e1c;
  --glass: rgba(255, 255, 255, 0.045);

  --rust: #22d3ee;
  --wine: #f472b6;
  --lime: #a3e635;
  --teal: #8b5cf6;
  --gold: #fbbf24;

  --text: #f5efe6;
  --muted: #9aa0b4;
  --line: rgba(34, 211, 238, 0.18);
  --line-bright: rgba(34, 211, 238, 0.4);

  --grad-brand: linear-gradient(90deg, #22d3ee 0%, #8b5cf6 50%, #f472b6 100%);
  --grad-stain: radial-gradient(circle at 30% 30%, rgba(163,230,53,0.35), transparent 55%),
                radial-gradient(circle at 70% 60%, rgba(244,114,182,0.3), transparent 55%),
                radial-gradient(circle at 50% 85%, rgba(34,211,238,0.28), transparent 55%);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container: 1200px;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 500px at 90% -5%, rgba(139,92,246,0.16), transparent 60%),
    radial-gradient(700px 450px at -5% 25%, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(800px 500px at 55% 105%, rgba(244,114,182,0.10), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Ticker
   ========================================================================== */

.ticker-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,4,3,0.95);
  border-bottom: 1px solid var(--line-bright);
  overflow: hidden; white-space: nowrap; height: 36px;
  display: flex; align-items: center;
}
.ticker-track { display: inline-flex; align-items: center; animation: ticker-scroll 58s linear infinite; will-change: transform; }
.ticker-track span {
  font-family: var(--font-mono); font-size: 12px; padding: 0 26px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); border-right: 1px solid rgba(255,255,255,0.06);
}
.ticker-track .up { color: var(--lime); }
.ticker-track .down { color: var(--wine); }
.ticker-track .sym { color: var(--rust); font-weight: 600; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky; top: 36px; z-index: 99;
  background: rgba(14,11,9,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 78px; padding-top: 10px; padding-bottom: 10px; }

.wordmark-lockup { display: flex; flex-direction: column; gap: 3px; }
.wm-tag { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.13em; color: var(--muted); }
.wm-tag a { color: var(--wine); }
.wm-tag a:hover { color: var(--rust); text-decoration: underline; }

.wordmark {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: 25px; letter-spacing: -0.01em;
  display: flex; align-items: baseline; gap: 6px;
}
.wordmark .spin { color: var(--text); }
.wordmark .cycle { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark .reg { font-family: var(--font-mono); font-style: normal; font-size: 10px; color: var(--muted); align-self: flex-start; margin-top: 4px; }

.nav-links { display: flex; gap: 32px; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.07em; }
.nav-links a { color: var(--muted); position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--rust); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad-brand); border-radius: 2px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--rust); display: block; border-radius: 2px; }

@media (max-width: 780px) {
  .nav-links { position: fixed; top: 114px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; gap: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .nav-links.open { max-height: 420px; }
  .nav-links a { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.02; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.6vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); }
em, .italic { font-style: italic; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--rust); display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--grad-brand); }

p.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 640px; line-height: 1.7; }

.gold { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wine { color: var(--wine); }
.lime { color: var(--lime); }
.mono { font-family: var(--font-mono); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { position: relative; z-index: 1; padding: 100px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.section.alt { background: rgba(255,255,255,0.015); }
.section.tight { padding: 64px 0; }

.grid-2 { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--glass); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius);
  padding: 30px; backdrop-filter: blur(8px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,138,76,0.35); box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 40px rgba(255,138,76,0.06); }

.stat { font-family: var(--font-mono); border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; }
.stat .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--rust); display: block; line-height: 1; }
.stat .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 15px 28px; border: 1px solid rgba(255,138,76,0.5); color: var(--rust);
  border-radius: 10px; background: rgba(255,138,76,0.06); cursor: pointer;
  transition: all 0.22s ease;
}
.btn:hover { background: rgba(255,138,76,0.16); box-shadow: 0 0 30px rgba(255,138,76,0.25); transform: translateY(-2px); }
.btn.solid { background: var(--grad-brand); color: #12100c; border: none; font-weight: 600; box-shadow: 0 8px 30px rgba(196,39,95,0.35); }
.btn.solid:hover { box-shadow: 0 12px 40px rgba(196,39,95,0.5); transform: translateY(-2px); }
.btn.ghost { border-color: rgba(205,241,53,0.5); color: var(--lime); background: rgba(205,241,53,0.06); }
.btn.ghost:hover { background: rgba(205,241,53,0.16); box-shadow: 0 0 30px rgba(205,241,53,0.2); }

/* Product cards */
.product {
  border: 1px solid rgba(255,255,255,0.08); background: var(--glass); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease;
}
.product:hover { transform: translateY(-4px); border-color: rgba(255,138,76,0.4); }
.stain-art { height: 210px; position: relative; background: var(--bg-alt); overflow: hidden; }
.stain-art svg { width: 100%; height: 100%; }
.stain-tag {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,0.5); border: 1px solid var(--line-bright);
  color: var(--lime); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.06em; padding: 4px 10px; border-radius: 20px;
}
.product-body { padding: 26px; }
.product-name { font-family: var(--font-display); font-style: italic; font-size: 1.4rem; margin-bottom: 4px; }
.product-price { font-family: var(--font-mono); font-size: 1.1rem; color: var(--gold); margin-bottom: 14px; }
.product-price .was { color: var(--muted); text-decoration: line-through; font-size: 0.85rem; margin-right: 8px; }
.product-desc { color: var(--muted); font-size: 14px; line-height: 1.8; }
.product-desc .rant { color: var(--wine); font-style: italic; }
.product-desc .snap-back { color: var(--muted); }

/* Review cards */
.review {
  border: 1px solid rgba(255,255,255,0.08); background: var(--glass); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.review .stars { color: var(--gold); font-family: var(--font-mono); font-size: 14px; margin-bottom: 10px; }
.review .quote { font-size: 15px; color: var(--text); line-height: 1.7; font-style: italic; }
.review .who { margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.review.complaint { border-color: rgba(196,39,95,0.35); }
.review.complaint .stars { color: var(--wine); }
.review .reply {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,0.12);
  font-family: var(--font-mono); font-size: 12px; color: var(--rust); line-height: 1.7;
}

/* Footer */
footer { padding: 60px 0 40px; position: relative; z-index: 1; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
footer .legal { font-family: var(--font-mono); font-size: 11px; color: var(--muted); max-width: 460px; line-height: 1.7; }
footer .foot-links { display: flex; gap: 24px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
footer .foot-links a { color: var(--muted); }
footer .foot-links a:hover { color: var(--rust); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid rgba(255,255,255,0.08); }
th { color: var(--rust); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; font-weight: 500; }
td { color: var(--muted); }
td.pos { color: var(--lime); }
td.neg { color: var(--wine); }

.logo-cloud {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); overflow: hidden;
}
.logo-cloud div { background: var(--bg); padding: 28px 16px; text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.logo-cloud div:hover { color: var(--rust); background: rgba(255,138,76,0.05); }

.badge {
  display: inline-block; border: 1px solid rgba(255,138,76,0.45); color: var(--rust); background: rgba(255,138,76,0.07);
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 6px 14px; border-radius: 20px; margin-bottom: 20px;
}

.score-row { display: grid; grid-template-columns: 160px 1fr 70px; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.score-row .name { font-family: var(--font-mono); font-size: 13px; color: var(--text); }
.score-track { background: rgba(255,255,255,0.05); height: 12px; border-radius: 8px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 8px; background: var(--grad-brand); }
.score-row .val { font-family: var(--font-mono); font-size: 13px; color: var(--rust); text-align: right; }

/* ==========================================================================
   Dashboard hardware
   ========================================================================== */

.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.055) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 80px rgba(196,39,95,0.06);
  position: relative; backdrop-filter: blur(10px); overflow: hidden;
}
.panel::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--grad-brand); opacity: 0.85; }
.panel-chrome { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.07); background: rgba(0,0,0,0.25); }
.panel-chrome .dot { width: 9px; height: 9px; border-radius: 50%; }
.panel-chrome .dot.r { background: var(--wine); }
.panel-chrome .dot.y { background: var(--gold); }
.panel-chrome .dot.g { background: var(--lime); }
.panel-chrome .title { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.panel-chrome .live { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--lime); display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.1em; }
.panel-chrome .live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.panel-body { padding: 24px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.kpi { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 18px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 3px; background: var(--rust); }
.kpi:nth-child(2)::before { background: var(--wine); }
.kpi:nth-child(3)::before { background: var(--lime); }
.kpi:nth-child(4)::before { background: var(--teal); }
.kpi .k-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted); display: block; margin-bottom: 8px; }
.kpi .k-value { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1; color: var(--text); }
.kpi .k-value.gold { color: var(--rust); }
.kpi .k-value.wine { color: var(--wine); }
.kpi .k-value.lime { color: var(--lime); }
.kpi .k-delta { font-family: var(--font-mono); font-size: 11px; margin-top: 8px; display: block; }
.kpi .k-delta.up { color: var(--lime); }
.kpi .k-delta.down { color: var(--wine); }

.chart-svg { width: 100%; height: auto; display: block; }
.chart-grid-line { stroke: rgba(255,255,255,0.07); stroke-width: 1; }
.chart-axis-label { font-family: 'JetBrains Mono', monospace; font-size: 10px; fill: #a89a8c; }
.chart-line { fill: none; stroke: url(#brandStroke); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 8px rgba(255,138,76,0.5)); }
.chart-line.animate { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw-line 2.4s ease-out forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.chart-fill { opacity: 0.9; }
.chart-dot { fill: #cdf135; filter: drop-shadow(0 0 10px rgba(205,241,53,0.9)); }
.bar-rect { fill: url(#barRust); rx: 6; }
.bar-rect.wine { fill: url(#barWine); }
.bar-rect.lime { fill: url(#barLime); }

@media (prefers-reduced-motion: reduce) {
  .chart-line.animate { animation: none; stroke-dashoffset: 0; }
  .panel-chrome .live::before { animation: none; }
}

.donut-wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.donut {
  width: 170px; height: 170px; border-radius: 50%;
  background: conic-gradient(var(--rust) 0deg 252deg, var(--wine) 252deg 324deg, var(--lime) 324deg 360deg);
  position: relative; flex-shrink: 0; filter: drop-shadow(0 0 30px rgba(255,138,76,0.18));
}
.donut::after { content: ''; position: absolute; inset: 21%; background: #14100c; border-radius: 50%; }
.donut .donut-center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1;
  font-family: var(--font-display); font-weight: 600; font-size: 1.7rem;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.donut .donut-center small { font-family: var(--font-mono); font-size: 9px; color: var(--muted); -webkit-text-fill-color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.legend { display: flex; flex-direction: column; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 10px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex-shrink: 0; }

.hero-glow {
  position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px;
  background: radial-gradient(circle, rgba(139,92,246,0.22) 0%, rgba(34,211,238,0.08) 40%, transparent 65%);
  pointer-events: none; z-index: 0; filter: blur(10px);
}
.watermark {
  position: absolute; bottom: -0.18em; left: 0;
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(7rem, 20vw, 18rem); color: transparent;
  -webkit-text-stroke: 1px rgba(255,138,76,0.13); line-height: 1;
  pointer-events: none; user-select: none; white-space: nowrap; z-index: 0;
}

.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: rgba(255,255,255,0.07); }
.ops-cell { background: #100c09; padding: 22px 18px; font-family: var(--font-mono); }
.ops-cell .region { font-size: 12px; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 6px; }
.ops-cell .status { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.ops-cell .status.on { color: var(--lime); }
.ops-cell .status.off { color: var(--wine); }
.ops-cell .spark { margin-top: 12px; height: 26px; display: flex; align-items: flex-end; gap: 3px; }
.ops-cell .spark i { flex: 1; display: block; min-height: 2px; border-radius: 2px 2px 0 0; background: var(--rust); }
.ops-cell .spark i:nth-child(odd) { background: var(--wine); }
.ops-cell .spark i:last-child { background: var(--lime); }

/* Den-Den status widget */
.dd-status {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 20px; padding: 8px 16px;
  background: rgba(255,138,76,0.05);
}
.dd-status .pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 8px var(--wine); animation: pulse 1.4s ease-in-out infinite; }
