/* ── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --bg:           #09090b;
  --surface:      #111113;
  --surface-2:    #1c1c1f;
  --surface-3:    #28282c;
  --border:       #2e2e33;
  --border-soft:  #222226;
  --text:         #f4f4f5;
  --text-2:       #a1a1aa;
  --text-3:       #71717a;
  --green:        #4ade80;
  --green-dark:   #0a1a0a;
  --green-dim:    rgba(74,222,128,0.07);
  --green-border: rgba(74,222,128,0.22);
  --green-glow:   rgba(74,222,128,0.18);
  --blue-glow:    rgba(56,189,248,0.14);
  --purple-glow:  rgba(168,85,247,0.14);
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    22px;
  --max-w:        1160px;
  --nav-h:        62px;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── TYPOGRAPHY ─────────────────────────────────────────────────── */
h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}
p { font-size: 15px; line-height: 1.75; }
code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--green);
}

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600;
  padding: 11px 24px; border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: box-shadow 150ms ease, transform 150ms ease, background 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green); color: var(--green-dark);
  box-shadow: 0 0 20px var(--green-glow);
}
.btn-primary:hover {
  background: #86efac;
  box-shadow: 0 0 36px rgba(74,222,128,0.32);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; color: var(--text-2);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--green-border); color: var(--green); }
.btn-sm   { font-size: 13px; padding: 7px 16px; }
.btn-full { width: 100%; }

/* ── SHARED SECTION ──────────────────────────────────────────────── */
.section-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section-title { text-align: center; }
.section-sub   { text-align: center; color: var(--text-2); font-size: 15px; margin-top: 10px; }

/* ── ANIMATION BASE CLASSES ──────────────────────────────────────── */
.slide-in-left,
.slide-in-right,
.fade-up {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}
.slide-in-left  { transform: translateX(-40px); }
.slide-in-right { transform: translateX(40px); }
.fade-up        { transform: translateY(28px); }

.slide-in-left.visible,
.slide-in-right.visible,
.fade-up.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .slide-in-left, .slide-in-right, .fade-up {
    opacity: 1; transform: none; transition: none;
  }
}

/* ── NAVBAR ─────────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow 200ms ease;
}
#navbar.scrolled { box-shadow: 0 2px 40px rgba(0,0,0,0.7); }

.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 0 24px; height: var(--nav-h);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; flex-shrink: 0;
}
.nav-logo img { border-radius: 6px; }
.nav-links { display: flex; gap: 2px; margin-right: auto; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 6px 12px; border-radius: 8px;
  transition: color 140ms, background 140ms;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }

#mobile-menu-btn {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; margin-left: auto; padding: 6px;
}
#mobile-menu-btn span {
  display: block; height: 1.5px; width: 100%;
  background: var(--text-2); border-radius: 2px; transition: background 140ms;
}
#mobile-menu-btn:hover span { background: var(--text); }

#mobile-drawer {
  border-top: 1px solid var(--border-soft);
  padding: 16px 24px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
#mobile-drawer[hidden] { display: none; }
#mobile-drawer ul { display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; }
#mobile-drawer a {
  display: block; padding: 9px 12px; border-radius: var(--radius);
  font-size: 14px; font-weight: 500; color: var(--text-2);
  transition: background 140ms, color 140ms;
}
#mobile-drawer a:hover { background: var(--surface-2); color: var(--text); }

/* ── DOT RENAME (green dot in frame bar) ────────────────────────── */
.dot-green-dot { background: #28c840; }

/* ── HERO ────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 64px) 24px 96px;
  position: relative;
  overflow: hidden;
}
/* subtle radial glow behind hero */
#hero::before {
  content: '';
  position: absolute;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(57,255,20,0.055) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 780px; position: relative; }
.hero-logo {
  width: 128px;
  height: 128px;
  border-radius: 28px;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 1px var(--border), 0 0 40px rgba(57,255,20,0.15);
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.12em;
  border: 1px solid var(--green-border); background: var(--green-dim);
  padding: 5px 14px; border-radius: 99px; margin-bottom: 28px;
}
h1 .accent { color: var(--green); }
.hero-sub {
  font-size: 17px; color: var(--text-2); line-height: 1.8;
  max-width: 620px; margin: 22px auto 36px;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.hero-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
  justify-content: center; margin-top: 40px;
}
.pill {
  font-size: 12px; font-weight: 500; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 99px;
  padding: 4px 12px;
  transition: color 150ms, border-color 150ms;
}

/* ── HERO PRODUCT SHOT ───────────────────────────────────────────── */
.hero-product-shot {
  position: relative;
  max-width: 960px;
  margin: 64px auto 0;
  padding: 0 24px;
}
.hero-browser-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border-soft),
    0 32px 100px rgba(0,0,0,0.7),
    0 0 80px rgba(74,222,128,0.06);
}
.hero-browser-frame .frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-2);
}
.browser-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--text-3);
  margin-left: 8px;
}
.hero-product-img {
  width: 100%; display: block;
}
.hero-product-glow {
  position: absolute;
  bottom: -60px; left: 50%;
  transform: translateX(-50%);
  width: 70%; height: 120px;
  background: radial-gradient(ellipse, rgba(74,222,128,0.12) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

/* ── FEATURE SECTIONS ────────────────────────────────────────────── */
.feature-section {
  padding: 120px 24px;
}
.feature-section-alt {
  background: var(--surface);
}
.feature-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.layout-text-right { direction: ltr; } /* text on right = image on left */

.feature-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--green); letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.feature-text h2 { margin-bottom: 16px; }
.feature-desc { color: var(--text-2); margin-bottom: 28px; }

.feature-bullets {
  display: flex; flex-direction: column; gap: 10px;
}
.feature-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--text-2); line-height: 1.6;
}
.bullet-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green);
  flex-shrink: 0; margin-top: 7px;
}

