*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--lid-bg);
  color: var(--lid-muted);
  font-family: var(--font-body);
  line-height: 1.55;
}

a { color: var(--lid-blue); }

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--lid-border);
}

.brand,
.topbar nav a {
  color: var(--lid-muted);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.brand { color: var(--lid-text); }

.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar nav a:hover { color: var(--lid-text); }
.topbar nav .nav-github { color: var(--lid-green); }

.hero {
  position: relative;
  min-height: 720px;
  padding-block: 94px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  right: -270px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lid-green) 12%, transparent), transparent 68%);
}

.overline {
  margin: 0 0 22px;
  color: var(--lid-muted);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.overline span {
  width: 7px;
  height: 7px;
  margin-right: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--lid-green);
  box-shadow: 0 0 14px var(--lid-green);
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--lid-text);
  font-family: var(--font-display);
}

h1 {
  margin-bottom: 30px;
  font-size: clamp(2.75rem, 5.7vw, 5.15rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--lid-green);
  font-style: normal;
}

h2 {
  max-width: 850px;
  margin-bottom: 34px;
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.03rem;
}

.hero-lead {
  max-width: 630px;
  margin-bottom: 16px;
  color: var(--lid-text);
  font-size: clamp(1.03rem, 1.7vw, 1.24rem);
}

.hero-solution {
  max-width: 600px;
  margin-bottom: 31px;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.button {
  min-height: 50px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--lid-border);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

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

.button-primary {
  border-color: var(--lid-green);
  background: var(--lid-green);
  color: var(--lid-bg);
}

.button-primary:hover { background: var(--lid-green-dark); }

.button-ghost {
  background: var(--lid-surface);
  color: var(--lid-text);
}

.button-ghost:hover { border-color: var(--lid-muted); }

.hero-meta {
  color: var(--lid-muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
}

.agent-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lid-border);
  border-radius: 16px;
  background: var(--lid-surface);
  box-shadow: 0 32px 90px var(--lid-shadow);
}

.window-bar {
  min-height: 49px;
  padding-inline: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--lid-border);
  color: var(--lid-muted);
  font-family: var(--font-display);
  font-size: 0.64rem;
}

.window-dots { display: flex; gap: 6px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lid-border); }
.window-dots i:first-child { background: var(--signal); }
.window-dots i:nth-child(2) { background: var(--lid-yellow); }
.window-dots i:last-child { background: var(--lid-green); }

.live { justify-self: end; color: var(--lid-green); }
.live b { width: 6px; height: 6px; margin-right: 5px; display: inline-block; border-radius: 50%; background: var(--lid-green); }

.terminal {
  min-height: 285px;
  padding: 30px 28px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  line-height: 2;
}

.command { color: var(--lid-text); }
.command > span { color: var(--lid-green); }
.terminal-line { padding-left: 12px; }
.terminal-line.muted { color: var(--lid-muted); }
.terminal-line.muted b { color: var(--lid-text); font-weight: 500; }
.terminal-line.success { color: var(--lid-green); }
.terminal-line.active { margin-top: 16px; color: var(--lid-text); }
.terminal-line.active span { width: 7px; height: 7px; margin-right: 8px; display: inline-block; border-radius: 50%; background: var(--lid-green); box-shadow: 0 0 13px var(--lid-green); }

.progress {
  width: 78%;
  height: 3px;
  margin: 5px 0 3px 12px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--lid-border);
}

.progress i { width: 71%; height: 100%; display: block; background: var(--lid-green); box-shadow: 0 0 12px var(--lid-green); }

.lid-action {
  position: relative;
  z-index: 1;
  margin: 0 18px 18px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid color-mix(in srgb, var(--lid-green) 32%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--lid-green) 8%, transparent);
}

.lid-action strong { display: block; color: var(--lid-text); font-size: 0.8rem; }
.lid-action p { margin: 3px 0 0; font-size: 0.7rem; }

.window-glow {
  position: absolute;
  width: 220px;
  height: 140px;
  right: -80px;
  bottom: -80px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--lid-green) 16%, transparent);
  filter: blur(35px);
}

.laptop {
  position: relative;
  width: 42px;
  height: 30px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 3px solid var(--lid-text);
  border-radius: 6px;
  color: var(--lid-bg);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
}

.laptop::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -7px;
  height: 3px;
  border-radius: 3px;
  background: var(--lid-text);
}

.laptop-active { background: var(--lid-green); }
.laptop-sleep { background: var(--lid-yellow); }

.pain-section {
  padding-block: 104px;
  border-block: 1px solid var(--lid-border);
  background: var(--lid-surface);
}

.pain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
}

.pain-copy { padding-top: 44px; }
.pain-copy p { color: var(--lid-muted); font-size: 1.02rem; }
.pain-copy strong { display: block; margin-top: 25px; color: var(--lid-green); font-family: var(--font-display); font-size: 0.88rem; }

.flow-section { padding-block: 116px 126px; }

.flow {
  margin: 58px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
}

.flow li {
  position: relative;
  min-width: 0;
  padding: 25px 24px 29px;
  border: 1px solid var(--lid-border);
  border-radius: 12px;
  background: var(--lid-surface);
}

.step-number {
  color: var(--lid-green);
  font-family: var(--font-display);
  font-size: 0.7rem;
}

.step-visual {
  height: 92px;
  margin-block: 24px 20px;
  display: flex;
  align-items: center;
}

