/* ---------- tokens & reset ---------- */
:root {
  --blue: #00C4FF; --purple: #8A26FA; --rich: #0038FF; --teal: #00E0D1;
  --red: #D62828; --red2: #951B1B;
  --bg: #0E1016; --bg2: #151824; --bg3: #1C2030; --bg4: #232842;
  --line: rgba(255, 255, 255, .1);
  --text: #F4F5F9; --muted: #AEB4C8;
  --gutter: clamp(16px, 5vw, 24px);
  --nav-h: 64px;
  --section-y: clamp(56px, 9vw, 88px);
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Proxima Nova", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 7.2vw, 64px); max-width: 16ch; }
h2 { font-size: clamp(26px, 4.6vw, 40px); max-width: 24ch; margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }
.subhead { margin-top: clamp(40px, 7vw, 56px); font-size: clamp(19px, 2.6vw, 22px); }
.lede { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 60ch; }
p { max-width: 64ch; }
.kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.kicker.r { color: var(--red); }
.note { font-size: 13px; color: var(--muted); margin-top: 20px; max-width: 70ch; }
.note--tight { margin-top: 14px; }
.card-copy { color: var(--muted); font-size: 15px; }

section { padding-block: var(--section-y); }
#platform { padding-bottom: clamp(72px, 11vw, 120px); }

.card { background: var(--bg3); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 28px); }

