/* WargXP — site styles. Glass on a deep ink background. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("/assets/fonts/figtree.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/jetbrains-mono-500.woff2") format("woff2"); }

:root {
  --bg0: #15122a;
  --bg1: #0c0b18;
  --bg2: #07060e;
  --glow1: rgba(124, 92, 255, .42);
  --glow2: rgba(255, 92, 168, .20);
  --glow3: rgba(56, 189, 248, .20);
  --panel: #221f3a;
  --panel-high: #2e2a4c;
  --accent: #6d4aff;
  --accent-bright: #b7a5ff;
  --pink: #ff7ab8;
  --cyan: #67d4ff;
  --text: #f5f3ff;
  --text-2: #aaa4c8;

  --glass: color-mix(in srgb, var(--panel) 58%, transparent);
  --glass-high: color-mix(in srgb, var(--panel-high) 68%, transparent);
  --edge: linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.04) 45%, rgba(255,255,255,.1));
  --sheen: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0) 60%);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg1); color: var(--text); font: 400 17px/1.6 var(--font-body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 3px; border-radius: 8px; }

/* ---------- Background ---------- */
.ambient {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60vmax 60vmax at 8% 0%, var(--glow1), transparent 62%),
    radial-gradient(48vmax 48vmax at 100% 30%, var(--glow2), transparent 60%),
    radial-gradient(55vmax 55vmax at 10% 100%, var(--glow3), transparent 60%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, var(--bg2));
}
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass ---------- */
.glass {
  position: relative; background: var(--sheen), var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(140%); backdrop-filter: blur(22px) saturate(140%);
  border-radius: var(--radius); isolation: isolate;
}
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.nav {
  position: sticky; top: 12px; z-index: 50; margin: 12px auto 0;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter));
  display: flex; align-items: center; gap: 16px; padding: 10px 10px 10px 18px; border-radius: 999px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 21px/1 var(--font-display); letter-spacing: .01em; }
.logo svg { width: 32px; height: 32px; }
.logo b { font-weight: 800; background: linear-gradient(100deg, var(--accent-bright), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo:hover { color: var(--text); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.07); }
.nav .home { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--font-body); color: #fff; text-decoration: none; white-space: nowrap;
  padding: 15px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #fff 22%), var(--accent));
  box-shadow: 0 10px 30px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent), inset 0 1px 0 rgba(255,255,255,.3); }
.btn svg { width: 19px; height: 19px; }
.btn.small { padding: 11px 18px; font-size: 15px; }
.btn.ghost { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.btn.ghost:hover { background: rgba(255,255,255,.11); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(42px, 6.4vw, 86px); line-height: .98; font-weight: 800; margin: 22px 0; }
h1 .ln { display: block; }
.hero h1 { font-size: clamp(40px, 5vw, 70px); }
@media (min-width: 641px) { h1 .ln { white-space: nowrap; } }
.soft { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--text) 60%, transparent); }
.glow { background: linear-gradient(100deg, var(--text), var(--accent-bright) 45%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.02; font-weight: 800; max-width: 18ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--font-mono); letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-bright); padding: 9px 14px; border-radius: 999px;
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 12px var(--accent-bright); }
.kicker { font: 500 13px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-bright); margin: 0 0 16px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 40ch; margin: 0 0 30px; }
.section-lede { color: var(--text-2); max-width: 56ch; margin: 18px 0 0; font-size: 18px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
section { padding: clamp(64px, 9vw, 120px) 0 0; scroll-margin-top: 90px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 110px) 0 20px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 0; list-style: none; }
.stats li { display: grid; gap: 2px; }
.stats b { font: 800 26px/1 var(--font-display); }
.stats span { color: var(--text-2); font-size: 14px; }

