/* ============================================================
   Recopy Landing Page — Neobrutalist High-Contrast
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   Theme Variables
   ============================================================ */
:root {
  --primary: #f59e0b;
  --primary-hover: #d97706;
  --accent: #059669;
  --accent-hover: #047857;
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-secondary: #525252;
  --border: #0a0a0a;
  --border-width: 3px;
  --shadow: 6px 6px 0 #0a0a0a;
  --shadow-hover: 10px 10px 0 #0a0a0a;
  --radius: 12px;
  --font: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;

  /* Feature card colors */
  --card-lime: #6ee7b7;
  --card-amber: #fcd34d;
  --card-pink: #fb7185;
  --card-cyan: #67e8f9;
  --card-orange: #fdba74;
  --card-purple: #c4b5fd;
  --card-yellow: #facc15;
  --card-green: #86efac;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: #1a1a2e;
  --surface: #16213e;
  --text: #f5f5f5;
  --text-secondary: #a3a3a3;
  --border: #e5e5e5;
  --shadow: 6px 6px 0 #e5e5e5;
  --shadow-hover: 10px 10px 0 #e5e5e5;

  /* Darkened card colors */
  --card-lime: #365314;
  --card-amber: #854d0e;
  --card-pink: #9f1239;
  --card-cyan: #155e75;
  --card-orange: #9a3412;
  --card-purple: #4c1d95;
  --card-yellow: #854d0e;
  --card-green: #365314;
}

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

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
  box-shadow: var(--shadow);
  background: var(--surface);
  color: var(--text);
}

.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-hover);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--border);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--border);
}

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

.btn-outline {
  background: var(--surface);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 14px;
  box-shadow: 4px 4px 0 var(--border);
}

.btn-sm:hover {
  box-shadow: 6px 6px 0 var(--border);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 18px;
  box-shadow: 8px 8px 0 var(--border);
}

.btn-lg:hover {
  box-shadow: 12px 12px 0 var(--border);
}

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  color: #fff;
  border-bottom: var(--border-width) solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-link {
  font-weight: 700;
  font-size: 15px;
  padding: 4px 0;
  border-bottom: 3px solid transparent;
  transition: border-color 0.15s;
}

.nav-link:hover {
  border-bottom-color: var(--border);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--bg);
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font-mono);
  background: var(--accent);
  color: #fff;
  border: var(--border-width) solid var(--border);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--border);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Demo
   ============================================================ */
.demo {
  padding: 40px 0 80px;
}

.demo-window {
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--border);
  background: #1a1a1a;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: #2d2d2d;
  border-bottom: var(--border-width) solid var(--border);
}

.demo-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.3);
}

.demo-titlebar-text {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  font-family: var(--font-mono);
  margin-right: 60px;
}

.demo-img {
  display: block;
  width: 100%;
}

/* ============================================================
   Section Title (shared)
   ============================================================ */
.section-title {
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 560px;
  margin: -32px auto 48px;
  line-height: 1.7;
}

/* ============================================================
   Features
   ============================================================ */
.features {
  padding: 80px 0;
  background: var(--surface);
  border-top: var(--border-width) solid var(--border);
  border-bottom: var(--border-width) solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 800px;
}

.feature-card {
  padding: 28px 24px;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.12s, box-shadow 0.12s;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
}

.feature-card .card-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: inherit;
  z-index: 1;
}

.feature-card:hover .card-spotlight {
  opacity: 1;
}

.feature-card.is-tilting {
  transition: none;
}

.feature-card.is-tilting:hover {
  transform: none;
}

/* Alternating card colors */
.feature-card:nth-child(1) { background: var(--card-lime); }
.feature-card:nth-child(2) { background: var(--card-amber); }
.feature-card:nth-child(3) { background: var(--card-pink); }
.feature-card:nth-child(4) { background: var(--card-cyan); }
.feature-card:nth-child(5) { background: var(--card-orange); }
.feature-card:nth-child(6) { background: var(--card-purple); }
.feature-card:nth-child(7) { background: var(--card-yellow); }
.feature-card:nth-child(8) { background: var(--card-green); }

.feature-icon {
  margin-bottom: 14px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--border);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text);
  opacity: 0.8;
  line-height: 1.65;
}

/* ============================================================
   How it Works — Timeline
   ============================================================ */
.how-it-works {
  padding: 80px 0;
  background: var(--bg);
}

.timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  top: 24px;
  left: 60px;
  right: 60px;
  height: 4px;
  border-top: 4px dashed var(--border);
  z-index: 0;
}

.timeline-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--primary);
  color: #fff;
  border: var(--border-width) solid var(--border);
  border-radius: 50%;
  box-shadow: 4px 4px 0 var(--border);
  margin-bottom: 20px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}

.timeline-step:hover .timeline-number {
  transform: translateY(-8px) scale(1.15);
  box-shadow: 6px 10px 0 var(--border);
}

.timeline-content {
  padding: 0 8px;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  border: var(--border-width) solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 3px 3px 0 var(--border);
}

.timeline-icon svg {
  width: 24px;
  height: 24px;
}

.timeline-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   Tech Highlights — Comparison Table
   ============================================================ */
.tech-highlights {
  padding: 80px 0;
  background: var(--surface);
  border-top: var(--border-width) solid var(--border);
  border-bottom: var(--border-width) solid var(--border);
}

.compare-table {
  max-width: 900px;
  margin: 0 auto;
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.compare-col {
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: var(--border-width) solid var(--border);
}

.compare-col-others {
  background: var(--bg);
  color: var(--text-secondary);
}

.compare-col-recopy {
  background: var(--primary);
  color: #fff;
  border-left: var(--border-width) solid var(--border);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 2px solid var(--border);
}

.compare-row:last-child {
  border-bottom: none;
}

.compare-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  font-size: 15px;
  line-height: 1.5;
  transition: background 0.15s;
}

.compare-cell:last-child {
  border-left: var(--border-width) solid var(--border);
}

.compare-bad {
  background: var(--bg);
  color: var(--text-secondary);
}

.compare-good {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.compare-row:hover .compare-bad {
  background: color-mix(in srgb, var(--card-pink) 15%, var(--bg));
}

.compare-row:hover .compare-good {
  background: color-mix(in srgb, var(--card-lime) 20%, var(--surface));
}

.compare-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: 800;
  background: var(--card-pink);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.compare-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--border);
  border-radius: 50%;
}

/* ============================================================
   Shortcuts — Key Showcase
   ============================================================ */
.shortcuts {
  padding: 80px 0;
  background: var(--bg);
}

.key-showcase {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.key-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.key-item-accent .key-lg {
  background: var(--primary);
  color: #fff;
  border-color: var(--border);
}

.key-combo {
  display: flex;
  gap: 8px;
}

.key-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  border: var(--border-width) solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--border);
  transition: transform 0.1s, box-shadow 0.1s;
}

.key-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--border);
}

.key-lg:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--border);
}

.key-wide {
  min-width: 100px;
}

.key-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

kbd {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 6px;
  box-shadow: 2px 2px 0 var(--border);
  line-height: 1.4;
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 80px 0;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-top: var(--border-width) solid var(--border);
  border-bottom: var(--border-width) solid var(--border);
  position: relative;
}

.cta h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.cta p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 36px;
}

.cta .btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--border);
  font-size: 20px;
  padding: 18px 40px;
}

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

/* ============================================================
   Footer
   ============================================================ */
.footer {
  padding: 24px 0;
  border-top: var(--border-width) solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.footer-links a {
  font-weight: 600;
  transition: color 0.15s;
}

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

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 0 40px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .hero-desc {
    font-size: 16px;
  }

  .nav-link {
    display: none;
  }

  .section-title {
    font-size: 28px;
  }

  .section-subtitle {
    font-size: 16px;
    margin: -24px auto 36px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .timeline-line {
    display: none;
  }

  .compare-table {
    box-shadow: 4px 4px 0 var(--border);
  }

  .compare-cell {
    padding: 14px 16px;
    font-size: 13px;
    gap: 8px;
  }

  .compare-col {
    padding: 12px 16px;
    font-size: 14px;
  }

  .compare-x,
  .compare-check {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .key-showcase {
    gap: 20px;
  }

  .key-lg {
    min-width: 44px;
    height: 44px;
    font-size: 16px;
    padding: 6px 12px;
  }

  .cta h2 {
    font-size: 28px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .demo-window {
    box-shadow: 6px 6px 0 var(--border);
  }
}