.flow p { margin-bottom: 0; font-size: 0.88rem; }

.agent-pulse { gap: 8px; align-items: flex-end; }
.agent-pulse i { width: 7px; border-radius: 4px; background: var(--lid-green); }
.agent-pulse i:first-child { height: 28px; opacity: 0.5; }
.agent-pulse i:nth-child(2) { height: 52px; }
.agent-pulse i:last-child { height: 39px; opacity: 0.72; }

.done-mark { color: var(--lid-green); font-family: var(--font-display); font-size: 3.2rem; }

.control-section {
  padding-block: 110px;
  border-block: 1px solid var(--lid-border);
  background: var(--lid-surface);
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(430px, 1fr);
  gap: clamp(60px, 10vw, 140px);
  align-items: center;
}

.control-copy p:last-child { max-width: 570px; font-size: 1rem; }
.control-copy code { color: var(--lid-yellow); }

.mode-card {
  overflow: hidden;
  border: 1px solid var(--lid-border);
  border-radius: 14px;
  background: var(--lid-bg);
}

.mode-row {
  min-height: 88px;
  padding: 18px 21px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid var(--lid-border);
}

.mode-row.selected { background: color-mix(in srgb, var(--lid-green) 6%, transparent); }
.mode-row strong, .mode-row span { display: block; }
.mode-row strong { color: var(--lid-text); font-size: 0.84rem; }
.mode-row span { margin-top: 4px; font-size: 0.7rem; }
.mode-row > b { color: var(--lid-green); }

.energy-row { padding: 19px 21px; }
.energy-row > span { display: block; margin-bottom: 12px; font-family: var(--font-display); font-size: 0.65rem; }
.energy-row div { display: flex; gap: 8px; }
.energy-row b { padding: 6px 9px; border: 1px solid var(--lid-border); border-radius: 5px; color: var(--lid-muted); font-family: var(--font-display); font-size: 0.6rem; }
.energy-row b.active { border-color: var(--lid-green); color: var(--lid-green); }

.install-section { padding-block: 116px; }
.install-section h2 { margin-bottom: 48px; }

.brew-command {
  min-height: 74px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--lid-green-dark);
  border-radius: 11px;
  background: var(--lid-surface);
  box-shadow: 0 0 45px color-mix(in srgb, var(--lid-green) 6%, transparent);
}

.brew-command code { overflow-x: auto; color: var(--lid-text); font-family: var(--font-display); font-size: clamp(0.75rem, 1.5vw, 0.94rem); white-space: nowrap; }
.brew-command code span { color: var(--lid-green); }
.copy-hint { color: var(--lid-muted); font-family: var(--font-display); font-size: 0.66rem; }

.install-options {
  margin-top: 19px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.install-options article { min-width: 0; padding: 24px; border: 1px solid var(--lid-border); border-radius: 10px; background: var(--lid-surface); }
.install-options article > span { color: var(--lid-green); font-family: var(--font-display); font-size: 0.67rem; }
.install-options h3 { margin-top: 23px; }
.install-options p { margin-bottom: 0; font-size: 0.83rem; }
.install-options code { overflow-wrap: anywhere; color: var(--lid-text); font-family: var(--font-display); font-size: 0.72rem; }

.release-note { max-width: 870px; margin: 25px 0 0; font-size: 0.76rem; }

.safety {
  margin-block: 18px 94px;
  padding: 27px 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid color-mix(in srgb, var(--lid-yellow) 35%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--lid-yellow) 6%, transparent);
}

.safety-sign { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--lid-yellow); color: var(--lid-bg); font-family: var(--font-display); font-weight: 700; }
.safety h2 { margin: 1px 0 7px; font-size: 1rem; letter-spacing: 0; }
.safety p { margin-bottom: 0; font-size: 0.87rem; }
.safety code { color: var(--lid-yellow); }

.final-cta { padding-block: 110px 130px; text-align: center; }
.final-cta h2 { margin-inline: auto; }
.final-icon { height: 70px; display: flex; justify-content: center; }
.actions-center { justify-content: center; }

footer { border-top: 1px solid var(--lid-border); }
.footer-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--lid-muted); font-family: var(--font-display); font-size: 0.7rem; }
.footer-inner a { color: var(--lid-text); }

@media (max-width: 900px) {
  .hero, .pain-grid, .control-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .agent-window { width: min(100%, 620px); }
  .pain-copy { padding-top: 0; }
  .flow, .install-options { grid-template-columns: 1fr; }
  .step-visual { height: 70px; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .topbar { min-height: 62px; }
  .topbar nav a:not(.nav-github) { display: none; }
  .hero { gap: 55px; padding-block: 62px 78px; }
  h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .actions, .button { width: 100%; }
  .window-bar { grid-template-columns: 1fr 1fr; }
  .window-bar > span { display: none; }
  .terminal { min-height: 250px; padding: 23px 18px; font-size: 0.67rem; }
  .lid-action { margin: 0 11px 11px; padding: 15px; gap: 14px; }
  .lid-action p { display: none; }
  .pain-section, .flow-section, .control-section, .install-section, .final-cta { padding-block: 78px; }
  .mode-row { gap: 16px; }
  .brew-command { padding: 0 14px; }
  .copy-hint { display: none; }
  .safety { margin-bottom: 60px; padding: 21px 18px; }
  .footer-inner { padding-block: 25px; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
