:root {
  --bg: #0c0c0e;
  --card: #141417;
  --card-edge: rgba(255, 255, 255, 0.10);
  --text: #f2f3f5;
  --muted: rgba(255, 255, 255, 0.56);
  --faint: rgba(255, 255, 255, 0.32);
  --accent: #33c3d6;
  --red: #ff453a;
  --tile: #212126;
  --radius: 18px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
nav .links a {
  color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 26px;
}
nav .links a:hover { color: var(--text); }

/* ---------- hero ---------- */
header.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lede {
  margin: 22px auto 0; max-width: 560px;
  font-size: 19px; color: var(--muted);
}

/* live demo card */
.democard {
  margin: 48px auto 0; width: min(560px, 100%);
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 26px 28px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}
.democard .title-row {
  display: flex; align-items: center; gap: 9px; justify-content: flex-start;
  font-weight: 600; font-size: 16px;
}
.democard .dot { width: 9px; height: 9px; border-radius: 50%; background: #4f8fd9; }
.democard .link {
  margin-top: 16px; font-size: 14px; color: var(--accent);
}
.democard .link::before { content: "🎥  "; font-size: 12px; }
.democard .caption { margin-top: 14px; font-size: 12.5px; color: var(--faint); }

/* split-flap clock */
.clock {
  display: flex; gap: 7px; justify-content: center; align-items: center;
  margin-top: 22px;
  user-select: none;
}
.clock .colon {
  font-size: 40px; font-weight: 800; color: var(--muted);
  padding: 0 2px;
}
.cell {
  position: relative; width: 64px; height: 88px;
  perspective: 320px;
  border-radius: 8px; overflow: hidden;
  background: var(--tile);
}
.cell .half {
  position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden;
}
.cell .half span, .cell .flap span {
  position: absolute; left: 0; width: 100%; height: 88px;
  font-size: 62px; font-weight: 700;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  line-height: 88px; text-align: center; color: #fff;
}
.cell .top { top: 0; background: linear-gradient(#2b2b31, #1d1d22); }
.cell .top span { top: 0; }
.cell .bottom { bottom: 0; background: linear-gradient(#191920, #232329); }
.cell .bottom span { bottom: 0; }
.cell .flap {
  position: absolute; left: 0; width: 100%; height: 50%; overflow: hidden;
  backface-visibility: hidden; display: none; z-index: 3;
}
.cell .flap.ftop { top: 0; transform-origin: bottom; background: linear-gradient(#2b2b31, #1d1d22); }
.cell .flap.ftop span { top: 0; }
.cell .flap.fbottom { bottom: 0; transform-origin: top; background: linear-gradient(#191920, #232329); }
.cell .flap.fbottom span { bottom: 0; }
.cell .hinge {
  position: absolute; top: calc(50% - 1px); left: 0; width: 100%; height: 2px;
  background: rgba(0, 0, 0, 0.9); z-index: 4;
}
.cell .pin {
  position: absolute; top: calc(50% - 5px); width: 4px; height: 10px;
  background: #55555e; border-radius: 1.5px; z-index: 5;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.6);
}
.cell .pin.l { left: 0; } .cell .pin.r { right: 0; }
.clock.late .half span, .clock.late .flap span { color: var(--red); }

/* CTA */
.cta { margin-top: 44px; }
.cta .badge {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  background: var(--text); color: #0b0b0d; font-weight: 700; font-size: 16px;
  text-decoration: none;
}
.cta .sub { margin-top: 12px; font-size: 13px; color: var(--faint); }

/* ---------- sections ---------- */
section { padding: 72px 0 0; }
section h2 {
  font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.02em;
  text-align: center;
}
section p.sub {
  text-align: center; color: var(--muted); max-width: 620px; margin: 12px auto 0;
}

/* screenshots */
.shots { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.shot {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: var(--radius); padding: 22px; text-align: center;
}
.shot.widest { grid-column: 1 / -1; }
.shot img {
  max-width: 100%; height: auto; border-radius: 12px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}
.shot h3 { margin-top: 16px; font-size: 16px; font-weight: 650; }
.shot p { margin-top: 5px; font-size: 13.5px; color: var(--muted); }

/* features */
.grid {
  margin-top: 44px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px;
}
.feature {
  background: var(--card); border: 1px solid var(--card-edge);
  border-radius: 14px; padding: 22px;
}
.feature .glyph { font-size: 22px; }
.feature h3 { margin-top: 10px; font-size: 15.5px; font-weight: 650; }
.feature p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* footer */
footer {
  margin-top: 88px; padding: 34px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center; color: var(--faint); font-size: 13px;
}
footer a { color: var(--muted); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--text); }
footer .tag { margin-top: 10px; }

/* legal pages */
.legal { max-width: 680px; margin: 0 auto; padding: 30px 24px 80px; }
.legal h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; margin-top: 26px; }
.legal h2 { font-size: 19px; font-weight: 700; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); text-decoration: none; }
.legal .updated { color: var(--faint); font-size: 13px; margin-top: 6px; }

@media (max-width: 720px) {
  .shots { grid-template-columns: 1fr; }
  .cell { width: 48px; height: 68px; }
  .cell .half span, .cell .flap span { font-size: 46px; height: 68px; line-height: 68px; }
}
