/* XIT landing page. Tokens from the approved design kit (design/tokens.json). */
:root {
  --bg: #080B0D; --accent: #ED241B; --text: #F5F7F7; --muted: #9BA5A8; --card: #0D1518; --border: #1C3030;
  --accent-dim: rgba(237, 36, 27, 0.16); --accent-glow: 0 0 28px rgba(237, 36, 27, 0.28);
  --radius-card: 12px; --radius-btn: 10px;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --green: #22D48C; --amber: #F5AE2E; --blue: #1EB7F2; --purple: #BD62E9; --red: #F04464;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: #0A0D0E; padding: 8px 12px; border-radius: 8px; z-index: 50; font-weight: 600; }
.skip:focus { top: 12px; }
.accent { color: var(--accent); }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
h1 { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; }
.copy > p { color: var(--muted); margin-top: 16px; max-width: 46ch; }
.copy .btn { margin-top: 24px; }
.fineprint { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--radius-btn); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
/* Primary buttons stay neutral: the brick red is for brand moments, green for good numbers */
.btn-primary { background: var(--text); color: #0A0D0E; box-shadow: 0 0 0 rgba(245, 247, 247, 0); }
.btn-primary:hover { box-shadow: 0 0 22px rgba(245, 247, 247, 0.18); background: #ffffff; }
.btn-outline { background: transparent; color: var(--text); border-color: rgba(245, 247, 247, 0.35); }
.btn-outline:hover { border-color: var(--accent); box-shadow: var(--accent-glow); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(8, 11, 13, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(28, 48, 48, 0.6); }
.header-row { display: flex; align-items: center; gap: 40px; height: 68px; }
.logo { font-size: 30px; font-weight: 900; letter-spacing: -0.08em; line-height: 1; color: var(--text); }
.logo-x { color: var(--accent); }
.nav { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: var(--text); }
.nav a:hover { color: var(--accent); }
.nav .nav-signin { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.signin-link { font-size: 14px; font-weight: 500; color: var(--muted); }
.signin-link:hover { color: var(--text); }
.menu { display: none; width: 42px; height: 42px; border: 1px solid var(--border); background: transparent; border-radius: 10px; padding: 10px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.menu span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: clamp(520px, 41vw, 640px); }
.hero-media { position: absolute; top: 0; right: 0; bottom: 0; left: 30%; z-index: 0; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 0; }
.hero-media::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(8, 11, 13, 0.85) 14%, rgba(8, 11, 13, 0.35) 34%, rgba(8, 11, 13, 0) 55%); z-index: 1; }
.hero-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: linear-gradient(180deg, rgba(8, 11, 13, 0), var(--bg)); z-index: 1; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 560px) 1fr; padding: 64px 0 56px; min-height: inherit; align-items: center; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.lede { font-size: 19px; font-weight: 500; margin-top: 20px; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero-note span { margin: 0 6px; }

/* Feature strip */
.features { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #090D0F; }
.feature-strip { display: grid; grid-template-columns: repeat(5, 1fr); }
.feature-strip li { padding: 30px 18px; text-align: center; border-left: 1px solid var(--border); }
.feature-strip li:first-child { border-left: 0; }
.feature-icon { width: 60px; height: 60px; margin: 0 auto 14px; color: var(--accent); border-radius: 14px; background: var(--accent-dim); box-shadow: var(--accent-glow); }
.feature-icon svg { width: 60px; height: 60px; }
.feature-strip h3 { font-size: 17px; font-weight: 700; }
.feature-strip p { color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.4; }

/* Sections */
.section { padding: 72px 0; border-bottom: 1px solid var(--border); }
.split { display: grid; grid-template-columns: minmax(0, 470px) 1fr; gap: 48px; align-items: center; }
.split.wide { grid-template-columns: minmax(0, 360px) 1fr; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); }

/* Dashboard */
.dashboard { padding: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03); }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { background: transparent; border: 1px solid transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: rgba(237, 36, 27, 0.55); background: rgba(237, 36, 27, 0.08); }
.range select { background: transparent; color: var(--muted); border: 0; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.range select option { background: var(--card); color: var(--text); }
.dash-body { display: grid; grid-template-columns: 1fr 232px; gap: 14px; margin-top: 16px; }
.dash-main { background: #0A1114; border: 1px solid var(--border); border-radius: 10px; padding: 16px 16px 10px; }
.dash-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.dash-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.dash-delta { color: var(--green); font-weight: 700; font-size: 14px; margin-top: 2px; }
.dash-delta.neg { color: #FF7A8E; }
.chart { height: 140px; margin-top: 10px; }
.chart svg { width: 100%; height: 100%; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; padding: 0 4px; }
.dash-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: #0A1114; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.tile span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.tile strong { display: block; font-size: 24px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.illustrative { margin-top: 12px; font-size: 11px; color: var(--muted); text-align: right; }

/* Risk */
.risk-grid { display: grid; grid-template-columns: 300px 1fr 400px; gap: 32px; align-items: center; }
.risk-card { padding: 18px; }
.risk-top { display: flex; align-items: center; gap: 18px; }
.ring { width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--green) calc(var(--p) * 1%), #1A2628 0); display: grid; place-items: center; position: relative; }
.ring::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background: var(--card); }
.ring::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--green); }
.risk-top span { display: block; font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.risk-top strong { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.risk-top strong small { font-size: 16px; color: var(--muted); font-weight: 600; }
.risk-rows { margin-top: 14px; border-top: 1px solid var(--border); }
.risk-rows li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 500; }
.risk-rows li:last-child { border-bottom: 0; }
.risk-rows i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--c); display: inline-block; position: relative; }
.risk-rows i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--c); }
.risk-rows b { margin-left: auto; font-weight: 700; color: var(--green); }
.alerts { padding: 10px; }
.alerts li { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 10px; }
.alerts li + li { border-top: 1px solid var(--border); border-radius: 0; }
.alert-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); flex: none; }
.alert-icon svg { width: 22px; height: 22px; }
.alerts strong { display: block; font-size: 14px; font-weight: 700; }
.alerts p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Challenges */
.trophies { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.trophies li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 22px 12px; text-align: center; }
.trophies svg { width: 54px; height: 54px; margin: 0 auto 12px; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--c) 45%, transparent)); }
.trophies h3 { font-size: 15px; font-weight: 700; }
.trophies p { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

/* Achievements */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.badges li { text-align: center; }
.hex { width: 110px; height: 118px; margin: 0 auto 14px; display: grid; place-items: center; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff 0%), color-mix(in srgb, var(--c) 38%, #000)); position: relative; }
.hex::before { content: ""; position: absolute; inset: 6px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 28%, #06090a), #06090a); }
.hex svg { position: relative; width: 56px; height: 56px; }
.badges h3 { font-size: 16px; font-weight: 700; }

/* Exchanges */
.exchanges-grid { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 24px 48px; align-items: center; }
.exchange-list { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 34px; font-weight: 800; font-size: 18px; letter-spacing: 0.02em; color: var(--muted); }
.exchange-list li { display: flex; align-items: center; gap: 8px; }
.exchange-list li.live { color: var(--green); }
.exchange-list li.more { font-weight: 500; font-size: 15px; }
.exchange-list svg { width: 22px; height: 22px; }
.cta { grid-column: 2; }

/* Footer */
.site-footer { padding: 28px 0 20px; }
.footer-row { display: flex; align-items: center; gap: 40px; }
.footer-nav { display: flex; gap: 26px; font-size: 14px; font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.social { margin-left: auto; display: flex; gap: 18px; }
.social a { display: grid; place-items: center; width: 32px; height: 32px; color: var(--text); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social a:hover { color: var(--accent); }
.footer-note { margin-top: 18px; font-size: 12px; color: var(--muted); }

/* Dialog */
dialog { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 14px; padding: 28px; width: min(520px, calc(100% - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.7); }
dialog h2 { margin-top: 8px; }
.dialog-copy { color: var(--muted); font-size: 14px; margin-top: 10px; }
.dialog-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.dialog-form input { flex: 1; min-width: 200px; padding: 0 14px; min-height: 48px; border-radius: var(--radius-btn); border: 1px solid var(--border); background: #0A1114; color: var(--text); font: inherit; }
.dialog-form input:focus { border-color: var(--accent); outline: none; }
.dialog-msg { min-height: 20px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.close { position: absolute; top: 10px; right: 12px; background: transparent; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1; }

/* Responsive */
@media (max-width: 1100px) {
  .feature-strip { grid-template-columns: repeat(3, 1fr); }
  .feature-strip li { border-left: 0; border-top: 1px solid var(--border); }
  .feature-strip li:nth-child(-n+3) { border-top: 0; }
  .risk-grid { grid-template-columns: 1fr 1fr; }
  .risk-grid .copy { grid-column: 1 / -1; order: -1; }
  .trophies { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; gap: 0; background: var(--card); border-bottom: 1px solid var(--border); padding: 8px 0; }
  .nav.open a { padding: 14px 24px; border-top: 1px solid var(--border); }
  .nav.open .nav-signin { display: block; }
  .signin-link { display: none; }
  .menu { display: flex; }
  .split, .split.wide, .exchanges-grid { grid-template-columns: 1fr; }
  .cta { grid-column: auto; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-tiles { grid-template-columns: repeat(4, 1fr); }
  .badges { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .hero { min-height: 0; }
  .hero-media { position: relative; left: 0; }
  .hero-media picture, .hero-media img { height: auto; aspect-ratio: 968 / 707; object-fit: cover; object-position: 50% 0; }
  .hero-media::before { background: linear-gradient(180deg, rgba(8, 11, 13, 0) 55%, var(--bg) 100%); }
  .hero-media::after { display: none; }
  .hero-grid { grid-template-columns: 1fr; padding: 0 0 44px; margin-top: -40px; min-height: 0; }
  .section { padding: 56px 0; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .feature-strip li:nth-child(-n+3) { border-top: 1px solid var(--border); }
  .feature-strip li:nth-child(-n+2) { border-top: 0; }
  .risk-grid { grid-template-columns: 1fr; }
  .dash-tiles { grid-template-columns: 1fr 1fr; }
  .trophies { grid-template-columns: repeat(2, 1fr); }
  .footer-row { flex-wrap: wrap; gap: 18px; }
  .footer-nav { flex-wrap: wrap; gap: 14px 20px; }
  .social { margin-left: 0; }
}
@media (max-width: 420px) {
  .feature-strip { grid-template-columns: 1fr; }
  .feature-strip li { border-top: 1px solid var(--border) !important; }
  .feature-strip li:first-child { border-top: 0 !important; }
  .trophies { grid-template-columns: 1fr 1fr; }
  .badges { gap: 12px; }
  .hex { width: 96px; height: 104px; }
}
