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

:root {
  --bg: #000000;
  --bg-card: #0f0f0f;
  --accent: #F86916;
  --accent-subtle: rgba(248, 105, 22, 0.12);
  --accent-border: rgba(248, 105, 22, 0.25);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.07);
  --radius-card: 20px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Animated gradient background ── */
.gradient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.blob-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(248, 105, 22, 0.2) 0%, transparent 70%);
  left: -200px;
  top: -100px;
  animation: blobFloat1 22s ease-in-out infinite alternate;
}

.blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 69, 0, 0.13) 0%, transparent 70%);
  right: -150px;
  top: 25%;
  animation: blobFloat2 28s ease-in-out infinite alternate;
}

.blob-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.08) 0%, transparent 70%);
  left: 40%;
  bottom: 0%;
  animation: blobFloat3 24s ease-in-out infinite alternate;
}

@keyframes blobFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 80px) scale(1.12); }
}
@keyframes blobFloat2 {
  0%   { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-70px, 90px) scale(0.92); }
}
@keyframes blobFloat3 {
  0%   { transform: translate(0, 0) scale(0.9); }
  100% { transform: translate(-50px, -60px) scale(1.1); }
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-download {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  transition: background 0.2s, border-color 0.2s;
}

.nav-download:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  border-radius: 100px;
  padding: 0.375rem 0.9rem;
  margin-bottom: 2.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

#cycling-word {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.hero-body {
  font-size: 0.975rem;
  color: var(--text-secondary);
  max-width: 400px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 520px);
  margin: 0 auto;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 14px;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border);
  transition: background 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.waitlist-block.is-active .waitlist-trigger,
.waitlist-block.is-submitted .waitlist-trigger {
  display: none;
}

.waitlist-form {
  width: min(100%, 430px);
  margin-top: 1rem;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.waitlist-form.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.waitlist-form.is-shaking {
  animation: waitlistShake 0.32s ease;
  border-color: rgba(248, 105, 22, 0.55);
}

.waitlist-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.85rem;
}

.waitlist-form input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.waitlist-form button {
  flex-shrink: 0;
  border: 0;
  border-radius: 12px;
  padding: 0.68rem 1rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}

.waitlist-form button:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.waitlist-confirmation {
  margin-top: 1rem;
  max-width: 430px;
  padding: 0.95rem 1.1rem;
  border-radius: 16px;
  background: rgba(248, 105, 22, 0.11);
  border: 1px solid var(--accent-border);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}

.waitlist-confirmation.is-visible {
  animation: waitlistConfirm 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.waitlist-form[hidden],
.waitlist-confirmation[hidden] {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes waitlistShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

@keyframes waitlistConfirm {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.scroll-hint {
  margin-top: 4rem;
  color: var(--text-secondary);
  animation: bounce 2.4s ease-in-out infinite;
  opacity: 0.5;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── Nav menu (... dropdown) ── */
.nav-menu {
  position: relative;
}

.nav-dots {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.nav-menu:hover .nav-dots,
.nav-menu:focus-within .nav-dots {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 0.375rem;
  min-width: 170px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(12px);
}

.nav-menu:hover .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-dropdown a {
  display: block;
  padding: 0.55rem 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Features ── */
.features {
  max-width: 1060px;
  margin: 0 auto;
  padding: 7rem 2rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 480px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: var(--accent-border);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-subtle);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Bottom CTA ── */
.cta-section {
  padding: 5rem 2rem 9rem;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.875rem;
}

.cta-section p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
}

/* ── Video showcase ── */
.video-section {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem 7rem;
}

.video-card {
  position: relative;
  border-radius: 24px;
  background: #0a0a0a;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  margin-top: 3rem;
}

.video-card:hover .play-btn {
  background: rgba(248, 105, 22, 0.35);
  border-color: rgba(248, 105, 22, 0.6);
  transform: translate(-50%, -50%) scale(1.08);
}

/* Mock app UI inside the card */
.mock-ui {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 420px;
  font-size: 0.75rem;
  user-select: none;
  pointer-events: none;
}

.mock-sidebar {
  background: #0d0d0d;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mock-sidebar-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}

.mock-session {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.5rem;
  border-radius: 8px;
  color: rgba(255,255,255,0.45);
}

.mock-session.active {
  background: rgba(248,105,22,0.1);
  color: rgba(255,255,255,0.85);
}

.mock-session-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}

.mock-session.active .mock-session-dot {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(248,105,22,0.7);
}

.mock-session-text {
  overflow: hidden;
}

.mock-session-label {
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-session-time {
  font-size: 0.62rem;
  color: rgba(255,255,255,0.25);
  margin-top: 1px;
}

.mock-main {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #0f0f0f;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mock-header-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.mock-header-model {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  margin-left: auto;
}

.mock-steps {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mock-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.mock-step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.12);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.mock-step.done .mock-step-icon {
  background: rgba(0,200,100,0.15);
  border-color: rgba(0,200,100,0.4);
  color: #00c864;
}

.mock-step.running .mock-step-icon {
  background: rgba(248,105,22,0.15);
  border-color: rgba(248,105,22,0.5);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248,105,22,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(248,105,22,0); }
}

.mock-step.pending .mock-step-icon {
  opacity: 0.3;
}

.mock-step-body {
  flex: 1;
}

.mock-step-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.2rem;
}

.mock-step.pending .mock-step-label {
  color: rgba(255,255,255,0.25);
}

.mock-step-output {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  font-family: 'Menlo', 'Monaco', monospace;
  line-height: 1.5;
}

.mock-step.running .mock-step-label {
  color: var(--accent);
}

.mock-terminal {
  margin-top: auto;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.mock-terminal-line {
  font-family: 'Menlo', 'Monaco', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
}

.mock-terminal-line.accent {
  color: rgba(248,105,22,0.7);
}

.mock-terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Gradient overlay + play button */
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.1) 45%,
    transparent 100%
  );
  pointer-events: none;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  color: #fff;
}

.video-card-caption {
  padding: 1.25rem 1.75rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.video-card-caption h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.video-card-caption span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* -- Legal pages -- */
.legal-page {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 9rem 2rem 7rem;
}

.legal-hero {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.legal-hero h1 {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.98;
  margin-bottom: 1.25rem;
}

.legal-intro {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.8;
}

.legal-content > * + * {
  margin-top: 1rem;
}

.legal-content h2 {
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal-content h3 {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.35;
  margin-top: 1.75rem;
}

.legal-content p,
.legal-content li {
  max-width: 78ch;
}

.legal-content ul,
.legal-content ol {
  margin: 1rem 0 1.5rem 1.35rem;
}

.legal-content li + li {
  margin-top: 0.65rem;
}

.legal-content strong {
  color: var(--text);
  font-weight: 650;
}

.legal-content hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

@media (max-width: 600px) {
  .mock-ui { grid-template-columns: 1fr; height: auto; }
  .mock-sidebar { display: none; }
  .mock-ui { height: 280px; }
  .video-section { padding: 0 1.25rem 4.5rem; }
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 1.1rem 1.25rem; }
  .hero { padding: 5.5rem 1.25rem 3rem; }
  .features { padding: 4.5rem 1.25rem; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 4rem 1.25rem 7rem; }
  .legal-page { padding: 7rem 1.25rem 5rem; }
  .legal-hero { margin-bottom: 2.5rem; }
  .legal-content { font-size: 0.94rem; }
}
