:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --panel: #161616;
  --line: #2a2a2a;
  --text: #f4f4f4;
  --muted: #a3a3a3;
  --red: #e10600;
  --red-2: #ff2a1f;
  --red-dim: rgba(225, 6, 0, 0.12);
  --radius: 14px;
  --wrap: 1160px;
  --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --display: 'Phudu', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.red { color: var(--red); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--red); color: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff; border: 1px solid var(--red);
  padding: 12px 22px; border-radius: 999px; font: 600 15px/1 var(--font);
  cursor: pointer; transition: background .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--red-2); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--panel); border-color: var(--red); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.linklike { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 0; }
.linklike:hover { color: var(--text); text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 18px/1 var(--display); letter-spacing: .14em; }
.logo:hover { text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: var(--muted); font-weight: 500; font-size: 15px; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); padding-bottom: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 20px 20px; display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--red-2); }
  .site-nav .btn { margin-top: 16px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-block; color: var(--red-2); font: 600 13px/1 var(--font); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.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 { position: relative; padding: 120px 0 100px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto auto; width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(225, 6, 0, .35), transparent 62%); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .25; pointer-events: none;
  mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 880px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 72px; }
.stat { border-left: 2px solid var(--red); padding-left: 16px; }
.stat strong { display: block; font: 700 1.6rem/1.2 var(--display); }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } .hero { padding: 80px 0 64px; } section { padding: 64px 0; } }

/* Cards */
.grid { display: grid; gap: 20px; }
.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: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: rgba(225, 6, 0, .6); transform: translateY(-2px); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--red-dim);
  display: grid; place-items: center; margin-bottom: 18px; color: var(--red-2);
}
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 16px; width: 16px; height: 16px; border-radius: 4px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23fff' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat;
}
.cta-band {
  background: linear-gradient(120deg, #1a0000, var(--red) 140%); border: 1px solid rgba(225, 6, 0, .5);
  border-radius: 20px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: #ddd; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* Page header */
.page-hero { padding: 80px 0 48px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at top right, rgba(225, 6, 0, .18), transparent 55%); }
.page-hero .meta { color: var(--muted); font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }
.page-hero .meta span::before { content: '■ '; color: var(--red); font-size: 10px; vertical-align: 2px; }

/* Legal documents */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 56px 20px 96px; }
@media (max-width: 960px) { .legal { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; border-left: 1px solid var(--line); padding-left: 18px; }
.toc h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; color: var(--muted); font-size: 14px; padding: 5px 0; }
.toc a::before { content: counter(toc) '. '; color: var(--red); }
.toc a:hover, .toc a.active { color: var(--text); text-decoration: none; }
@media (max-width: 960px) {
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
  .toc ol { columns: 2; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } }
.doc { min-width: 0; max-width: 780px; }
.doc h2 { font-size: 1.5rem; margin-top: 2.2em; padding-top: 1em; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.doc h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.doc h3 { margin-top: 1.6em; font-size: 1.1rem; color: #fff; }
.doc p, .doc li { color: #d4d4d4; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc li::marker { color: var(--red); }
.doc strong { color: #fff; }
.callout { background: var(--red-dim); border: 1px solid rgba(225, 6, 0, .45); border-left: 4px solid var(--red); border-radius: 10px; padding: 18px 20px; margin: 1.5em 0; }
.callout p:last-child { margin-bottom: 0; }
.caps { text-transform: uppercase; font-size: .92em; letter-spacing: .01em; }
.table-wrap { overflow-x: auto; margin: 1.2em 0; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--panel); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font: 15px/1.4 var(--font); transition: border-color .2s;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--red); width: 18px; height: 18px; flex: none; }
.field-error { color: var(--red-2); font-size: 13px; margin-top: 6px; min-height: 0; }
.invalid { border-color: var(--red) !important; }
.form-status { padding: 14px 16px; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .4); color: #bbf7d0; }
.form-status.err { background: var(--red-dim); border: 1px solid var(--red); color: #fecaca; }

/* Consent manager */
.pref { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pref:last-child { border-bottom: 0; }
.pref h3 { margin: 0 0 .3em; font-size: 1.05rem; }
.pref p { margin: 0; color: var(--muted); font-size: 14px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; background: #333; border-radius: 999px; transition: .2s; }
.switch .track::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + .track { background: var(--red); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:disabled + .track { opacity: .6; }
.switch input:focus-visible + .track { outline: 2px solid var(--red-2); outline-offset: 3px; }
.receipt { font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px dashed var(--line); padding: 16px; border-radius: 10px; white-space: pre-wrap; word-break: break-word; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #070707; padding-top: 64px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer ul a { color: #cfcfcf; font-size: 15px; }
.site-footer .logo { margin-bottom: 16px; }
.site-footer p.muted { max-width: 380px; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 20px; font-size: 13px; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-inner {
  max-width: 920px; width: 100%; background: #121212; border: 1px solid var(--line); border-top: 3px solid var(--red);
  border-radius: 14px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 14px; color: #d4d4d4; flex: 1 1 380px; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 16px; font-size: 14px; }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font: 700 clamp(5rem, 18vw, 10rem)/1 var(--display); color: var(--red); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Phudu for brand UI elements */
.site-nav a, .btn, .eyebrow, .toc a, .site-footer h4, .toc h4, label, th { font-family: var(--display); letter-spacing: .02em; }
.btn { font-weight: 600; font-size: 16px; }
.site-nav a:not(.btn) { font-size: 16px; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: 0; }
