@font-face {
  font-family: "Barlow Condensed";
  src: url("./assets/fonts/barlow-condensed.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("./assets/fonts/dm-sans.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ground: #0d0d0f;
  --surface: #141417;
  --line: #2d2c30;
  --text: #f3f1e8;
  --muted: #b4b0b2;
  --acid: #f4ef58;
  --display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--ground);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 280px; margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button, input, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
::selection { background: var(--acid); color: var(--ground); }
[id] { scroll-margin-top: 22px; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 10px 16px; background: var(--acid); color: #141413; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid #282629; background: #101012; }
.header-content { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; width: fit-content; font-size: 23px; font-weight: 800; letter-spacing: -.07em; white-space: nowrap; }
.brand > span:last-child { color: var(--acid); }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 29px; margin-right: 9px; gap: 2px; border-radius: 5px; background: var(--acid); }
.brand-mark i { width: 7px; height: 12px; border: 1.5px solid #141413; background: #141413; border-radius: 2px 2px 0 1px; transform: skewY(12deg); }
.brand-mark i + i { transform: skewY(-12deg); background: transparent; }
nav { display: flex; align-items: center; gap: clamp(22px, 4vw, 52px); }
nav a, .site-footer > a:last-child { font-size: 14px; font-weight: 600; color: var(--muted); }
nav a:hover, .site-footer > a:last-child:hover { color: var(--acid); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; width: fit-content; gap: 11px; padding: 0 21px; border: 1px solid var(--acid); border-radius: 5px; background: var(--acid); color: #141413; font-size: 14px; font-weight: 800; white-space: nowrap; transition: background .18s, color .18s, border-color .18s; }
.button:hover { background: #fff99a; border-color: #fff99a; }
.button-small { justify-self: end; min-height: 39px; padding-inline: 13px; font-size: 13px; }
.button-quiet { background: #151517; color: var(--text); border-color: #444247; }
.button-quiet:hover { background: #242326; border-color: #77737d; }
.button small { font-family: var(--mono); font-size: 10px; color: #494610; }
.download-icon { font-size: 19px; line-height: 1; border-bottom: 1px solid currentColor; }

.opening { overflow: hidden; padding-bottom: 45px; background: radial-gradient(ellipse at 50% 24%, #311318 0%, #1c1014 32%, transparent 71%), var(--ground); position: relative; isolation: isolate; }
.opening::before { content: ""; position: absolute; pointer-events: none; inset: 0; z-index: -1; opacity: .26; background: radial-gradient(circle, #a8555d 1px, transparent 1.35px) 0 0 / 7px 7px; mask-image: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000), linear-gradient(180deg, #000, transparent 72%); mask-composite: intersect; }
.hero { text-align: center; padding-top: clamp(49px, 6vw, 85px); }
.eyebrow, .reader-bar, .panel-label, .reader-caption { font: 600 11px/1.3 var(--mono); letter-spacing: .1em; }
.eyebrow { display: inline-flex; align-items: center; border: 1px solid #65523d; border-radius: 3px; padding: 7px 10px; color: var(--acid); gap: 8px; }
.signal { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; background: var(--acid); box-shadow: 0 0 9px #f8ee5c80; }
h1, h2, .download h3 { font-family: var(--display); font-weight: 900; }
h1 { font-size: clamp(47px, 8.7vw, 126px); line-height: .84; letter-spacing: -.026em; margin: 20px 0 0; }
h1 em { color: var(--acid); font-style: normal; }
.intro { margin: 25px auto 0; max-width: 505px; font-size: clamp(15px, 1.4vw, 17px); line-height: 1.58; color: #d0c8ca; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 24px; }

.demo-section { margin-top: clamp(28px, 4vw, 51px); }
.reader { padding: 0 7px; border: 1px solid #464047; border-radius: 10px; background: #141315; box-shadow: 0 16px 60px #080709c0; }
.reader-bar, .reader-caption { min-height: 43px; padding-inline: 9px; display: grid; align-items: center; color: var(--muted); }
.reader-bar { grid-template-columns: 1fr auto 1fr; }
.window-dots, .reader-live { display: inline-flex; align-items: center; gap: 6px; }
.window-dots i { border-radius: 50%; width: 7px; height: 7px; background: #52474b; }
.window-dots i:first-child { background: #b64d54; }
.reader-title span { color: #9b777b; }
.reader-live { justify-self: end; gap: 7px; color: var(--acid); }
.panel { --split: 50%; position: relative; isolation: isolate; aspect-ratio: 2.34; overflow: hidden; background: #26171b; border: 1px solid #3d363d; }
.panel > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 46%; }
.panel-layer { position: absolute; inset: 0; }
.sample-original { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.sample-translation { clip-path: inset(0 0 0 var(--split)); }
.panel-label { position: absolute; top: 13px; left: 13px; padding: 6px 9px; border-radius: 3px; border: 1px solid #76706e; background: #151416; color: var(--text); }
.sample-translation .panel-label { left: auto; right: 13px; background: var(--acid); color: #151416; border-color: var(--acid); }
.bubble { position: absolute; display: grid; place-content: center; width: clamp(82px, 15%, 151px); min-height: clamp(53px, 8.8vw, 104px); padding: 6px 9px; border: 2px solid #151416; border-radius: 50%; background: #f5f0e5; color: #171517; box-shadow: 0 2px 0 #151416; text-align: center; font-weight: 900; font-size: clamp(12px, 1.65vw, 22px); line-height: 1.15; }
.bubble::after { content: ""; position: absolute; width: 18%; height: 19%; left: 63%; bottom: -8%; transform: skew(-25deg) rotate(47deg); border-bottom: 2px solid #151416; border-right: 2px solid #151416; background: #f5f0e5; }
.bubble-first { top: 30%; left: 12%; transform: rotate(-6deg); }
.bubble-second { bottom: 17%; right: 13%; transform: rotate(5deg); }
.bubble-second::after { left: 17%; transform: skew(25deg) rotate(42deg); }
.divider { position: absolute; top: 0; bottom: 0; left: var(--split); width: 2px; transform: translateX(-50%); background: var(--acid); pointer-events: none; box-shadow: 0 0 12px #10090a; }
.divider > span { display: grid; place-content: center; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 39px; height: 39px; border-radius: 50%; background: var(--acid); color: #181712; grid-auto-flow: column; align-items: center; gap: 5px; font: 800 25px/1 Arial, sans-serif; }
.divider b { font: inherit; }
.panel input { position: absolute; inset: 0; appearance: none; margin: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.panel input::-webkit-slider-thumb { appearance: none; width: 2px; height: 44px; }
.panel input::-moz-range-thumb { width: 2px; height: 44px; border: 0; }
.panel:focus-within { outline: 2px solid var(--acid); outline-offset: 3px; }
.reader-caption { grid-template-columns: 1fr auto; gap: 10px; letter-spacing: .025em; }
.reader-caption b { color: var(--acid); }

.content-section { padding-block: clamp(52px, 8vw, 93px); }
.content-section h2 { font-size: clamp(44px, 7vw, 82px); line-height: .94; letter-spacing: -.015em; margin-bottom: 31px; }
.feature-grid, .setup-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 25px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.feature-icon { display: inline-grid; place-content: center; border: 1px solid #595537; border-radius: 4px; width: 41px; height: 41px; color: var(--acid); background: #24231a; font-size: 21px; }
.feature h3, .setup-grid h3 { margin-block: 13px 6px; font-weight: 800; font-size: 19px; }
.feature p, .setup-grid p, .download p { color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.pricing-section { border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, #242115 0%, transparent 65%), var(--ground); }
.pricing-section .eyebrow { margin-bottom: 16px; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price-card { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.price-card-featured { border-color: #655e34; background: #1a1913; box-shadow: 0 12px 40px #08070990; }
.price-tag { display: inline-block; padding: 5px 9px; border: 1px solid #444247; border-radius: 3px; font: 600 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted); }
.price-tag-acid { border-color: var(--acid); background: var(--acid); color: #141413; }
.price-amount { margin-top: 14px; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5vw, 62px); line-height: .95; }
.price-amount s { font-size: .48em; color: var(--muted); font-weight: 700; margin-left: 6px; text-decoration-thickness: 2px; }
.price-note { margin-top: 6px; color: var(--muted); font-size: 14px; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text); font-size: 15px; line-height: 1.45; }
.price-list li { position: relative; padding-left: 20px; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--acid); font-weight: 800; }
.price-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.price-alt { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.price-alt:hover { color: var(--acid); }
.footer-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.footer-meta a:hover { color: var(--acid); }
.setup-section { border-block: 1px solid var(--line); background: #111113; }
.setup-grid { counter-reset: setup; margin: 0; padding: 0; }
.setup-grid li { counter-increment: setup; padding: 16px 18px 19px 0; border-top: 1px solid #514c40; }
.setup-grid li::before { content: counter(setup, decimal-leading-zero); color: var(--acid); font: 600 13px var(--mono); }
.setup-grid code { color: var(--text); font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere; }
.download { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; margin-top: 32px; padding: clamp(19px, 3.5vw, 38px); border: 1px solid #655e34; border-radius: 6px; background: #211f16; }
.download h3 { font-size: clamp(35px, 5vw, 53px); line-height: .95; margin-bottom: 8px; }
.download-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 89px; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-content { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 13px; }
  nav { grid-row: 2; grid-column: 1 / -1; justify-content: center; padding-top: 9px; border-top: 1px solid var(--line); }
  .opening { padding-bottom: 21px; }
  .panel { aspect-ratio: 1.52; }
  .panel-label { top: 7px; left: 7px; padding: 4px 5px; letter-spacing: .03em; font-size: 9px; }
  .sample-translation .panel-label { right: 7px; }
  .bubble-first { left: 7%; }
  .bubble-second { right: 8%; }
  .reader-title, .reader-live { font-size: 9px; letter-spacing: .03em; }
  .reader-caption { font-size: 10px; padding-inline: 4px; }
  .feature-grid, .setup-grid, .pricing-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 360px) {
  h1 { font-size: clamp(35px, 12vw, 47px); }
  .header-content .brand { font-size: 20px; }
  .header-content .brand-mark { width: 25px; height: 25px; margin-right: 6px; }
  .button-small { padding-inline: 8px; gap: 5px; font-size: 12px; }
  .window-dots { gap: 3px; }
  .window-dots i { width: 4px; height: 4px; }
  .reader-caption { grid-template-columns: 1fr; gap: 2px; padding-block: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
