/* wednesday — cinematic dark redesign
   Inspired by terafab.ai: pure black, sparse text, huge light headlines, restraint */

:root {
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --bg-card: #111111;
  --text: #ededee;
  --text-dim: rgba(237, 237, 238, 0.62);
  --text-faint: rgba(237, 237, 238, 0.40);
  --accent: #8b6fd4;
  --accent-dim: #5d43a0;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --good: #7fb069;
  --bad: #ff6470;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1180px;
  --section-pad: clamp(80px, 12vw, 140px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

img { display: block; max-width: 100%; height: auto; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  padding: 0.15em 0.4em;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
}
.skip:focus { left: 8px; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand-mark { width: 26px; height: 26px; }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(93, 67, 160, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(139, 111, 212, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

/* Animated 4D cube (tesseract approximation) */
.cube-container {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  perspective: 900px;
  opacity: 0.55;
}
@media (max-width: 960px) {
  .cube-container { opacity: 0.25; right: -10%; width: 280px; height: 280px; }
}
.tesseract {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: spin-tesseract 28s linear infinite;
  --mx: 0deg;
  --my: 0deg;
}
.cube {
  position: absolute;
  width: 160px;
  height: 160px;
  left: 50%;
  top: 50%;
  margin: -80px 0 0 -80px;
  transform-style: preserve-3d;
}
.cube.inner {
  width: 90px;
  height: 90px;
  margin: -45px 0 0 -45px;
}
.face {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1.5px solid rgba(139, 111, 212, 0.55);
  background: rgba(93, 67, 160, 0.08);
  backface-visibility: visible;
}
.cube.outer .face.front  { transform: translateZ(80px); }
.cube.outer .face.back   { transform: rotateY(180deg) translateZ(80px); }
.cube.outer .face.left   { transform: rotateY(-90deg) translateZ(80px); }
.cube.outer .face.right  { transform: rotateY(90deg) translateZ(80px); }
.cube.outer .face.top    { transform: rotateX(90deg) translateZ(80px); }
.cube.outer .face.bottom { transform: rotateX(-90deg) translateZ(80px); }

.cube.inner .face.front  { transform: translateZ(45px); border-color: rgba(183, 156, 237, 0.7); background: rgba(139, 111, 212, 0.12); }
.cube.inner .face.back   { transform: rotateY(180deg) translateZ(45px); border-color: rgba(183, 156, 237, 0.7); }
.cube.inner .face.left   { transform: rotateY(-90deg) translateZ(45px); border-color: rgba(183, 156, 237, 0.7); }
.cube.inner .face.right  { transform: rotateY(90deg) translateZ(45px); border-color: rgba(183, 156, 237, 0.7); }
.cube.inner .face.top    { transform: rotateX(90deg) translateZ(45px); border-color: rgba(183, 156, 237, 0.7); }
.cube.inner .face.bottom { transform: rotateX(-90deg) translateZ(45px); border-color: rgba(183, 156, 237, 0.7); }

@keyframes spin-tesseract {
  0%   { transform: rotateX(calc(-18deg + var(--my))) rotateY(var(--mx)); }
  100% { transform: rotateX(calc(-18deg + var(--my))) rotateY(calc(360deg + var(--mx))); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  transition: transform 0.6s var(--ease);
  will-change: transform;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 28px;
  font-weight: 500;
}
.hero h1 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(42px, 7.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 28px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 42ch;
  margin-bottom: 36px;
}
.hero-sub strong { color: var(--text); font-weight: 500; }
.hero-meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* ─── SECTIONS ─── */
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}
.section-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 20px;
  font-weight: 500;
}
h2 {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 18ch;
}
.lead {
  font-size: 17px;
  color: var(--text-dim);
  max-width: 52ch;
  margin-bottom: 48px;
  line-height: 1.55;
}

/* Comparison */
.comparison {
  display: grid;
  grid-template-columns: 1fr auto 1.4fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .comparison { grid-template-columns: 1fr; }
  .comp-arrow { display: none; }
}
.comp-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  transition: transform 0.45s var(--ease);
}
.comp-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.comp-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  font-size: 15px;
  margin-bottom: 16px;
  font-weight: 500;
}
.comp-flow .arrow { color: var(--text-faint); font-weight: 400; }
.comp-flow .bad { color: var(--bad); }
.comp-flow .good { color: var(--good); }
.comp-card p { color: var(--text-dim); font-size: 14px; }
.comp-arrow {
  display: flex;
  align-items: center;
  font-size: 28px;
  color: var(--text-faint);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-dim);
}

/* Pipeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 48px;
}
.step {
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}
.step-num {
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 500;
}
.step h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.step p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* Buyers */
.buyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 760px) {
  .buyer-grid { grid-template-columns: 1fr; }
}
.buyer-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  transition: transform 0.45s var(--ease);
}
.buyer-tag {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}
.buyer-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 14px;
}
.buyer-card > p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.buyer-card ul {
  list-style: none;
  font-size: 13.5px;
  color: var(--text-dim);
}
.buyer-card li {
  padding: 5px 0;
  padding-left: 14px;
  position: relative;
}
.buyer-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--accent-dim);
  border-radius: 1px;
}

/* Screenshots */
.shot {
  margin: 40px 0 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #0d0d0d;
}
.shot-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
.shot-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.shot-chrome em {
  margin-left: 10px;
  font-style: normal;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.shot-img { overflow: hidden; }
.shot-img img { width: 100%; transition: transform 0.8s var(--ease); }
.shot:hover .shot-img img { transform: scale(1.02); }
.shot figcaption {
  padding: 12px 16px;
  font-size: 12px;
  color: var(--text-faint);
  border-top: 1px solid var(--line);
}
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .shot-grid { grid-template-columns: 1fr; }
}
.shot.small { margin: 0; }
.shot.small figcaption { font-size: 11px; }

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 700px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
}
.feature h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.feature p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* Verify */
.verify-points {
  display: grid;
  gap: 28px;
  margin-top: 40px;
  max-width: 640px;
}
.v-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.v-num {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  font-weight: 500;
  min-width: 28px;
  padding-top: 3px;
}
.v-point h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 6px;
}
.v-point p {
  font-size: 14.5px;
  color: var(--text-dim);
}

/* Install */
.install-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 700px) {
  .install-options { grid-template-columns: 1fr; }
}
.install-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
}
.install-tag {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
  font-weight: 500;
}
.install-card h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 400;
  font-size: 17px;
  margin-bottom: 14px;
}
.install-card pre {
  background: #000;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}
.install-card code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: #c9b8f2;
}
.install-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-faint);
}

/* OSS */
.oss-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 700px) {
  .oss-links { grid-template-columns: 1fr; }
}
.oss-link {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 22px;
  transition: border-color 0.25s var(--ease);
}
.oss-link:hover { border-color: var(--accent-dim); }
.oss-link span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.oss-link strong {
  font-weight: 500;
  font-size: 15px;
}

/* Final CTA */
.final {
  text-align: center;
  padding-bottom: 120px;
}
.final h2 {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.final .cta-row {
  justify-content: center;
  margin-top: 32px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
  color: var(--text-dim);
}
.foot-links a:hover { color: var(--text); }
.copy {
  font-size: 12px;
  color: var(--text-faint);
  width: 100%;
  margin-top: 8px;
}
@media (min-width: 700px) {
  .copy { width: auto; margin-top: 0; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tesseract { animation: none; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
