:root {
  --bg: #07090d;
  --bg-2: #0c1018;
  --panel: #11151e;
  --panel-2: #161b26;
  --border: #232a38;
  --text: #e8ecf3;
  --muted: #8b93a4;
  --green: #76b900;        /* NVIDIA green */
  --green-soft: #9fe000;
  --accent: #5ad1ff;
  --radius: 16px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* Backgrounds */
.bg-grid {
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(118,185,0,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(118,185,0,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 10%, transparent 75%);
}
.bg-glow {
  position: fixed; top: -20%; left: 50%; transform: translateX(-50%);
  width: 90vw; height: 70vh; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(118,185,0,.16), transparent 60%);
  filter: blur(30px);
}

main, .nav, .footer { position: relative; z-index: 1; }

/* Nav */
.nav {
  display: flex; align-items: center; gap: 24px;
  padding: 20px clamp(20px, 5vw, 64px);
  max-width: 1280px; margin: 0 auto;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 10px;
  letter-spacing: -.02em;
}
.brand-mark { color: var(--green); display: inline-flex; }
.brand-ai { color: var(--green); }
.brand.small { font-size: 1.1rem; }
.nav-links { margin-left: auto; display: flex; gap: 28px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; color: var(--green-soft);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; background: rgba(118,185,0,.06);
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Hero */
.hero {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(32px, 7vw, 80px) clamp(20px, 5vw, 64px) 60px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; margin-bottom: 26px;
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.04; letter-spacing: -.03em; font-weight: 700;
}
.grad {
  background: linear-gradient(100deg, var(--green-soft), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  color: var(--muted); font-size: 1.08rem; max-width: 34rem; margin: 22px 0 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary {
  background: var(--green); color: #0a0d06;
  box-shadow: 0 6px 24px rgba(118,185,0,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(118,185,0,.4); }
.btn-primary:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost {
  background: rgba(255,255,255,.03); color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-soft); }
.btn.small { padding: 9px 16px; font-size: .85rem; }

.trust {
  margin-top: 36px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  color: var(--muted); font-size: .85rem;
}
.trust strong { color: var(--text); font-weight: 600; }
.trust .sep { opacity: .4; }

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.viewer-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  overflow: hidden;
}
.floaty { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.viewer-head, .viewer-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; font-size: .75rem; color: var(--muted);
}
.viewer-head { border-bottom: 1px solid var(--border); }
.viewer-foot { border-top: 1px solid var(--border); }
.vlabel { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 600; }
.vchip {
  background: rgba(118,185,0,.1); color: var(--green-soft);
  padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.viewer-canvas, .studio-canvas {
  aspect-ratio: 1 / 1; width: 100%;
  background: radial-gradient(circle at 50% 40%, #1a2130, #0b0e14);
  position: relative;
}
.viewer-canvas canvas, .studio-canvas canvas { display: block; }

/* Sections */
section { position: relative; }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -.02em; text-align: center;
}
.section-sub { text-align: center; color: var(--muted); margin-top: 10px; }

.how { max-width: 1100px; margin: 0 auto; padding: 60px clamp(20px,5vw,64px); }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 44px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; transition: transform .2s, border-color .2s;
}
.step:hover { transform: translateY(-4px); border-color: var(--green); }
.step-num { font-family: var(--font-display); color: var(--green); font-weight: 700; font-size: 1.1rem; }
.step h3 { font-family: var(--font-display); margin: 12px 0 8px; font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Studio */
.studio { max-width: 1200px; margin: 0 auto; padding: 60px clamp(20px,5vw,64px); }
.studio-head { margin-bottom: 40px; }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.chat-panel, .output-panel {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; flex-direction: column;
  min-height: 520px; overflow: hidden;
}
.chat-log { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: 420px; }
.msg { display: flex; gap: 12px; animation: rise .35s ease; }
.msg.user { flex-direction: row-reverse; }
@keyframes rise { from{opacity:0; transform:translateY(8px)} to{opacity:1; transform:none} }
.avatar {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
  font-family: var(--font-display);
}
.msg.bot .avatar { background: rgba(118,185,0,.15); color: var(--green-soft); }
.msg.user .avatar { background: rgba(90,209,255,.12); color: var(--accent); }
.bubble {
  background: var(--panel-2); border: 1px solid var(--border);
  padding: 12px 15px; border-radius: 14px; font-size: .92rem; max-width: 80%;
}
.msg.bot .bubble { border-top-left-radius: 4px; }
.msg.user .bubble { border-top-right-radius: 4px; background: rgba(90,209,255,.08); border-color: rgba(90,209,255,.2); }
.bubble.typing { display: flex; gap: 5px; align-items: center; }
.bubble.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble.typing span:nth-child(2){ animation-delay:.2s } .bubble.typing span:nth-child(3){ animation-delay:.4s }
@keyframes blink { 0%,60%,100%{opacity:.25} 30%{opacity:1} }

.chips { display: flex; gap: 8px; padding: 0 22px 14px; flex-wrap: wrap; }
.chip {
  background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--muted);
  font-size: .78rem; padding: 7px 12px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); transition: all .18s;
}
.chip:hover { border-color: var(--green); color: var(--green-soft); }

.chat-input { display: flex; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--border); }
.chat-input input, .waitlist input, #waitlist-email {
  flex: 1; background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 12px 15px; font-size: .92rem; font-family: var(--font-body);
  outline: none; transition: border-color .2s;
}
.chat-input input:focus { border-color: var(--green); }
.send { white-space: nowrap; }

