:root {
  --ink: #2B2333;
  --ink-soft: #5B5266;
  --ink-faint: #8A8194;
  --amber: #F59E0B;
  --amber-deep: #B45309;
  --amber-text: #92600A;
  --paper: #FFFDF7;
  --term-fg: #E8E3EE;
  --term-muted: #9A8FA8;
  --shell: 1200px;
  --gutter: 40px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  font-family: system-ui, sans-serif;
  color: var(--ink);
}

a { color: var(--amber-deep); text-decoration: none; }
a:hover { color: #92400E; }

h1, h2, p { margin: 0; }

button {
  font: inherit;
  margin: 0;
  background: none;
  border: none;
  color: inherit;
}

@keyframes hp-blink { 0%, 55% { opacity: 1 } 56%, 100% { opacity: 0 } }
@keyframes hp-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-7px) } }

.page {
  min-height: 100vh;
  background: linear-gradient(165deg, #FFFDF7 0%, #FFF4E0 22%, #FCF1EE 55%, #F5F2FA 100%);
}

.shell,
.nav-inner,
.hero,
.split,
.pricing,
.access,
.install,
.footer {
  max-width: var(--shell);
  margin: 0 auto;
}

.mono,
.brand-name,
.eyebrow-pill,
.hero-title-mono,
.hero-install,
.terminal-body,
.browser-url,
.kicker,
.agents-cmd,
.plan-price,
.plan-badge,
.access-cmd,
.json-flag,
.mono-inline,
.install-terminal,
.footer-brand {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

.prompt-amber { color: var(--amber); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 247, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 35, 51, .07);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px var(--gutter);
}

.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { color: var(--ink); }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name { font-size: 17px; font-weight: 700; }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 500;
}

.nav-link { color: var(--ink-soft); padding: 8px 12px; border-radius: 8px; }
.nav-link:hover { color: var(--ink); background: rgba(43, 35, 51, .05); }

.nav-cta {
  background: var(--ink);
  color: #fff;
  border-radius: 9px;
  padding: 9px 18px;
  font-weight: 600;
  margin-left: 6px;
  transition: transform .15s, box-shadow .15s;
}

.nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(43, 35, 51, .25);
}

/* ---------- hero ---------- */

.hero-wrap { position: relative; overflow: hidden; }

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 50%, transparent 100%);
}

.hero {
  position: relative;
  display: flex;
  gap: 56px;
  align-items: center;
  padding: 40px var(--gutter) 60px;
  min-height: calc(100vh - 61px);
  box-sizing: border-box;
}

.hero-copy { flex: 1; min-width: 0; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(43, 35, 51, .1);
  border-radius: 16px;
  padding: 5px 13px;
  font-size: 11.5px;
  color: var(--amber-text);
  margin-bottom: 22px;
}

.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }

.hero-title {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
}

.hero-title-mono { font-weight: 700; color: var(--amber); }

.hero-sub {
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 22px 0 0;
  max-width: 440px;
  text-wrap: pretty;
}

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

.btn-primary {
  background: var(--amber);
  color: #fff;
  border-radius: 11px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(245, 158, 11, .35);
  transition: transform .15s, box-shadow .15s;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, .45);
}

.btn-ghost {
  border: 1.5px solid rgba(43, 35, 51, .2);
  border-radius: 11px;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, .65);
  color: var(--ink);
  transition: border-color .15s;
}

.btn-ghost:hover { color: var(--ink); border-color: rgba(43, 35, 51, .45); }