/* analysis mode cards */
.analysis-modes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-top: 4px;
}
.mode-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); padding: 14px 16px;
  transition: border-color 150ms, transform 150ms;
}
.mode-card:hover { border-color: var(--green-border); transform: translateY(-2px); }
.mode-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.mode-name { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.mode-desc { font-size: 12px; color: var(--text-2); }

/* ── STACKED SECONDARY FRAME ─────────────────────────────────────── */
.stacked-frame {
  margin-top: 16px;
  margin-left: 32px; /* offset right to create depth */
  transform: scale(0.97);
  transform-origin: top left;
  opacity: 0.85;
  transition: opacity 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.stacked-frame:hover {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 24px rgba(74,222,128,0.07);
}

/* ── LIBRARY VIDEO FRAME ─────────────────────────────────────────── */
.frame-body-video {
  aspect-ratio: unset;
  height: auto;
  display: block;
}
.frame-body-video video {
  width: 100%; display: block;
  max-height: 420px; object-fit: cover;
}

/* ── INSET FRAME (saving screenshot) ────────────────────────────── */
.inset-frame {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 52%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px var(--border-soft);
  z-index: 2;
}
.inset-frame img { width: 100%; display: block; }
.inset-label {
  display: block;
  font-size: 11px; color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  padding: 6px 0;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}

/* ── OUTPUT GALLERY ──────────────────────────────────────────────── */
.output-gallery {
  margin-top: 80px;
  padding: 0 24px;
}
.output-gallery-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.output-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.output-card {
  display: flex; flex-direction: column; gap: 10px;
}
.output-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.output-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 20px rgba(74,222,128,0.06);
}
.output-frame img { width: 100%; display: block; }
.output-caption {
  text-align: center;
  font-size: 13px; color: var(--text-2); font-weight: 500;
}

/* ── APP FRAME ───────────────────────────────────────────────────── */
.feature-visual {
  position: relative;
}

.app-frame {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px var(--border-soft);
  position: relative; z-index: 1;
}
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface);
}
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-red    { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }
.frame-title {
  font-size: 11px; color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  margin-left: 4px;
}

.frame-body {
  overflow: hidden;
  background: var(--surface-3);
}
.frame-img {
  width: 100%; display: block;
}

/* glow orbs behind frames */
.frame-glow {
  position: absolute;
  width: 80%; height: 60%;
  border-radius: 50%;
  bottom: -20%; left: 10%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.frame-glow-green  { background: var(--green-glow); }
.frame-glow-blue   { background: var(--blue-glow); }
.frame-glow-purple { background: var(--purple-glow); }

/* ── TRUST STRIP ─────────────────────────────────────────────────── */
#trust {
  padding: 80px 24px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 32px; max-width: var(--max-w); margin: 0 auto;
}
.trust-item {
  text-align: center; padding: 8px;
}
.trust-icon  { font-size: 28px; margin-bottom: 14px; }
.trust-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.trust-body  { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* ── CONTACT ─────────────────────────────────────────────────────── */
#contact { padding: 100px 24px; }

.contact-wrap {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 64px; align-items: start;
  max-width: 940px; margin: 0 auto;
}
.contact-perks {
  margin-top: 28px; display: flex; flex-direction: column; gap: 10px;
}
.contact-perks li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-2);
}
.perk-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px var(--green); flex-shrink: 0;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 14px;
}
.form-field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.form-field:last-of-type { margin-bottom: 20px; }
.form-field label {
  font-size: 12px; font-weight: 500; color: var(--text-2); letter-spacing: 0.02em;
}
.form-field input,
.form-field textarea {
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 10px 14px; font-size: 14px; font-family: inherit;
  outline: none; resize: vertical;
  transition: border-color 140ms, box-shadow 140ms;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }
.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(57,255,20,0.4);
  box-shadow: 0 0 0 3px rgba(57,255,20,0.07);
}
#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
#form-status {
  margin-top: 12px; font-size: 13px; min-height: 18px;
  text-align: center; font-weight: 500;
}
#form-status.success { color: var(--green); }
#form-status.error   { color: #f87171; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--border-soft); padding: 24px; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-left { display: flex; align-items: center; gap: 8px; }
.footer-left img { border-radius: 5px; opacity: 0.7; }
.footer-logo     { font-size: 14px; font-weight: 700; }
.footer-tagline  { font-size: 13px; color: var(--text-3); }
.footer-year     { font-size: 13px; color: var(--text-3); margin-left: auto; }

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .feature-inner { grid-template-columns: 1fr; gap: 48px; }
  .layout-text-right .feature-visual { order: -1; }
  .layout-text-left .feature-visual  { order: -1; }
  .analysis-modes { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .inset-frame { display: none; } /* hide on mobile — too cramped */
  .output-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .feature-section { padding: 80px 16px; }
  #hero { padding-top: calc(var(--nav-h) + 48px); }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 16px; }
  .nav-links, .nav-cta { display: none; }
  #mobile-menu-btn { display: flex; }
  .hero-sub { font-size: 15px; }
  .hero-product-shot { margin-top: 48px; }
}
