/* Sentinel Media, shared chrome: tokens, type, nav, buttons, footer.
   Page-specific components live in each page's own <style> block.

   Shape rule (documented so it stays consistent):
     cards + panels 24px, app icons 22.5% (iOS squircle approximation),
     buttons / chips / status pills fully rounded, inputs 12px.
   Colour rule: Sentinel gold is the only interface accent (buttons, links,
   focus, selection). App colours belong to the apps and appear only on
   their own cards, icons and pages. No multi-hue gradients on this site. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-vf-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0c0d11;
  --bg-deep: #07080b;
  --surface: #14161c;
  --surface-2: #1a1d25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #f3f4f7;
  --dim: #aab0bd;
  --muted: #7f8697;

  --gold: #f5c518;
  --gold-hi: #ffd84d;
  --gold-ink: #17120a;
  --ok: #34d399;
  --err: #f87171;

  --r-card: 24px;
  --r-input: 12px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: rgba(245, 197, 24, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
  border-radius: 8px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--gold); color: var(--gold-ink);
  font-weight: 650; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Grain: breaks up gradient banding on the dark canvas. Fixed + inert, so it
   never repaints while scrolling. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 70;
  pointer-events: none;
  opacity: 0.05;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── Type ─────────────────────────────────────────────────────────────── */
.h2 {
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.03;
  font-weight: 760;
  font-stretch: 108%;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  margin-top: 20px;
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  color: var(--dim);
  max-width: 62ch;
  text-wrap: pretty;
}
.gold { color: var(--gold); }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15.5px; font-weight: 640; letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease,
              border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--ease-out); }
.btn--gold {
  background: var(--gold); color: var(--gold-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 10px 24px -12px rgba(0, 0, 0, 0.8);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover { background: var(--gold-hi); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); }
  .btn:hover svg { transform: translateX(2px); }
}

/* ─── Nav ──────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms ease, border-color 300ms ease;
}
.nav[data-stuck] {
  background: rgba(10, 11, 15, 0.74);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}
.nav__in { display: flex; align-items: center; gap: 28px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text);
  font-size: 17px; font-weight: 720; font-stretch: 110%; letter-spacing: -0.015em;
}
.brand img {
  width: 32px; height: 32px; border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(245, 197, 24, 0.35), 0 6px 16px -6px rgba(0, 0, 0, 0.7);
}
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  color: var(--dim); text-decoration: none;
  font-size: 14.5px; font-weight: 540;
  transition: color 200ms ease;
}
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 6px; }

.menu { display: none; position: relative; }
.menu > summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { width: 20px; height: 20px; }
.menu .i-close { display: none; }
.menu[open] .i-open { display: none; }
.menu[open] .i-close { display: block; }
.menu__panel {
  position: fixed; left: 0; right: 0; top: var(--nav-h);
  padding: 8px var(--gutter) 24px;
  background: rgba(10, 11, 15, 0.97);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  display: grid;
}
.menu[open] .menu__panel { animation: menuIn 220ms var(--ease-out) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.menu__panel a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  font-size: 20px; font-weight: 640; font-stretch: 106%; letter-spacing: -0.01em;
}
.menu__panel a:last-child { border-bottom: 0; color: var(--gold); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
  .menu { display: block; }
}
@media (max-width: 400px) {
  .nav__cta { display: none; }
  .menu { margin-left: auto; }
}

/* ─── Status pills (real semantic state only) ─────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 7px;
  height: 26px; padding: 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d9dce4;
  font-size: 12px; font-weight: 620; letter-spacing: 0.01em;
  white-space: nowrap;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.status--soon::before { background: var(--gold); }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 64px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1.7fr 0.75fr 0.55fr;
  gap: 40px;
}
.footer__brand p { margin-top: 16px; color: var(--muted); font-size: 14.5px; max-width: 30ch; }
.footer__col h2 {
  font-size: 13.5px; font-weight: 650; color: var(--text); margin-bottom: 14px;
}
.footer__col ul { display: grid; gap: 9px; }
.footer__col--apps ul { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(6, auto); grid-auto-flow: column; column-gap: 24px; }
.footer__col a {
  color: var(--dim); text-decoration: none; font-size: 14.5px;
  transition: color 200ms ease;
}
.footer__col a:hover { color: var(--gold-hi); }
.footer__col a[aria-current] { color: var(--text); }
@media (pointer: coarse) {
  .brand { min-height: 44px; }
  .footer__col ul { gap: 0; }
  .footer__col a { display: inline-block; padding: 7px 0; }
}
.footer__base {
  margin-top: 52px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: 13.5px;
}
@media (max-width: 1180px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--apps { grid-column: 1 / -1; }
}

/* ─── Device chrome: shared by the home hero and app pages ───────────── */
.device {
  position: relative; justify-self: center;
  width: min(314px, 82vw); aspect-ratio: 314 / 654;
}
.device__btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2c2f35, #4a4d55); }
.device__btn--a { left: -2px; top: 17%; height: 5%; }
.device__btn--b { left: -2px; top: 25%; height: 9%; }
.device__btn--c { left: -2px; top: 36%; height: 9%; }
.device__btn--d { right: -2px; top: 27%; height: 13%; }
.phone {
  position: absolute; inset: 0;
  padding: 10px;
  border-radius: 58px;
  background: linear-gradient(140deg, #54585f 0%, #1f2126 20%, #2d3036 52%, #17191d 80%, #45484f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.16),
    inset 0 0 0 3px #0a0b0d,
    0 60px 100px -36px rgba(0,0,0,0.95),
    0 0 0 1px rgba(0,0,0,0.7);
}
.phone__screen {
  position: relative; height: 100%;
  border-radius: 48px; overflow: hidden;
  padding: 56px 15px 18px;
  background: #15171d;
}
.phone__island {
  position: absolute; top: 11px; left: 50%;
  width: 98px; height: 29px; margin-left: -49px;
  border-radius: 20px; background: #000; z-index: 2;
}
.phone__status {
  position: absolute; top: 15px; left: 30px; right: 26px;
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-size: 13.5px; font-weight: 660; letter-spacing: -0.01em;
}
.phone__sys { display: flex; align-items: center; gap: 6px; }
.sig { display: flex; align-items: flex-end; gap: 1.5px; height: 11px; }
.sig i { width: 3px; border-radius: 1px; background: #fff; }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 6px; }
.sig i:nth-child(3) { height: 8.5px; } .sig i:nth-child(4) { height: 11px; }
.batt { position: relative; width: 24px; height: 12px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.5); }
.batt::before { content: ""; position: absolute; inset: 1.5px; right: 5px; border-radius: 1.5px; background: #fff; }
.batt::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: rgba(255,255,255,0.5); }

.ic { position: relative; display: block; flex: none; overflow: hidden; }
.ic img { width: 100%; height: 100%; object-fit: cover; }
.ic::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.13); pointer-events: none; }

/* ─── Scroll reveal (safe by construction) ─────────────────────────────
   Content never depends on JS to be visible: the .js class is added by the
   same script that sets up the observer, and the pre-reveal state is dimmed,
   never hidden (opacity .55), so a failed observer still leaves it readable. */
.js [data-reveal] {
  opacity: 0.55;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ─── Cross-page morph (progressive: browsers without support just navigate) */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 420ms; animation-timing-function: var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
