:root {
  --bg: #0a0e17;
  --bg-surface: #0f1420;
  --bg-card: #141a28;
  --bg-elevated: #1a2236;
  --fg: #e2e8f0;
  --fg-dim: #8892a4;
  --fg-muted: #5a6478;
  --accent: #00d4ff;
  --accent-glow: rgba(0, 212, 255, 0.15);
  --accent-warm: #ff8c00;
  --accent-warm-glow: rgba(255, 140, 0, 0.15);
  --danger: #ff6b35;
  --success: #00e676;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

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

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

.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 255, 0.06) 30%, rgba(0, 212, 255, 0.06) 70%, transparent);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-content {
  max-width: 640px;
  text-align: left;
  z-index: 2;
  flex: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  background: var(--accent-glow);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #fff;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
  flex: 0 0 auto;
  z-index: 2;
  display: none;
}

@media (min-width: 960px) {
  .hero {
    flex-direction: row;
    gap: 80px;
    padding: 80px 60px;
    justify-content: center;
  }
  .hero-visual {
    display: block;
  }
}

/* Drone Viz */
.drone-viz {
  position: relative;
  width: 280px;
  height: 280px;
}

.viz-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 280px;
  height: 280px;
  border-color: rgba(0, 212, 255, 0.08);
}

.ring-2 {
  width: 200px;
  height: 200px;
  border-color: rgba(0, 212, 255, 0.15);
}

.ring-3 {
  width: 120px;
  height: 120px;
  border-color: rgba(0, 212, 255, 0.25);
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.7; }
}

.viz-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.data-float {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  white-space: nowrap;
  animation: float-data 4s ease-in-out infinite;
}

.df-1 { top: 10px; right: -20px; animation-delay: 0s; }
.df-2 { bottom: 10px; right: -30px; animation-delay: 1s; }
.df-3 { bottom: 30px; left: -30px; animation-delay: 2s; }
.df-4 { top: 30px; left: -20px; animation-delay: 3s; }

@keyframes float-data {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50% { transform: translateY(-6px); opacity: 1; }
}

.mono { font-family: var(--font-mono); }

/* ======== PROBLEM ======== */
.problem {
  padding: 100px 24px;
  background: var(--bg-surface);
}

.problem-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.problem-quote {
  margin-bottom: 60px;
}

.problem-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--fg-dim);
  font-style: italic;
  line-height: 1.5;
}

.quote-attr {
  display: block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.problem-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pcard {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.pcard-icon {
  margin-bottom: 16px;
}

.pcard h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #fff;
}

.pcard p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ======== TUNING ======== */
.tuning {
  padding: 100px 24px;
}

.tuning-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 768px) {
  .tuning-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .tuning-text { flex: 1; }
  .tuning-viz { flex: 1; }
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.feature-title.centered { text-align: center; }

.tuning-text p,
.footage-text p {
  font-size: 0.95rem;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  font-size: 0.9rem;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 10px;
}

.check {
  color: var(--success);
  font-weight: 700;
  font-size: 0.85rem;
}

/* CLI Window */
.cli-window {
  background: #0c1018;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cli-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cli-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.cli-dot.red { background: #ff5f57; }
.cli-dot.yellow { background: #ffbd2e; }
.cli-dot.green { background: #28ca42; }

.cli-title {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-muted);
  margin-left: 8px;
}

.cli-body {
  padding: 20px;
  overflow-x: auto;
}

.cli-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.8;
  white-space: pre;
  display: block;
}

.c-comment { color: var(--fg-muted); }
.c-cmd { color: var(--accent); }
.c-val { color: var(--accent-warm); font-weight: 600; }
.c-success { color: var(--success); }

/* ======== FOOTAGE ======== */
.footage {
  padding: 100px 24px;
  background: var(--bg-surface);
}

.footage-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (min-width: 768px) {
  .footage-inner {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }
  .footage-viz { flex: 1.2; }
  .footage-text { flex: 1; }
}

/* Timeline */
.timeline {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.timeline-track {
  display: flex;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}

.tl-segment {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-segment.normal {
  background: rgba(255, 255, 255, 0.04);
}

.tl-segment.highlight {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.25), rgba(0, 212, 255, 0.15));
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.tl-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--accent);
  white-space: nowrap;
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-muted);
}

/* ======== WORKFLOW ======== */
.workflow {
  padding: 100px 24px;
}

.workflow-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.workflow-inner .section-label,
.workflow-inner .feature-title {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  margin-top: 60px;
  text-align: left;
}

.step {
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.12);
  line-height: 1;
  margin-bottom: 8px;
}

.step-line {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 16px;
}

.step h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ======== TELEMETRY ======== */
.telemetry {
  padding: 100px 24px;
  background: var(--bg-surface);
}

.telemetry-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.telemetry-inner .section-label {
  text-align: center;
}

.tele-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 60px;
  text-align: left;
}

.tele-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.tele-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
}

.tele-icon {
  margin-bottom: 16px;
}

.tele-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.tele-card p {
  font-size: 0.85rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

/* ======== CLOSING ======== */
.closing {
  padding: 120px 24px;
  text-align: center;
  position: relative;
}

.closing-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.closing-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.closing p {
  font-size: 1.05rem;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* ======== FOOTER ======== */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--fg-dim);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover { color: var(--accent); }

.footer-meta {
  font-size: 0.75rem;
  color: var(--fg-muted);
}

/* ======== CTA BUTTON ======== */
.hero-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  margin-bottom: 32px;
  transition: all 0.2s;
}
.hero-cta:hover {
  background: #33dfff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.25);
  transform: translateY(-1px);
}

/* ======== RESPONSIVE ======== */
@media (max-width: 375px) {
  .hero { padding: 60px 16px; }
  .hero-stats { gap: 16px; }
  .stat-divider { display: none; }
  .problem, .tuning, .footage, .workflow, .telemetry { padding: 60px 16px; }
  .closing { padding: 80px 16px; }
}

@media (max-width: 480px) {
  .tl-tag { font-size: 6px; }
}