/* Fortulox landing — all visual tokens live in :root */
:root {
  --bg: #0b0d12;
  --bg-alt: #0f1218;
  --surface: #141820;
  --surface-2: #1a1f29;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #eceef2;
  --muted: #9aa3b2;
  --faint: #6b7385;

  --gold: #f2c14e;
  --gold-2: #e0a93a;
  --gold-ink: #1a1305;
  --gold-soft: rgba(242, 193, 78, .12);
  --mint: #34d399;
  --mint-soft: rgba(52, 211, 153, .12);

  --seg-jackpot: #f2c14e;
  --seg-prizes: #f08a4b;
  --seg-growth: #7c8cff;
  --seg-op: #4b5466;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.01em; }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-feature-settings: "zero"; font-variant-ligatures: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* placeholders that still need client data — easy to spot while reviewing */
.todo { background: rgba(255, 92, 92, .14); color: #ff9b9b; border: 1px dashed rgba(255, 92, 92, .55); border-radius: 6px; padding: 0 .35em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 15px/1 var(--font-body); white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: linear-gradient(180deg, var(--gold), var(--gold-2)); color: var(--gold-ink); box-shadow: 0 6px 24px -8px rgba(242, 193, 78, .55); }
.btn--gold:hover { box-shadow: 0 8px 32px -6px rgba(242, 193, 78, .7); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: rgba(242, 193, 78, .5); background: var(--gold-soft); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }

.eyebrow {
  font: 600 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, .78);
  backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); }
.logo__mark { flex: none; width: 28px; height: 28px; }
.logo__word { font: 700 18px/1 var(--font-display); color: var(--text); letter-spacing: .01em; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--text); }
.nav .nav__signin { display: none; }
.topbar__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lang {
  font: 600 13px/1 var(--font-mono); color: var(--muted);
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px;
}
.lang:hover { color: var(--text); border-color: var(--line-strong); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: none; cursor: pointer; padding: 0; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative; padding: clamp(48px, 8vw, 96px) 0 48px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(242, 193, 78, .14), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(124, 140, 255, .08), transparent 60%);
}
.hero::before { /* faint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  opacity: .5;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(1.85rem, 4.6vw, 3.6rem); }
.lead { margin-top: 22px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 36em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 12px 36px; margin: 40px 0 0; padding: 24px 0 0; list-style: none; border-top: 1px solid var(--line); }
.hero__facts li { display: flex; flex-direction: column; gap: 4px; }
.hero__facts b { font: 700 1.5rem/1 var(--font-display); color: var(--gold); }
.hero__facts span { font-size: 14px; color: var(--muted); }

/* ticket card */
.ticket {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(242, 193, 78, .06) inset;
}
.ticket::before, .ticket::after { /* ticket notches */
  content: ""; position: absolute; top: 118px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg);
  border: 1px solid var(--line-strong);
}
.ticket::before { left: -10px; clip-path: inset(0 0 0 50%); }
.ticket::after { right: -10px; clip-path: inset(0 50% 0 0); }
.ticket__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket__tag { font: 600 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ticket__id { font-size: 13px; color: var(--gold); }
.ticket__rows { margin: 18px 0 0; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: grid; gap: 12px; }
.ticket__rows div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.ticket__rows dt { color: var(--muted); }
.ticket__rows dd { margin: 0; text-align: right; }
.hash { color: #c9cfdb; }
.ok { color: var(--gold); font-weight: 600; }
.ticket__foot {
  display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 14px;
  background: var(--mint-soft); color: var(--mint); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
}
.ticket__check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #062018; font-size: 13px; font-weight: 800; }
.ticket__note { margin-top: 12px; font-size: 12px; color: var(--faint); }

/* 4-week cycle */
.cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.cycle__wk {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 6px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.cycle__wk b { font: 700 13px/1 var(--font-mono); color: var(--muted); }
.cycle__wk span { font: 700 1.1rem/1 var(--font-display); }
.cycle__wk.is-must { border-color: rgba(242, 193, 78, .55); background: var(--gold-soft); }
.cycle__wk.is-must b, .cycle__wk.is-must span { color: var(--gold); }
.cycle--compact { margin-top: 16px; gap: 6px; }
.cycle--compact .cycle__wk { padding: 7px 0; font: 600 12px/1 var(--font-mono); color: var(--faint); }
.cycle--compact .is-done { color: var(--muted); }
.cycle--compact .is-now { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .05); }
.cycle--compact .is-must { color: var(--gold); }

/* networks strip */
.networks {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px;
  margin: clamp(48px, 7vw, 80px) 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--line);
  color: var(--text); font-weight: 600;
}
.networks small { color: var(--faint); font: 500 12px/1 var(--font-mono); margin-left: 4px; }
.networks__title { color: var(--muted); font-weight: 500; }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--faint); line-height: 1.55; }

