:root {
  --paper: #f3f1e9;
  --paper-strong: #fffef9;
  --ink: #111714;
  --ink-soft: #39443f;
  --muted: #68736d;
  --line: #d7d9d2;
  --line-dark: #29352f;
  --green: #16b96f;
  --green-dark: #087647;
  --lime: #caff63;
  --blue: #7292ff;
  --orange: #ff8a5b;
  --dark: #101713;
  --dark-2: #17211c;
  --radius: 22px;
  --radius-sm: 13px;
  --shadow: 0 24px 70px rgba(17, 23, 20, 0.12);
  --max: 1180px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(114, 146, 255, 0.17), transparent 28rem),
    radial-gradient(circle at 4% 22%, rgba(202, 255, 99, 0.15), transparent 24rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
h1, h2, h3, p, ul { margin-top: 0; }
h1, h2, h3 { line-height: 1.06; letter-spacing: -0.045em; }
p:last-child { margin-bottom: 0; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 200; padding: 10px 14px; background: var(--lime); border: 2px solid var(--ink); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 241, 233, 0.88);
  border-bottom: 1px solid rgba(17, 23, 20, 0.12);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -0.035em; white-space: nowrap; }
.brand-mark { width: 34px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px; color: var(--paper-strong); background: var(--ink); font-family: var(--mono); font-size: 0.76rem; letter-spacing: -0.08em; box-shadow: 4px 4px 0 var(--lime); }
.brand span:last-child { font-size: 0.98rem; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 3px; color: var(--ink-soft); font-size: 0.92rem; font-weight: 650; }
.nav-links a { padding: 8px 11px; border-radius: 999px; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a.active { color: var(--ink); background: rgba(17, 23, 20, 0.07); outline: none; }
.nav-links .arka-link { color: var(--green-dark); background: rgba(22, 185, 111, 0.11); }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line); background: var(--paper-strong); border-radius: 999px; font-family: var(--mono); font-size: 0.72rem; font-weight: 800; }
.lang-switch a { padding: 5px 9px; color: var(--muted); border-radius: 999px; }
.lang-switch a.active { color: var(--paper-strong); background: var(--ink); pointer-events: none; }
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--paper-strong); cursor: pointer; }

.hero { padding: 86px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr); gap: 58px; align-items: center; }
.eyebrow, .kicker { font-family: var(--mono); color: var(--green-dark); font-size: 0.77rem; font-weight: 800; letter-spacing: 0.105em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px; padding: 7px 10px; border: 1px solid rgba(8, 118, 71, 0.24); border-radius: 999px; background: rgba(255, 254, 249, 0.58); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(22, 185, 111, 0.13); }
.hero h1, .page-hero h1 { max-width: 880px; margin-bottom: 24px; font-size: clamp(3.25rem, 7vw, 6.65rem); font-weight: 850; }
.hero h1 { font-size: clamp(3.2rem, 6vw, 5.9rem); }
.highlight { position: relative; z-index: 0; white-space: nowrap; }
.highlight::after { content: ""; position: absolute; z-index: -1; left: -0.02em; right: -0.03em; bottom: 0.07em; height: 0.28em; border-radius: 4px; background: var(--lime); transform: rotate(-1deg); }
.lead { max-width: 720px; color: var(--ink-soft); font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--ink); border-radius: 12px; font-weight: 800; line-height: 1.2; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--paper-strong); background: var(--ink); box-shadow: 5px 5px 0 var(--lime); }
.button-primary:hover { box-shadow: 7px 7px 0 var(--lime); }
.button-secondary { background: rgba(255, 254, 249, 0.65); border-color: var(--line-dark); }
.button-small { min-height: 40px; padding: 8px 13px; font-size: 0.87rem; }
.micro-proof { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; color: var(--muted); font-size: 0.83rem; }
.micro-proof span { display: inline-flex; align-items: center; gap: 7px; }
.micro-proof span::before { content: "✓"; color: var(--green-dark); font-weight: 900; }

