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

:root {
  --term-bg: #0a0a0a;
  --term-panel: #111111;
  --term-panel-soft: #0f1611;
  --term-border: #1a3a1a;
  --term-green: #00ff41;
  --term-green-dim: #00cc33;
  --term-green-muted: #0a7a2a;
  --term-amber: #ffb000;
  --term-red: #ff3333;
  --term-cyan: #00d4ff;
  --term-text: #b0ffb0;
  --term-text-dim: #4a7a4a;
  --term-white: #e8ffe8;
  --mono: "JetBrains Mono", "Fira Code", "Cascadia Code", "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --hand: "Reenie Beanie", "Comic Sans MS", cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--term-bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--term-text);
  background:
    radial-gradient(circle at 20% 0%, rgba(0, 255, 65, 0.05), transparent 28%),
    linear-gradient(180deg, #070807 0%, var(--term-bg) 28%, #050805 100%);
  font-family: var(--mono);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 255, 65, 0.018) 2px 4px);
  mix-blend-mode: screen;
}

::selection {
  color: var(--term-bg);
  background: var(--term-green);
}

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

code,
pre,
button {
  font-family: var(--mono);
}

p code,
span code {
  border: 1px solid rgba(0, 212, 255, 0.26);
  border-radius: 3px;
  padding: 0 4px;
  color: var(--term-cyan);
  background: rgba(0, 212, 255, 0.06);
  font-size: 0.92em;
}

.site-header {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(14px, 4vw, 48px);
  border-bottom: 1px solid rgba(26, 58, 26, 0.82);
  color: var(--term-text);
  background: rgba(17, 17, 17, 0.82);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--term-green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(0, 255, 65, 0.45), 0 0 20px rgba(0, 255, 65, 0.2);
}

.brand-mark {
  width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--term-border);
  border-radius: 6px;
  color: var(--term-bg);
  background: var(--term-green);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.18);
}

.nav-links {
  display: flex;
  gap: clamp(10px, 2.4vw, 24px);
  color: var(--term-text-dim);
  font-size: 12px;
}

.nav-links a {
  padding: 4px 0;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--term-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.hero {
  position: relative;
  height: 86svh;
  min-height: 600px;
  max-height: 820px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  border-bottom: 1px solid var(--term-border);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.1) brightness(0.76);
  transform: scale(1.015);
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 8, 6, 0.92) 0%, rgba(6, 8, 6, 0.76) 42%, rgba(6, 8, 6, 0.22) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.8), rgba(10, 10, 10, 0.16) 56%);
}

.hero-content {
  width: min(1240px, calc(100% - 34px));
  margin: 0 0 clamp(36px, 8vh, 70px) clamp(17px, 5vw, 72px);
  color: var(--term-white);
}

.terminal-line {
  margin: 0 0 14px;
  color: var(--term-text);
  font-size: clamp(12px, 1.55vw, 16px);
  line-height: 1.45;
}

.terminal-line span {
  color: var(--term-green);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--term-amber);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  color: var(--term-green);
  font-size: clamp(42px, 7.2vw, 104px);
  font-weight: 800;
  line-height: 0.96;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.45), 0 0 28px rgba(0, 255, 65, 0.18);
}

h2 {
  margin: 0;
  color: var(--term-white);
  font-size: clamp(26px, 3.35vw, 48px);
  font-weight: 800;
  line-height: 1.05;
}

h3 {
  margin: 0;
  color: var(--term-green);
  font-size: 17px;
  font-weight: 700;
}

.hero-copy {
  width: min(720px, 100%);
  margin: 20px 0 0;
  color: rgba(176, 255, 176, 0.86);
  font-size: clamp(15px, 1.72vw, 20px);
  line-height: 1.55;
}

.hero-install-console {
  position: relative;
  width: min(100%, 1240px);
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 65, 0.38);
  border-radius: 10px;
  background: rgba(5, 10, 5, 0.72);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.08), 0 0 34px rgba(0, 255, 65, 0.08);
}

.hero-install-title {
  min-height: 62px;
  display: flex;
  align-items: center;
  padding: 0 clamp(28px, 3vw, 34px);
  border-bottom: 1px solid rgba(0, 255, 65, 0.32);
  color: rgba(176, 255, 176, 0.52);
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: 800;
}

.hero-install-console pre {
  margin: 0;
  padding: clamp(30px, 3.4vw, 38px) clamp(28px, 3vw, 36px);
  padding-right: 132px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--term-white);
  font-size: clamp(19px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.3;
}

