:root {
  --bg: #0a0a0a;
  --bg-surface: #111111;
  --bg-elevated: #1a1a1a;
  --fg: #f0f0f0;
  --fg-muted: #888888;
  --fg-dim: #555555;
  --accent: #FF4500;
  --accent-dim: rgba(255, 69, 0, 0.15);
  --border: #222222;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --terminal-green: #39FF14;
  --terminal-blue: #58A6FF;
  --terminal-yellow: #FFB347;
}

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

html { font-size: 16px; }

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

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* — NAV — */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.logo-bracket { color: var(--accent); }
.nav-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terminal-green);
  box-shadow: 0 0 6px var(--terminal-green);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* — HERO — */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,69,0,0.07) 0%, transparent 70%);
}
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 69, 0, 0.25);
  border-radius: 4px;
  padding: 5px 12px;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title-accent { color: var(--accent); }
.hero-sub {
  max-width: 560px;
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 52px;
  font-weight: 400;
}

/* — TERMINAL — */
.hero-terminal {
  width: 100%;
  max-width: 680px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,69,0,0.08),
    0 30px 80px rgba(0,0,0,0.5),
    0 0 60px rgba(255,69,0,0.04);
  text-align: left;
}
.terminal-bar {
  background: var(--bg-elevated);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #28CA41; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  margin-left: 8px;
}
.terminal-body {
  background: var(--bg-surface);
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  min-height: 260px;
}
.t-line { margin-bottom: 2px; }
.t-prompt { color: var(--terminal-green); }
.t-comment { color: var(--fg-dim); }
.t-input { color: var(--fg-muted); }
.t-spacer { margin-bottom: 10px; }
.t-label { color: var(--terminal-yellow); font-size: 0.7rem; letter-spacing: 0.06em; }
.t-diagnosis { color: var(--fg); }
.hl-var { color: var(--terminal-blue); background: rgba(88,166,255,0.12); border-radius: 3px; padding: 0 4px; }
.t-fix { color: var(--terminal-green); }
.t-success { color: var(--terminal-green); margin-top: 8px; font-size: 0.78rem; }

/* — WORKFLOW — */
.workflow {
  padding: 100px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
}
.workflow-header { text-align: center; margin-bottom: 72px; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  flex: 0 0 280px;
  text-align: center;
  padding: 0 16px;
}
.step-connector {
  display: flex;
  align-items: center;
  padding-top: 36px;
  flex: 0 0 auto;
}
@media (max-width: 768px) {
  .step-connector { display: none; }
  .workflow-steps { flex-direction: column; align-items: center; gap: 48px; }
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid rgba(255,69,0,0.2);
  padding: 4px 10px;
  border-radius: 3px;
}
.step-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.step-desc {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* — FEATURES — */
.features {
  padding: 80px 24px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--bg-surface);
  padding: 32px 28px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-elevated); }
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border: 1px solid rgba(255,69,0,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-desc {
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* — STATS TICKER — */
.stats {
  padding: 28px 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.stats-ticker {
  display: flex;
  gap: 0;
  animation: scroll-left 30s linear infinite;
  white-space: nowrap;
}
.stats-ticker:hover { animation-play-state: paused; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.stat-item {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  padding: 0 20px;
}
.sep {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  padding: 0 4px;
  opacity: 0.4;
}

/* — CLOSING — */
.closing {
  padding: 120px 24px 100px;
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 100%, rgba(255,69,0,0.06) 0%, transparent 70%);
}
.closing-inner { max-width: 640px; margin: 0 auto; }
.closing-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}
.closing-sub {
  color: var(--fg-muted);
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 48px;
}
.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 12px;
}
.price-amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fg);
}
.price-period {
  font-size: 1.2rem;
  color: var(--fg-muted);
}
.price-desc {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

/* — FOOTER — */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}
.footer-tagline {
  color: var(--fg-dim);
  font-size: 0.82rem;
}

/* — COMPARISON TABLE — */
.comparison {
  padding: 80px 24px 100px;
  background: var(--bg);
}
.comparison-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.comparison-header {
  text-align: center;
  margin-bottom: 56px;
}
.comparison-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  margin-top: 12px;
}
.comparison-table-wrap {
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  color: var(--fg-muted);
  line-height: 1.55;
}
.comparison-table th {
  padding-bottom: 20px;
  vertical-align: bottom;
}
.tool-ripper,
.tool-cursor,
.tool-copilot {
  text-align: center;
  width: 22%;
}
.tool-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.tool-price {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}
.tool-price-unit {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 400;
}
.tool-ripper .tool-name { color: var(--fg); }
.tool-cursor .tool-name,
.tool-copilot .tool-name { color: var(--fg-muted); }

/* First column (labels) */
.col-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  width: 16%;
  padding-right: 28px;
}

/* Row dividers */
.row-divider td {
  padding: 2px 0;
  height: 1px;
}

/* Highlight Ripper column */
.tool-ripper { border-left: 2px solid var(--accent); }
.tool-ripper td,
.tool-ripper th { border-left: 2px solid var(--accent); }
.comparison-table td:first-child:not(.col-label) { border-left: 2px solid var(--accent); }

/* .val-good = Ripper advantage cells */
.val-good {
  color: var(--fg) !important;
  font-weight: 500;
}
.val-good::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* Key differentiator row */
.key-row-label {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--fg-dim);
}
.key-row-value {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  color: var(--fg) !important;
}

.comparison-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.comparison-table th:hover,
.comparison-table td:hover { background: transparent; }

.comparison-footnote {
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--fg-dim);
  text-align: center;
  font-family: var(--font-mono);
}

@media (max-width: 640px) {
  .comparison { padding: 60px 16px 80px; }
  .comparison-table th,
  .comparison-table td { padding: 12px 12px; font-size: 0.82rem; }
  .col-label { width: 22%; padding-right: 12px; }
}

/* — MOBILE — */
@media (max-width: 480px) {
  .nav-inner { padding: 12px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-terminal { font-size: 0.75rem; }
  .workflow { padding: 60px 20px; }
  .features { padding: 60px 20px; }
  .closing { padding: 80px 20px 60px; }
  .footer { padding: 32px 20px; }
}

/* Scrollbar on body */
body::-webkit-scrollbar { width: 5px; }
body::-webkit-scrollbar-track { background: var(--bg); }
body::-webkit-scrollbar-thumb { background: var(--border); }
