:root {
  --ink: #101116;
  --paper: #f7f2e8;
  --paper-2: #eee7d9;
  --blue: #1428ff;
  --blue-deep: #0a18aa;
  --coral: #ff5a5f;
  --mint: #bff4e8;
  --white: #fffdf8;
  --line: rgba(16, 17, 22, .18);
  --shadow: 8px 8px 0 #101116;
  --radius: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(16,17,22,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,17,22,.045) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 4px solid var(--coral);
  outline-offset: 4px;
}

.skip {
  position: fixed;
  left: 16px;
  top: -90px;
  z-index: 100;
  padding: 12px 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 0 0 12px 12px;
}

.skip:focus { top: 0; }

.wrap {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.topbar {
  border-bottom: 2px solid var(--ink);
  background: rgba(247, 242, 232, .94);
  backdrop-filter: blur(12px);
}

.topbar .wrap {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 13px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 21px;
}

.brand small {
  display: block;
  margin-top: -3px;
  color: rgba(16,17,22,.62);
  font-size: 10px;
  letter-spacing: .16em;
}

.header-actions,
.hero-actions,
.mobile-dock {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: 13px;
  text-decoration: none;
  font-weight: 900;
  line-height: 1;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
}

.btn-login {
  color: var(--ink);
  background: var(--white);
}

.btn-register {
  color: var(--white);
  background: var(--coral);
  box-shadow: 4px 4px 0 var(--ink);
}

.hero {
  padding: 58px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-panel {
  border: 2px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 74px);
  background: var(--blue);
  color: var(--white);
}

.hero-copy::after {
  content: "CAT";
  position: absolute;
  right: -16px;
  bottom: -72px;
  color: rgba(255,255,255,.09);
  font-size: clamp(150px, 23vw, 330px);
  font-weight: 1000;
  letter-spacing: -.11em;
  line-height: 1;
}

.eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 11px;
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dot {
  width: 9px;
  height: 9px;
  background: var(--coral);
  border: 1px solid var(--ink);
  border-radius: 50%;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Arial Black, Inter, Arial, sans-serif;
  letter-spacing: -.045em;
  line-height: 1.06;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6.6vw, 88px);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(31px, 4vw, 54px);
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 690px;
  margin: 0 0 30px;
  color: rgba(255,255,255,.9);
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-height: 60px;
  padding-inline: 28px;
  font-size: 18px;
}

.hero-actions .btn-login { background: var(--mint); }

.microcopy {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
}

.hero-panel {
  padding: 26px;
  background: var(--white);
}

.panel-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.route-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: route;
}

.route-list li {
  counter-increment: route;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.route-list li::before {
  content: "0" counter(route);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.route-list a {
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 800;
}

.notice {
  margin-top: 24px;
  padding: 16px;
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 14px;
  font-size: 14px;
}

.ticker {
  overflow: hidden;
  margin: 26px 0 0;
  border-block: 2px solid var(--ink);
  background: var(--coral);
}

.ticker-track {
  width: max-content;
  display: flex;
  gap: 34px;
  padding: 11px 0;
  animation: ticker 24s linear infinite;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@keyframes ticker { to { transform: translateX(-50%); } }

.section {
  padding: 82px 0;
  border-bottom: 2px solid var(--ink);
}

.section-tag {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-intro {
  max-width: 800px;
  margin: -7px 0 34px;
  font-size: 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card {
  min-height: 220px;
  padding: 24px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.card:nth-child(2n) { background: var(--mint); }
.card:nth-child(3n) { background: #ffd9d3; }

.card-num {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 30px;
  margin-bottom: 28px;
  color: var(--white);
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.card p { margin-bottom: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  padding: 30px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.step::before {
  content: attr(data-step);
  display: block;
  margin-bottom: 40px;
  color: var(--coral);
  font-size: 52px;
  font-weight: 1000;
  line-height: 1;
}

.step p { color: rgba(255,255,255,.76); }

.inline-cta {
  margin-top: 22px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

.inline-cta p { margin: 0; }

.inline-cta .btn { flex: 0 0 auto; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.checklist,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li,
.plain-list li {
  position: relative;
  padding: 15px 16px 15px 50px;
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 10px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.plain-list { counter-reset: plain; }

.plain-list li::before {
  content: counter(plain, decimal-leading-zero);
  counter-increment: plain;
  position: absolute;
  left: 6px;
  top: 16px;
  color: var(--coral);
  font-weight: 900;
}

.slot-board {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.filters,
.read-card,
.safety-card {
  padding: clamp(24px, 4vw, 42px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.filters {
  color: var(--white);
  background: var(--blue);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0;
}

.chip {
  padding: 9px 13px;
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.read-card { background: var(--coral); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat {
  padding: 24px 18px;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 18px;
}

.stat span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 30px;
  font-weight: 1000;
  line-height: 1;
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--white);
}

th, td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--white);
  background: var(--ink);
  font-size: 13px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

tr:last-child td { border-bottom: 0; }

.safety-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.safety-card { background: var(--white); }
.safety-card:first-child { background: var(--mint); }

.faq {
  display: grid;
  gap: 12px;
}

details {
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 16px;
}

summary {
  position: relative;
  padding: 22px 64px 22px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
}

summary::-webkit-details-marker { display: none; }

summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 15px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-size: 24px;
}

details[open] summary::after { content: "−"; }

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: rgba(16,17,22,.75);
}

.editorial {
  padding: 34px;
  background: var(--paper-2);
  border: 2px dashed var(--ink);
  border-radius: var(--radius);
}

.editorial p:last-child { margin-bottom: 0; }

footer {
  padding: 48px 0 110px;
  color: var(--white);
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 30px;
}

.footer-brand {
  margin: 0 0 14px;
  font-size: 34px;
  font-weight: 1000;
  letter-spacing: -.05em;
}

.footer-copy {
  max-width: 640px;
  color: rgba(255,255,255,.65);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 12px 18px;
}

.footer-links a {
  color: var(--mint);
  text-underline-offset: 4px;
}

.mobile-dock { display: none; }

@media (max-width: 900px) {
  .header-actions { display: none; }
  .hero-grid,
  .slot-board,
  .split,
  .safety-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero-copy { padding: 42px 30px; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 620px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .wrap { width: min(100% - 24px, 1180px); }
  .topbar .wrap { min-height: 72px; }
  .hero { padding-top: 24px; }
  .hero-grid { gap: 16px; }
  .hero-copy, .hero-panel { box-shadow: 5px 5px 0 var(--ink); }
  .hero-copy { padding: 34px 22px; }
  h1 { font-size: clamp(38px, 13vw, 58px); }
  h2 { font-size: 34px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 58px 0; }
  .card-grid,
  .stat-grid { grid-template-columns: 1fr; }
  .inline-cta { align-items: stretch; flex-direction: column; }
  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 2px solid var(--ink);
  }
  .mobile-dock .btn { min-height: 48px; padding: 9px 12px; }
  footer { padding-bottom: 42px; }
}

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