/* Output */
.output-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.out-tabs { display: flex; gap: 6px; }
.tab {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: .8rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
  cursor: pointer; font-family: var(--font-body); transition: all .18s;
}
.tab.active { background: rgba(118,185,0,.12); color: var(--green-soft); border-color: rgba(118,185,0,.3); }
.output-body { flex: 1; position: relative; }

.studio-canvas { aspect-ratio: auto; height: 100%; min-height: 360px; }
.empty-state {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px; color: var(--muted);
}
.empty-icon { font-size: 3rem; opacity: .3; }
.gen-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  background: rgba(7,9,13,.78); backdrop-filter: blur(4px); z-index: 5;
}
.spinner {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(118,185,0,.2); border-top-color: var(--green);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#gen-status { color: var(--green-soft); font-size: .9rem; font-weight: 500; }
.progress { width: 180px; height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--green-soft)); transition: width .3s; }

.specs-view { position: absolute; inset: 0; padding: 24px; overflow-y: auto; }
.spec-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.spec-list li {
  display: flex; justify-content: space-between; padding: 12px 4px;
  border-bottom: 1px solid var(--border); font-size: .92rem;
}
.spec-list li span:first-child { color: var(--muted); }
.spec-list li span:last-child { font-weight: 600; font-family: var(--font-display); }

.output-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-top: 1px solid var(--border);
}
.swatch-row { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); }
.swatch { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--border); }

/* Features */
.features { max-width: 1100px; margin: 0 auto; padding: 60px clamp(20px,5vw,64px); }
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 44px; }
.feature {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: transform .2s, border-color .2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--green); }
.f-icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature h3 { font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .9rem; }

/* CTA */
.cta { max-width: 900px; margin: 0 auto; padding: 40px clamp(20px,5vw,64px) 90px; }
.cta-card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(36px, 6vw, 64px); text-align: center;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 100%; background: radial-gradient(ellipse, rgba(118,185,0,.14), transparent 65%);
  pointer-events: none;
}
.cta-card h2 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.6rem); letter-spacing: -.02em; }
.cta-card p { color: var(--muted); margin: 14px auto 28px; max-width: 30rem; }
.waitlist { display: flex; gap: 12px; max-width: 440px; margin: 0 auto; }
.cta-note { color: var(--green-soft); font-weight: 600; margin-top: 18px; }

/* Footer */
.footer {
  max-width: 1280px; margin: 0 auto; padding: 40px clamp(20px,5vw,64px);
  border-top: 1px solid var(--border); display: flex; align-items: center;
  gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: .85rem;
}
.foot-badge { display: flex; align-items: center; gap: 8px; margin-left: auto; color: var(--green-soft); font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .studio-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
  .waitlist, .chat-input { flex-direction: column; }
  .trust { font-size: .78rem; }
}
