:root {
  --bg: #0a0b10;
  --bg-2: #11131b;
  --ink: #eeedf3;
  --muted: #9b99aa;
  --faint: #5d5b6c;
  --line: rgba(255, 255, 255, 0.08);
  --amber: #ffb547;
  --coral: #ff6b5b;
  --violet: #8b7bff;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
code { font: 400 .88em/1 var(--mono); color: var(--amber); }
::selection { background: var(--amber); color: #111; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad); border-bottom: 1px solid transparent;
  transition: background .3s, padding .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(10, 11, 16, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-color: var(--line); padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--amber), var(--coral), var(--violet), var(--amber));
  color: #0a0b10; font: 600 13px/1 var(--mono);
}
.brand-name { font-weight: 500; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-pill {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink) !important; background: rgba(255, 255, 255, .04);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font: 500 15px/1 var(--sans); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: #0a0b10; }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(255, 181, 71, .6); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .18); }
.btn-ghost:hover { border-color: var(--ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Hero */
.hero {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 150px var(--pad) 40px;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center;
}
.hero-glow {
  position: absolute; inset: 0 -20% auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 75% 40%, rgba(139, 123, 255, .22), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, rgba(255, 107, 91, .14), transparent 70%),
    radial-gradient(30% 40% at 20% 30%, rgba(255, 181, 71, .08), transparent 70%);
}
.eyebrow {
  margin: 0 0 22px; font: 500 12px/1.4 var(--mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}
.hero h1 { font: 400 clamp(56px, 7.6vw, 104px)/.98 var(--serif); letter-spacing: -.015em; }
.hero h1 em {
  background: linear-gradient(100deg, var(--amber), var(--coral) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em;
}
.lede { margin: 26px 0 0; color: var(--muted); max-width: 46ch; }
.hero-shot { perspective: 1600px; display: block; }
.hero-shot .frame {
  transform: rotateY(-9deg) rotateX(4deg);
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px var(--line);
}
.hero-shot:hover .frame { transform: none; }

/* Browser frame */
.frame { border-radius: 14px; overflow: hidden; background: #fff; }
.frame-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #1a1c25; font: 400 11px/1 var(--mono); color: var(--muted);
}
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3c48; }
.frame-bar span { margin-left: 10px; padding: 5px 12px; border-radius: 6px; background: #0f1016; }
.frame img { display: block; width: 100%; height: auto; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 120px var(--pad) 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.kicker {
  margin: 0 0 16px; font: 500 12px/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase; color: var(--faint);
}
.section h2, .closing h2 { font: 400 clamp(36px, 4.6vw, 60px)/1.04 var(--serif); letter-spacing: -.01em; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shot { margin: 0; }
.shot .frame {
  aspect-ratio: 16 / 10; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0, 0, 0, .9);
  transition: transform .4s;
}
.shot .frame img { height: 100%; object-fit: cover; object-position: top; }
.shot:hover .frame { transform: translateY(-4px); }
.shot figcaption { margin-top: 18px; color: var(--muted); font-size: 15px; }
.shot figcaption strong { color: var(--ink); font-weight: 500; }

/* Configuration flow */
.flow {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; position: relative;
}
.flow::before {
  content: ""; position: absolute; left: 4%; right: 4%; top: 31px; height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--coral), var(--violet));
  opacity: .6;
}
.step {
  position: relative; padding: 0 4px;
}
.step-num {
  position: relative; display: inline-grid; place-items: center;
  width: 62px; height: 62px; border-radius: 50%; margin-bottom: 22px;
  background: var(--bg); border: 1px solid rgba(255, 255, 255, .16);
  font: 500 14px/1 var(--mono); color: var(--amber);
}
.step h3 { font: 500 18px/1.3 var(--sans); margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  padding: 5px 10px; border-radius: 999px; font: 400 11.5px/1.2 var(--mono);
  background: rgba(139, 123, 255, .12); border: 1px solid rgba(139, 123, 255, .3);
}
.loop {
  display: flex; align-items: center; gap: 14px; margin: 48px 0 0;
  padding: 18px 22px; border-radius: 16px; border: 1px dashed rgba(255, 255, 255, .16);
  color: var(--muted); font-size: 15px;
}
.loop-icon { font-size: 22px; color: var(--amber); }

/* Presentations */
.part {
  margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber);
}
.part:not(:first-of-type) { margin-top: 56px; }
.decks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.deck {
  display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: var(--bg-2);
  transition: transform .35s, border-color .35s;
}
.deck:hover { transform: translateY(-4px); border-color: rgba(255, 181, 71, .4); }
.deck-wide { display: grid; grid-template-columns: .9fr 1.1fr; }
.deck-body { padding: 30px 32px 32px; display: flex; flex-direction: column; }
.deck-tag { margin: 0 0 12px; font: 400 12px/1 var(--mono); color: var(--muted); }
.deck h3 { font: 400 32px/1.1 var(--serif); }
.deck-body p:not(.deck-tag) { margin: 14px 0 24px; color: var(--muted); font-size: 15.5px; }
.deck-link { margin-top: auto; font-weight: 500; font-size: 15px; color: var(--amber); }

.deck-art { position: relative; min-height: 210px; overflow: hidden; }
.art-tech {
  background:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(80% 90% at 30% 50%, rgba(255, 181, 71, .28), transparent 70%), #12141d;
  display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px;
}
.art-tech span {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255, 181, 71, .55);
  background: rgba(10, 11, 16, .7); position: relative;
  animation: bob 3.6s ease-in-out infinite;
}
.art-tech span:nth-child(2) { animation-delay: .2s; } .art-tech span:nth-child(3) { animation-delay: .4s; border-color: var(--coral); }
.art-tech span:nth-child(4) { animation-delay: .6s; border-color: var(--coral); } .art-tech span:nth-child(5) { animation-delay: .8s; border-color: var(--violet); }
.art-tech span + span::before {
  content: ""; position: absolute; right: 100%; top: 50%; width: 12px; height: 1px; background: rgba(255, 255, 255, .3);
}
@keyframes bob { 50% { transform: translateY(-8px); } }

.art-ford { background: radial-gradient(90% 100% at 50% 100%, rgba(255, 107, 91, .3), transparent 70%), #12141d; }
.art-ford span {
  position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 10px var(--amber);
  animation: fall 3.2s linear infinite;
}
.art-ford span:nth-child(1) { left: 12%; animation-delay: 0s; }
.art-ford span:nth-child(2) { left: 24%; animation-delay: 1.1s; background: var(--coral); }
.art-ford span:nth-child(3) { left: 36%; animation-delay: .5s; }
.art-ford span:nth-child(4) { left: 48%; animation-delay: 2s; background: var(--coral); }
.art-ford span:nth-child(5) { left: 58%; animation-delay: .8s; }
.art-ford span:nth-child(6) { left: 70%; animation-delay: 1.6s; background: var(--violet); }
.art-ford span:nth-child(7) { left: 80%; animation-delay: .3s; }
.art-ford span:nth-child(8) { left: 90%; animation-delay: 2.4s; background: var(--coral); }
.art-ford::after {
  content: ""; position: absolute; left: 50%; bottom: 26px; width: 58%; height: 54px;
  transform: translateX(-50%); border: 2px solid rgba(255, 181, 71, .8); border-bottom: 0;
  border-radius: 46% 54% 0 0 / 100% 100% 0 0;
}
@keyframes fall { to { transform: translateY(240px); opacity: 0; } }

.art-exec { background: radial-gradient(80% 100% at 50% 50%, rgba(139, 123, 255, .3), transparent 70%), #12141d; }
.art-exec span {
  position: absolute; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(10, 11, 16, .6);
}
.art-exec span:nth-child(1) { left: 18%; top: 56%; border-color: var(--amber); }
.art-exec span:nth-child(2) { left: 44%; top: 24%; border-color: var(--violet); box-shadow: 0 0 0 8px rgba(139, 123, 255, .15); animation: ping 2.6s ease-out infinite; }
.art-exec span:nth-child(3) { left: 70%; top: 52%; border-color: var(--coral); }
.art-exec span:nth-child(4) { left: 58%; top: 74%; width: 30px; height: 30px; }
.art-exec::before, .art-exec::after {
  content: ""; position: absolute; height: 1px; background: rgba(255, 255, 255, .25); transform-origin: left;
}
.art-exec::before { left: calc(18% + 40px); top: 62%; width: 24%; transform: rotate(-34deg); }
.art-exec::after { left: calc(44% + 40px); top: 40%; width: 20%; transform: rotate(32deg); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(139, 123, 255, .45); } 100% { box-shadow: 0 0 0 22px rgba(139, 123, 255, 0); } }

/* Closing */
.closing { max-width: var(--max); margin: 0 auto; padding: 150px var(--pad) 110px; text-align: center; }
.closing h2 em { color: var(--amber); }
.closing .cta { justify-content: center; }

.footer {
  max-width: var(--max); margin: 0 auto; padding: 28px var(--pad) 40px;
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); color: var(--faint); font: 400 13px/1 var(--mono);
}
.footer-links { display: flex; gap: 20px; }
.footer a:hover { color: var(--ink); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .art-tech span, .art-ford span, .art-exec span { animation: none; }
}

@media (max-width: 960px) {
  .nav-links a:not(.nav-pill) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-shot .frame { transform: none; }
  .shots, .decks { grid-template-columns: 1fr; }
  .deck-wide { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { left: 31px; right: auto; top: 10px; bottom: 10px; width: 1px; height: auto;
    background: linear-gradient(180deg, var(--amber), var(--coral), var(--violet)); }
  .step { display: grid; grid-template-columns: 62px 1fr; column-gap: 20px; }
  .step-num { grid-row: span 2; margin: 0; }
}
@media (max-width: 520px) {
  .brand-name { display: none; }
  .footer { flex-direction: column; }
}
