:root {
  --ink: #19251f;
  --muted: #69766f;
  --paper: #f4f2e9;
  --card: #fbfaf5;
  --line: #d8d8cd;
  --green: #1b6a47;
  --green-dark: #124c35;
  --lime: #c9ef74;
  --code: #16251f;
  --code-ink: #e7eee8;
  --shadow: 0 22px 60px rgba(26, 48, 38, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(201, 239, 116, .20), transparent 24rem),
    radial-gradient(circle at 90% 55%, rgba(27, 106, 71, .08), transparent 30rem),
    var(--paper);
  font-family: "Manrope", sans-serif;
}
.noise {
  position: fixed; inset: 0; pointer-events: none; opacity: .05; z-index: 10;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
button, select, textarea { font: inherit; }
button { cursor: pointer; }
.topbar {
  height: 72px; max-width: 1480px; margin: auto; padding: 0 4vw;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(25, 37, 31, .10);
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--green); color: var(--lime); border-radius: 10px 10px 10px 3px; font-family: "DM Mono"; font-size: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); overflow: hidden; }
.logo-mark { background: #020712; border-radius: 10px; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.local-badge { font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 99px; padding: 7px 11px; background: rgba(255,255,255,.35); }
.local-badge i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #50a86b; margin-right: 6px; box-shadow: 0 0 0 4px rgba(80,168,107,.12); }
.install-button { border: 0; border-radius: 999px; padding: 9px 13px; background: var(--green); color: white; font-size: 12px; font-weight: 800; box-shadow: 0 8px 18px rgba(27,106,71,.18); white-space: nowrap; }
.install-button:hover { background: var(--green-dark); transform: translateY(-1px); }
.icon-button { border: 1px solid var(--line); background: transparent; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.icon-button:hover { background: white; transform: translateY(-1px); }
.icon-button.small { width: 34px; height: 34px; border-radius: 9px; }
.icon-button:disabled { opacity: .35; cursor: default; }
main { width: min(1420px, calc(100vw - 48px)); margin: auto; }
.hero { padding: clamp(42px, 6vw, 80px) 0 clamp(34px, 4vw, 56px); text-align: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--green); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; font-weight: 800; }
.eyebrow span { color: #7ea329; }
h1 { margin: 20px 0 20px; font-size: clamp(40px, 5.2vw, 78px); line-height: 1; letter-spacing: 0; font-weight: 600; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--green); }
.hero > p { max-width: 640px; margin: auto; color: var(--muted); line-height: 1.7; font-size: 16px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.panel { border: 1px solid var(--line); background: rgba(251,250,245,.9); border-radius: 22px; padding: clamp(16px, 2vw, 22px); box-shadow: var(--shadow); min-height: 650px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-head > div:first-child { display: flex; gap: 11px; align-items: center; }
.panel h2 { margin: 0; font-size: 16px; letter-spacing: -.02em; }
.step { font-family: "DM Mono"; font-size: 10px; color: var(--green); border: 1px solid #bad0c2; background: #edf5ee; border-radius: 6px; padding: 4px 5px; }
.editor-actions { display: flex; gap: 8px; align-items: center; }
.text-button { border: 0; background: none; color: var(--green); font-size: 12px; font-weight: 800; padding: 8px; }
.text-button:hover { text-decoration: underline; }
.code-shell { height: clamp(380px, 43vw, 510px); overflow: hidden; background: var(--code); border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 12px 30px rgba(13,33,24,.16); }
.code-toolbar { height: 48px; border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; padding: 0 16px; color: #a7b2ac; font-family: "DM Mono"; font-size: 11px; }
.traffic { display: flex; gap: 6px; margin-right: 18px; }
.traffic i { width: 8px; height: 8px; border-radius: 50%; background: #e46d63; }
.traffic i:nth-child(2) { background: #e0b451; }.traffic i:nth-child(3) { background: #64ae78; }
.language { margin-left: auto; color: #718179; }
.code-area { height: calc(100% - 48px); display: flex; padding: 18px 0; overflow: hidden; }
#lineNumbers { margin: 0; padding: 0 14px 0 18px; min-width: 48px; text-align: right; color: #53635b; font: 13px/1.65 "DM Mono"; user-select: none; border-right: 1px solid rgba(255,255,255,.06); }
#codeInput { width: 100%; height: 100%; resize: none; border: 0; outline: 0; background: transparent; color: var(--code-ink); padding: 0 20px; font: 13px/1.65 "DM Mono"; tab-size: 4; caret-color: var(--lime); }
#codeInput::placeholder { color: #63736b; }
.controls { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-top: 18px; }
.controls label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; font-weight: 800; }
select { display: block; min-width: 185px; margin-top: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 31px 9px 11px; color: var(--ink); background: var(--card); font-size: 12px; outline: none; }
.primary-button { border: 0; border-radius: 11px; padding: 13px 18px; background: var(--green); color: white; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 18px; box-shadow: 0 8px 18px rgba(27,106,71,.22); white-space: nowrap; }
.primary-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.primary-button:hover { background: var(--green-dark); transform: translateY(-2px); }
.result-panel { display: flex; flex-direction: column; }
.result-actions { display: flex; align-items: center; gap: 8px; }
.empty-state, .loading-state { margin: auto; text-align: center; max-width: 380px; padding-bottom: 30px; }
.empty-state h3, .loading-state h3 { font-size: 22px; margin: 28px 0 8px; letter-spacing: -.04em; }
.empty-state > p, .loading-state p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.orbit { position: relative; width: 108px; height: 108px; margin: auto; border: 1px solid #c9d5cc; border-radius: 50%; display: grid; place-items: center; }
.orbit:after { content: ""; position: absolute; inset: 13px; border: 1px dashed #b8c9bd; border-radius: 50%; }
.core { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--green); color: var(--lime); font: 13px "DM Mono"; z-index: 1; box-shadow: 0 8px 20px rgba(27,106,71,.2); }
.orbital { position: absolute; width: 7px; height: 7px; background: #9bbb4e; border-radius: 50%; }
.orbital.one { top: 5px; right: 24px; }.orbital.two { bottom: 17px; left: 9px; background: var(--green); }
.promise-list { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; text-align: left; border-top: 1px solid var(--line); padding-top: 22px; }
.promise-list span { font-size: 11px; color: #59675f; }
.promise-list i { font-style: normal; color: var(--green); display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e1eedf; margin-right: 8px; }
.scan-icon { width: 70px; height: 70px; margin: auto; border-radius: 20px; border: 1px solid var(--line); position: relative; overflow: hidden; background: #edf4eb; }
.scan-icon:before { content: "{ }"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--green); font: 16px "DM Mono"; }
.scan-icon span { position: absolute; height: 2px; left: 10px; right: 10px; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: scan 1.1s infinite alternate ease-in-out; }
@keyframes scan { from { top: 12px; } to { top: 55px; } }
.loading-bar { height: 4px; max-width: 220px; margin: 20px auto; background: #dfe5dc; border-radius: 9px; overflow: hidden; }
.loading-bar i { display: block; height: 100%; width: 40%; background: var(--green); border-radius: inherit; animation: load 1.3s infinite ease-in-out; }
@keyframes load { from { transform: translateX(-110%); } to { transform: translateX(360%); } }
.explanation { overflow: auto; padding-right: 6px; }
.explanation h3 { font-size: 13px; margin: 22px 0 10px; display: flex; gap: 9px; align-items: center; text-transform: uppercase; letter-spacing: .08em; color: var(--green); }
.explanation h3:first-child { margin-top: 0; }
.explanation p, .explanation li { color: #536159; font-size: 12px; line-height: 1.7; }
.explanation ul, .explanation ol { margin: 8px 0; padding-left: 22px; }
.summary-card { padding: 16px; background: #eef4e9; border: 1px solid #d4dfcf; border-radius: 12px; }
.summary-card p { margin: 0; color: #304a3a; font-size: 13px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.metric { border: 1px solid var(--line); background: rgba(255,255,255,.4); border-radius: 10px; padding: 10px; }
.metric span { display: block; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.metric strong { display: block; margin-top: 4px; font: 500 12px "DM Mono"; color: var(--ink); }
.line-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #e2e2d8; }
.line-item code { color: var(--green); font: 10px "DM Mono"; padding-top: 3px; }
.line-item p { margin: 0; }
.privacy-note { margin: 18px 0 60px; display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; }
.privacy-note span { color: var(--green); font-size: 20px; }.privacy-note p { margin: 0; }
footer { border-top: 1px solid var(--line); width: min(1420px, calc(100vw - 48px)); margin: auto; padding: 25px 0 35px; display: flex; justify-content: space-between; gap: 16px; color: #7c877f; font-size: 10px; }
footer i { color: var(--green); font-style: normal; }
.creator-link { color: var(--green); font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
.creator-link:hover { border-bottom-color: currentColor; }
body.dark { --paper:#101813; --card:#17211b; --ink:#eef5ef; --muted:#9baaa1; --line:#324139; --green:#8bd3a6; --green-dark:#6bbd89; --code:#0b100d; background: radial-gradient(circle at 15% 10%,rgba(76,133,91,.2),transparent 24rem),var(--paper); }
body.dark .panel { background: rgba(23,33,27,.92); } body.dark .step, body.dark .summary-card { background:#203429;border-color:#395542; } body.dark .summary-card p, body.dark .metric strong { color:#dcebe0; } body.dark .icon-button:hover { background:#243128; } body.dark select { background:#17211b;color:var(--ink); } body.dark .line-item { border-color:#2c3931; }
@media (max-width: 900px) { .workspace { grid-template-columns: 1fr; } .hero { padding-top: 55px; } .panel { min-height: 620px; } }
@media (max-width: 560px) { main { width: 94vw; } .topbar { padding: 0 3vw; } .local-badge { display: none; } .hero { text-align: left; padding: 45px 2vw 38px; } .hero h1 { font-size: 43px; } .panel { padding: 15px; border-radius: 17px; } .code-shell { height: 440px; } .controls { align-items: stretch; flex-direction: column; } .controls select { width: 100%; } .primary-button { justify-content: space-between; } .metrics { grid-template-columns: 1fr; } footer { flex-direction: column; gap: 8px; } }

body.dark .explanation p, body.dark .explanation li, body.dark .promise-list span, body.dark .privacy-note, body.dark footer { color: #b9c8bf; }
body.dark .controls label, body.dark .empty-state > p, body.dark .loading-state p { color: #aebdb4; }
body.dark .metric { background: rgba(255,255,255,.035); border-color: #3b4a41; }
body.dark #codeInput { color: #f0f6f1; }
body.dark #lineNumbers { color: #819187; }


.nav-link-button { text-decoration: none; display: inline-flex; align-items: center; }
.learn-main { width: min(1180px, calc(100vw - 48px)); }
.learn-hero { padding: clamp(44px, 7vw, 88px) 0 34px; max-width: 900px; }
.learn-hero h1 { max-width: 860px; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; }
.learn-hero p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.7; font-size: 16px; }
.learn-cta { width: fit-content; margin-top: 24px; text-decoration: none; }
.learning-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.learning-card { min-height: 205px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(251,250,245,.78); box-shadow: var(--shadow); }
.learning-card h2 { margin: 16px 0 10px; font-size: 17px; line-height: 1.25; }
.learning-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.learning-card code { font-family: "DM Mono"; color: var(--green); }
.lesson-number { display: inline-grid; place-items: center; width: 34px; height: 24px; border-radius: 6px; background: #edf5ee; border: 1px solid #bad0c2; color: var(--green); font: 500 10px "DM Mono"; }
.docs-strip { margin: 22px 0 58px; padding: 22px; display: flex; justify-content: space-between; gap: 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.35); }
.docs-strip h2 { margin: 0 0 8px; font-size: 18px; }
.docs-strip p { margin: 0; max-width: 620px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.docs-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-content: center; }
.docs-links a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--green); text-decoration: none; font-size: 12px; font-weight: 800; }
body.dark .learning-card, body.dark .docs-strip { background: rgba(23,33,27,.92); }
body.dark .learning-card p, body.dark .docs-strip p { color: #b9c8bf; }
@media (max-width: 1000px) { .learning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .docs-strip { flex-direction: column; } .docs-links { justify-content: flex-start; } }
@media (max-width: 620px) { .learn-main { width: calc(100vw - 28px); } .learn-hero { padding-top: 38px; } .learn-hero h1 { font-size: 36px; } .learn-hero p { font-size: 14px; } .learning-grid { grid-template-columns: 1fr; } .learning-card { min-height: auto; } .learn-cta { width: 100%; justify-content: space-between; } }
.example-lab { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(251,250,245,.78); box-shadow: var(--shadow); }
.section-heading { max-width: 760px; }
.section-heading h2 { margin: 14px 0 8px; font-size: 24px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.example-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--code); overflow: hidden; }
.example-card h3 { margin: 0; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); color: var(--code-ink); font-size: 13px; }
.example-card pre { margin: 0; padding: 14px; overflow: auto; }
.example-card code { color: var(--code-ink); font: 12px/1.65 "DM Mono"; white-space: pre; }
body.dark .example-lab { background: rgba(23,33,27,.92); }
@media (max-width: 720px) { .example-grid { grid-template-columns: 1fr; } .example-lab { padding: 16px; } }