:root {
  --ink: #201d18;
  --muted: #6f685d;
  --paper: #f4efe5;
  --cream: #fffaf0;
  --orange: #ef853e;
  --orange-dark: #d76826;
  --green: #496b55;
  --dark: #181713;
  --line: rgba(32, 29, 24, 0.13);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(239, 133, 62, 0.18), transparent 30rem),
    linear-gradient(135deg, var(--cream), var(--paper));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, a { font: inherit; }
a { color: inherit; }

.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 34px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; text-decoration: none; }
.brand img { display: block; width: 38px; height: 38px; border-radius: 11px; object-fit: cover; box-shadow: 0 8px 22px rgba(232, 111, 58, .22); }

.language-switch { display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(255, 255, 255, .08); border-radius: 13px; background: var(--dark); box-shadow: 0 8px 24px rgba(32, 29, 24, .12); }
.language-switch button { min-width: 42px; padding: 8px 9px; color: rgba(255, 255, 255, .58); border: 0; border-radius: 9px; background: transparent; font-size: 12px; font-weight: 850; cursor: pointer; transition: color .18s ease, background .18s ease, transform .18s ease; }
.language-switch button:hover { color: white; }
.language-switch button:focus-visible { outline: 3px solid rgba(239, 133, 62, .42); outline-offset: 3px; }
.language-switch button[aria-pressed="true"] { color: var(--dark); background: var(--orange); transform: translateY(-1px); }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 68px; align-items: center; padding: 100px 0 94px; }
.badge, .kicker, .eyebrow { color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 22px 0 0; max-width: 750px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(55px, 7.4vw, 91px); font-weight: 500; letter-spacing: -.055em; line-height: .94; }
.lede { max-width: 720px; margin: 30px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.56; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--line); border-radius: 13px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #17140f; border-color: var(--orange); background: var(--orange); box-shadow: 0 10px 24px rgba(239, 133, 62, .22); }
.button-secondary { background: rgba(255, 250, 240, .72); }

.assistant-card { overflow: hidden; border: 1px solid rgba(255, 255, 255, .08); border-radius: 26px; color: #f8f2e9; background: var(--dark); box-shadow: 0 32px 70px rgba(32, 29, 24, .22); transform: rotate(1.2deg); }
.assistant-head { display: flex; align-items: center; gap: 9px; padding: 17px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #71b27b; box-shadow: 0 0 0 4px rgba(113, 178, 123, .12); }
.mini-switch { display: flex; gap: 2px; margin-left: auto; padding: 3px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 8px; color: rgba(255, 255, 255, .48); font-size: 8px; }
.mini-switch > * { padding: 4px 5px; }
.mini-switch [data-active="true"] { border-radius: 5px; color: var(--dark); background: var(--orange); font-weight: 800; }
.assistant-body { padding: 34px; }
.assistant-body .eyebrow { color: var(--orange); }
.assistant-body h2 { margin: 12px 0 25px; font: 500 36px/1.08 Georgia, serif; }
.prompt { min-height: 108px; padding: 18px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; color: rgba(255, 255, 255, .62); background: rgba(255, 255, 255, .035); line-height: 1.55; }
.capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.capabilities span { padding: 8px 10px; border-radius: 999px; color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .07); font-size: 11px; }

.intro { display: grid; grid-template-columns: 1fr .7fr; gap: 70px; align-items: end; padding: 26px 2px 32px; }
.intro h2, .workflow h2, .install h2 { margin: 10px 0 0; font: 500 clamp(35px, 4.5vw, 54px)/1.05 Georgia, serif; letter-spacing: -.025em; }
.intro > p { margin: 0 0 4px; color: var(--muted); font-size: 17px; line-height: 1.65; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: rgba(255, 250, 240, .72); }
.feature-grid article { min-height: 245px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid article:nth-child(3n) { border-right: 0; }
.feature-grid article:nth-last-child(-n + 3) { border-bottom: 0; }
.feature-grid article > span { color: var(--orange-dark); font: 750 13px ui-monospace, monospace; }
.feature-grid h3 { margin: 58px 0 10px; font: 500 27px Georgia, serif; }
.feature-grid p, .workflow p, .install p, footer span { color: var(--muted); line-height: 1.62; }

.workflow { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; margin: 30px 0; padding: 54px; border-radius: 24px; background: #e7ddcd; }
.workflow ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.workflow li { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.workflow li:first-child { padding-top: 0; }
.workflow li:last-child { padding-bottom: 0; border-bottom: 0; }
.workflow li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: white; background: var(--green); font-size: 12px; font-weight: 800; }
.workflow h3 { margin: 1px 0 5px; font-size: 17px; }
.workflow p { margin: 0; }

.install { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; margin: 30px 0; padding: 46px; color: #f7f2e8; background: var(--green); border-radius: 24px; }
.install .kicker { color: #ffd0a7; }
.install p { color: rgba(255, 255, 255, .74); }
.install code { color: #ffe4c8; }
pre { margin: 0; padding: 24px; overflow-x: auto; border: 1px solid rgba(255, 255, 255, .17); border-radius: 16px; background: rgba(0, 0, 0, .15); line-height: 1.75; }
footer { display: flex; justify-content: space-between; gap: 24px; padding: 20px 4px 0; font-size: 13px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 50px; padding: 76px 0; }
  .assistant-card { max-width: 560px; transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid article:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature-grid article:nth-child(2n) { border-right: 0; }
  .feature-grid article:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .feature-grid article:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 1120px); padding-top: 18px; }
  .topbar { gap: 12px; }
  .brand span { display: none; }
  .language-switch button { min-width: 39px; padding-inline: 7px; }
  .hero { padding: 58px 0 68px; }
  h1 { font-size: clamp(48px, 15vw, 67px); }
  .intro, .feature-grid, .workflow, .install { grid-template-columns: 1fr; }
  .intro { gap: 20px; }
  .feature-grid article { min-height: auto; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .feature-grid article:last-child { border-bottom: 0 !important; }
  .feature-grid h3 { margin-top: 28px; }
  .workflow, .install { gap: 36px; padding: 30px; }
  .assistant-body { padding: 26px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
