:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #151518;
  --surface-2: #1d1d20;
  --ink: #f6f4ef;
  --muted: #bcb8b1;
  --line: #36343a;
  --orange: #ff8200;
  --orange-light: #ffac53;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--bg); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
body::selection, ::selection { background: var(--orange); color: #09090b; }
a { color: inherit; text-decoration: none; text-underline-offset: .22em; }
button, summary { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 4px; }
img { display: block; max-width: 100%; }
svg { display: block; }
h1, h2, p { margin-top: 0; }
h1, h2 { line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
p { max-width: 70ch; }
.wrap, .section-wrap { width: min(var(--max), calc(100% - 56px)); margin-inline: auto; }
.section-wrap { padding-block: clamp(80px, 10vw, 150px); }
.skip-link { position: absolute; inset-block-start: -80px; inset-inline-start: 16px; z-index: 50; padding: 10px 16px; background: var(--orange); color: #111; }
.skip-link:focus { inset-block-start: 12px; }

.site-header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 1.42rem; font-weight: 850; letter-spacing: -.035em; }
.brand img { border-radius: 10px; }
.brand-accent { color: var(--orange); }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); font-size: .875rem; font-weight: 650; }
.primary-nav a { color: var(--muted); transition: color .18s ease; }
.primary-nav a:hover { color: var(--ink); }
.language-menu { position: relative; flex: none; font-size: .85rem; }
.language-menu summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 116px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary span { color: var(--orange); }
.language-list { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 20; width: max(210px, 100%); max-height: min(68vh, 510px); overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #202024; box-shadow: 0 18px 44px rgba(0,0,0,.42); }
.language-list a { display: block; padding: 8px 11px; border-radius: 6px; }
.language-list a:hover, .language-list a[aria-current] { background: #38322c; color: var(--orange-light); }
.github-banner { border-block: 1px solid #302a25; background: #171411; }
.github-banner-link { min-height: 52px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(16px, 3vw, 42px); padding-block: 10px; }
.github-banner-link:hover .github-banner-action svg { transform: translateX(4px); }
.github-banner-mark { color: var(--orange-light); font-size: .7rem; font-weight: 800; letter-spacing: .1em; white-space: nowrap; }
.github-banner-link strong { font-size: .88rem; font-weight: 670; }
.github-banner-action { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-light); font-size: .82rem; font-weight: 750; white-space: nowrap; }
.github-banner-action svg { width: 17px; height: 17px; transition: transform .18s ease; }

.hero { min-height: min(780px, calc(100svh - 84px)); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(30px, 4vw, 70px); padding-block: 50px 86px; }
.hero-copy { position: relative; z-index: 2; }
.hero-mark { display: inline-flex; align-items: center; gap: 12px; color: var(--orange-light); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mark-line { width: 26px; height: 2px; background: var(--orange); }
.hero h1 { max-width: 8.5ch; margin: 22px 0 25px; font-size: clamp(4rem, 7.5vw, 6rem); font-weight: 850; }
.hero-lead { max-width: 570px; margin-bottom: 0; color: #d1cdc7; font-size: clamp(1.16rem, 1.85vw, 1.55rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 17px; margin-top: 36px; }
.hero-cli-action { display: inline-flex; align-items: center; gap: 7px; color: var(--orange-light); font-size: .91rem; font-weight: 750; text-decoration: underline; }
.hero-cli-action:hover { color: var(--ink); }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 12px 20px; border-radius: 9px; font-size: .96rem; font-weight: 760; line-height: 1.2; text-align: center; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-outline { border: 1px solid var(--orange); background: var(--orange); color: #17100a; }
.button-outline:hover { background: var(--orange-light); }
.button-primary { background: var(--orange); color: #17100a; }
.button-primary:hover { background: var(--orange-light); }
.store-status { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .92rem; font-weight: 650; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.capabilities { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 53px; color: #a7a29b; font-size: .75rem; font-weight: 730; letter-spacing: .07em; text-transform: uppercase; }
.capabilities span { white-space: nowrap; }
.capabilities span:not(:last-child)::after { content: "/"; margin-inline-start: 18px; color: #5b5148; }
.hero-showcase { min-width: 0; }
.hero-stage { height: min(650px, 62vw); min-height: 480px; position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; }
.hero-stage::before { content: ""; position: absolute; z-index: -2; width: min(620px, 110%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #64340f 0%, #291a12 43%, #0c0b0d 72%); }
.orbit { position: absolute; z-index: -1; width: 82%; aspect-ratio: 1; border: 1px solid rgba(255,130,0,.22); border-radius: 50%; }
.orbit-two { width: 113%; border-color: rgba(255,130,0,.11); }
.hero-phone { width: min(294px, 55%); aspect-ratio: 1206 / 2622; overflow: hidden; border: 8px solid #2c2b30; border-radius: 38px; background: #050505; box-shadow: 0 24px 65px rgba(0,0,0,.65), 0 0 80px rgba(255,130,0,.12); transform: rotate(5deg); }
.hero-phone img { width: 100%; height: 100%; object-fit: cover; }
.hero-corner { position: absolute; width: 45px; height: 45px; border-color: var(--orange); opacity: .68; }
.hero-corner-top { top: 13%; inset-inline-start: 14%; border-block-start: 1px solid; border-inline-start: 1px solid; }
.hero-corner-bottom { bottom: 12%; inset-inline-end: 13%; border-block-end: 1px solid; border-inline-end: 1px solid; }
.hero-slides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.hero-slide { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 13px 10px 12px; border: 0; border-top: 2px solid transparent; border-radius: 0 0 7px 7px; background: transparent; color: var(--muted); font-size: .87rem; font-weight: 700; line-height: 1.25; text-align: start; transition: background .2s ease, color .2s ease; }
.hero-slide:hover { background: #1d1916; color: var(--ink); }
.hero-slide[aria-current="true"] { border-top-color: var(--orange); background: #241b13; color: var(--ink); }
.hero-slide-number { color: var(--orange); font-size: .67rem; font-variant-numeric: tabular-nums; letter-spacing: .1em; }

.cli { border-top: 1px solid var(--line); }
.cli-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 8vw, 120px); }
.cli-intro h2 { max-width: 11ch; margin-bottom: 27px; font-size: clamp(3rem, 5.8vw, 5.25rem); }
.cli-intro p { max-width: 47ch; margin-bottom: 29px; color: #cbc5be; font-size: clamp(1.08rem, 1.5vw, 1.3rem); }
.cli-repo-link { display: inline-flex; align-items: center; gap: 8px; color: var(--orange-light); font-weight: 750; text-decoration: underline; }
.cli-repo-link:hover { color: var(--ink); }
.cli-terminal { min-width: 0; overflow: hidden; border: 1px solid #41372e; border-radius: 15px; background: #111114; direction: ltr; text-align: left; }
.cli-terminal-bar { display: flex; justify-content: space-between; gap: 20px; padding: 13px 20px; border-bottom: 1px solid #3c342d; color: var(--orange-light); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cli-terminal-bar span:last-child { color: #aaa39d; }
.cli-terminal pre { margin: 0; padding: clamp(24px, 3vw, 40px); overflow-x: auto; color: #ede5dc; font-size: clamp(.82rem, 1.2vw, 1rem); line-height: 2.15; }
.cli-prompt { color: var(--orange); }
.cli-install { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 7vw, 100px); margin-top: clamp(80px, 10vw, 135px); padding-top: 54px; border-top: 1px solid var(--line); }
.cli-install-heading h3 { margin: 0 0 22px; font-size: clamp(2.2rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -.03em; }
.cli-install-heading p { color: var(--muted); font-size: .95rem; }
.cli-install-content { min-width: 0; }
.cli-install-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); }
.cli-install-tabs button { padding: 0 2px 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: .95rem; font-weight: 750; }
.cli-install-tabs button:hover, .cli-install-tabs button[aria-selected="true"] { color: var(--ink); }
.cli-install-tabs button[aria-selected="true"] { border-bottom-color: var(--orange); }
.cli-install-panel { padding-top: 27px; }
.cli-install-panel[hidden] { display: none; }
.cli-install-panel label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .81rem; font-weight: 700; }
.cli-install-panel select { max-width: 100%; padding: 10px 34px 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: inherit; }
.cli-install-code { margin: 22px 0 14px; padding: 22px 24px; overflow-wrap: anywhere; border-radius: 10px; background: #171719; color: #f0e8df; font-size: .83rem; line-height: 1.8; white-space: pre-wrap; direction: ltr; text-align: left; }
.cli-install-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .84rem; font-weight: 700; }
.cli-install-links a { color: var(--orange-light); text-decoration: underline; }
.cli-install-panel p { margin-bottom: 0; color: var(--muted); }
.cli-install-panel .cli-binary-note { margin-top: 18px; font-size: .87rem; }
.cli-install-panel .cli-source-note { margin: 17px 0 20px; font-size: .87rem; }

.story { border-top: 1px solid var(--line); }
.section-heading h2, .safety h2, .details h2, .source h2 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 820; }
.section-heading h2 { max-width: 14ch; margin-bottom: 56px; }
.story-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(50px, 9vw, 150px); align-items: center; }
.story-controls { display: grid; border-top: 1px solid var(--line); }
.story-tab { display: grid; grid-template-columns: 48px 1fr; gap: 20px; width: 100%; padding: 28px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: start; }
.story-tab strong { display: block; font-size: clamp(1.35rem, 2.1vw, 2rem); line-height: 1.2; letter-spacing: -.025em; }
.story-tab small { display: block; max-width: 51ch; margin-top: 10px; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.story-tab[aria-selected="false"] strong { color: #a7a29b; }
.story-tab:hover strong, .story-tab[aria-selected="true"] strong { color: var(--orange-light); }
.step-index { padding-top: 5px; color: var(--orange); font-size: .83rem; font-variant-numeric: tabular-nums; font-weight: 800; }
.story-image { display: grid; place-items: center; min-height: 560px; background: radial-gradient(circle, #291b12, #101013 62%); border-radius: 20px; overflow: hidden; }
.story-image-inner { width: min(250px, 70%); padding-block: 34px; }
.story-image [role="tabpanel"][hidden] { display: none; }
.story-image img { width: 100%; height: auto; border: 7px solid #2c2b30; border-radius: 32px; box-shadow: 0 22px 38px rgba(0,0,0,.5); }
.story-mobile-caption { display: none; }

.safety { display: grid; grid-template-columns: minmax(100px, 185px) 1fr; gap: 42px; align-items: center; border-top: 1px solid var(--line); }
.safety-symbol { width: clamp(100px, 12vw, 180px); color: var(--orange); }
.safety h2 { margin-bottom: 24px; }
.safety p, .source p { max-width: 68ch; margin-bottom: 0; color: #cbc5be; font-size: clamp(1.1rem, 1.65vw, 1.4rem); line-height: 1.6; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.details > div { min-height: 360px; padding: clamp(30px, 4.8vw, 64px); background: var(--surface); }
.details h2 { max-width: 11ch; margin-bottom: 22px; font-size: clamp(2.4rem, 4vw, 3.75rem); }
.details p { max-width: 47ch; color: var(--muted); font-size: 1rem; }
.detail-price .button, .detail-price .store-status { margin-top: 18px; }
.source { padding-top: clamp(130px, 16vw, 220px); padding-bottom: clamp(120px, 16vw, 210px); }
.source-label { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; color: var(--orange); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.source-label svg { width: 28px; height: 28px; }
.source h2 { max-width: 11ch; font-size: clamp(3.3rem, 7vw, 6rem); }
.source p { margin: 30px 0 36px; }
.source-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button-secondary { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.button-secondary:hover { background: var(--surface-2); }
.site-footer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 32px; padding-block: 25px 36px; border-top: 1px solid var(--line); color: #aaa49d; font-size: .78rem; }
.site-footer p { flex: 1; min-width: min(340px, 100%); margin: 0; }
.site-footer a { color: #ded6ce; text-decoration: underline; }

[dir="rtl"] .brand, [dir="rtl"] .hero-mark, [dir="rtl"] .source-label { direction: ltr; }
[dir="rtl"] .story-tab { text-align: right; }
[dir="rtl"] .hero-phone { transform: rotate(-5deg); }
[dir="rtl"] .capabilities { direction: ltr; justify-content: flex-end; }
[dir="rtl"] .github-banner-action svg { transform: scaleX(-1); }
[dir="rtl"] .github-banner-link:hover .github-banner-action svg { transform: scaleX(-1) translateX(4px); }

@media (max-width: 980px) {
  .primary-nav { display: none; }
  .hero { min-height: 0; grid-template-columns: 1fr 1fr; padding-block: 64px 100px; }
  .hero h1 { font-size: clamp(3.4rem, 7vw, 5rem); }
  .hero-stage { min-height: 440px; height: 550px; }
  .story-layout { gap: 40px; }
  .cli-overview, .cli-install { gap: 40px; }
}
@media (max-width: 700px) {
  .wrap, .section-wrap { width: min(var(--max), calc(100% - 36px)); }
  .site-header { min-height: 72px; gap: 12px; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .language-menu summary { min-width: 90px; max-width: 142px; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .github-banner-link { display: flex; flex-wrap: wrap; column-gap: 18px; row-gap: 4px; }
  .github-banner-mark { display: none; }
  .github-banner-link strong { flex: 1 1 145px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 20px; padding-block: 48px 45px; }
  .hero h1 { max-width: 9ch; font-size: clamp(3.45rem, 12.8vw, 5.4rem); }
  .hero-lead { font-size: 1.14rem; }
  .hero-actions { align-items: flex-start; margin-top: 28px; }
  .capabilities { margin-top: 30px; font-size: .68rem; }
  .capabilities span:not(:last-child)::after { margin-inline-start: 11px; }
  .hero-stage { width: 100%; min-height: 400px; height: 480px; }
  .hero-phone { width: min(225px, 53%); border-width: 6px; border-radius: 30px; }
  .hero-slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-slide { padding: 10px 12px; }
  .cli-overview, .cli-install { display: block; }
  .cli-intro h2 { font-size: clamp(2.8rem, 10.5vw, 4rem); }
  .cli-terminal { margin-top: 38px; }
  .cli-install { margin-top: 76px; padding-top: 38px; }
  .cli-install-heading { margin-bottom: 30px; }
  .cli-install-tabs { gap: 18px; }
  .cli-install-tabs button { font-size: .88rem; }
  .cli-install-code { padding: 18px; font-size: .76rem; }
  .section-wrap { padding-block: 85px; }
  .section-heading h2 { margin-bottom: 32px; }
  .story-layout { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
  .story-image { min-height: 450px; }
  .story-image-inner { width: 100%; padding: 30px 24px; }
  .story-image img { width: min(195px, 65%); margin-inline: auto; }
  .story-mobile-caption { display: block; max-width: 43ch; margin: 22px auto 0; color: var(--muted); font-size: .94rem; text-align: center; }
  .story-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
  .story-tab { display: block; min-height: 82px; padding: 14px 5px; text-align: center; }
  .story-tab strong { font-size: 1rem; }
  .story-tab small { display: none; }
  .step-index { display: block; padding: 0; margin-bottom: 3px; }
  [dir="rtl"] .story-tab { text-align: center; }
  .safety { display: block; }
  .safety-symbol { margin-bottom: 30px; }
  .details { display: block; padding: 0; }
  .details > div { min-height: 0; padding: 36px 28px 42px; }
  .detail-price { border-bottom: 1px solid var(--line); }
  .source { padding-block: 100px 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .primary-nav a, .github-banner-action svg, .hero-slide { transition: none; }
}