.copy-button.hero-install-copy {
  top: 16px;
  right: 16px;
  min-height: 52px;
  padding: 0 22px;
  border-color: rgba(0, 255, 65, 0.55);
  border-radius: 7px;
  background: rgba(0, 255, 65, 0.08);
  color: var(--term-text);
  font-size: clamp(16px, 1.45vw, 22px);
  font-weight: 800;
}

.copy-button.hero-install-copy span {
  color: var(--term-amber);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--term-border);
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--term-text);
  background: rgba(17, 17, 17, 0.76);
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 255, 65, 0.04), 0 0 22px rgba(0, 255, 65, 0.08);
}

.button span {
  color: var(--term-amber);
}

.button.primary {
  border-color: rgba(0, 255, 65, 0.72);
  color: var(--term-bg);
  background: var(--term-green);
}

.button.primary span {
  color: var(--term-bg);
}

.button:hover {
  border-color: var(--term-green);
  color: var(--term-green);
}

.button.primary:hover {
  color: var(--term-bg);
  filter: brightness(1.12);
}

.section-inner {
  width: min(1180px, calc(100% - 34px));
  margin: 0 auto;
}

.workflow-band,
.compare,
.surfaces,
.examples,
.intelligence,
.providers,
.install {
  position: relative;
  padding: clamp(52px, 8vw, 94px) 0;
  border-bottom: 1px solid var(--term-border);
}

.workflow-band,
.compare,
.examples,
.install {
  background: rgba(10, 10, 10, 0.92);
}

.surfaces,
.intelligence,
.providers {
  background: var(--term-panel);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading > div {
  min-width: 0;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  max-width: 760px;
}

.section-copy {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--term-text-dim);
  font-size: 14px;
  line-height: 1.7;
}

.workflow-grid,
.surface-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 14px;
}

.compare-panel pre {
  min-height: 430px;
  max-height: 620px;
}

.compare-panel.danger h3::after,
.compare-panel.success h3::after {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
}

.compare-panel.danger h3::after {
  content: "guessing";
  color: var(--term-red);
}

.compare-panel.success h3::after {
  content: "agent-ready";
  color: var(--term-green);
}

.compare-panel.danger pre {
  color: rgba(176, 255, 176, 0.72);
  background: rgba(255, 51, 51, 0.035);
}

.compare-panel.success {
  border-color: rgba(0, 255, 65, 0.42);
}

.compare-panel.success pre {
  color: var(--term-white);
  background: rgba(0, 255, 65, 0.035);
}

.workflow-grid article,
.surface-card,
.prompt-panel,
.provider-list div,
.install-command {
  border: 1px solid var(--term-border);
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.86);
  box-shadow: 0 0 40px rgba(0, 255, 65, 0.04), inset 0 0 0 1px rgba(0, 255, 65, 0.02);
}

.workflow-grid article,
.surface-card {
  position: relative;
  min-height: 220px;
  padding: 18px;
}

.workflow-grid article::before,
.surface-card::before,
.prompt-panel h3,
.install-command::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  border-bottom: 1px solid var(--term-border);
  border-radius: 6px 6px 0 0;
  background: var(--term-panel);
}

.workflow-grid article > *,
.surface-card > * {
  position: relative;
  z-index: 1;
}

.step-number,
.surface-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 24px;
  margin: 38px 0 16px;
  border: 1px solid rgba(0, 255, 65, 0.45);
  border-radius: 4px;
  color: var(--term-bg);
  background: var(--term-green);
  font-size: 12px;
  font-weight: 800;
}

