:root {
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #f4f7fb;
  --white: #ffffff;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #eff6ff;
  --ok: #047857;
  --ok-soft: #ecfdf5;
  --danger: #b91c1c;
  --shadow: 0 18px 40px -28px rgba(15, 23, 42, 0.35);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(700px 380px at -10% 0%, rgba(14, 165, 233, 0.06), transparent 50%),
    var(--bg);
  font-family: var(--font);
  font-size: 1.02rem;
  line-height: 1.6;
}
body.is-preview { padding-top: 38px; }
a { color: inherit; }
img { max-width: 100%; }

.preview-bar {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  padding: 8px 20px;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  font-size: 0.88rem;
  text-decoration: none;
  text-align: center;
}
.preview-bar:hover { background: var(--brand-2); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6vw;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}
body.is-preview .site-header { top: 38px; }
.mark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #10233f;
}
.mark-logo {
  width: 76px;
  height: 76px;
  display: block;
  object-fit: contain;
}
.mark strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mark em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 600;
}
.site-nav { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.lang-switch a {
  min-width: 34px;
  padding: 3px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.lang-switch a.is-on { background: var(--brand); color: #fff; }
.lang-switch a.is-on:hover { color: #fff; }
html[lang="en"] .hero h1 { max-width: 14em; }
.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: #334155;
}
.site-nav a:hover { color: var(--brand-2); }
.site-nav .lang-switch a {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.site-nav .lang-switch a.is-on,
.site-nav .lang-switch a.is-on:hover { background: var(--brand); color: #fff; }
.nav-cta {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
}
.nav-cta:hover { background: var(--brand-2); color: #fff !important; }
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}

.site-alert {
  margin: 12px 6vw 0;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
}
.site-alert.ok { background: var(--ok-soft); color: var(--ok); }
.site-alert.bad { background: #fef2f2; color: var(--danger); }

.hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
  padding: 48px 6vw 28px;
}
.hero > * { min-width: 0; }
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-2);
}
h1, h2, h3 { letter-spacing: -0.035em; font-weight: 800; }
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  line-height: 1.05;
  max-width: 12em;
  white-space: pre-line;
}
.lede { max-width: 40rem; color: #334155; font-size: 1.08rem; }
.lede-tight { font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
}
.hero-points li { display: flex; gap: 10px; align-items: center; }
.hero-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; }

.ticket-slider { min-width: 0; width: 100%; }
.ticket-viewport {
  container-type: inline-size;
  overflow: hidden;
  width: 100%;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.ticket-track {
  display: flex;
  align-items: stretch;
  width: 100%;
  transition: transform 0.55s ease;
}
.ticket {
  flex: 0 0 100cqi;
  width: 100cqi;
  max-width: 100cqi;
  box-sizing: border-box;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 22px 8px;
}
.ticket header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.ticket header strong { color: var(--brand-2); letter-spacing: 0.04em; }
.ticket h2 { margin: 12px 0 0; font-size: 1.7rem; line-height: 1.15; min-height: 2.3em; }
.ticket-meta { margin: 6px 0 0; color: var(--muted); }
.ticket-facts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 16px 0 4px;
}
.ticket-facts div {
  background: #f8fafc;
  border-radius: 12px;
  padding: 10px 12px;
}
.ticket-facts dt { font-size: 0.72rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ticket-facts dd { margin: 4px 0 0; font-weight: 700; font-size: 0.92rem; }
.ticket ol { list-style: none; margin: 8px 0 0; padding: 0; }
.ticket li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.ticket li span { font-variant-numeric: tabular-nums; font-size: 0.78rem; font-weight: 800; }
.ticket li.is-done { color: var(--ok); }
.ticket li.is-now { color: var(--ink); font-weight: 700; }
.ticket li.is-now span { color: var(--brand); }
.ticket-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.ticket-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.ticket-arrow:hover { border-color: #cbd5e1; color: var(--brand-2); }
.ticket-dots { display: flex; align-items: center; gap: 8px; }
.ticket-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #cbd5e1;
  cursor: pointer;
}
.ticket-dots button[aria-selected="true"] {
  width: 22px;
  background: var(--brand);
}
@media (prefers-reduced-motion: reduce) {
  .ticket-track { transition: none; }
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 12px 6vw 0;
}
.strip div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
}
.strip b { display: block; font-size: 1.05rem; font-weight: 800; }
.strip span { color: var(--muted); font-size: 0.9rem; }

.block { padding: 72px 6vw; }
.block-alt { background: rgba(255, 255, 255, 0.55); }
.block-head { max-width: 42rem; margin-bottom: 28px; }
.block h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; }

.modules, .roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.roles { grid-template-columns: repeat(4, 1fr); }
.modules article, .roles article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px 12px;
}
.mod-kicker {
  margin: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-2);
}
.modules h3, .roles h3 { margin: 8px 0 8px; font-size: 1.45rem; }
.modules p, .roles p { color: #334155; }
.modules ul { padding-left: 18px; margin: 0 0 8px; }
.modules li { margin: 8px 0; }

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.flow li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 18px;
}
.flow span { color: var(--brand); font-weight: 800; }
.flow h3 { margin: 6px 0; font-size: 1.25rem; }
.flow p { margin: 0; color: #334155; }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}
.check-types, .facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.check-types { grid-template-columns: 1fr 1fr; }
.facts li, .check-types li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.check-types b, .facts b { display: block; }
.check-types span, .facts span { color: var(--muted); }

.contact-lines { display: grid; gap: 6px; margin-top: 18px; }
.contact-lines a { font-weight: 700; text-decoration: none; color: var(--brand-2); }
.contact-lines a:hover { color: var(--brand); }

.sheet {
  display: grid;
  gap: 12px;
  background: var(--white);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet label { display: grid; gap: 6px; font-size: 0.84rem; font-weight: 700; }
.sheet input, .sheet textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}
.sheet input:focus, .sheet textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.25);
  border-color: var(--brand);
}
.sheet .btn-primary { border: 0; width: fit-content; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.site-foot {
  padding: 28px 6vw 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}
.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.foot-row > div:first-child {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 12px;
  align-items: center;
}
.site-foot .mark-logo { grid-row: span 2; width: 72px; height: 72px; }
.site-foot strong { color: var(--ink); }
.foot-row p { margin: 2px 0 0; }
.foot-row > div:last-child { display: grid; gap: 6px; text-align: right; align-content: center; }
.site-foot a { color: var(--brand-2); font-weight: 700; text-decoration: none; }
.foot-brand {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  font-weight: 600;
}

.auth-main {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: 32px 6vw 64px;
}
.auth-card { width: min(460px, 100%); }
.auth-card h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 2.6rem); }
.auth-card .sheet { margin-top: 18px; }
.auth-card .btn-primary { width: 100%; }
.demo-note { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }
.demo-note code {
  font-family: ui-monospace, Consolas, monospace;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 6vw 20px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .hero, .modules, .roles, .flow, .split, .strip, .sheet-row, .check-types, .ticket-facts {
    grid-template-columns: 1fr;
  }
  .hero h1 { max-width: none; }
  .foot-row { display: grid; }
  .foot-row > div:last-child { text-align: left; }
  .block { padding: 48px 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
