/* Next Eye — nexteye.app
   One dark look, taken from the app itself: near-black ground, the blue of the eye,
   frosted panels. No web fonts and no third-party requests: the site keeps the same
   promise as the app. */

:root {
  --ground: #030409;
  --ground-2: #070a14;
  --panel: rgba(22, 28, 44, 0.72);
  --panel-edge: rgba(140, 170, 255, 0.14);
  --ink: #f3f5fb;
  --ink-dim: #a7b0c6;
  --ink-faint: #6f7a94;
  --accent: #3d6dff;
  --accent-bright: #7ea0ff;
  --glow: rgba(61, 109, 255, 0.35);
  --good: #5cdb7b;
  --radius: 22px;
  --max: 1160px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html { background: var(--ground); }

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Width and height stay in the markup so the page does not jump while images load;
   height: auto keeps the proportions when a small screen narrows them. */
img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---- the eye behind everything --------------------------------------------------- */

/* One quiet background for the whole site: the Next Eye eye, faded far back, fixed while
   the page scrolls past it. Its iris drifts towards the pointer, so it seems to watch. */
.backdrop-eye {
  position: fixed;
  left: 50%;
  top: 52%;
  width: min(1180px, 130vw);
  transform: translate(-50%, -50%);
  z-index: -1;
  opacity: 0.075;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
/* Hidden while the intro video is on screen: two eyes on top of each other would fight. */
.backdrop-eye.behind-intro { opacity: 0; }
.backdrop-eye img { width: 100%; height: auto; }
.backdrop-iris {
  position: absolute;
  inset: 0;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.backdrop-eye.idle .backdrop-iris { animation: gaze 14s ease-in-out infinite; }
@keyframes gaze {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 1%); }
  45% { transform: translate(3%, -1.5%); }
  70% { transform: translate(1%, 2%); }
}

/* ---- header ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(3, 4, 9, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 19px;
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }

.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-dim); font-size: 15px; }
.nav a:hover { color: var(--ink); text-decoration: none; }

.lang {
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-dim) !important;
}

/* ---- buttons --------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #4d7bff, #2f5cf0);
  color: #fff;
  box-shadow: 0 8px 30px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { box-shadow: 0 10px 38px rgba(61, 109, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--panel-edge);
  color: var(--ink);
}

.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 11px; }

.soon { font-size: 12px; font-weight: 600; opacity: 0.8; letter-spacing: 0.4px; text-transform: uppercase; }

/* ---- hero ------------------------------------------------------------------------ */

.hero {
  position: relative;
  text-align: center;
  padding: 36px 0 40px;
  overflow: hidden;
}

.hero-video {
  position: relative;
  width: min(900px, 100%);
  margin: 0 auto -40px;
  aspect-ratio: 16 / 9;
  /* The video's own dark matches the page, so its edges disappear into it. */
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
}
.hero-video video { width: 100%; height: 100%; object-fit: cover; }

.eyebrow {
  position: relative;
  color: var(--accent-bright);
  font-weight: 650;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  position: relative;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -1.6px;
  margin: 8px 0 18px;
  font-weight: 750;
}

.lead {
  position: relative;
  max-width: 720px;
  margin: 0 auto 30px;
  font-size: clamp(18px, 2.1vw, 21px);
  color: var(--ink-dim);
}

.cta-row { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.meta {
  position: relative;
  margin-top: 22px;
  color: var(--ink-faint);
  font-size: 14px;
}

/* ---- sections -------------------------------------------------------------------- */

section { padding: 84px 0; }

.section-alt { background: transparent; }

h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin: 8px 0 16px;
  font-weight: 720;
}

h3 { font-size: 20px; margin: 0 0 8px; font-weight: 650; }

.center { text-align: center; }
.center .lead { margin-bottom: 0; }

.feature {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.feature.reverse > .feature-text { order: 2; }

.feature-text p { color: var(--ink-dim); margin: 0 0 18px; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--accent-bright) 0 3px, rgba(61, 109, 255, 0.25) 4px);
}

.shot {
  position: relative;
  display: grid;
  place-items: center;
}
/* No shadow: the panels are glass with their own edge, and a shadow under each one piled
   up into dark outlines wherever two sat side by side. */
.shot img { position: relative; }

.shot-pair { display: flex; gap: 18px; align-items: flex-end; justify-content: center; }
.shot-pair img { min-width: 0; height: auto; object-fit: contain; }
.shot-joined { gap: 10px; align-items: center; }

.float { animation: float 7s ease-in-out infinite; }
.float.late { animation-delay: -3.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- cards ----------------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 44px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card p { margin: 0; color: var(--ink-dim); font-size: 16px; }
.card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(61, 109, 255, 0.14);
  color: var(--accent-bright);
  font-size: 21px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip {
  border: 1px solid var(--panel-edge);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--ink-dim);
  font-size: 15px;
}

/* ---- gestures -------------------------------------------------------------------- */

.gestures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 8px; }
.gesture {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  padding: 16px 18px;
}
.gesture strong { display: block; font-size: 16px; }
.gesture span { color: var(--ink-dim); font-size: 15px; }

/* ---- faq ------------------------------------------------------------------------- */

.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  padding: 4px 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-bright); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--ink-dim); }

/* ---- final call ------------------------------------------------------------------ */

.final {
  text-align: center;
  padding: 100px 0 110px;
  position: relative;
  overflow: hidden;
}
.final > * { position: relative; }
.final img.mark { width: 112px; margin: 0 auto 18px; border-radius: 26px; box-shadow: 0 20px 60px var(--glow); }

/* ---- prose pages (privacy, support, press) --------------------------------------- */

.prose { max-width: 820px; margin: 0 auto; padding: 60px 0 90px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -1px; }
.prose h2 { font-size: 26px; margin-top: 44px; letter-spacing: -0.3px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--ink-dim); }
.prose strong { color: var(--ink); }
.prose code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
  color: var(--ink);
}
.prose .updated { color: var(--ink-faint); font-size: 15px; margin-top: -6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); vertical-align: top; }
.prose th { color: var(--ink); }
.prose td { color: var(--ink-dim); }
.table-scroll { overflow-x: auto; }

.callout {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  padding: 20px 24px;
  margin: 26px 0;
}
.callout p { margin: 0; }

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 18px; }
.downloads a {
  display: block;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  padding: 14px;
  color: var(--ink);
}
.downloads a:hover { text-decoration: none; border-color: rgba(126, 160, 255, 0.4); }
.downloads img { width: 100%; height: 140px; object-fit: contain; margin-bottom: 10px; }
.downloads span { font-size: 14px; color: var(--ink-dim); }

/* ---- footer ---------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 50px;
  color: var(--ink-faint);
  font-size: 14px;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { color: var(--ink-dim); }
.site-footer p { margin: 6px 0 0; }

/* ---- small screens --------------------------------------------------------------- */

@media (max-width: 900px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 34px; }
  .feature.reverse > .feature-text { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav a:not(.lang) { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .grid, .gestures { grid-template-columns: 1fr; }
  .site-header .btn { display: none; }
  .hero-video { margin-bottom: -10px; }
}

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
  .backdrop-eye.idle .backdrop-iris { animation: none; }
  .backdrop-iris { transition: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