.workflow-grid p,
.surface-card p,
.providers p,
.install p {
  color: var(--term-text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.surface-card code {
  display: block;
  margin-top: 16px;
  overflow-wrap: anywhere;
  border: 1px dashed rgba(0, 212, 255, 0.34);
  border-radius: 4px;
  color: var(--term-cyan);
  background: rgba(0, 212, 255, 0.06);
  padding: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.intelligence-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 1.22fr);
  gap: 34px;
  align-items: start;
}

.intelligence-layout p {
  color: var(--term-text-dim);
  font-size: 14px;
  line-height: 1.7;
}

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

.signal-grid article {
  min-height: 150px;
  border: 1px solid var(--term-border);
  border-radius: 6px;
  background: rgba(10, 10, 10, 0.72);
  padding: 16px;
}

.signal-grid strong {
  display: block;
  margin-bottom: 12px;
  color: var(--term-cyan);
  font-size: 13px;
}

.signal-grid strong::before {
  content: "./";
  color: var(--term-amber);
}

.signal-grid span {
  display: block;
  color: var(--term-text-dim);
  font-size: 12px;
  line-height: 1.62;
}

.example-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab-button {
  min-height: 34px;
  border: 1px solid var(--term-border);
  border-radius: 4px;
  padding: 8px 11px;
  color: var(--term-text-dim);
  background: var(--term-panel);
  font-size: 12px;
  cursor: pointer;
}

.tab-button::before {
  content: "[";
  color: var(--term-text-dim);
}

.tab-button::after {
  content: "]";
  color: var(--term-text-dim);
}

.tab-button.active {
  border-color: var(--term-green);
  color: var(--term-green);
  background: rgba(0, 255, 65, 0.07);
}

.example-layout {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 14px;
}

.prompt-panel {
  position: relative;
  overflow: hidden;
  padding-top: 30px;
}

.prompt-panel h3 {
  z-index: 1;
  display: flex;
  align-items: center;
  height: 30px;
  margin: 0;
  padding: 0 13px;
  color: var(--term-text-dim);
  font-size: 11px;
  text-transform: lowercase;
}

.prompt-panel h3::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--term-red);
  box-shadow: 13px 0 0 var(--term-amber), 26px 0 0 var(--term-green);
}

.prompt-panel pre {
  margin: 0;
  min-height: 320px;
  max-height: 530px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 18px;
  color: var(--term-text);
  font-size: 13px;
  line-height: 1.55;
}

.output-panel pre {
  color: var(--term-white);
  background: rgba(0, 255, 65, 0.025);
}

.provider-layout,
.install-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.provider-list {
  display: grid;
  gap: 10px;
}

.provider-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
}

.provider-list strong {
  color: var(--term-cyan);
  font-size: 13px;
}

.provider-list span {
  color: var(--term-text-dim);
  font-size: 12px;
}

.install .eyebrow {
  color: var(--term-amber);
}

.install-command {
  position: relative;
  padding: 48px 18px 18px;
}

.install-command::before {
  content: "root@one-click-improve: ~/install";
  display: flex;
  align-items: center;
  padding-left: 14px;
  color: var(--term-text-dim);
  font-size: 11px;
}

.install-command pre {
  margin: 0;
  padding-right: 84px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--term-white);
  font-size: 13px;
  line-height: 1.55;
}

.copy-button {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(0, 255, 65, 0.38);
  border-radius: 4px;
  color: var(--term-text);
  background: rgba(0, 255, 65, 0.07);
  padding: 5px 8px;
  font-size: 11px;
  cursor: pointer;
}

.copy-button span {
  color: var(--term-amber);
}

.copy-button:hover {
  border-color: var(--term-green);
  color: var(--term-green);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(17px, 4vw, 48px);
  color: var(--term-text-dim);
  background: var(--term-bg);
  font-size: 12px;
}

.site-footer span {
  color: var(--term-green);
  font-family: var(--hand);
  font-size: 24px;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    height: 88svh;
    min-height: 760px;
  }

  .hero-content {
    margin: 0 17px 38px;
  }

  .section-heading,
  .compare-layout,
  .workflow-grid,
  .surface-grid,
  .example-layout,
  .intelligence-layout,
  .provider-layout,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .workflow-grid article,
  .surface-card {
    min-height: 0;
  }

  .prompt-panel pre {
    min-height: 220px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 10px 14px;
  }

  .brand {
    max-width: 100%;
    font-size: 12px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-install-title {
    min-height: 54px;
    padding: 0 18px;
    padding-right: 108px;
    font-size: 12px;
  }

  .hero-install-console pre {
    padding: 24px 18px;
    font-size: 16px;
  }

  .copy-button.hero-install-copy {
    top: 7px;
    right: 14px;
    min-height: 40px;
    padding: 0 14px;
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .workflow-band,
  .compare,
  .surfaces,
  .examples,
  .intelligence,
  .providers,
  .install {
    padding: 48px 0;
  }

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

  .compare-panel pre {
    min-height: 300px;
  }

  .provider-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .install-command pre {
    padding-right: 0;
    padding-top: 32px;
  }

  .copy-button {
    top: 38px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
