/* OmniOne — site styles. Same world as the app: near-black, teal and magenta,
   wireframe light. */

:root {
  --bg: #02070c;
  --bg-2: #051019;
  --fg: #e6f4f6;
  --dim: #8ea3b0;
  --cyan: #2ff5e6;
  --blue: #4d7bff;
  --violet: #8a6bff;
  --magenta: #e04dff;
  --line: rgba(47, 245, 230, 0.16);
  --card: rgba(6, 22, 32, 0.62);
  --radius: 14px;
  --display: 'Major Mono Display', 'Space Grotesk', monospace;
  --body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(18px, 5vw, 64px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 70% -10%, #0a2b3a 0%, transparent 60%), var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; }
a { color: var(--cyan); }
code { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.9em; color: #bff8f3; }

#net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.55; pointer-events: none; }

.glow {
  background: linear-gradient(90deg, var(--cyan), #8fb2ff 55%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan);
}

/* --- header --------------------------------------------------------------- */

.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px var(--gutter);
  background: linear-gradient(to bottom, rgba(2, 7, 12, 0.92), rgba(2, 7, 12, 0.6));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { text-decoration: none; }
.brand__name {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--fg);
  text-shadow: 0 0 18px rgba(47, 245, 230, 0.35);
}
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav a:hover { color: var(--fg); }

/* The intro movie sits beside the headline, always playing; click for the full cut with sound. */
.hero__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.logo {
  position: relative;
  display: block;
  width: 100%;
  /* 16:9, like the movie itself, so nothing is cropped. */
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(47, 245, 230, 0.45), 0 0 24px rgba(47, 245, 230, 0.35), 0 0 40px rgba(224, 77, 255, 0.2);
  transition: transform 0.25s, box-shadow 0.25s;
}
.logo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo__ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(47, 245, 230, 0.25), transparent 40%, transparent 60%, rgba(224, 77, 255, 0.25));
  mix-blend-mode: screen;
  pointer-events: none;
}
.logo__play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(2, 7, 12, 0.72);
  border: 1px solid var(--line);
  color: var(--fg);
  font: 500 13px var(--body);
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.logo:hover .logo__play { opacity: 1; border-color: var(--cyan); }
.logo:hover { transform: scale(1.015); box-shadow: 0 0 0 1px var(--cyan), 0 0 34px rgba(47, 245, 230, 0.55), 0 0 60px rgba(224, 77, 255, 0.35); }
.logo:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* --- hero ------------------------------------------------------------------ */

main { padding: 0 var(--gutter); }
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(64px, 12vh, 140px) 0 clamp(56px, 10vh, 110px);
}
.hero__title {
  margin: 0;
  font: 600 clamp(42px, 5.6vw, 80px)/1.04 var(--body);
  letter-spacing: -0.02em;
}
.hero__lede { max-width: 640px; margin: 28px 0 0; font-size: clamp(17px, 2vw, 21px); color: #c6dbe0; }
.hero__lede strong { color: #f0c8ff; font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { border-color: var(--cyan); background: rgba(47, 245, 230, 0.06); }
.btn--primary {
  border-color: transparent;
  background: linear-gradient(90deg, var(--cyan), #6fa8ff);
  color: #021015;
  box-shadow: 0 0 28px rgba(47, 245, 230, 0.35);
}
.btn--primary:hover { background: linear-gradient(90deg, #6ffcf1, #8ab9ff); box-shadow: 0 0 40px rgba(47, 245, 230, 0.5); }
.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; background: rgba(3, 12, 19, 0.85); }
.hero__facts b { font: 600 28px/1.1 var(--body); color: var(--cyan); }
.hero__facts span { font-size: 13px; color: var(--dim); }

/* --- sections -------------------------------------------------------------- */

.section { max-width: 1080px; margin: 0 auto; padding: clamp(64px, 11vh, 120px) 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 20px; font: 600 clamp(30px, 4.4vw, 50px)/1.1 var(--body); letter-spacing: -0.015em; max-width: 860px; }
.lede { max-width: 720px; color: #c6dbe0; font-size: 18px; margin: 0 0 40px; }

.meet { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.meet__text p { color: #c6dbe0; }
.quote {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-left: 2px solid var(--magenta);
  background: rgba(224, 77, 255, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 16px;
  color: #ecd9f5;
}
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 13px; color: var(--dim); }

/* The face — a small SVG echo of the app's live head. */
.face { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.face__svg { width: min(340px, 80vw); height: auto; overflow: visible; }
.face__outline, .face__neck { fill: none; stroke: var(--cyan); stroke-width: 1.3; opacity: 0.9; filter: drop-shadow(0 0 6px rgba(47, 245, 230, 0.8)); }
.face__neck { opacity: 0.45; }
.face__grid line { stroke: var(--cyan); stroke-width: 0.5; opacity: 0.32; }
.eye { fill: rgba(191, 255, 250, 0.2); stroke: #d8fffb; stroke-width: 1.4; filter: drop-shadow(0 0 5px #bffffa); transform-box: fill-box; transform-origin: center; animation: blink 5.5s infinite; }
.pupil { fill: #e8fffd; filter: drop-shadow(0 0 4px #bffffa); animation: blink 5.5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
.lobe { fill: none; stroke-width: 2.4; stroke-linecap: round; mix-blend-mode: screen; }
.lobe--a { stroke: var(--cyan); filter: drop-shadow(0 0 5px var(--cyan)); }
.lobe--b { stroke: var(--blue); filter: drop-shadow(0 0 5px var(--blue)); }
.lobe--c { stroke: var(--magenta); filter: drop-shadow(0 0 5px var(--magenta)); }
.face figcaption { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-height: 64px; }
.face__state { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan); padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; }
.face__line { color: #dffcff; font-size: 16px; text-shadow: 0 0 12px rgba(47, 245, 230, 0.4); transition: opacity 0.4s; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(6px);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: rgba(47, 245, 230, 0.45); transform: translateY(-2px); box-shadow: 0 10px 40px -18px rgba(47, 245, 230, 0.45); }
.card--wide { grid-column: span 2; grid-row: span 2; background: linear-gradient(160deg, rgba(10, 40, 52, 0.75), rgba(6, 18, 28, 0.7)); }
.card h3 { margin: 0 0 10px; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: #b9ccd4; font-size: 15px; }
.card--wide p { font-size: 16px; }
.card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--cyan);
  font-size: 18px;
  background: rgba(47, 245, 230, 0.06);
}
.ticks { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: #cfe2e7; font-size: 15px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }

/* Pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step {
  position: relative;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
  border-radius: var(--radius);
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 10%, transparent), rgba(4, 12, 20, 0.7));
  transition: box-shadow 0.35s, border-color 0.35s;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -17px;
  top: 50%;
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--c), transparent);
}
.step__n { font-family: var(--display); color: var(--c); font-size: 14px; }
.step h3 { margin: 8px 0 8px; font-size: 19px; }
.step p { margin: 0; font-size: 14.5px; color: #b9ccd4; }
.step.is-live { box-shadow: 0 0 30px -6px var(--c); border-color: var(--c); }

.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(3, 12, 19, 0.6); font-size: 15px; }
.ex__in { color: var(--dim); }
.ex__arrow { color: var(--violet); }
.ex__out { color: var(--c); font-weight: 500; }

/* Install */
.install { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.install li { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); min-width: 0; }
.install li > div { min-width: 0; }
.install__n { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--cyan); color: var(--cyan); font-family: var(--display); }
.install h3 { margin: 4px 0 8px; font-size: 18px; }
.install p { margin: 8px 0 0; color: #b9ccd4; font-size: 15px; }
.install pre { margin: 0; padding: 10px 14px; border-radius: 10px; background: #010508; border: 1px solid var(--line); overflow-x: auto; }
.note { margin-top: 28px; color: var(--dim); font-size: 15px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
}
.foot .brand__name { font-size: 18px; }

/* Intro player */
.intro[hidden] { display: none; }
.intro { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; }
.intro__backdrop { position: absolute; inset: 0; background: rgba(0, 3, 6, 0.86); backdrop-filter: blur(6px); }
.intro__frame { position: relative; width: min(1000px, 100%); border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 0 80px rgba(47, 245, 230, 0.25); }
.intro__frame video { display: block; width: 100%; max-height: 80vh; background: #000; }
.intro__close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(2, 7, 12, 0.8); color: var(--fg); font-size: 20px; cursor: pointer; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* --- responsive ----------------------------------------------------------------- */

@media (max-width: 960px) {
  .nav { display: none; }
  .hero__head { grid-template-columns: 1fr; }
  .meet { grid-template-columns: 1fr; }
  .cards, .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--wide { grid-column: span 2; grid-row: auto; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .logo { border-radius: 12px; }
  .hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .cards--3, .pipeline, .examples, .install { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eye { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #net { display: none; }
}