/* ---------- buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: var(--bg); text-decoration: none; font-size: 14px; font-weight: 700; padding: 12px 20px; border-radius: 999px; text-align: center; transition: transform .2s ease, background .2s ease, color .2s ease; }
.btn:hover { background: #fff; }
.btn.red { background: var(--red); color: #fff; animation: pulse 2.4s ease-out infinite; }
.btn.red:hover { background: #fff; color: var(--red); }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--blue); padding: 10px 18px; }
.btn.ghost:hover { background: var(--blue); color: var(--bg); }

/* ---------- co-brand lockup ---------- */
.lockup { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; text-decoration: none; }
.lockup .co { font-style: italic; color: var(--red); letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; }
.lockup .co small { display: block; font-style: normal; font-size: 10px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.lockup .x { color: var(--muted); font-weight: 400; font-size: 18px; }
.lockup img { width: auto; }
.lockup--nav .co { font-size: 22px; }  .lockup--nav img { height: 20px; }
.lockup--hero .co { font-size: clamp(24px, 5vw, 34px); }  .lockup--hero img { height: clamp(20px, 4vw, 32px); }
.lockup--foot .co { font-size: 20px; }  .lockup--foot img { height: 18px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(14, 16, 22, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--nav-h); }
.menu { display: flex; align-items: center; gap: 24px; }
.menu ul { list-style: none; display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.menu ul a { display: block; padding: 6px 0; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.menu ul a:hover { color: var(--blue); }
.menu ul a.active { color: var(--text); border-bottom-color: var(--blue); }
.menu .btn { white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; position: relative; flex: none; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle .bars { top: 21px; }
.menu-toggle .bars::before { left: 0; right: 0; top: -7px; }
.menu-toggle .bars::after { left: 0; right: 0; top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 12px max(var(--gutter), env(safe-area-inset-left)) 20px; background: var(--bg2); border-bottom: 1px solid var(--line); max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  .menu.open { display: flex; }
  .menu ul { flex-direction: column; gap: 0; font-size: 17px; }
  .menu ul li + li { border-top: 1px solid var(--line); }
  .menu ul a { padding: 14px 0; border-bottom: 0; }
  .menu ul a.active { color: var(--blue); }
}
@media (max-width: 400px) {
  .lockup--nav .co { font-size: 18px; }
  .lockup--nav .co small { font-size: 9px; letter-spacing: .1em; }
  .lockup--nav img { height: 16px; }
  .lockup--nav { gap: 8px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-bottom: var(--section-y); background: linear-gradient(120deg, var(--bg) 0%, #0b1440 35%, var(--rich) 60%, var(--purple) 85%, var(--red2) 100%); background-size: 260% 260%; animation: drift 16s ease infinite; }
.hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--red); z-index: 1; }
.stripes { position: absolute; right: -6%; top: -20%; width: 60%; height: 140%; background: repeating-linear-gradient(115deg, rgba(0, 196, 255, .14) 0 22px, transparent 22px 60px); pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none; }
.o1 { width: min(520px, 90vw); aspect-ratio: 1; right: -120px; top: -160px; background: radial-gradient(circle, var(--blue), transparent 70%); }
.o2 { width: min(420px, 80vw); aspect-ratio: 1; right: 30%; bottom: -220px; background: radial-gradient(circle, var(--purple), transparent 70%); }
.o3 { width: min(360px, 70vw); aspect-ratio: 1; left: -120px; bottom: -120px; background: radial-gradient(circle, var(--red), transparent 70%); }
.hero-top { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 16px; padding-block: 28px clamp(32px, 7vw, 60px); }
.hero-top > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 56px); align-items: center; }
.hero-grid > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-grid > *:nth-child(2) { animation-delay: .2s; }
h1 .grad { background: linear-gradient(90deg, #fff, var(--blue), #fff); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: shimmer 4s linear infinite; }
.hero .lede { margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.recap { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 4vw, 26px); box-shadow: 0 24px 70px rgba(0, 0, 0, .45); }
.recap .kicker { margin-bottom: 6px; }
.recap h3 { font-size: 18px; margin-bottom: 14px; }
.recap ul { padding-left: 18px; color: var(--muted); font-size: 15px; }
.recap li { margin: 8px 0; }
.recap li b { color: var(--text); }
.recap-src { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stripes { width: 90%; right: -30%; }
}
@media (max-width: 520px) {
  .hero-cta .btn { flex: 1 1 100%; }
}

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); padding-block: 16px; }
.ticker div { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; font-weight: 800; font-size: clamp(17px, 3vw, 22px); letter-spacing: .02em; white-space: nowrap; }
.ticker span { display: flex; align-items: center; gap: 56px; }
.ticker i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.ticker span i:nth-child(odd) { background: var(--blue); }

/* ---------- grids shared ---------- */
.topline, .port, .state, .pillars, .feat, .grid2 { display: grid; gap: 16px; margin-top: 36px; }
.topline, .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.port { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feat { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.state, .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .port { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .topline, .pillars, .state, .grid2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .port, .feat { grid-template-columns: minmax(0, 1fr); }
}

.topline .card h3 { color: var(--blue); font-size: 17px; }
.topline .card p { font-size: 15px; color: var(--muted); }

/* portfolio */
.port div { background: var(--bg3); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: 14px; padding: 22px 20px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.port strong { display: block; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; font-weight: 700; }
.port span { display: block; font-size: 19px; font-weight: 700; line-height: 1.4; }

/* current state */
.state h3 { color: var(--red); }
.state ul { padding-left: 18px; color: var(--muted); font-size: 15px; margin-top: 12px; }
.state li { margin: 8px 0; }
.state li b { color: var(--text); }
.attr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.attr div { container-type: inline-size; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 10px; text-align: center; }
.attr b { display: block; font-size: 22px; font-size: clamp(16px, 15cqw, 28px); color: var(--blue); letter-spacing: -.02em; line-height: 1.05; white-space: nowrap; }
.attr span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 520px) {
  .attr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attr div:last-child { grid-column: 1 / -1; }
  .attr b { font-size: clamp(22px, 9cqw, 30px); }
}
.errs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.errs span { font-size: 13px; border: 1px solid rgba(214, 40, 40, .55); color: #FF8FA3; border-radius: 999px; padding: 6px 12px; }

/* solutions */
.sol { display: grid; gap: 16px; margin-top: 36px; }
.sol article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); background: var(--bg3); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sol article > div { padding: clamp(18px, 3vw, 24px); }
.sol .prob { border-right: 1px solid var(--line); background: rgba(214, 40, 40, .09); }
.sol .fix { border-right: 1px solid var(--line); }
.sol .out { background: rgba(0, 196, 255, .07); }
.sol .lab { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.sol .prob .lab { color: #FF8FA3; } .sol .fix .lab { color: var(--blue); } .sol .out .lab { color: var(--teal); }
.sol h3 { font-size: 17px; }
.sol p { font-size: 14px; color: var(--muted); }
.sol .fix b { color: var(--text); }
.sol .out p { color: var(--text); }
@media (max-width: 860px) {
  .sol article { grid-template-columns: minmax(0, 1fr); }
  .sol .prob, .sol .fix { border-right: 0; border-bottom: 1px solid var(--line); }
}

.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.flow div { position: relative; background: linear-gradient(160deg, var(--bg4), var(--bg3)); border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px; }
.flow div:not(:last-child)::after { content: "\2192"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 20px; font-weight: 700; z-index: 1; }
.flow b { display: block; font-size: 15px; margin-bottom: 6px; color: var(--blue); }
.flow span { font-size: 13px; color: var(--muted); }
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow div::after { content: none !important; }
}
@media (max-width: 520px) { .flow { grid-template-columns: minmax(0, 1fr); } }

/* pillars */
.pillars .card { background: linear-gradient(160deg, var(--bg4), var(--bg3)); }
.pillars .n { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: conic-gradient(var(--blue), var(--purple), var(--red), var(--blue)); color: #fff; font-weight: 700; margin-bottom: 16px; }
.pillars p { font-size: 15px; color: var(--muted); }
.pillars small { display: block; margin-top: 14px; font-size: 13px; color: var(--teal); }

/* resources */
.since { background: var(--bg2); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-top: 20px; }
.stats div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stats b { display: block; font-size: clamp(32px, 6vw, 40px); letter-spacing: -.02em; line-height: 1; background: linear-gradient(90deg, var(--blue), var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stats span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.webs { list-style: none; margin-top: 16px; }
.webs li { border-top: 1px solid var(--line); padding: 14px 0; }
.webs li:last-child { border-bottom: 1px solid var(--line); }
.webs a { font-weight: 700; color: var(--blue); text-decoration: none; }
.webs a:hover { text-decoration: underline; }
.webs small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }

/* platform features */
.feat article { background: var(--bg3); border: 1px solid var(--line); border-radius: 14px; padding: 22px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.feat .ic { min-width: 44px; height: 40px; padding-inline: 10px; width: fit-content; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--purple)); margin-bottom: 14px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; color: #fff; }
.feat article:nth-child(3n) .ic { background: linear-gradient(135deg, var(--red), var(--purple)); }
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--muted); }
.feat small { display: block; margin-top: 10px; font-size: 12px; color: var(--teal); font-weight: 700; letter-spacing: .02em; }

/* hover lift only where hover exists, so it never sticks on touch screens */
@media (hover: hover) {
  .card:hover, .port div:hover, .feat article:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(0, 0, 0, .45); border-color: rgba(0, 196, 255, .45); }
  .btn:hover { transform: translateY(-2px); }
  .pillars .card:hover .n { animation: spin 1.2s linear infinite; }
}
.card, .port div, .feat article { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }

/* footer */
footer.site { padding-block: 28px calc(28px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg2); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer.site .wrap > span { flex: 1 1 320px; max-width: 70ch; }

/* ---------- scroll reveal (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- motion ---------- */
@keyframes drift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 40, 40, .5); } 70% { box-shadow: 0 0 0 18px rgba(214, 40, 40, 0); } }
@keyframes shimmer { to { background-position: 200% center; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero, h1 .grad, .ticker div, .btn.red, .hero-grid > *, .pillars .card:hover .n { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