/* The "lab bench": floating product tiles */
.bench { position: relative; aspect-ratio: 1 / .92; }
.tile {
  position: absolute; display: grid; gap: 10px; padding: 18px; border-radius: 24px; width: 46%;
  box-shadow: 0 30px 60px -24px rgba(0,0,0,.75); animation: float 7s ease-in-out infinite; text-decoration: none; color: var(--text);
}
.tile:hover { color: var(--text); }
.tile small { color: var(--text-2); font-size: 13px; line-height: 1.35; }
.tile strong { font: 700 17px/1.2 var(--font-display); }
.tile .ico { width: 48px; height: 48px; border-radius: 14px; }
.tile.t1 { left: 2%; top: 4%; }
.tile.t2 { right: 0; top: 14%; animation-delay: -2s; }
.tile.t3 { left: 8%; bottom: 6%; animation-delay: -4s; }
.tile.t4 { right: 4%; bottom: 0; animation-delay: -5.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Product icons drawn in CSS/SVG */
.ico { display: grid; place-items: center; flex: none; overflow: hidden; }
.ico img { width: 100%; height: 100%; object-fit: cover; }
.ico svg { width: 56%; height: 56%; color: #fff; }
.ico.fancy { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.ico.slug { background: linear-gradient(135deg, #0ea5e9, #6366f1); }
.ico.swap { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.ico.qr { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.ico.lan { background: linear-gradient(135deg, #22d3ee, #3b82f6); }
.ico.drive { background: linear-gradient(135deg, #6366f1, #22c55e); }
.ico.pc { background: linear-gradient(135deg, #475569, #1e293b); }

/* ---------- What we do ---------- */
.kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kind { padding: 24px; text-decoration: none; color: var(--text); transition: transform .3s ease; display: grid; gap: 14px; align-content: start; }
.kind:hover { color: var(--text); transform: translateY(-4px); }
.kind h3 { font-size: 22px; line-height: 1.15; }
.kind p { margin: 0; color: var(--text-2); font-size: 15px; }
.kind .go { font: 500 13px/1 var(--font-mono); color: var(--accent-bright); letter-spacing: .04em; margin-top: 4px; }
.icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 28%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-bright) 30%, transparent); }
.icon svg { width: 22px; height: 22px; color: var(--accent-bright); }

/* ---------- Featured ---------- */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { padding: clamp(24px, 3.5vw, 36px); display: grid; gap: 18px; align-content: start; }
.feature .top { display: flex; align-items: center; gap: 16px; }
.feature .ico { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 16px 30px -14px rgba(0,0,0,.8); }
.feature h3 { font-size: 28px; line-height: 1.1; }
.feature .meta { color: var(--text-2); font: 500 13px/1.4 var(--font-mono); }
.feature p { margin: 0; color: var(--text-2); }
.feature .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font: 500 12px/1 var(--font-mono); padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.05); color: var(--text-2); }

/* ---------- Principles ---------- */
.principles { padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1.25fr; gap: 36px; align-items: center; }
.principles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.principles li { padding: 18px; border-radius: 16px; background: rgba(255,255,255,.04); }
.principles li b { display: block; font-family: var(--font-display); font-size: 20px; }
.principles li span { color: var(--text-2); font-size: 14px; }

/* ---------- Final call ---------- */
.final { text-align: center; padding: clamp(40px, 7vw, 80px) var(--gutter); display: grid; justify-items: center; gap: 18px; }
.final h2 { max-width: 16ch; }
.final .mark { width: 76px; height: 76px; filter: drop-shadow(0 20px 40px color-mix(in srgb, var(--accent) 60%, transparent)); }

/* ---------- Labs page ---------- */
.labs-hero { padding: clamp(48px, 8vw, 96px) 0 10px; }
.labs-hero h1 { font-size: clamp(40px, 6vw, 76px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; }
.filters button {
  font: 600 15px/1 var(--font-body); color: var(--text-2); cursor: pointer; padding: 11px 16px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); transition: background .2s, color .2s;
}
.filters button:hover { color: var(--text); }
.filters button[aria-pressed="true"] { color: #fff; background: color-mix(in srgb, var(--accent) 85%, transparent); box-shadow: none; }
.filters .n { font: 500 12px/1 var(--font-mono); opacity: .7; margin-left: 6px; }
.group { padding-top: clamp(44px, 6vw, 72px); }
.group-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.group-head h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: none; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project { padding: 24px; display: grid; gap: 14px; align-content: start; transition: transform .3s ease; }
.project:hover { transform: translateY(-4px); }
.project .top { display: flex; align-items: center; gap: 14px; }
.project .ico { width: 52px; height: 52px; border-radius: 15px; }
.project h3 { font-size: 21px; line-height: 1.15; }
.project .platform { display: block; color: var(--text-2); font: 500 12px/1.4 var(--font-mono); margin-top: 3px; }
.project p { margin: 0; color: var(--text-2); font-size: 15px; }
.project .links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.project .links .btn { padding: 10px 15px; font-size: 14px; }
.status { justify-self: start; font: 500 12px/1 var(--font-mono); padding: 7px 10px; border-radius: 99px; letter-spacing: .03em; }
.status.live { color: #86efac; background: rgba(34,197,94,.12); box-shadow: inset 0 0 0 1px rgba(34,197,94,.3); }
.status.soon { color: #fcd34d; background: rgba(245,158,11,.12); box-shadow: inset 0 0 0 1px rgba(245,158,11,.3); }
.status.dev { color: var(--cyan); background: rgba(56,189,248,.12); box-shadow: inset 0 0 0 1px rgba(56,189,248,.3); }
.empty { padding: 28px; display: flex; align-items: center; gap: 18px; color: var(--text-2); }
.empty b { color: var(--text); display: block; font-family: var(--font-display); font-size: 20px; }

/* ---------- Footer ---------- */
footer { margin-top: 90px; padding: 30px 0 40px; border-top: 1px solid rgba(255,255,255,.08); color: var(--text-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--text-2); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.load { animation: rise 1s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ---------- Small screens ---------- */
@media (max-width: 980px) {
  .hero-grid, .principles, .featured { grid-template-columns: minmax(0, 1fr); }
  .kinds { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .bench { max-width: 560px; width: 100%; margin: 10px auto 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .kinds, .grid, .principles ul { grid-template-columns: 1fr; }
  .tile { width: 52%; padding: 14px; gap: 8px; border-radius: 20px; }
  .tile .ico { width: 40px; height: 40px; border-radius: 12px; }
  .tile strong { font-size: 15px; }
  .tile small { font-size: 12px; }
  footer .wrap { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
