/* Arise landing — "Cybernetic Glass" (docs/27-arise-cybernetic-glass.md): deep void, neon cyan → electric violet. */
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --void: #090e1a;
  --surface: #0e131f;
  --panel: rgba(26, 31, 44, 0.62);
  --line: rgba(222, 226, 243, 0.1);
  --text: #dee2f3;
  --muted: #a9b6c8;
  --cyan: #00f0ff;
  --cyan-soft: #7df4ff;
  --violet: #8b5cf6;
  --primary: #dbfcff;
  --on-primary: #002022;
  --radius: 24px;
  --gutter: clamp(20px, 5vw, 64px);
  --display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--void);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-weight: 700;
}

.grad {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--cyan-soft) 35%, #b69cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
}

.lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.fineprint {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: #8194ad;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--gutter);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(9, 14, 26, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 9px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.9375rem;
  color: var(--muted);
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.nav .nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  color: var(--text);
  border: 1px solid rgba(125, 244, 255, 0.35);
  background: rgba(0, 240, 255, 0.08);
}

.nav .nav-cta:hover {
  background: rgba(0, 240, 255, 0.18);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px var(--gutter) 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2%;
  z-index: -2;
  background: url("assets/hero.jpg") 72% 50% / cover no-repeat;
  animation: drift 32s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 14, 26, 0.94) 0%, rgba(9, 14, 26, 0.6) 38%, rgba(9, 14, 26, 0) 68%),
    linear-gradient(0deg, var(--void) 0%, rgba(9, 14, 26, 0) 22%);
}

@keyframes drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.2%, 0.8%, 0);
  }
}

.hero-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.75rem, 7.4vw, 6rem);
  text-wrap: balance;
}

.hero .lede {
  margin-top: 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 16px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.0625rem;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--on-primary);
  background: linear-gradient(135deg, #eafeff 0%, var(--cyan-soft) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 12px 40px -8px rgba(0, 240, 255, 0.55);
}

.btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 16px 52px -6px rgba(0, 240, 255, 0.75);
}

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(222, 226, 243, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(222, 226, 243, 0.12);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 14, 26, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--cyan-soft);
}

/* ---- Sections ---- */
.watch,
.why {
  padding: clamp(72px, 11vw, 140px) var(--gutter);
}

.section-head {
  max-width: 1180px;
  margin: 0 auto 44px;
}

.section-head h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.8vw, 3.75rem);
  text-wrap: balance;
}

.video-frame {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(125, 244, 255, 0.2);
  background: #000;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.12), 0 50px 120px -40px rgba(0, 240, 255, 0.3),
    0 30px 100px -30px rgba(139, 92, 246, 0.35);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.cards {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: 0 auto;
}

.card {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 244, 255, 0.3);
  box-shadow: 0 30px 80px -30px rgba(0, 240, 255, 0.28);
}

.card img {
  width: 100%;
  height: auto; /* beats the height attribute, so aspect-ratio applies */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 26px 26px 30px;
}

.card h3 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card p {
  margin: 12px 0 0;
  font-size: 1rem;
  color: var(--muted);
}

/* ---- Download ---- */
.download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* extra bottom room keeps the copy above the bright arc in the background art */
  padding: clamp(90px, 13vw, 170px) var(--gutter) clamp(190px, 24vw, 340px);
  text-align: center;
}

/* The art is bottom-anchored at a fixed height (not stretched over the whole section) so the bright arc
   stays below the copy at every width; the mask fades its top edge into the page. */
.download::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(360px, 60vw, 700px);
  z-index: -2;
  background: url("assets/cta-dawn.jpg") 50% 100% / cover no-repeat;
  -webkit-mask-image: linear-gradient(0deg, #000 62%, transparent 100%);
  mask-image: linear-gradient(0deg, #000 62%, transparent 100%);
}

.download::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* dark scrim behind the copy: the art has a bright vertical beam right where the text sits */
  background:
    radial-gradient(ellipse 58% 46% at 50% 36%, rgba(9, 14, 26, 0.82) 0%, rgba(9, 14, 26, 0.5) 55%, rgba(9, 14, 26, 0) 100%),
    linear-gradient(180deg, var(--void) 0%, rgba(9, 14, 26, 0.35) 45%, rgba(9, 14, 26, 0.15) 100%);
}

.download-inner {
  max-width: 760px;
  margin: 0 auto;
}

.download-mark {
  margin: 0 auto 26px;
  border-radius: 20px;
  box-shadow: 0 0 60px -6px rgba(0, 240, 255, 0.5);
}

.download h2 {
  font-size: clamp(2.25rem, 5.6vw, 4.5rem);
}

.download .lede {
  margin: 20px auto 0;
  color: #c3cfde;
}

.download .fineprint {
  color: #a9b6c8;
}

.os-row {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
  margin: 40px auto 0;
}

.os-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid rgba(125, 244, 255, 0.22);
  background: rgba(14, 19, 31, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}

.os-card:hover,
.os-card.is-yours {
  transform: translateY(-3px);
  border-color: rgba(125, 244, 255, 0.7);
  box-shadow: 0 20px 60px -20px rgba(0, 240, 255, 0.5);
}

.os-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.os-note {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---- Footer ---- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: #8194ad;
}

.site-footer .brand {
  font-size: 1.0625rem;
  color: var(--text);
}

.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-footer nav a:hover {
  color: var(--text);
}

/* ---- Reveal ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.js .cards .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.js .cards .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }
  .hero::before {
    background-position: 78% 30%;
  }
  .hero::after {
    background:
      linear-gradient(180deg, rgba(9, 14, 26, 0.15) 0%, rgba(9, 14, 26, 0.55) 45%, rgba(9, 14, 26, 0.94) 80%),
      linear-gradient(0deg, var(--void) 0%, rgba(9, 14, 26, 0) 18%);
  }
  .hero {
    align-items: flex-end;
    padding-top: 96px;
  }
}

@media (max-width: 560px) {
  .nav a:not(.nav-cta) {
    display: none;
  }
  .os-row {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero::before {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card,
  .os-card {
    transition: none;
  }
}
