:root {
  color-scheme: dark;
  --canvas: #111823;
  --panel: #1a2433;
  --raised: #243245;
  --line: #3c4b61;
  --ink: #fbf0e5;
  --soft: #b7c5d9;
  --metal: #f2b386;
  --metal-ink: #24160f;
  --good: #a3dbbb;
  --bad: #ffadab;
  --max: 1216px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); line-height: 1.55; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--metal); }
:focus-visible { outline: 2px solid #f9d5b7; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
svg.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.skip { position: fixed; top: -60px; left: 1rem; z-index: 10; padding: .7rem 1rem; background: var(--metal); color: var(--metal-ink); }
.skip:focus { top: .7rem; }
.sr-only { width: 1px; height: 1px; overflow: hidden; position: absolute; clip-path: inset(50%); white-space: nowrap; }
.shell { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }
.masthead { border-bottom: 1px solid #ffffff1b; }
.topbar { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 1.55rem; font-weight: 780; letter-spacing: -.055em; }
.logo img { width: 33px; height: 33px; }
.navigation, .tools, .actions { display: flex; align-items: center; gap: 18px; }
.navigation { color: var(--soft); gap: 30px; }
.tools { gap: 10px; }
.lang, .quiet, .primary, .outline, .text-button, .danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  min-height: 44px; padding: .6rem .95rem; border-radius: 7px; font-weight: 650; line-height: 1.22;
}
.primary { background: var(--metal); color: var(--metal-ink); }
.primary:hover { background: #ffd0ad; color: var(--metal-ink); }
.outline, .lang { background: #121925bd; border-color: var(--line); color: var(--ink); }
.outline:hover, .lang:hover { border-color: var(--metal); color: var(--metal); }
.quiet { color: var(--soft); background: transparent; }
.quiet:hover, .text-button:hover { color: var(--metal); }
.text-button { color: var(--ink); background: none; padding-inline: 0; }
.danger { color: var(--bad); border-color: #c76b6b63; background: #c76b6b14; }
.danger:hover { background: #c76b6b30; }
button[disabled] { cursor: default; opacity: .58; }
.hero { isolation: isolate; position: relative; min-height: 575px; border-bottom: 1px solid #ffffff22; overflow: hidden; background: #1d2c43; }
.hero::before, .hero::after { position: absolute; content: ""; inset: 0; z-index: -1; }
.hero::before { background: url("/assets/deadlock-city.webp") 64% 49% / cover no-repeat; }
.hero::after { background: linear-gradient(90deg, #101722 0%, #131d2bf5 22%, #162234cb 43%, #17223423 75%), linear-gradient(0deg, #101723d6, transparent 37%); }
.hero-body { min-height: 575px; display: grid; align-content: center; justify-items: start; padding-block: 52px 72px; }
.target { display: flex; align-items: center; gap: 8px; color: #f8c9a3; font-weight: 620; }
.hero h1 { font-size: clamp(3.65rem, 7vw, 6.65rem); line-height: .98; letter-spacing: -.082em; margin: 20px 0; max-width: 9ch; font-weight: 810; }
.hero p { font-size: clamp(1rem, 2vw, 1.24rem); color: #dfebf6; max-width: 34ch; }
.hero .actions { margin-top: 32px; flex-wrap: wrap; }
.hero .primary { min-height: 49px; padding-inline: 1.2rem; }
.hero .hero-caption { position: absolute; bottom: 16px; right: max(32px, calc((100% - var(--max)) / 2)); font-size: .85rem; color: #e6e7eac9; }
.quick { border-bottom: 1px solid #ffffff26; background: #151e2b; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.quick-item { display: flex; align-items: center; gap: 14px; min-height: 91px; padding: 15px 22px; border-inline-end: 1px solid #ffffff1b; }
.quick-item:first-child { padding-left: 0; }
.quick-item:last-child { border-inline-end: 0; }
.quick-item .icon { color: var(--metal); width: 25px; height: 25px; }
.quick-item strong { display: block; font-size: .98rem; }
.quick-item span { display: block; color: var(--soft); font-size: .875rem; }
.section { padding-block: 80px; scroll-margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); font-weight: 760; line-height: 1.05; letter-spacing: -.055em; }
.section-heading p, .muted { color: var(--soft); }
.section-heading p { max-width: 37ch; }
.pricing { border: 1px solid var(--line); display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); border-radius: 9px; overflow: hidden; }
.ticket { display: grid; grid-template-rows: auto auto auto 1fr; gap: 10px; background: #192333; min-height: 220px; padding: 21px 15px 16px; border-right: 1px solid var(--line); }
.ticket:last-child { border: 0; background: #2d2b35; }
.ticket strong { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -.06em; }
.ticket span { color: var(--soft); font-size: .9rem; }
.ticket:last-child strong { color: var(--metal); }
.ticket .outline { align-self: end; width: 100%; min-height: 39px; font-size: .875rem; padding-inline: .55rem; }
.checkout-note { margin-top: 15px; color: var(--soft); display: flex; align-items: first baseline; gap: 9px; }
.checkout-note .icon { align-self: center; color: var(--metal); }
.demo-band { background: #182332; border-block: 1px solid #ffffff1d; }
.demonstration { display: grid; align-items: center; gap: 50px; grid-template-columns: 4fr 7fr; }
.demonstration h2 { margin-bottom: 14px; }
.demonstration p { max-width: 37ch; }
.poster, .demo-video { border: 1px solid var(--line); border-radius: 8px; width: 100%; aspect-ratio: 16/9; background: #202c3e; display: block; }
.poster { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: end; padding: 18px; }
.poster::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#0e1521e6,transparent 65%), url("/assets/deadlock-demo.png") center / cover; z-index: -1; }
.poster-label { display: flex; gap: 9px; align-items: center; padding: .55rem .8rem; background: #101722e8; color: var(--ink); border: 1px solid #8d99ad65; border-radius: 5px; }
.questions { display: grid; grid-template-columns: 2fr 3fr; gap: 35px; }
details { border-bottom: 1px solid var(--line); padding: 1rem .2rem; }
summary { cursor: pointer; font-weight: 650; }
details p { color: var(--soft); padding: 12px 0 0 1rem; }
.footer { background: #0c131d; border-top: 1px solid #ffffff1b; color: var(--soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; min-height: 102px; gap: 25px; }
.footer p { font-size: .88rem; max-width: 56ch; }
.interior { padding-block: 45px 75px; min-height: calc(100vh - 179px); }
.interior h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.057em; margin-bottom: 12px; }
.interior .back { display: inline-flex; gap: 8px; align-items: center; color: var(--soft); margin-bottom: 22px; }
.columns { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); padding: clamp(16px, 3vw, 30px); border-radius: 9px; }
.panel h2 { font-size: 1.55rem; margin-bottom: 12px; letter-spacing: -.03em; }
.panel p + form, .panel h2 + form { margin-top: 15px; }
.panel form { display: grid; gap: 14px; }
.panel form .primary { justify-self: start; }
.signin-panel { max-width: 480px; }
.form-row { display: grid; gap: 5px; }
.form-row label { color: var(--soft); font-size: .93rem; font-weight: 650; }
input, select, textarea { width: 100%; padding: .7rem .78rem; min-height: 44px; color: var(--ink); border: 1px solid var(--line); background: #111a27; border-radius: 6px; }
textarea { resize: vertical; font: inherit; }
.form-error { color: var(--bad); }
.form-error:empty { display: none; }
.notice { margin-block: 14px; padding: .7rem .9rem; border: 1px solid #6a987a; color: var(--good); background: #20433266; border-radius: 6px; }
.device { margin-block: 18px; border-color: #9d775c; }
.device code { padding: .2rem .4rem; margin: 0 .18rem; border-radius: 4px; background: #121925; color: var(--metal); font-size: 1rem; }
.panel .actions { margin-top: 16px; flex-wrap: wrap; }
.status { color: var(--soft); font-weight: 650; }
.status.active { color: var(--good); }
.status.blocked { color: var(--bad); }
.dashboard { margin-top: 25px; display: grid; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { display: grid; gap: 4px; background: var(--panel); padding: 16px 19px; border: 1px solid var(--line); border-radius: 7px; }
.stat strong { font-size: 2.2rem; line-height: 1; }
.stat span { color: var(--soft); font-size: .9rem; }
.dashboard .columns { margin: 0; }
.table-view { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { color: var(--soft); font-weight: 650; }
td, th { padding: .67rem .75rem .67rem 0; border-bottom: 1px solid var(--line); }
td .quiet, td .danger { min-height: 34px; padding-block: .35rem; font-size: .875rem; }
.inline-form { grid-template-columns: minmax(100px,1fr) minmax(95px,1fr) auto; align-items: end; }
.inline-form.currency { grid-template-columns: minmax(100px,1fr) minmax(90px,.7fr) minmax(75px,.5fr) auto; }
.key-output { margin-top: 12px; }
.key-output textarea { font-family: Consolas, monospace; font-size: .875rem; margin-block: 8px; }
@media (max-width: 1000px) {
  .pricing { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ticket { min-height: 175px; }
  .ticket:nth-child(3) { border-right: 0; }
  .ticket:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .inline-form, .inline-form.currency { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .shell { width: min(calc(100% - 36px), var(--max)); }
  .topbar { min-height: 65px; gap: 10px; }
  .navigation { display: none; }
  .hero, .hero-body { min-height: 490px; }
  .hero h1 { font-size: clamp(2.5rem, 12vw, 4.25rem); max-width: 100%; }
  .hero .actions { max-width: 100%; }
  .hero::before { background-position: 64% center; }
  .hero::after { background: linear-gradient(90deg, #111a27f2, #111a2782 63%, #111a274a), linear-gradient(0deg, #101723d6, transparent 40%); }
  .hero .hero-caption { right: 18px; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item { min-height: 68px; padding-inline: 0; border: 0; border-bottom: 1px solid #ffffff1b; }
  .quick-item:last-child { border: 0; }
  .section { padding-block: 52px; }
  .section-heading { display: grid; gap: 12px; }
  .demonstration, .questions, .columns { grid-template-columns: 1fr; gap: 23px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 24px; gap: 10px; }
}
@media (max-width: 420px) {
  .tools .outline { padding-inline: 8px; font-size: .88rem; }
  .logo { font-size: 1.4rem; }
  .pricing { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ticket:nth-child(3) { border-right: 1px solid var(--line); }
  .ticket:nth-child(even) { border-right: 0; }
  .ticket:nth-child(4) { border-bottom: 1px solid var(--line); }
  .actions { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