.hero-install {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.hero-install .prompt-amber { color: var(--amber-deep); }

.copy-chip {
  border: 1px solid rgba(62, 124, 79, .4);
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 10.5px;
  background: #EDF7EF;
  color: #3E7C4F;
}

.copy-chip-idle {
  border: 1px solid rgba(43, 35, 51, .14);
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 10.5px;
  background: #fff;
  cursor: pointer;
  color: var(--ink-soft);
}

.copy-chip-idle:hover { border-color: rgba(43, 35, 51, .35); color: var(--ink); }

.hero-art { flex: 1.05; min-width: 0; position: relative; padding-bottom: 48px; }

/* ---------- terminal mocks ---------- */

.terminal {
  background: var(--ink);
  border-radius: 14px;
  overflow: hidden;
}

.terminal-hero { box-shadow: 0 24px 60px rgba(43, 35, 51, .3); width: 78%; }

.terminal-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #F26D64; }
.dot-yellow { background: #F5BE4F; }
.dot-green { background: #58C359; }

.terminal-body { font-size: 14px; color: var(--term-fg); }
.terminal-body-hero { padding: 18px 22px 22px; line-height: 2.1; min-height: 59px; }
.terminal-muted { color: var(--term-muted); }
.terminal-ok { color: #58C359; }

.caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--amber);
  vertical-align: -2px;
  margin-left: 1px;
  animation: hp-blink 1.1s step-end infinite;
}

/* ---------- browser mocks ---------- */

.browser {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(43, 35, 51, .08);
}

.browser-hero {
  position: absolute;
  right: 0;
  top: 96px;
  width: 62%;
  box-shadow: 0 24px 60px rgba(43, 35, 51, .22);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(43, 35, 51, .07);
  background: #FBF9F5;
  border-radius: 14px 14px 0 0;
}

.browser-dots { display: flex; gap: 5px; }
.bdot { width: 8px; height: 8px; border-radius: 50%; background: #E3DED7; }

.browser-url {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(43, 35, 51, .09);
  border-radius: 7px;
  padding: 4px 11px;
  font-size: 10.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-body { padding: 20px 22px 24px; }

.skel { border-radius: 3px; }
.skel-head { height: 13px; border-radius: 4px; background: var(--ink); margin-bottom: 12px; }
.skel-head-sm { height: 12px; }
.skel-line { height: 7px; background: #E8E3DC; margin-bottom: 7px; }
.skel-line-hl { background: #FCE9C3; }
.skel-line-gap { margin-bottom: 16px; }
.skel-line-last { margin-bottom: 0; }
.skel-accent { height: 10px; background: var(--amber); opacity: .7; margin-bottom: 10px; }

/* ---------- floating comment cards ---------- */

.comment-card {
  position: absolute;
  background: #fff;
  border: 1px solid rgba(43, 35, 51, .1);
  border-radius: 11px;
  box-shadow: 0 10px 26px rgba(43, 35, 51, .18);
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.comment-card-hero {
  right: 14px;
  bottom: -18px;
  padding: 10px 13px;
  width: 180px;
  animation: hp-float 5s ease-in-out infinite;
}

.comment-card-agents {
  right: 0;
  top: 30px;
  padding: 11px 14px;
  width: 200px;
  animation: hp-float 6s ease-in-out infinite;
}

.avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex: none;
}

.avatar-pink { background: #F3D9E4; color: #BE3B75; }
.avatar-purple { background: #E4DBEE; color: #6D28D9; }

.comment-text { font-size: 11px; line-height: 1.45; color: var(--ink-soft); }
.comment-text b { color: var(--ink); }

/* ---------- shared section pieces ---------- */

.band { background: #fff; }

.split {
  padding: 88px var(--gutter);
  display: flex;
  gap: 60px;
  align-items: center;
}

.split-col { flex: 1; min-width: 0; }

.kicker { font-size: 11px; letter-spacing: .1em; color: var(--amber-deep); margin-bottom: 12px; }

.section-title { margin: 0 0 14px; font-size: 36px; font-weight: 800; letter-spacing: -.02em; }

.section-text {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 460px;
  text-wrap: pretty;
}

.section-text-narrow { max-width: 440px; }
.section-text-gap { margin-top: 14px; }

.section-punch {
  margin-top: 22px;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -.01em;
  line-height: 1.4;
}

.punch-accent { color: var(--amber-deep); }

/* ---------- for agents ---------- */

.agents-art { position: relative; padding-bottom: 34px; }

.browser-agents { box-shadow: 0 18px 46px rgba(43, 35, 51, .16); width: 84%; }
.browser-body-agents { padding-bottom: 26px; }

.agents-cmd {
  position: absolute;
  left: 24px;
  bottom: 0;
  right: 60px;
  background: var(--ink);
  border-radius: 11px;
  box-shadow: 0 14px 34px rgba(43, 35, 51, .3);
  padding: 13px 18px;
  font-size: 12px;
  color: var(--term-fg);
}

/* ---------- the cli ---------- */

.terminal-cli {
  background: var(--ink);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(43, 35, 51, .25);
  overflow: hidden;
}

.terminal-body-cli { padding: 20px 24px 24px; line-height: 2.2; }

.tag-row { display: flex; gap: 8px; margin-top: 16px; font-size: 13px; font-weight: 600; }
.tag { border-radius: 14px; padding: 6px 14px; }
.tag-amber { background: #FDF0DC; color: var(--amber-text); }
.tag-purple { background: #E4DBEE; color: #6D28D9; }
.tag-green { background: #DCEBE0; color: #3E7C4F; }

/* ---------- pricing ---------- */

.pricing { padding: 88px var(--gutter); }
.pricing-head { text-align: center; margin-bottom: 44px; }
.pricing-head .section-title { margin: 0; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.plan {
  background: #fff;
  border: 1px solid rgba(43, 35, 51, .09);
  border-radius: 16px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-featured {
  background: var(--ink);
  color: var(--term-fg);
  border: none;
  box-shadow: 0 20px 50px rgba(43, 35, 51, .3);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #171003;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 10px;
  padding: 4px 12px;
}

.plan-name { font-size: 15px; font-weight: 750; }
.plan-name-featured { color: #fff; }

.plan-price { font-size: 34px; font-weight: 700; margin: 8px 0 2px; }
.plan-price-featured { color: #FBBF24; }
.plan-period { font-size: 15px; color: var(--term-muted); }
.plan-period-light { color: var(--ink-faint); }

.plan-note { font-size: 12.5px; color: var(--ink-faint); margin-bottom: 16px; }
.plan-note-featured { color: var(--term-muted); }

.plan-features { font-size: 13.5px; color: var(--ink-soft); line-height: 2.1; }
.plan-features-featured { color: #C9C2CF; }
.plan-feature-off { color: #B8B0C0; }

.plan-btn {
  margin-top: auto;
  border: 1.5px solid rgba(43, 35, 51, .16);
  border-radius: 9px;
  padding: 10px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .15s;
}

.plan-btn:hover { color: var(--ink); border-color: rgba(43, 35, 51, .45); }

.plan-btn-featured {
  background: var(--amber);
  color: #171003;
  border: none;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
}

.plan-btn-featured:hover {
  color: #171003;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(245, 158, 11, .4);
}

/* ---------- access ---------- */

.access { padding: 88px var(--gutter); }

.access-head { text-align: center; max-width: 560px; margin: 0 auto 40px; }
.access-head .section-title { margin: 0; }

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1060px;
  margin: 0 auto;
}

.access-card {
  border: 1px solid rgba(43, 35, 51, .09);
  border-radius: 14px;
  padding: 24px 26px;
  background: linear-gradient(180deg, #FFFDF7, #fff);
  transition: transform .15s, box-shadow .15s;
}

.access-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(43, 35, 51, .1); }

.access-card-featured {
  border: 1.5px solid rgba(245, 158, 11, .55);
  background: linear-gradient(180deg, #FFF8EB, #fff);
  box-shadow: 0 10px 30px rgba(245, 158, 11, .12);
}

.access-card-featured:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(245, 158, 11, .2); }

.access-title { font-size: 16px; font-weight: 750; margin-bottom: 8px; }
.access-text { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

.access-cmd {
  margin-top: 16px;
  font-size: 12px;
  background: var(--ink);
  color: var(--term-fg);
  border-radius: 8px;
  padding: 9px 13px;
}

.json-note {
  max-width: 1060px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(43, 35, 51, .09);
  border-radius: 14px;
  padding: 18px 26px;
  background: #FBF9F5;
}

.json-flag {
  font-size: 13px;
  background: rgba(245, 158, 11, .14);
  border-radius: 6px;
  padding: 3px 10px;
  color: var(--amber-text);
  flex: none;
}

.json-text { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.json-text b { color: var(--ink); }
.mono-inline { font-size: 12.5px; }

/* ---------- install cta ---------- */

.install { padding: 0 var(--gutter) 80px; }

.install-card {
  background: var(--ink);
  border-radius: 20px;
  padding: 60px;
  display: flex;
  gap: 60px;
  align-items: center;
  box-shadow: 0 24px 60px rgba(43, 35, 51, .35);
}

.install-copy { flex: 1; min-width: 0; }
.install-title { margin: 0 0 10px; color: #fff; }
.install-sub { margin: 0 0 24px; font-size: 15px; color: var(--term-muted); }

.btn-amber {
  display: inline-block;
  background: var(--amber);
  color: #171003;
  border-radius: 11px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  transition: transform .15s, box-shadow .15s;
}

.btn-amber:hover {
  color: #171003;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(245, 158, 11, .4);
}

.install-terminal {
  flex: 1.1;
  min-width: 0;
  background: #231C2C;
  border-radius: 12px;
  padding: 20px 70px 20px 26px;
  font-size: 14px;
  line-height: 2.3;
  color: var(--term-fg);
  position: relative;
  box-sizing: border-box;
  overflow-x: auto;
}

.cta-chip {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(88, 195, 89, .5);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 10.5px;
  color: #58C359;
}

.cta-chip-idle {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 10.5px;
  color: var(--term-muted);
  cursor: pointer;
}

.cta-chip-idle:hover { color: var(--term-fg); border-color: rgba(255, 255, 255, .4); }

/* ---------- footer ---------- */

.footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--gutter) 28px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.footer-brand { font-weight: 700; color: var(--ink); }
.footer-links { margin-left: auto; display: flex; gap: 18px; }
.footer-links a { color: var(--ink-faint); }
.footer-links a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 1000px) {
  :root { --gutter: 28px; }

  .hero { flex-direction: column; align-items: stretch; gap: 44px; min-height: 0; padding-top: 48px; padding-bottom: 72px; }
  .hero-title { font-size: 52px; }
  .hero-sub { max-width: none; }
  /* Absolutely positioned art would overflow the stacked column, so flow it. */
  .hero-art { padding-bottom: 34px; }
  .terminal-hero { width: 100%; }
  .browser-hero { position: static; width: 100%; margin-top: 22px; }
  .comment-card-hero { right: 14px; bottom: -18px; }

  .split { flex-direction: column; align-items: stretch; gap: 44px; padding-top: 64px; padding-bottom: 64px; }
  .section-text, .section-text-narrow { max-width: none; }

  .pricing, .access { padding-top: 64px; padding-bottom: 64px; }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; gap: 28px; }
  .access-grid { grid-template-columns: 1fr; }

  .install-card { flex-direction: column; align-items: stretch; gap: 36px; padding: 40px 32px; }
  .install-terminal { font-size: 12.5px; padding: 20px 70px 20px 20px; }
}

@media (max-width: 720px) {
  .nav-inner { gap: 6px; }
  .nav-link { padding: 8px 9px; }
  .nav-links { font-size: 13px; }

  .hero-title { font-size: 42px; }
  .hero-sub { font-size: 17px; }
  .hero-actions { flex-wrap: wrap; }
  .hero-install { flex-wrap: wrap; gap: 8px; font-size: 11.5px; }

  .comment-card-hero { right: 8px; bottom: -14px; }
  .comment-card-agents { right: 0; top: -14px; }

  .browser-agents { width: 100%; }
  .agents-art { padding-bottom: 56px; padding-top: 14px; }
  .agents-cmd { left: 0; right: 0; font-size: 11px; padding: 12px 14px; overflow-x: auto; }

  .section-title { font-size: 28px; }
  .terminal-body-cli { font-size: 12px; padding: 16px 18px 20px; overflow-x: auto; }
  .tag-row { flex-wrap: wrap; }

  .json-note { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px; }

  .install-card { padding: 32px 22px; }
  .install-terminal { font-size: 11px; padding: 18px 20px 18px 18px; }
  .cta-chip, .cta-chip-idle { top: auto; bottom: 10px; right: 12px; }

  .footer { flex-wrap: wrap; row-gap: 14px; }
  .footer-links { gap: 14px; }
}

@media (max-width: 480px) {
  .brand-mark { width: 28px; height: 28px; }
  .brand-name { font-size: 15px; }
  .nav-links { font-size: 12px; gap: 2px; }
  .nav-link { padding: 8px 7px; }
  .nav-cta { padding: 8px 12px; margin-left: 2px; }

  .hero-title { font-size: 34px; }
  .comment-card-agents { width: 170px; top: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .comment-card, .caret { animation: none; }
}
