:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --text: #0f172a;
  --muted: #526079;
  --line: #e3e8f0;
  --brand: #3b5bfd;
  --brand-dark: #2a44d4;
  --brand-soft: #eef1ff;
  --accent: #10b9a0;
  --navy: #0b1530;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 800;
}
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; font-size: 1.5rem; padding: 6px; }

@media (max-width: 760px) {
  .nav-toggle-label { display: block; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
  }
  .nav-links a { display: block; padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: .98rem; border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--brand); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Sections */
section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: #e6ebf7; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: #b9c3dc; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.section-dark .eyebrow { color: #8fa5ff; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 100px 0 90px; background: radial-gradient(circle at 85% 10%, var(--brand-soft), transparent 55%); }
.hero h1 { max-width: 820px; }
.hero .lead { font-size: 1.25rem; margin-bottom: 28px; }
.page-hero { padding: 72px 0 48px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-bottom: 0; }

/* Grid & cards */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 42px; height: 42px; border-radius: 10px; background: var(--brand-soft);
  color: var(--brand); display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 14px;
}
.section-dark .card { background: #121f45; border-color: #22305a; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.product-visual {
  border-radius: 18px; padding: 22px; background: linear-gradient(135deg, var(--navy), #1b2c66);
  color: #fff; box-shadow: 0 20px 50px rgba(11,21,48,.18);
}
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.board-col { background: rgba(255,255,255,.07); border-radius: 10px; padding: 10px; }
.board-col h4 { margin: 0 0 8px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #9fb0e0; }
.ticket { background: rgba(255,255,255,.12); border-radius: 7px; height: 26px; margin-bottom: 7px; }
.ticket.short { width: 70%; }
.ticket.hl { background: var(--accent); opacity: .85; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* Roadmap */
.roadmap { position: relative; display: grid; gap: 18px; }
.roadmap-item { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: start; }
.roadmap-item .when { font-weight: 700; color: #8fa5ff; padding-top: 26px; }
@media (max-width: 620px) {
  .roadmap-item { grid-template-columns: 1fr; gap: 6px; }
  .roadmap-item .when { padding-top: 0; }
}
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.tag.live { background: #dcfaf3; color: #077a68; }


/* Facts table */
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 40%; color: var(--muted); font-weight: 500; padding-right: 16px; }

/* Legal pages */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .95rem; }

/* Placeholder marker: content Hugo still needs to confirm */
.tbc { background: #fff4c2; border-bottom: 2px dashed #e0a800; padding: 0 3px; border-radius: 3px; }

/* CTA */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--navy); color: #9fb0d6; padding: 56px 0 28px; font-size: .93rem; }
.site-footer a { color: #cfd8f0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid #22305a; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer .tbc { color: var(--text); }

/* Products dropdown */
.dropdown { position: relative; }
.caret { font-size: .7em; margin-left: 2px; }
.dropdown-menu {
  list-style: none; margin: 0; padding: 8px; display: none;
  position: absolute; top: 100%; left: -16px; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(11,21,48,.12);
}
.dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; margin-top: 10px; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.dropdown-menu a:hover { background: var(--bg-soft); }
.dropdown-menu strong { display: block; color: var(--text); font-size: .95rem; }
.dropdown-menu span { display: block; color: var(--muted); font-size: .82rem; font-weight: 400; }
@media (max-width: 760px) {
  .dropdown-menu { display: block; position: static; box-shadow: none; border: 0; border-radius: 0; padding: 0; min-width: 0; margin: 0 !important; }
  .dropdown-menu a { padding: 12px 20px 12px 36px; border-radius: 0; }
  .caret { display: none; }
}

/* Product cards */
.product-card { display: flex; flex-direction: column; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.product-card .tag { align-self: flex-start; }
a.product-card:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 12px 30px rgba(59,91,253,.1); }
.product-card .more { margin-top: auto; padding-top: 8px; color: var(--brand); font-weight: 600; }
.product-card.soon { background: var(--bg-soft); border-style: dashed; }

/* Logo */
.logo img { display: block; height: 40px; width: auto; }
.site-footer .logo img { height: 48px; }

/* Illustrations */
.art { display: block; width: 100%; height: auto; border-radius: 18px; }
.art-wide { max-width: 960px; margin: 0 auto 40px; }
.art-dark { box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.hero-split { grid-template-columns: 1fr 1.15fr; gap: 40px; }
.hero-split h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
@media (max-width: 860px) { .hero-split { grid-template-columns: 1fr; } }
.split > * { min-width: 0; }
.facts td { overflow-wrap: anywhere; }
.art:not(.art-dark) { mix-blend-mode: multiply; border-radius: 0; }
