:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #637083;
  --line: #d7dde5;
  --paper: #f7f9fb;
  --white: #ffffff;
  --blue: #1f6feb;
  --mint: #18a77a;
  --coral: #df6b57;
  --charcoal: #232a31;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(247, 249, 251, 0.88);
  border-bottom: 1px solid rgba(215, 221, 229, 0.75);
  backdrop-filter: blur(16px);
}

.brand, nav, .actions, footer { display: flex; align-items: center; gap: 16px; }
.brand { font-weight: 800; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
}

nav a { color: var(--muted); font-size: 14px; font-weight: 650; }

.hero {
  min-height: calc(100vh - 65px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(52px, 8vw, 96px) clamp(20px, 5vw, 72px) 72px;
  background:
    linear-gradient(125deg, rgba(31, 111, 235, 0.10), transparent 34%),
    linear-gradient(300deg, rgba(24, 167, 122, 0.11), transparent 28%),
    var(--paper);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(56px, 9vw, 128px); line-height: 0.86; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: clamp(32px, 5vw, 56px); line-height: 1; letter-spacing: 0; }
h3 { margin-bottom: 10px; font-size: 21px; }
.lead { max-width: 620px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); line-height: 1.55; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}
.primary { color: white; background: var(--ink); border-color: var(--ink); }
.ghost { background: rgba(255, 255, 255, 0.72); }

.product-shell {
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(23, 32, 42, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(23, 32, 42, 0.16);
}
.window-bar { display: flex; gap: 8px; padding: 14px 16px; background: #edf1f5; }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.window-bar span:nth-child(2) { background: #e4b84f; }
.window-bar span:nth-child(3) { background: var(--mint); }

.app-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.45fr 0.9fr;
  min-height: 478px;
}
.app-grid aside, .chat-pane { padding: 20px; }
.app-grid aside { display: flex; flex-direction: column; gap: 12px; background: #f3f6f9; border-right: 1px solid var(--line); }
.app-grid span, .composer, .terminal { color: var(--muted); font-size: 14px; }
.chat-pane { display: flex; flex-direction: column; gap: 16px; }
.bubble { max-width: 86%; padding: 14px 16px; border-radius: 8px; line-height: 1.5; }
.user { align-self: flex-end; color: white; background: var(--blue); }
.ai { background: #eef4ef; }
.composer { margin-top: auto; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
.workspace-pane { border-left: 1px solid var(--line); border-right: 0; }
.terminal { margin-top: auto; padding: 14px; color: #d6f5e7; background: var(--charcoal); border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.feature-band, .workflow, .metabolism, .install { padding: 86px clamp(20px, 5vw, 72px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 32px; }
.section-note { max-width: 420px; margin: 0; color: var(--muted); line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.feature-card span { display: block; margin-bottom: 48px; color: var(--coral); font-weight: 900; }
.feature-card p, .steps span { color: var(--muted); line-height: 1.6; }

.workflow { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; background: #eef3f6; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }

.metabolism {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(24, 167, 122, 0.16), transparent 30%),
    radial-gradient(circle at 88% 0%, rgba(31, 111, 235, 0.18), transparent 28%),
    var(--charcoal);
  color: var(--white);
}
.metabolism .section-note { color: rgba(255, 255, 255, 0.68); }
.metabolism-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 14px;
}
.metabolism-flow::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 32px;
  right: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--blue), var(--coral));
  opacity: 0.7;
}
.metabolism-card {
  position: relative;
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}
.metabolism-card span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 56px;
  border-radius: 50%;
  color: var(--charcoal);
  background: var(--white);
  font-weight: 950;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.08);
}
.metabolism-card h3 { color: var(--white); }
.metabolism-card p { margin-bottom: 0; color: rgba(255, 255, 255, 0.70); line-height: 1.65; }

.install { background: var(--white); }
.install .section-heading { align-items: center; }
.install-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: install-step;
}
.install-steps li {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  counter-increment: install-step;
}
.install-steps li::before {
  content: counter(install-step, decimal-leading-zero);
  display: block;
  margin-bottom: 38px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.install-steps b { display: block; margin-bottom: 10px; font-size: 18px; }
.install-steps span { color: var(--muted); line-height: 1.6; }
.install-steps code { padding: 2px 5px; border-radius: 5px; background: #e8edf3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.install-note { margin: 22px 0 0; color: var(--muted); line-height: 1.7; }

footer { justify-content: space-between; padding: 24px clamp(20px, 5vw, 72px); color: var(--muted); background: var(--white); }

@media (max-width: 980px) {
  .hero, .workflow { grid-template-columns: 1fr; }
  .product-shell { min-height: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metabolism-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metabolism-flow::before { display: none; }
  .install-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  nav { display: none; }
  .hero { padding-top: 42px; }
  .actions { flex-wrap: wrap; }
  .app-grid { grid-template-columns: 1fr; }
  .app-grid aside, .workspace-pane { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-heading, footer { align-items: flex-start; flex-direction: column; }
  .metabolism-flow { grid-template-columns: 1fr; }
  .install-steps { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; gap: 8px; }
}