/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #070c15;
  --bg2:       #0c1220;
  --bg3:       #111827;
  --border:    rgba(255,255,255,0.07);
  --border-hl: rgba(59,130,246,0.35);
  --text:      #e2e8f0;
  --muted:     #64748b;
  --dim:       #94a3b8;
  --accent:    #3b82f6;
  --accent2:   #6366f1;
  --green:     #22c55e;
  --font:      'Inter', -apple-system, sans-serif;
  --mono:      'Space Mono', monospace;
  /* compat aliases for account.css */
  --text-muted: #64748b;
  --text-dim:   #94a3b8;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ── Typography helpers ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px; font-weight: 600; font-family: var(--font);
  cursor: pointer; border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  background: #2563eb;
  box-shadow: 0 0 32px rgba(59,130,246,0.5);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7,12,21,0.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 24px;
  height: 60px;
  display: flex; align-items: center; gap: 32px;
}
nav ul { display: flex; gap: 4px; list-style: none; flex: 1; }
nav ul a {
  padding: 6px 12px; border-radius: 6px;
  font-size: 14px; color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
nav ul a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { display: flex; gap: 8px; }

.logo {
  font-family: var(--mono);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo span { color: var(--accent); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 80px;
  overflow: hidden;
}

#stars {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 50% at 20% 50%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 30%, rgba(99,102,241,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 8px;
  border-radius: 100px;
  border: 1px solid var(--border-hl);
  background: rgba(59,130,246,0.06);
  font-size: 12px; font-weight: 500; letter-spacing: 0.05em;
  color: #93c5fd;
  margin-bottom: 28px;
  width: fit-content;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Hero text */
.hero-left h1 {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px; color: var(--dim);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 48px;
}

/* Proof row */
.hero-proof {
  display: flex; align-items: center;
  padding: 16px 20px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
}
.proof-item { text-align: center; padding: 0 20px; }
.proof-val {
  display: block;
  font-size: 22px; font-weight: 800; font-family: var(--mono);
  color: var(--text);
  letter-spacing: -1px;
}
.proof-label {
  display: block;
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-top: 2px;
}
.proof-sep {
  width: 1px; height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Terminal mockup ──────────────────────────────────────── */
.terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(59,130,246,0.1),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

.terminal-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 11px; height: 11px; border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #ef4444; }
.terminal-dots span:nth-child(2) { background: #f59e0b; }
.terminal-dots span:nth-child(3) { background: #22c55e; }

.terminal-title {
  flex: 1; text-align: center;
  font-family: var(--mono);
  font-size: 12px; color: var(--muted);
}
.terminal-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-family: var(--mono);
  color: var(--green);
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 1.5s infinite;
}

.terminal-body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  min-height: 260px;
  max-height: 320px;
  overflow-y: hidden;
}

/* Terminal line types */
.tl { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 2px; }
.tl-status { color: var(--muted); font-size: 11px; }
.tl-you    { color: #e2e8f0; }
.tl-proc   { color: var(--muted); font-style: italic; }
.tl-action { color: #4ade80; }
.tl-scai   { color: #93c5fd; }

.tl-you-tag {
  background: rgba(255,255,255,0.08);
  color: var(--dim); font-size: 9px;
  padding: 1px 5px; border-radius: 3px;
  letter-spacing: 0.06em; flex-shrink: 0;
  margin-top: 3px;
}
.tl-scai-tag {
  background: rgba(59,130,246,0.15);
  color: var(--accent); font-size: 9px;
  padding: 1px 5px; border-radius: 3px;
  letter-spacing: 0.06em; flex-shrink: 0;
  margin-top: 3px;
}

.tl-proc-anim {
  color: var(--muted);
  font-style: italic;
  animation: proc-fade 0.8s ease-in-out forwards;
}
.tl-proc-anim::before { content: '··· analyse Claude AI...'; }
@keyframes proc-fade {
  0%   { opacity: 0.4; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}

/* ── Section helpers ──────────────────────────────────────── */
.section-label {
  display: block;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 56px;
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features {
  padding: 120px 0;
  position: relative;
}
.features::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hl), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--border-hl);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(59,130,246,0.1);
}

.feature-card--large {
  background: linear-gradient(135deg, rgba(59,130,246,0.07) 0%, rgba(99,102,241,0.04) 100%);
  border-color: rgba(59,130,246,0.18);
}
.feature-glow {
  position: absolute;
  top: -30px; left: -30px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.feature-icon-wrap {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 10px;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-card h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 14px; color: var(--dim);
  line-height: 1.65;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.5s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── DEMO SECTION ─────────────────────────────────────────── */
.demo-section {
  padding: 120px 0;
  position: relative;
}
.demo-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.03) 50%, transparent 100%);
  pointer-events: none;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.demo-command {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s;
}
.demo-command:hover,
.demo-command[data-active="true"] {
  border-color: var(--border-hl);
  background: rgba(59,130,246,0.04);
  box-shadow: 0 0 0 1px rgba(59,130,246,0.1), 0 8px 32px rgba(0,0,0,0.3);
}

.demo-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(59,130,246,0.1);
  color: var(--accent);
  border-radius: 100px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.demo-input {
  font-size: 15px; font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.demo-output {
  display: flex; gap: 8px; align-items: baseline;
  font-family: var(--mono);
  font-size: 12px; color: #4ade80;
  margin-bottom: 8px;
}
.demo-voice {
  display: flex; gap: 8px; align-items: baseline;
  font-size: 13px; color: var(--dim);
}
.demo-arrow { flex-shrink: 0; }

/* ── HOW IT WORKS ─────────────────────────────────────────── */
.how-it-works { padding: 120px 0; }

.pipeline {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: center;
  gap: 0;
}

.pipeline-step { display: block; }

.pipeline-icon {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 14px;
  color: var(--accent);
  margin-bottom: 16px;
}

.pipeline-content {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s;
}
.pipeline-content:hover { border-color: var(--border-hl); }

.pipeline-num {
  font-family: var(--mono);
  font-size: 11px; color: var(--muted);
  margin-bottom: 8px; letter-spacing: 0.05em;
}
.pipeline-content h3 {
  font-size: 16px; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.3px;
}
.pipeline-content p {
  font-size: 13px; color: var(--dim);
  line-height: 1.65;
}

.pipeline-arrow {
  display: flex; justify-content: center;
  color: var(--muted);
  margin-top: -24px;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section { padding: 80px 0 120px; }

.cta-box {
  position: relative;
  background: radial-gradient(ellipse 100% 150% at 50% 100%, rgba(59,130,246,0.07) 0%, transparent 65%),
              var(--bg2);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute; top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800; letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}
.cta-box p {
  font-size: 16px; color: var(--dim);
  line-height: 1.7;
  margin-bottom: 40px;
}
.cta-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  padding: 60px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { display: block; margin-bottom: 12px; font-size: 20px; }
.footer-brand p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-title {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px; color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}

/* ── Account pages (shared) ───────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 80px 24px 40px;
}
.auth-box {
  width: 100%; max-width: 420px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}
.auth-box .logo { display: block; text-align: center; margin-bottom: 32px; font-size: 24px; }
.auth-box h1 { font-size: 22px; font-weight: 700; text-align: center; margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-box .auth-sub { font-size: 14px; color: var(--muted); text-align: center; margin-bottom: 32px; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--dim); }
.form-group input {
  width: 100%; padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text); font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus { border-color: var(--border-hl); }

.btn-block { width: 100%; margin-top: 8px; }

.error-box {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px; color: #fca5a5;
  margin-bottom: 18px;
}
.success-box {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px; color: #86efac;
  margin-bottom: 18px;
}

.auth-footer { margin-top: 24px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-footer a { color: var(--accent); }
.auth-footer a:hover { text-decoration: underline; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; gap: 12px; }
  .pipeline-arrow { transform: rotate(90deg); margin-top: 0; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .hero-proof { flex-wrap: wrap; gap: 0; }
  .proof-item { padding: 8px 14px; }
  .proof-sep { display: none; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  nav ul { display: none; }
}
