@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,600;12..96,800&family=Instrument+Sans:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #07090f;
  --ink-2: #0e121c;
  --ink-3: #161b28;
  --line: rgba(232, 236, 245, 0.1);
  --line-strong: rgba(232, 236, 245, 0.22);
  --paper: #eef0f6;
  --muted: #8c93a8;
  --signal: #7cf5c9;
  --signal-ink: #03241a;
  --violet: #8d7bff;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 22px;
  --wrap: min(1200px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.5;
}
main, header, footer { position: relative; z-index: 1; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 15, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.brand span b { color: var(--signal); font-weight: 800; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px;
  background: var(--signal); color: var(--signal-ink) !important;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--signal); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--paper) !important; border: 1px solid var(--line-strong); }
.btn.ghost:hover { border-color: var(--paper); box-shadow: none; }

/* Hero */
.hero { padding: clamp(72px, 12vw, 150px) 0 clamp(60px, 8vw, 100px); }
.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(46px, 8.4vw, 118px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 22px 0 28px;
  max-width: 11ch;
}
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
.hero h1 .accent { color: var(--signal); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.hero p.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 64px; }
.hero-stats div { padding: 22px 0; border-right: 1px solid var(--line); padding-left: 22px; }
.hero-stats div:first-child { padding-left: 0; }
.hero-stats div:last-child { border-right: 0; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -0.03em; }
.hero-stats span { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }

.reveal { opacity: 0; transform: translateY(18px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .44s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -0.04em;
  margin: 14px 0 0;
}
.section-head p { color: var(--muted); max-width: 40ch; margin: 0; }

/* Apps horizontal scroller */
.apps { border-top: 1px solid var(--line); }
.scroller-controls { display: flex; gap: 10px; }
.scroller-controls button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--ink-2); color: var(--paper);
  cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, opacity .2s;
}
.scroller-controls button:hover:not(:disabled) { border-color: var(--signal); color: var(--signal); }
.scroller-controls button:disabled { opacity: .35; cursor: default; }
.track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(420px, 84vw);
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(24px, calc((100vw - 1200px) / 2));
  padding: 8px max(24px, calc((100vw - 1200px) / 2)) 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 6px; }

.app-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s;
}
.app-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.app-stage {
  position: relative; height: 380px; overflow: hidden;
  display: grid; place-items: end center;
  background: var(--stage, linear-gradient(160deg, #241a4d, #0b1022));
}
.app-stage::after {
  content: ""; position: absolute; inset: auto 0 0; height: 40%;
  background: linear-gradient(transparent, var(--ink-2)); pointer-events: none;
}
.phone {
  width: 190px; aspect-ratio: 886 / 1920;
  border-radius: 30px; overflow: hidden;
  border: 6px solid #05060a;
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  transform: translateY(60px) rotate(-4deg);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  background: #000;
}
.app-card:hover .phone { transform: translateY(40px) rotate(0deg); }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; }
.app-index { position: absolute; top: 18px; left: 20px; font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: .1em; z-index: 2; }
.app-tag { position: absolute; top: 14px; right: 16px; z-index: 2; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); }

.app-body { padding: 4px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; position: relative; z-index: 2; }
.app-title { display: flex; align-items: center; gap: 14px; }
.app-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; box-shadow: 0 8px 20px -8px rgba(0,0,0,.7); border: 1px solid rgba(255,255,255,.08); object-fit: cover; }
.app-title h3 { font-family: var(--display); font-size: 28px; font-weight: 800; margin: 0; letter-spacing: -0.03em; line-height: 1; }
.app-title small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.app-body p { margin: 0; color: #c4c9d8; font-size: 16px; }
.app-features { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.app-features li { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.app-links { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.policy-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--signal);
}
.policy-link svg { transition: transform .2s; }
.policy-link:hover svg { transform: translateX(4px); }
.support-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.support-link:hover { color: var(--paper); }
.scroll-hint { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* Vision / mission */
.vm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.vm { padding: clamp(28px, 4vw, 56px); position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.vm + .vm { border-left: 1px solid var(--line); }
.vm .num { font-family: var(--display); font-size: 120px; font-weight: 800; line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--line-strong); letter-spacing: -0.05em; }
.vm h3 { font-family: var(--mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--signal); margin: 0 0 14px; }
.vm p { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.22; letter-spacing: -0.02em; margin: 0; font-weight: 400; }
.vm:nth-child(2) { background: linear-gradient(160deg, rgba(124,245,201,.07), transparent 60%); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 22px; }
.pillar { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.pillar b { display: block; font-family: var(--display); font-size: 20px; margin-bottom: 6px; letter-spacing: -0.02em; }
.pillar span { color: var(--muted); font-size: 15px; }

/* Contact */
.contact-card {
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(36px, 6vw, 80px);
  background:
    radial-gradient(circle at 85% 20%, rgba(141,123,255,.25), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(124,245,201,.18), transparent 50%),
    var(--ink-3);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end;
}
.contact-card h2 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: .95; letter-spacing: -0.045em; margin: 14px 0 0; }
.mail-link {
  display: block; text-decoration: none;
  font-family: var(--display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em;
  border-bottom: 2px solid var(--signal); padding-bottom: 8px; margin-bottom: 18px; word-break: break-all;
  transition: color .2s;
}
.mail-link:hover { color: var(--signal); }
.contact-card p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 36px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--paper); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; font-family: var(--mono); }

/* Policy pages */
.policy-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.policy-hero .back { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.policy-hero .back:hover { color: var(--paper); }
.policy-hero-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.policy-hero .app-icon { width: 84px; height: 84px; border-radius: 20px; }
.policy-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 72px); letter-spacing: -0.045em; line-height: .95; margin: 10px 0 0; }
.policy-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.policy-meta b { color: var(--paper); font-weight: 500; }
.policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding: 56px 0 96px; }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc h4 { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { text-decoration: none; color: var(--muted); display: flex; gap: 10px; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--line-strong); padding-top: 2px; }
.toc a:hover { color: var(--paper); }
.prose { max-width: 70ch; }
.prose .summary { padding: 22px 24px; border-radius: 16px; background: rgba(124,245,201,.06); border: 1px solid rgba(124,245,201,.2); margin-bottom: 40px; }
.prose .summary strong { color: var(--signal); }
.prose h2 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; margin: 48px 0 12px; scroll-margin-top: 96px; }
.prose h2:first-of-type { margin-top: 0; }
.prose p, .prose li { color: #c4c9d8; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--signal); }
.prose strong { color: var(--paper); font-weight: 600; }

@media (max-width: 900px) {
  .hero-grid, .contact-card, .policy-layout { grid-template-columns: 1fr; }
  .vm-grid { grid-template-columns: 1fr; }
  .vm + .vm { border-left: 0; border-top: 1px solid var(--line); }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .toc { position: static; }
  .policy-layout { gap: 32px; }
}
@media (max-width: 640px) {
  .nav a:not(.btn) { display: none; }
  .hero-stats strong { font-size: 26px; }
  .hero-stats div { padding-left: 14px; }
  .app-stage { height: 330px; }
  .phone { width: 165px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
.footer-bottom a, .policy-meta a { text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
