:root {
  color-scheme: dark;
  --bg: #0c0e0d;
  --surface: #121514;
  --surface-raised: #181b19;
  --line: #2a2e2b;
  --line-strong: #414640;
  --text: #f3f1ea;
  --muted: #a5aaa4;
  --accent: #ef9b36;
  --accent-hover: #ffa94d;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  padding: 12px max(24px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  gap: 28px;
  background: rgba(12, 14, 13, .96);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; margin-right: auto; }
.brand img { display: block; width: 164px; height: auto; }
.site-header nav, .auth-actions { display: flex; align-items: center; gap: 22px; }
.site-header nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.site-header nav a:hover, .text-link:hover { color: var(--text); }

.button {
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--accent);
  color: #1b1208;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button.secondary, .button.ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.button.secondary:hover, .button.ghost:hover { border-color: #70766f; background: var(--surface-raised); }
.button.compact { min-height: 38px; padding: 8px 14px; font-size: .88rem; }
.button.large { padding: 12px 19px; }
.button.wide { width: 100%; }
.account-chip { border: 1px solid var(--line-strong); border-radius: 5px; background: transparent; color: var(--text); padding: 9px 13px; font-weight: 650; cursor: pointer; }
.header-download { white-space: nowrap; gap: 5px; }
.header-download[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }

.hero { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 64px; padding-block: 76px 64px; }
.eyebrow { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; font-weight: 750; font-size: .72rem; }
.hero h1 { max-width: 590px; margin: 14px 0 20px; font-size: clamp(2.7rem, 5vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; }
.hero-copy > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 30px; }
.text-link { color: var(--muted); font-weight: 650; text-decoration: none; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--muted); font-size: .8rem; }
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts span::before { content: ""; width: 5px; height: 5px; background: var(--accent); }
.client-preview { margin: 0; border: 1px solid var(--line-strong); background: #090a09; }
.client-preview img { display: block; width: 100%; height: auto; }
.client-preview figcaption { padding: 9px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; }

.section { padding-block: 84px; border-top: 1px solid var(--line); }
.section-heading { max-width: 680px; margin-bottom: 34px; }
.section h2, .account-panel h2 { margin: 10px 0 12px; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.section-heading > p, .account-panel p { margin: 0; color: var(--muted); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); }
.plan { min-width: 0; padding: 28px; display: flex; flex-direction: column; background: var(--surface); }
.plan + .plan { border-left: 1px solid var(--line-strong); }
.plan.featured { background: var(--surface-raised); box-shadow: inset 0 3px 0 var(--accent); }
.plan-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-name { color: var(--muted); font-weight: 750; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.saving { color: var(--accent); font-size: .75rem; font-weight: 800; }
.plan h3 { margin: 14px 0 5px; font-size: 2rem; letter-spacing: -.03em; }
.price { margin: 14px 0 5px; display: flex; align-items: baseline; gap: 8px; }
.price strong { font-size: 2.2rem; line-height: 1; letter-spacing: -.035em; }
.price span { color: var(--muted); font-size: .8rem; }
.plan p { min-height: 50px; margin: 0; color: var(--muted); font-size: .9rem; }
.plan s { color: #737872; }
.plan ul { margin: 24px 0 28px; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; flex: 1; }
.plan li { padding: 5px 0; color: #d4d5d0; font-size: .9rem; }
.plan li::before { content: "—"; margin-right: 9px; color: var(--accent); }
.payment-note { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }

.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: steps; }
.delivery-grid article { position: relative; min-height: 245px; padding: 24px; border: 1px solid var(--line); border-top: 3px solid var(--line-strong); background: var(--surface); display: flex; flex-direction: column; }
.delivery-grid article:last-child { border-top-color: var(--accent); background: var(--surface-raised); }
.delivery-grid article:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -24px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--accent); display: grid; place-items: center; font-weight: 800; }
.step-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .7rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.step-head b { color: var(--accent); font-size: 1rem; }
.delivery-grid h3 { margin: 28px 0 9px; font-size: 1.3rem; }
.delivery-grid p, .feature-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.delivery-grid small { margin-top: auto; padding-top: 24px; color: #d8dad5; font-size: .78rem; }
.delivery-grid small::before { content: "✓"; margin-right: 8px; color: var(--accent); font-weight: 800; }
.download-integrity { margin-top: 16px; padding: 13px 0; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: .76rem; }
.download-integrity strong { color: var(--text); }
.download-integrity span { overflow-wrap: anywhere; }
.download-integrity code { color: #ced1cc; }

.feature-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.feature-grid article { grid-column: span 4; min-height: 210px; padding: 24px; border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 58px 1fr; gap: 20px; align-items: start; }
.feature-grid article:first-child { grid-column: span 7; }
.feature-grid article:nth-child(2) { grid-column: span 5; }
.feature-grid article:first-child { background: var(--surface-raised); border-color: var(--line-strong); }
.feature-mark { width: 58px; height: 58px; border: 1px solid var(--line-strong); color: var(--accent); display: grid; place-items: center; font-size: .7rem; font-weight: 850; letter-spacing: .06em; }
.feature-type { color: var(--muted); font-size: .67rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.feature-grid h3 { margin: 7px 0 8px; font-size: 1.2rem; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.feature-tags span { padding: 4px 7px; border: 1px solid var(--line); color: #d5d7d2; font-size: .7rem; }

.account-panel { margin-block: 64px; padding: 30px 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 34px; }
.account-status { min-width: 170px; }
.account-status small, .account-status span { display: block; color: var(--muted); }
.account-status strong { display: block; margin-block: 2px; font-size: 1.45rem; }

footer { padding-block: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 28px; color: var(--muted); font-size: .78rem; }
footer img { width: 136px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a, .legal a { color: var(--muted); }
.footer-links a:hover, .legal a:hover { color: var(--text); }

dialog { width: min(430px, calc(100% - 28px)); padding: 28px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .75); }
dialog > img { display: block; width: 155px; margin: 0 auto 22px; }
.dialog-close { position: absolute; right: 13px; top: 7px; padding: 4px 8px; border: 0; background: transparent; color: var(--muted); font-size: 1.7rem; cursor: pointer; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.auth-tabs button.active { border-color: var(--accent); color: var(--text); }
form label { display: block; margin: 14px 0; color: #d7d8d3; font-size: .84rem; }
.consent { display: flex; align-items: flex-start; gap: 9px; font-size: .78rem; line-height: 1.4; }
.consent input { width: auto; margin-top: 2px; }
input { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 4px; outline: 0; background: var(--bg); color: var(--text); }
input:focus { border-color: var(--accent); }
.form-message { min-height: 23px; margin: 9px 0; color: #ffad91; font-size: .82rem; }
.auth-link { display: block; margin: 14px auto 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; }

.legal { max-width: 820px; padding-block: 64px; }
.legal h1 { margin: 16px 0 34px; font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1; }
.legal h2 { margin-top: 34px; }
.legal p, .legal li { color: var(--muted); }
.seller-card { display: grid; gap: 5px; margin: 20px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.seller-card span { color: var(--muted); }

@media (max-width: 920px) {
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 38px; padding-block: 58px; }
  .client-preview { max-width: 690px; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line-strong); }
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-grid article { min-height: 220px; }
  .delivery-grid article:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -24px; margin: 0 -17px 0 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid article, .feature-grid article:first-child, .feature-grid article:nth-child(2), .feature-grid article:last-child { grid-column: span 1; }
  .feature-grid article:first-child { grid-column: 1 / -1; }
  .download-integrity { flex-direction: column; gap: 5px; }
  .account-panel { grid-template-columns: 1fr auto; }
  .account-panel > .button { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1120px); }
  .site-header { min-height: 62px; padding-inline: 14px; gap: 9px; }
  .brand img { width: 130px; }
  .auth-actions { gap: 7px; }
  .auth-actions [data-auth="register"] { display: none; }
  .auth-actions [data-auth="login"] { padding-inline: 11px; }
  .header-download { padding-inline: 11px; font-size: .8rem; }
  .header-download .download-platform { display: none; }
  .hero { padding-block: 46px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-facts { flex-direction: column; gap: 6px; }
  .section { padding-block: 62px; }
  .plan { padding: 24px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article:first-child, .feature-grid article:nth-child(2), .feature-grid article:last-child { grid-column: auto; min-height: 0; }
  .account-panel { grid-template-columns: 1fr; }
  .account-panel > .button { grid-column: auto; }
  footer { align-items: flex-start; flex-direction: column; gap: 13px; }
}

@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
