:root {
  color-scheme: light;
  --bg: #f6efe9;
  --bg-strong: #f1e7dc;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: #ffffff;
  --text: #1f2130;
  --muted: #5d6474;
  --line: rgba(31, 33, 48, 0.12);
  --accent: #ff6b3d;
  --accent-2: #3ec8b5;
  --accent-3: #ffcc4d;
  --shadow: 0 20px 50px rgba(31, 33, 48, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 107, 61, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(62, 200, 181, 0.16), transparent 35%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

body::before {
  top: -120px;
  right: -90px;
  background: rgba(255, 204, 77, 0.3);
}

body::after {
  bottom: -120px;
  left: -70px;
  background: rgba(62, 200, 181, 0.26);
}

.page-shell {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 0.95rem;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(255, 107, 61, 0.24);
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  padding: 28px 0 22px;
}

.hero-copy,
.hero-card,
.tool-card,
.step-card,
.insight-card,
.terminal,
.cta-section {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
  border-radius: var(--radius-lg);
}

.eyebrow {
  margin: 0 0 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.sub {
  margin: 0 0 24px;
  font-size: 1.03rem;
  color: var(--muted);
  max-width: 700px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8b53);
  color: white;
  box-shadow: 0 12px 30px rgba(255, 107, 61, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  border: 1px solid var(--line);
}

.hero-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(160deg, rgba(31, 33, 48, 0.95), rgba(41, 46, 70, 0.9));
  color: #f7f2ea;
}

.hero-card .label {
  color: #ffd166;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hero-card h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.hero-card p {
  margin: 0;
  color: rgba(247, 242, 234, 0.82);
}

.tool-grid,
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.tool-card,
.insight-card,
.step-card {
  border-radius: var(--radius-md);
  padding: 24px;
}

.icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 107, 61, 0.12);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.tool-card h3,
.insight-card h3,
.step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.tool-card p,
.step-card p,
.insight-card p,
.insight-card li {
  color: var(--muted);
}

.steps-section,
.prompt-section,
.insights-section,
.cta-section {
  margin-top: 22px;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2 {
  font-size: 1.7rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.step-number {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(255, 107, 61, 0.12);
}

.terminal {
  position: relative;
  padding: 22px 22px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(31, 33, 48, 0.96), rgba(28, 29, 34, 0.95));
  color: #f7f2ea;
}

.window-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-bar span:nth-child(1) { background: #ff6b6b; }
.window-bar span:nth-child(2) { background: #ffd166; }
.window-bar span:nth-child(3) { background: #4ecb71; }

.copy-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  line-height: 1.7;
}

.insight-card ul {
  padding-left: 18px;
  margin: 0;
}

.budget-card {
  background: linear-gradient(135deg, rgba(62, 200, 181, 0.16), rgba(255, 204, 77, 0.16));
}

.budget-total {
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
}

.cta-section {
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 107, 61, 0.12), rgba(62, 200, 181, 0.12));
}

.cta-section h2 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.cta-section p {
  color: var(--muted);
  margin: 0 auto 12px;
  max-width: 620px;
}

.cta-handle {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent);
}

footer {
  text-align: center;
  padding: 28px 0 8px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .tool-grid,
  .insights-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .page-shell {
    padding-inline: 14px;
  }

  .hero-copy,
  .hero-card,
  .tool-card,
  .step-card,
  .insight-card,
  .terminal,
  .cta-section {
    padding: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
