:root {
  /* Colors */
  --color-bg-primary: #0a0a0b;
  --color-bg-secondary: #141415;
  --color-bg-tertiary: #1c1c1e;
  --color-text-primary: #fafafa;
  --color-text-secondary: #b8b8c0;
  --color-text-muted: #909099;
  --color-accent: #0d9488;
  --color-accent-hover: #14b8a6;
  --color-warning: #dc2626;
  --color-warning-muted: #991b1b;
  --color-border: #27272a;
  --color-code-bg: #18181b;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 1100px;
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: var(--color-text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: var(--space-4);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(10, 10, 11, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.nav {
  display: flex;
  gap: var(--space-6);
}

.nav-link {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: var(--space-24) 0;
  text-align: center;
}

.hero-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.hero-link {
  color: var(--color-accent);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color 0.15s;
}

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

.hero-link:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

.hero-badge {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.badge-separator {
  width: 4px;
  height: 4px;
  background-color: var(--color-border);
  border-radius: 50%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}

.btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-text-primary);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
}

/* Sections */
.section {
  padding: var(--space-16) 0;
  text-align: center;
}

.section-alt {
  background-color: var(--color-bg-secondary);
}

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

.section-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-8);
}

/* Problem Section */
.problem-hook {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.problem-closing {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-top: var(--space-8);
  font-style: italic;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-card {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  text-align: center;
}

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.stat-source {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
  opacity: 0.7;
}

.stats-grid-2 {
  grid-template-columns: 1fr;
}

.stat-card-warning {
  border-color: var(--color-warning-muted);
}

.stat-card-warning .stat-value {
  color: var(--color-warning);
}

.stat-card-accent {
  border-color: var(--color-accent);
}

.stat-card-accent .stat-value {
  color: var(--color-accent);
}

/* Code Block */
.code-block {
  background-color: var(--color-code-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.code-block-sm {
  max-width: 100%;
}

.code-header {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background-color: var(--color-bg-tertiary);
  border-bottom: 1px solid var(--color-border);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-border);
}

.code-block pre {
  padding: var(--space-4);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  line-height: 1.6;
  margin: 0;
}

.code-block code {
  font-family: inherit;
  color: var(--color-text-secondary);
  display: block;
  min-width: max-content;
}

.code-key {
  color: #7dd3fc;
}

.code-string {
  color: #86efac;
}

.code-number {
  color: #fda4af;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  text-align: left;
  min-width: 0;
  overflow: hidden;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--color-accent);
  color: var(--color-text-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border-radius: 50%;
  margin-bottom: var(--space-4);
}

.step-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.step-icon {
  display: flex;
  justify-content: center;
  padding: var(--space-6) 0;
  color: var(--color-accent);
}

.step-description {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Tabs */
.tabs {
  margin-top: var(--space-4);
}

.tabs input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tab-labels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-1);
}

.tab-label {
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  transition: all 0.15s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab-label:hover {
  color: var(--color-text-secondary);
}

#tab-claude:checked ~ .tab-labels label[for="tab-claude"],
#tab-cursor:checked ~ .tab-labels label[for="tab-cursor"],
#tab-cline:checked ~ .tab-labels label[for="tab-cline"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

#tab-claude:focus-visible ~ .tab-labels label[for="tab-claude"],
#tab-cursor:focus-visible ~ .tab-labels label[for="tab-cursor"],
#tab-cline:focus-visible ~ .tab-labels label[for="tab-cline"] {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.tab-panels {
  position: relative;
}

.tab-panel {
  display: none;
}

#tab-claude:checked ~ .tab-panels #panel-claude,
#tab-cursor:checked ~ .tab-panels #panel-cursor,
#tab-cline:checked ~ .tab-panels #panel-cline {
  display: block;
}

.helper-text {
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  word-break: break-word;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.feature-card {
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
}

.feature-title {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Roadmap */
.roadmap-list {
  list-style: none;
  margin-bottom: var(--space-8);
  display: inline-block;
  text-align: left;
}

.roadmap-list li {
  position: relative;
  padding-left: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text-secondary);
}

.roadmap-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
}

/* Honeypot - hidden from humans, bots fill it out */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  z-index: -1;
}

/* Notify Form */
.notify-form {
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: var(--space-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.notify-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.notify-input-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: stretch;
}

.notify-input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--color-bg-tertiary);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: border-color 0.15s;
}

.notify-input::placeholder {
  color: var(--color-text-muted);
}

.notify-input:focus {
  outline: none;
  border-color: var(--color-accent);
}

.notify-input.input-invalid {
  border-color: var(--color-warning);
}

.input-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.input-error {
  font-size: var(--font-size-xs);
  color: var(--color-warning);
  min-height: 1rem;
}

.notify-input-group .btn {
  padding: var(--space-3) var(--space-4);
  white-space: nowrap;
  border: 1px solid transparent;
}

/* Button loading state */
.btn[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
}

.btn-loading[hidden] {
  display: none;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Success/Error messages */
.notify-success,
.notify-error {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  line-height: 1.5;
  margin-top: var(--space-4);
}

.notify-success {
  background-color: rgba(13, 148, 136, 0.1);
  border: 1px solid var(--color-accent);
  color: var(--color-accent-hover);
}

.notify-success svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.notify-error {
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid var(--color-warning);
  color: #fca5a5;
}

.notify-success[hidden],
.notify-error[hidden] {
  display: none;
}

/* Footer */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--color-text-primary);
}

.footer-links a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Mobile adjustments */
@media (max-width: 639px) {
  .container {
    padding: 0 var(--space-4);
  }

  .step {
    padding: var(--space-4);
  }

  .code-block pre {
    padding: var(--space-3);
    font-size: var(--font-size-xs);
  }

  .code-header {
    padding: var(--space-2) var(--space-3);
  }

  .code-dot {
    width: 8px;
    height: 8px;
  }
}

/* Tablet (640px+) */
@media (min-width: 640px) {
  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-cta {
    flex-direction: row;
    justify-content: center;
  }

  .problem-hook {
    font-size: var(--font-size-3xl);
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .notify-input-group {
    flex-direction: row;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hero {
    padding: var(--space-24) 0 var(--space-16);
  }

  .hero-title {
    font-size: 3rem;
  }

  .section {
    padding: var(--space-24) 0;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }

  .step {
    padding: var(--space-8);
  }
}
