@font-face {
  font-family: Outfit;
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #060b1a;
  --bg-deep: #050814;
  --bg-raise: #0b142c;
  --bg-card: #0d1830;
  --line: rgba(140, 175, 255, 0.16);
  --line-strong: rgba(140, 175, 255, 0.28);
  --text: #e9f0ff;
  --muted: #93a4c8;
  --faint: #6d7ea3;
  --accent: #25c8ff;
  --accent-2: #2b6ef5;
  --ok: #7ee0a3;
  --warn: #f5c56e;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 8, 30, 0.45);
  --max: 1120px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: -0.011em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #7adcff; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #fff;
  color: #060b1a;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: rgba(6, 11, 26, 0.78);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand img { width: 40px; height: 40px; flex: none; }
.brand .word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  font-family: Outfit, Inter, sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  color: var(--text);
}
.brand .word span:first-child {
  font-size: 13px;
  letter-spacing: 0.18em;
}
.brand .word span:last-child {
  font-size: 8px;
  letter-spacing: 0.52em;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.04); }
.nav .cta {
  color: #06101f;
  background: linear-gradient(180deg, #4ecbff, #2b7cff);
  font-weight: 650;
  margin-left: 6px;
}
.nav .cta:hover { color: #06101f; filter: brightness(1.06); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.menu-toggle span, .menu-toggle span:before, .menu-toggle span:after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  margin: 0 auto;
}
.menu-toggle span:before, .menu-toggle span:after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-toggle span:before { top: -5px; }
.menu-toggle span:after { top: 5px; }

@media (max-width: 820px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #060b1a;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .cta { margin: 8px 0 0; text-align: center; }
  .brand img { width: 36px; height: 36px; }
  .brand .word span:first-child { font-size: 11px; letter-spacing: 0.14em; }
  .brand .word span:last-child { font-size: 7px; letter-spacing: 0.4em; }
}

/* Layout */
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
main { overflow: hidden; }

.hero {
  position: relative;
  padding: 72px 0 48px;
}
.hero:before {
  content: "";
  position: absolute;
  inset: -80px -20% auto;
  height: 520px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(37, 200, 255, 0.16), transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(43, 110, 245, 0.18), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  font-family: Outfit, Inter, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 18px;
}
.hero h1 {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 16ch;
}
.lead, .hero .lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 32px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  color: #06101f;
  background: linear-gradient(180deg, #4ecbff, #2b7cff);
}
.btn-primary:hover { color: #06101f; filter: brightness(1.06); }
.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.btn[aria-disabled="true"], .btn.disabled {
  opacity: 0.7;
  pointer-events: none;
}

/* Sections */
section { padding: 28px 0 64px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Project grid */
.projects {
  display: grid;
  gap: 22px;
}
.project {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  background: linear-gradient(180deg, rgba(18, 32, 64, 0.8), rgba(10, 18, 40, 0.9));
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  min-height: 320px;
}
.project:nth-child(even) { grid-template-columns: 0.85fr 1.15fr; }
.project:nth-child(even) .shot { order: 2; }
.project:hover { border-color: var(--line-strong); }
.project .shot {
  background: #08101f;
  min-height: 280px;
  overflow: hidden;
  position: relative;
}
.project .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  position: absolute;
  inset: 0;
}
.project .shot.phone img {
  object-fit: contain;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(37,200,255,0.08), transparent 50%),
    #070d1c;
  padding: 24px 24px 0;
}
.project .body { padding: 32px 32px 28px; display: flex; flex-direction: column; justify-content: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pill {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 650;
  border-radius: 999px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.pill.live { color: var(--ok); border-color: rgba(126, 224, 163, 0.35); }
.pill.soon { color: var(--warn); border-color: rgba(245, 197, 110, 0.35); }
.pill.internal { color: #b9c8ea; }
.project h3 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.project h3 img,
.product h1 img {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}
.project p { margin: 0 0 18px; color: var(--muted); font-size: 15.5px; }
.more {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.project:hover .more { color: #7adcff; }
.project h3 a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.project .shot { display: block; text-decoration: none; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

@media (max-width: 860px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .shot { order: 0; }
  .project .shot { min-height: 220px; }
  .project .body { padding: 24px 22px 26px; }
  .hero { padding: 48px 0 28px; }
}

/* Product page */
.product { padding: 48px 0 80px; }
.crumbs {
  color: var(--faint);
  font-size: 13px;
  margin: 0 0 22px;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.product h1 {
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  max-width: 18ch;
  display: flex;
  align-items: center;
  gap: 0.28em;
}
.prose, .legal {
  max-width: 720px;
}
.prose p, .legal p, .legal li { color: var(--muted); }
.prose p, .legal p { margin: 0 0 1em; }
.frame {
  margin: 36px 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #08101f;
  box-shadow: var(--shadow);
}
.frame img { width: 100%; }
.frame.pair {
  display: grid;
  grid-template-columns: 1.6fr 0.7fr;
}
.frame.pair img:last-child {
  object-fit: cover;
  height: 100%;
  border-left: 1px solid var(--line);
}
@media (max-width: 720px) {
  .frame.pair { grid-template-columns: 1fr; }
  .frame.pair img:last-child { display: none; }
}
.frame.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.frame.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.frame.gallery img:nth-child(2n) { border-right: 0; }
.frame figcaption {
  margin: 0;
  padding: 12px 16px 14px;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .frame.gallery { grid-template-columns: 1fr; }
  .frame.gallery img { border-right: 0; }
}
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
  margin: 8px 0 28px;
  max-width: 860px;
}
.features h3 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}
.features p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 720px) {
  .features { grid-template-columns: 1fr; }
}

.site-footer .products {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 14px 0 0;
}
.site-footer .products a { color: var(--muted); text-decoration: none; font-size: 13px; }
.site-footer .products a:hover { color: var(--text); }

/* Legal */
.legal { padding: 48px 0 80px; }
.legal h1 {
  font-family: Outfit, Inter, sans-serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.legal .updated { color: var(--faint); font-size: 14px; margin-bottom: 28px; }
.legal h2 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 22px;
  font-weight: 500;
  margin: 32px 0 8px;
  letter-spacing: -0.02em;
}
.legal ul, .legal ol { padding-left: 1.2em; }
.legal li { margin: 0 0 0.45em; }
.note {
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 18px 0 24px;
  color: var(--muted);
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: #13234a;
  padding: 1px 6px;
  border-radius: 6px;
}

/* Play coming soon */
.play-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  background: #0a1224;
  color: var(--text);
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 16px 10px 12px;
  cursor: default;
}
.play-soon:hover { color: var(--text); }
.play-soon svg { width: 26px; height: 26px; flex: none; }
.play-soon small { display: block; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.play-soon strong { display: block; font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--faint);
  font-size: 13px;
}
.site-footer .inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: Outfit, Inter, sans-serif;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.foot-brand img { width: 28px; height: 28px; flex: none; }
.foot-brand .word {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}
.foot-brand .word span:first-child {
  font-size: 11px;
  letter-spacing: 0.16em;
  font-weight: 500;
}
.foot-brand .word span:last-child {
  font-size: 7px;
  letter-spacing: 0.46em;
  color: var(--muted);
}

/* 404 */
.notfound { padding: 80px 0 120px; text-align: left; }
.notfound h1 {
  font-family: Outfit, Inter, sans-serif;
  font-size: 56px;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}
