@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --black: #07070b;
  --panel: #101118;
  --panel-2: #161722;
  --line: rgba(255,255,255,0.08);
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --grey: #9ca3af;
  --text: #f4f5f8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Space Grotesk", "Inter", sans-serif; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
code, .mono { font-family: ui-monospace, monospace; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Top nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(7,7,11,0.7); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; letter-spacing: 0.06em; }
.brand b { color: var(--purple); }
.links { display: flex; gap: 26px; font-size: 14px; color: var(--grey); }
.links a { transition: color .2s; }
.links a:hover, .links a.active { color: var(--text); }

/* Hero backdrop: glows sit behind the content */
.hero { position: relative; overflow: hidden; padding: 100px 0 80px; text-align: center; }
.hero::before, .hero::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  width: 720px; height: 720px; border-radius: 50%; filter: blur(90px);
}
.hero::before { background: rgba(139,92,246,0.35); top: -320px; left: -180px; }
.hero::after { background: rgba(59,130,246,0.28); top: -260px; right: -200px; }
.hero > * { position: relative; z-index: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
  padding: 7px 16px; border-radius: 999px; color: #d6c8ff;
  background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.4);
}
.headline {
  font-size: clamp(42px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 28px auto 22px; max-width: 920px; font-weight: 700;
}
.headline .accent {
  background: linear-gradient(90deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--grey); font-size: 18px; max-width: 600px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  transition: transform .15s, box-shadow .2s, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; box-shadow: 0 10px 30px -10px rgba(139,92,246,0.7); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(139,92,246,0.9); }
.btn-ghost { background: rgba(255,255,255,0.03); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(59,130,246,0.6); }

/* Menu preview window */
.window {
  position: relative; max-width: 1000px; margin: 70px auto 0; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 60px 140px -40px rgba(139,92,246,0.45), 0 0 0 1px rgba(255,255,255,0.03) inset;
  overflow: hidden; text-align: left;
}
.window::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 30%);
}
.window-bar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.dots { display: flex; gap: 7px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; background: #2a2c38; }
.dots span:nth-child(1) { background: #8b5cf6; }
.dots span:nth-child(2) { background: #3b82f6; }
.window-title { font-size: 12px; color: var(--grey); font-family: ui-monospace, monospace; }
.window-body { display: grid; grid-template-columns: 200px 1fr; min-height: 360px; }
.window-side { border-right: 1px solid var(--line); padding: 22px 18px; background: rgba(7,7,11,0.5); }
.side-row { height: 30px; border-radius: 8px; margin-bottom: 8px; background: rgba(255,255,255,0.04); display: flex; align-items: center; padding: 0 12px; font-size: 13px; color: var(--grey); }
.side-row.on { background: linear-gradient(90deg, rgba(139,92,246,0.35), rgba(59,130,246,0.2)); color: var(--text); border: 1px solid rgba(139,92,246,0.4); }
.window-main { padding: 26px; display: grid; gap: 12px; align-content: start; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: #262836; position: relative; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #6b7080; transition: left .2s; }
.switch.on { background: linear-gradient(90deg, var(--purple), var(--blue)); box-shadow: 0 0 14px rgba(139,92,246,0.5); }
.switch.on::after { left: 21px; background: #fff; }
.preview-cross { margin-top: 8px; display: grid; place-items: center; min-height: 130px; border-radius: 12px; border: 1px dashed rgba(255,255,255,0.12); background: radial-gradient(circle at center, rgba(139,92,246,0.12), transparent 60%); }
.preview-cross i { display: block; width: 3px; height: 3px; background: #c4b5fd; box-shadow: 0 -9px 0 #c4b5fd, 0 9px 0 #c4b5fd, -9px 0 0 #c4b5fd, 9px 0 0 #c4b5fd; }

/* Cards and sections */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: rgba(139,92,246,0.5); transform: translateY(-2px); }
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--grey); font-size: 13px; }

.feat-grid { display: grid; gap: 22px 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feat-grid h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; color: var(--text); }
.feat-grid p { margin: 0; font-size: 14px; color: var(--grey); }

.step { display: flex; gap: 18px; align-items: flex-start; }
.step h3 { margin: 0 0 4px; font-size: 17px; }
.step p { margin: 0; color: var(--grey); font-size: 15px; }
.num {
  flex: 0 0 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--purple), var(--blue));
}

.shot-box {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  border: 1px dashed rgba(255,255,255,0.12); background: var(--panel-2);
  display: grid; place-items: center; color: var(--grey); font-family: ui-monospace, monospace; font-size: 13px;
}
.shot-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 12px; color: var(--grey); font-size: 14px; }

.bullets { margin: 0; padding-left: 20px; color: var(--grey); display: grid; gap: 8px; }
.bullets li::marker { color: var(--purple); }

/* Smooth scrolling, respecting users who prefer less motion */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

/* Scroll reveal: panels rise and fade in */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* Hover animations */
.card { will-change: transform; }
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgba(139,92,246,0.45); }
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(139,92,246,0.12), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.card { position: relative; }
.card:hover::after { opacity: 1; }

.btn { position: relative; overflow: hidden; }
.btn::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::before { left: 130%; }
.btn:active { transform: translateY(1px) scale(0.98); }

.links a { position: relative; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.links a:hover::after, .links a.active::after { transform: scaleX(1); }

.switch { cursor: pointer; }
.toggle-row:hover { border-color: rgba(139,92,246,0.4); }
.side-row { transition: background .2s, transform .2s; }
.side-row:hover { transform: translateX(4px); background: rgba(255,255,255,0.07); }

.pill { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.window { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.window:hover { transform: perspective(1200px) rotateX(2deg); }

/* Keep motion gentle for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill, .window { animation: none; transition: none; }
}

@media (max-width: 760px) {
  .window-body { grid-template-columns: 1fr; }
  .window-side { display: none; }
  .links { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }