/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --bg-color: #ffffff;
  --bg-alt: #f9fafb;
  --border-color: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section (default) */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 8rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Sections (default) */
.section {
  padding: 5rem 0;
}

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

.section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.section p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.section ol,
.section ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.section li {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.section code {
  background-color: var(--bg-alt);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-family: "Monaco", "Courier New", monospace;
  font-size: 0.9em;
  color: var(--primary-color);
}

/* Features Grid (default) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-card p {
  color: var(--text-light);
  margin: 0;
}

/* Footer */
.footer {
  background-color: var(--text-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

.footer p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section h2 {
    font-size: 2rem;
  }

  .container {
    padding: 0 1rem;
  }

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

/* =========================================================
   Hacky Theme: terminal-ish, minimal neon, readable
   ========================================================= */

/* Force the hacky hero to override default .hero background */
.hero.hero--hacky {
  position: relative;
  padding: 5rem 0 3rem;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(0, 255, 170, 0.12), transparent 60%),
    radial-gradient(900px 500px at 80% 0%, rgba(120, 90, 255, 0.12), transparent 55%),
    linear-gradient(180deg, #070A0F, #05070B);
  color: #e8eef9;
  text-align: left;
}

/* Keep container readable on dark hero */
.hero.hero--hacky .container {
  position: relative;
  z-index: 1;
}

.hero.hero--hacky::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.25;
  pointer-events: none;
}

.hero.hero--hacky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 4px
  );
  opacity: 0.15;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-kicker {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  opacity: 0.8;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hero-title--mono,
.hero-subtitle--mono,
.h2--mono,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.prompt {
  color: #00ffaa;
  margin-right: 0.4rem;
}

/* Hacky CTA */
.cta-button.cta-button--hacky {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 170, 0.35);
  background: rgba(0, 0, 0, 0.35);
  color: #e8eef9;
  text-decoration: none;
  box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.08);
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
  animation: none;
}

.cta-button.cta-button--hacky:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 255, 170, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 255, 170, 0.12);
}

.hero-meta {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.85rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(232, 238, 249, 0.9);
}

/* Dark sections */
.section.section--hacky {
  background: #05070B;
  color: #e8eef9;
}

.section.section-alt.section--hacky {
  background: #070A0F;
  color: #e8eef9;
}

/* Typography overrides inside hacky sections */
.section--hacky h1,
.section--hacky h2,
.section--hacky h3,
.section--hacky h4 {
  color: #e8eef9;
}

.section--hacky p,
.section--hacky li {
  color: rgba(232, 238, 249, 0.85);
}

/* Links on dark */
.section--hacky a {
  color: #00ffaa;
}

.section--hacky a:hover {
  opacity: 0.9;
}

/* Code on dark */
.section--hacky code {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255,255,255,0.12);
  color: #00ffaa;
}

/* Hacky feature cards: work with or without parent modifier */
.feature-card--hacky,
.features-grid--hacky .feature-card--hacky {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  overflow: hidden;
  padding: 0;
}

/* If you still use inner padding in markup, add it back here */
.feature-card--hacky > p {
  padding: 1rem 1.1rem 1.2rem;
  margin: 0;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
}

.card-title {
  margin-left: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  opacity: 0.9;
  color: rgba(232, 238, 249, 0.9);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  opacity: 0.85;
  border: 1px solid rgba(0,0,0,0.35);
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

/* Steps list (ordered list) */
.steps--hacky {
  padding-left: 1.25rem;
}

.steps--hacky li {
  margin-bottom: 0.75rem;
}

/* Muted helper text */
.muted {
  opacity: 0.75;
}
