:root {
  color-scheme: dark;
  --bg: #111312;
  --panel: #1e1e1e;
  --panel-strong: #2d2d2d;
  --surface: #3a3a3a;
  --green: #00ff41;
  --green-soft: rgba(0, 255, 65, 0.13);
  --amber: #ffb000;
  --blue: #4fc3f7;
  --red: #ff4444;
  --text: #f6f7f5;
  --muted: #b0b8b3;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(79, 195, 247, 0.15), transparent 32rem),
    radial-gradient(circle at 12% 28%, rgba(0, 255, 65, 0.11), transparent 28rem),
    var(--bg);
  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--text);
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(17, 19, 18, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--green);
  font-weight: 800;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.brand span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.site-footer a:hover {
  color: var(--green);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--green);
  border-radius: 6px;
  font-weight: 800;
}

.header-action,
.primary-button {
  background: var(--green);
  color: #071109;
}

.secondary-button {
  color: var(--green);
  background: rgba(0, 255, 65, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: clamp(34px, 7vw, 94px);
  min-height: calc(100vh - 72px);
  padding: clamp(48px, 8vw, 94px) clamp(18px, 4vw, 64px);
}

.prompt,
.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.4vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.hero-text {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 38px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(30, 30, 30, 0.72);
  border-radius: 8px;
}

.hero-stats dt {
  color: var(--amber);
  font-size: 20px;
  font-weight: 900;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.phone-stage {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 390px);
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  background: linear-gradient(145deg, #090b0a, #242a27);
  box-shadow: var(--shadow);
}

.phone-speaker {
  width: 84px;
  height: 6px;
  margin: 3px auto 12px;
  border-radius: 999px;
  background: #343a36;
}

.app-screen {
  min-height: 680px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 255, 65, 0.42);
  border-radius: 24px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 4px),
    #101511;
}

.terminal-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  color: var(--muted);
  font-size: 12px;
}

.terminal-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-topbar span:nth-child(2) {
  background: var(--amber);
}

.terminal-topbar span:nth-child(3) {
  background: var(--green);
}

.terminal-topbar strong {
  margin-left: auto;
}

.ascii-logo {
  margin: 24px 0 20px;
  color: var(--green);
  font-size: 10px;
  line-height: 1.2;
  white-space: pre;
}

.terminal-line {
  margin: 8px 0;
  color: var(--text);
  font-size: 13px;
}

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

.terminal-line.info {
  color: var(--blue);
}

.terminal-menu {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(79, 195, 247, 0.45);
  border-radius: 8px;
  background: rgba(79, 195, 247, 0.08);
}

.terminal-menu span {
  grid-row: span 2;
  color: var(--blue);
  font-weight: 900;
}

.terminal-menu small {
  color: var(--muted);
}

.terminal-menu.active {
  border-color: rgba(0, 255, 65, 0.55);
  background: var(--green-soft);
}

.terminal-menu.active span {
  color: var(--green);
}

.terminal-menu.amber {
  border-color: rgba(255, 176, 0, 0.5);
  background: rgba(255, 176, 0, 0.08);
}

.terminal-menu.amber span {
  color: var(--amber);
}

.demo-band,
.content-section,
.split-section,
.manual-section,
.download-section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 64px);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.demo-console {
  max-width: 1060px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(0, 255, 65, 0.38);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.62);
  box-shadow: var(--shadow);
}

.demo-console label {
  display: block;
  margin-bottom: 12px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 800;
}

.input-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.input-row span {
  color: var(--green);
  font-size: 14px;
}

.input-row input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--surface);
  border-radius: 6px;
  background: #0c0f0d;
  color: var(--text);
  outline: none;
}

.input-row input:focus {
  border-color: var(--green);
}

.input-row button,
.quick-examples button {
  min-height: 42px;
  border: 1px solid rgba(79, 195, 247, 0.55);
  border-radius: 6px;
  background: rgba(79, 195, 247, 0.11);
  color: var(--blue);
  cursor: pointer;
}

#cron-output {
  display: block;
  min-height: 54px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.045);
  line-height: 1.5;
}

#cron-output.error {
  color: var(--red);
}

.quick-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-examples button {
  padding: 0 14px;
}

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

.feature-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(45, 45, 45, 0.78);
}

.feature-index {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--blue);
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-index {
  color: var(--green);
}

.feature-card:nth-child(3) .feature-index {
  color: var(--amber);
}

.feature-card p,
.split-section p,
.manual-copy p,
.download-section p {
  color: var(--muted);
  line-height: 1.7;
}

.split-section,
.manual-section,
.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  border-top: 1px solid var(--line);
}

.workflow-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.72);
}

.workflow-list strong {
  color: var(--green);
}

.workflow-list span {
  color: var(--muted);
  line-height: 1.6;
}

code {
  color: var(--amber);
}

.manual-section {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.9fr);
}

.cron-map {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 176, 0, 0.42);
  border-radius: 8px;
  background: rgba(255, 176, 0, 0.08);
  overflow: auto;
}

.cron-map pre {
  margin: 0;
  color: var(--amber);
  line-height: 1.6;
}

.download-section {
  grid-template-columns: auto minmax(0, 1fr) auto;
  background: linear-gradient(90deg, rgba(0, 255, 65, 0.08), rgba(79, 195, 247, 0.08));
}

.download-section img {
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.38);
}

.download-section h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .split-section,
  .manual-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .download-section {
    justify-items: start;
  }
}

@media (max-width: 620px) {
  .header-action {
    display: none;
  }

  .brand span {
    max-width: 230px;
  }

  .hero-stats,
  .input-row,
  .workflow-list li {
    grid-template-columns: 1fr;
  }

  .app-screen {
    min-height: 580px;
    padding: 14px;
  }

  .ascii-logo {
    font-size: 7px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }
}
