:root {
  --cream: #fff8e7;
  --cream-strong: #fff1c2;
  --ink: #33251d;
  --muted: #7b665a;
  --leaf: #5d8f61;
  --leaf-dark: #3d6d42;
  --rose: #f38fa2;
  --rose-dark: #d95f78;
  --sky: #a5d8ff;
  --butter: #ffd166;
  --paper: rgba(255, 255, 255, 0.82);
  --paper-solid: #fffdf6;
  --shadow: 0 22px 70px rgba(79, 54, 33, 0.16);
  --ring: 0 0 0 3px rgba(93, 143, 97, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(255, 209, 102, 0.45), transparent 28rem),
    radial-gradient(circle at 84% 14%, rgba(165, 216, 255, 0.5), transparent 24rem),
    linear-gradient(180deg, #fff8e7 0%, #eaf6df 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle, rgba(93, 143, 97, 0.26) 1.2px, transparent 1.2px),
    radial-gradient(circle, rgba(243, 143, 162, 0.22) 1px, transparent 1px);
  background-size: 34px 34px, 47px 47px;
  background-position: 0 0, 18px 22px;
}

.shell {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

a {
  color: var(--leaf-dark);
  font-weight: 900;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.16em;
}

a:focus-visible,
.button:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px 22px;
  border: 2px solid rgba(51, 37, 29, 0.16);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff0b8, #ffe0df);
  box-shadow: var(--shadow);
}

.notice--top { margin-bottom: 22px; }

.notice__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #fff9de;
  border: 2px solid rgba(51, 37, 29, 0.12);
  font-size: 1.45rem;
}

.notice h2,
.notice p { margin: 0; }

.notice h2 {
  margin-bottom: 4px;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  letter-spacing: -0.04em;
}

.notice p:last-child {
  max-width: 860px;
  color: #553f34;
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 32px;
  align-items: center;
  min-height: 460px;
  padding: clamp(28px, 5vw, 58px);
  border: 2px solid rgba(51, 37, 29, 0.08);
  border-radius: 42px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.hero__copy { position: relative; z-index: 1; }

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--leaf-dark);
}

h1,
h2,
h3 { line-height: 1.02; }

h1 {
  margin: 0;
  max-width: 730px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: -0.07em;
}

.lede {
  margin: 24px 0 0;
  max-width: 740px;
  color: var(--muted);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.build-note {
  margin: 18px 0 0;
  max-width: 720px;
  padding: 14px 16px;
  border: 2px dashed rgba(217, 95, 120, 0.42);
  border-radius: 18px;
  background: rgba(255, 240, 184, 0.58);
  color: #5c4638;
  line-height: 1.5;
}

.build-note strong { color: var(--rose-dark); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--leaf-dark);
  border-radius: 999px;
  background: var(--leaf);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 0 rgba(61, 109, 66, 0.18);
}

.button--ghost {
  background: rgba(255,255,255,0.65);
  color: var(--leaf-dark);
}

.hero-panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  align-self: center;
  border: 2px solid rgba(51, 37, 29, 0.12);
  border-radius: 30px;
  background: rgba(255, 253, 246, 0.9);
  box-shadow: 0 18px 50px rgba(79, 54, 33, 0.14);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.35);
  pointer-events: none;
}

.hero-panel__top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 2px solid rgba(51, 37, 29, 0.08);
  background: linear-gradient(90deg, #fff1c2, #ffe0e7);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fffdf6;
  border: 2px solid rgba(51, 37, 29, 0.1);
}