.arka-terminal { position: relative; min-height: 510px; padding: 18px; color: #edf8f1; border-radius: 28px; background: var(--dark); box-shadow: var(--shadow), 14px 14px 0 var(--blue); transform: rotate(1.1deg); }
.arka-terminal::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.06), transparent 28%), radial-gradient(circle at 80% 10%, rgba(202,255,99,.16), transparent 34%); }
.terminal-bar { position: relative; display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 16px; color: #9aaba2; font-family: var(--mono); font-size: 0.72rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.traffic { display: flex; gap: 6px; }
.traffic i { width: 8px; height: 8px; border-radius: 50%; background: #4b5c53; }
.traffic i:first-child { background: var(--orange); }
.traffic i:nth-child(2) { background: #ffd96a; }
.traffic i:last-child { background: var(--green); }
.arka-lockup { position: relative; padding: 38px 16px 22px; }
.arka-lockup small { color: var(--lime); font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; }
.arka-lockup strong { display: block; margin: 8px 0 5px; font-family: var(--mono); font-size: clamp(3.4rem, 8vw, 6.5rem); line-height: .95; letter-spacing: -.11em; }
.arka-lockup p { max-width: 320px; color: #9fb0a7; }
.status-grid { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.status-card { padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.045); }
.status-card span { display: block; color: #84958c; font-family: var(--mono); font-size: .67rem; text-transform: uppercase; letter-spacing: .1em; }
.status-card b { display: block; margin-top: 4px; font-size: .94rem; letter-spacing: -.015em; }
.status-card b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.terminal-foot { position: relative; display: flex; justify-content: space-between; gap: 20px; margin-top: 16px; padding: 14px 16px; color: #9fb0a7; border-radius: 14px; background: #0a0f0c; font-family: var(--mono); font-size: .72rem; }
.terminal-foot em { color: var(--lime); font-style: normal; }

.arka-showcase { position: relative; padding: 12px; border: 1px solid rgba(17,23,20,.12); border-radius: 28px; background: rgba(255,254,249,.72); box-shadow: var(--shadow), 13px 13px 0 var(--blue); transform: rotate(1deg); }
.showcase-window { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 19px; background: var(--dark); }
.showcase-bar { min-height: 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 0 14px; color: #8fa098; background: #0b100d; font-family: var(--mono); font-size: .67rem; letter-spacing: .02em; }
.showcase-bar b { color: var(--lime); font-size: .62rem; letter-spacing: .09em; }
.showcase-image-link { display: block; line-height: 0; background: var(--paper); }
.showcase-window img { width: 100%; height: auto; aspect-ratio: 1731 / 909; object-fit: contain; object-position: center; border-top: 1px solid rgba(255,255,255,.08); }
.media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper-strong); box-shadow: 0 18px 48px rgba(17,23,20,.08); }
.media-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left top; background: var(--dark); }
.media-card div { padding: 18px 20px 20px; }
.media-card h3 { margin-bottom: 7px; font-size: 1.16rem; }
.media-card p { color: var(--muted); font-size: .9rem; }

.section { padding: 86px 0; }
.section-dark { color: #eef8f1; background: var(--dark); }
.section-tint { background: rgba(255, 254, 249, 0.54); border-top: 1px solid rgba(17,23,20,.08); border-bottom: 1px solid rgba(17,23,20,.08); }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2 { margin: 9px 0 16px; font-size: clamp(2.35rem, 5vw, 4.35rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p { color: #a4b4ab; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,254,249,.68); }
.card .number { display: block; margin-bottom: 46px; color: var(--green-dark); font-family: var(--mono); font-size: .78rem; font-weight: 850; }
.card h3 { margin-bottom: 12px; font-size: 1.42rem; }
.card p { color: var(--muted); }
.card-dark { border-color: rgba(255,255,255,.12); background: var(--dark-2); }
.card-dark p { color: #a8b6ae; }
.card-dark .number { color: var(--lime); }
.feature-link { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; color: var(--green-dark); font-weight: 800; }
.feature-link::after { content: "↗"; font-size: 1.15rem; }

.split { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: start; }
.split h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.steps { display: grid; gap: 10px; counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,254,249,.64); }
.step::before { content: counter(step, decimal-leading-zero); color: var(--green-dark); font-family: var(--mono); font-weight: 900; }
.step h3 { margin: 0 0 6px; font-size: 1.14rem; }
.step p { color: var(--muted); font-size: .94rem; }

.page-hero { padding: 86px 0 52px; }
.page-hero h1 { margin-top: 16px; }
.page-hero .lead { max-width: 800px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.meta-pill { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,254,249,.58); color: var(--ink-soft); font-family: var(--mono); font-size: .74rem; }
.meta-pill.ok { color: var(--green-dark); border-color: rgba(22,185,111,.35); background: rgba(22,185,111,.09); }

.screenshot-shell { padding: 12px; border: 1px solid var(--line); border-radius: 26px; background: var(--paper-strong); box-shadow: var(--shadow); }
.screenshot-shell img { width: 100%; border-radius: 16px; background: var(--dark); }
.screenshot-caption { display: flex; justify-content: space-between; gap: 20px; padding: 13px 5px 2px; color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.test-summary { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 24px; }
.test-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(255,254,249,.65); }
.test-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.test-row:last-child { border-bottom: 0; }
.test-row b { font-size: .95rem; }
.test-row span { color: var(--green-dark); font-family: var(--mono); font-size: .76rem; font-weight: 850; }
.notice { padding: 22px; color: #e9f4ed; border-radius: 20px; background: var(--dark); }
.notice strong { display: block; margin-bottom: 8px; color: var(--lime); }
.notice p { color: #a8b7af; font-size: .92rem; }

.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.capability { min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,254,249,.62); }
.capability h3 { font-size: 1.35rem; }
.capability p { color: var(--muted); }
.capability .tag { display: inline-block; margin-bottom: 34px; color: var(--green-dark); font-family: var(--mono); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .09em; }

.checklist { display: grid; gap: 12px; }
.check-group { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,254,249,.64); }
.check-group-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.check-group h2 { margin: 0; font-size: 1.7rem; }
.check-group-head span { color: var(--green-dark); font-family: var(--mono); font-size: .76rem; font-weight: 800; }
.check-item { display: grid; grid-template-columns: 28px 1fr; gap: 13px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.check-item input { width: 21px; height: 21px; margin-top: 2px; accent-color: var(--green); }
.check-item b { display: block; margin-bottom: 3px; }
.check-item small { display: block; color: var(--muted); font-size: .87rem; line-height: 1.45; }
.progress-panel { position: sticky; top: 92px; padding: 25px; border-radius: 20px; color: #edf8f1; background: var(--dark); }
.progress-panel strong { display: block; font-size: clamp(3.2rem, 8vw, 5.4rem); letter-spacing: -.08em; line-height: 1; }
.progress-track { height: 8px; margin: 18px 0; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime); transition: width .25s ease; }
.progress-panel p { color: #a8b7af; font-size: .9rem; }
.check-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }

.compact-about { max-width: 760px; }
.compact-about h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
.author-note { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 34px; border-radius: 24px; color: #eef8f1; background: var(--dark); }
.contact-band h2 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 3rem); }
.contact-band p { color: #a8b7af; }
.copy-status { min-height: 1.3em; margin-top: 8px; color: var(--lime); font-family: var(--mono); font-size: .75rem; }

.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 28px; color: var(--muted); font-size: .82rem; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a:hover { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

@media (max-width: 920px) {
  .nav { min-height: 66px; }
  .nav-links { position: fixed; inset: 66px 0 auto; display: none; margin: 0; padding: 20px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(17,23,20,.12); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 12px 14px; }
  .menu-toggle { display: grid; place-items: center; }
  .hero-grid, .split, .test-summary { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .arka-terminal { min-height: 480px; transform: none; box-shadow: var(--shadow), 8px 8px 0 var(--blue); }
  .arka-showcase { transform: none; box-shadow: var(--shadow), 8px 8px 0 var(--blue); }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .split { gap: 34px; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--max)); }
  .brand span:last-child { display: none; }
  .lang-switch { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
  .hero, .page-hero { padding: 58px 0 48px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.75rem, 15vw, 4.4rem); }
  .section { padding: 64px 0; }
  .cards-3, .capability-grid, .check-layout, .media-grid { grid-template-columns: 1fr; }
  .card .number { margin-bottom: 30px; }
  .hero-actions .button { width: 100%; }
  .status-grid { grid-template-columns: 1fr; }
  .arka-terminal { min-height: 560px; padding: 14px; }
  .arka-lockup { padding: 32px 8px 18px; }
  .terminal-foot, .screenshot-caption, .contact-band, .footer-inner { align-items: flex-start; flex-direction: column; }
  .test-row { grid-template-columns: 1fr; gap: 5px; }
  .progress-panel { position: static; order: -1; }
  .contact-band .button { width: 100%; }
}