/* passes */
.passes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pass {
  position: relative; display: flex; flex-direction: column;
  padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
}
.pass--featured { border-color: rgba(242, 193, 78, .5); background: linear-gradient(180deg, rgba(242, 193, 78, .07), var(--surface) 55%); }
.pass__badge {
  position: absolute; top: -12px; left: 30px;
  font: 700 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 999px; background: var(--gold); color: var(--gold-ink);
}
.pass h3 { font-size: 1rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pass__price { margin-top: 14px; font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.pass__price b { font: 700 3.2rem/1 var(--font-display); color: var(--text); margin-right: 6px; }
.pass__per { margin-top: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--gold); }
.ticks { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; flex: 1; }
.ticks li { position: relative; padding-left: 28px; color: #cdd2dc; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%23f2c14e' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* split */
.split {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: start;
  margin-top: clamp(48px, 7vw, 80px); padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}
.split__copy p { margin-top: 12px; color: var(--muted); }
.bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; gap: 3px; }
.bar__seg { flex: var(--w) 1 0; }
.seg-jackpot { background: var(--seg-jackpot); }
.seg-prizes { background: var(--seg-prizes); }
.seg-growth { background: var(--seg-growth); }
.seg-op { background: var(--seg-op); }
.legend { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 2px; }
.legend li {
  display: grid; grid-template-columns: 12px 1fr auto 48px; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.legend li:last-child { border-bottom: 0; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend b { font-weight: 500; }
.legend b::after { content: " USDT"; color: var(--faint); font-size: 12px; }
.legend em { font-style: normal; color: var(--muted); text-align: right; font-size: 14px; }

/* prizes */
.prizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.card h3 { font: 700 1.4rem/1.1 var(--font-display); }
.card > p { margin-top: 12px; color: var(--muted); }
.card--jackpot { background: radial-gradient(500px 260px at 100% 0%, rgba(242, 193, 78, .12), transparent 70%), var(--surface); }
.tiers { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 15px; }
.tiers th { text-align: left; font: 600 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0 0 10px; }
.tiers th:last-child, .tiers td:last-child { text-align: right; }
.tiers td { padding: 11px 0; border-top: 1px solid var(--line); }
.tiers td:first-child { color: var(--gold); }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.steps__n {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px;
  border-radius: 10px; background: var(--gold-soft); color: var(--gold); font: 700 15px/1 var(--font-display);
}
.steps p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* fairness */
.fair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.chain { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 0; }
.chain li { position: relative; padding: 0 0 18px 30px; display: grid; gap: 2px; }
.chain li::before { content: ""; position: absolute; left: 5px; top: 7px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--gold); background: var(--bg-alt); }
.chain li::after { content: ""; position: absolute; left: 10px; top: 21px; bottom: 0; width: 1px; background: var(--line-strong); transform: translateX(-.5px); }
.chain li:last-child::after { display: none; }
.chain li:last-child::before { background: var(--mint); border-color: var(--mint); }
.chain b { font-weight: 700; }
.chain span { color: var(--muted); font-size: 15px; }
.code { border-radius: var(--radius); border: 1px solid var(--line-strong); background: #07080c; overflow: hidden; min-width: 0; }
.code__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.code__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.code__bar span { margin-left: 10px; font: 500 12px/1 var(--font-mono); color: var(--faint); }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font-size: 12px; line-height: 1.75; color: #d7dbe4; }
.code .c { color: #7f889a; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding-top: 20px; border-top: 2px solid var(--gold); }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 20px 20px; color: var(--muted); }

/* final */
.final { padding: var(--section-y) 0; text-align: center; background: radial-gradient(700px 300px at 50% 100%, rgba(242, 193, 78, .14), transparent 70%); }
.final__in { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.final p { color: var(--muted); max-width: 32em; margin-bottom: 12px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 32px; }
.footer__licence { margin-top: 14px; line-height: 1.6; }
.footer__links { display: grid; gap: 10px; align-content: start; }
.footer__links a:hover { color: var(--text); }
.footer__legal { display: flex; gap: 14px; align-items: flex-start; }
.age { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--muted); font: 700 13px/1 var(--font-display); color: var(--text); }
.footer__bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }
.footer__bottom a:hover { color: var(--text); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .steps, .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px;
    box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .7);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: block; }
  .hero__grid, .fair, .split { grid-template-columns: 1fr; }
  .ticket { max-width: 480px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .passes, .prizes { grid-template-columns: minmax(0, 1fr); }
  .hide-sm { display: none; }
  .nav .nav__signin { display: block; color: var(--gold); }
}
@media (max-width: 560px) {
  .steps, .features { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .pass { padding: 26px 22px; }
  .card { padding: 22px 18px; }
  .cycle__wk span { font-size: .95rem; }
  .legend li { grid-template-columns: 12px 1fr auto; }
  .legend em { display: none; }
}
@media (max-width: 480px) {
  .topbar__in { gap: 12px; }
  .topbar__actions .btn--gold { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