.hero-panel__top strong {
  margin-left: auto;
  color: var(--leaf-dark);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel__body {
  position: relative;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 14px;
  padding: 16px;
}

.chat-lane,
.mini-app {
  border: 2px solid rgba(51, 37, 29, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.chat-lane {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.bubble {
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  color: #5b4639;
  font-size: 0.9rem;
  line-height: 1.35;
}

.bubble--agent { background: #fff1c2; border-bottom-left-radius: 5px; }
.bubble--user { background: #e8f6df; border-bottom-right-radius: 5px; }

.mini-app {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #273b2b;
  color: #fffdf6;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.mini-app__bar {
  margin: -2px -2px 4px;
  padding: 8px 10px;
  border-radius: 15px;
  background: rgba(255,255,255,0.1);
  color: #ffe9b8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mini-app label {
  color: rgba(255,253,246,0.75);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.input-line {
  height: 34px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
}

.check-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.check-row span {
  height: 30px;
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.92);
}

.check-row span:nth-child(2) { background: rgba(165, 216, 255, 0.92); }
.check-row span:nth-child(3) { background: rgba(243, 143, 162, 0.92); }

.mini-app button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--leaf);
  color: white;
  font: inherit;
  font-weight: 900;
}

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

.card,
.mini,
.provider-list article,
.reason-stack article,
.limit-grid article {
  border: 2px solid rgba(51, 37, 29, 0.08);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 15px 42px rgba(79, 54, 33, 0.1);
}

.card {
  padding: 24px;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 17px;
  background: var(--cream-strong);
  font-size: 1.55rem;
}

.card h2,
.card p,
.mini h3,
.mini p,
.provider-list p,
.limit-grid h3,
.limit-grid p { margin: 0; }

.card h2,
.deep-dive h2,
.split h2,
.limits h2 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: -0.05em;
}

.card p,
.mini p,
.provider-list p,
.reason-stack span,
.timeline-list,
.limit-grid p,
.split p {
  color: var(--muted);
  line-height: 1.55;
}

.card p { margin-top: 10px; }

code {
  font-family: "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  padding: 0.1em 0.34em;
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.3);
  color: #4d392d;
}

.deep-dive,
.split,
.limits {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 40px);
  border: 2px solid rgba(51, 37, 29, 0.08);
  border-radius: 34px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: var(--shadow);
}

.deep-dive--alt {
  background: linear-gradient(135deg, rgba(255,253,246,0.82), rgba(234,246,223,0.78));
}

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

.section-heading h2,
.split h2,
.limits h2 {
  margin: 0;
}

.section-heading p:last-child,
.split > div > p:last-child {
  margin: 14px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

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

.mini { padding: 18px; }
.mini h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.app-showcase {
  margin-top: 22px;
  padding: clamp(24px, 4vw, 38px);
  border: 2px solid rgba(51, 37, 29, 0.1);
  border-radius: 34px;
  background: rgba(255, 253, 246, 0.78);
  box-shadow: var(--shadow);
}

.app-demo {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
}

.app-window {
  overflow: hidden;
  border: 2px solid rgba(51, 37, 29, 0.14);
  border-radius: 26px;
  background: #fffdf6;
  box-shadow: 0 18px 50px rgba(79, 54, 33, 0.12);
}

.app-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 2px solid rgba(51, 37, 29, 0.08);
  background: #ffe9b8;
}

.app-window__bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--rose);
  border: 1px solid rgba(51, 37, 29, 0.12);
}

.app-window__bar span:nth-child(2) { background: var(--butter); }
.app-window__bar span:nth-child(3) { background: var(--leaf); }

.app-window__bar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-window__body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

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

.app-card,
.app-callout {
  padding: 16px;
  border: 2px solid rgba(93, 143, 97, 0.18);
  border-radius: 18px;
  background: rgba(255, 248, 231, 0.88);
}

.app-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--leaf-dark);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-card strong,
.app-card em {
  display: block;
}

.app-card strong { font-size: 1.1rem; }
.app-card em { color: var(--muted); font-style: normal; }

.app-callout {
  background: #273b2b;
  color: #fffdf6;
  line-height: 1.55;
}

.app-callout code {
  color: #ffe9b8;
}

.app-points {
  display: grid;
  gap: 14px;
}

.app-points article {
  padding: 18px 20px;
  border: 2px solid rgba(51, 37, 29, 0.09);
  border-radius: 22px;
  background: rgba(255,255,255,0.72);
}

.app-points h3,
.app-points p { margin: 0; }
.app-points h3 { font-size: 1.2rem; }
.app-points p { margin-top: 6px; color: var(--muted); line-height: 1.55; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.split--reverse {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.provider-list,
.reason-stack,
.limit-grid {
  display: grid;
  gap: 14px;
}

.provider-list article {
  padding: 18px 20px;
}

.provider-list span,
.reason-stack strong {
  display: block;
  margin-bottom: 7px;
  font-weight: 900;
  color: var(--ink);
}

.timeline-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.timeline-list li {
  position: relative;
  padding: 18px 18px 18px 62px;
  border-radius: 24px;
  background: rgba(255,255,255,0.7);
  border: 2px solid rgba(51, 37, 29, 0.07);
}

.timeline-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--leaf);
  color: white;
  font-weight: 900;
}

.reason-stack article {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,241,194,0.42));
}

.limit-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.limit-grid article {
  padding: 18px;
  background: rgba(255, 241, 194, 0.55);
}

.limit-grid h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

@media (max-width: 920px) {
  .hero,
  .app-demo,
  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; }
  .hero-panel { max-width: 620px; }
  .cards,
  .api-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 10px; }
  .notice { grid-template-columns: 1fr; border-radius: 24px; }
  .hero,
  .app-showcase,
  .deep-dive,
  .split,
  .limits { border-radius: 28px; }
  .hero { padding: 26px 18px; }
  h1 { font-size: clamp(2.7rem, 17vw, 4.7rem); }
  .cards,
  .api-grid,
  .app-row,
  .limit-grid { grid-template-columns: 1fr; }
  .moon { width: 245px; height: 245px; }
  .cow { width: 196px; height: 170px; }
  .eye--left { left: 64px; }
  .eye--right { right: 64px; }
  .nose { width: 78px; height: 50px; }
}
