/* ═══════════════════════════════════════════════════════════════
   exeye — landing hero ("the eye") + live wire ticker
   Scoped styles layered on top of styles.css. Original page styles
   below the hero are untouched.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --lx-bone: #f4f1ea;
  --lx-night: #060509;
  --lx-night-2: #0d0a16;
  --lx-violet: #7c5cff;
  --lx-violet-hot: #9d7bff;
  --lx-signal: #5cf2b8;
  --lx-hair: rgba(244, 241, 234, 0.14);
  --lx-sans: "Inter Tight", system-ui, -apple-system, sans-serif;
  --lx-serif: "Instrument Serif", Georgia, serif;
  --lx-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --lx-pad: clamp(20px, 4.5vw, 72px);
}

/* shared reveal (hero only) */
[data-io] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.6, 0.2, 1);
}
[data-io].is-in { opacity: 1; transform: none; }

/* ─────────────────────────── hero ─────────────────────────── */

.lhero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--lx-pad) 90px;
  background:
    radial-gradient(1000px 600px at 78% 40%, rgba(124, 92, 255, 0.14), transparent 65%),
    var(--lx-night);
  overflow: hidden;
  font-family: var(--lx-sans);
  color: var(--lx-bone);
}

.lhero__frame { position: absolute; inset: 84px 26px 26px; pointer-events: none; }
.tick { position: absolute; width: 18px; height: 18px; opacity: 0.5; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--lx-bone); }
.tick::before { width: 100%; height: 1px; }
.tick::after { width: 1px; height: 100%; }
.tick--tl { top: 0; left: 0; }
.tick--tr { top: 0; right: 0; transform: scaleX(-1); }
.tick--bl { bottom: 0; left: 0; transform: scaleY(-1); }
.tick--br { bottom: 0; right: 0; transform: scale(-1); }

/* the eye */
.eye {
  position: absolute;
  top: 50%;
  right: max(13vw, calc(50% - 40rem));
  transform: translateY(-50%);
  width: clamp(320px, 42vw, 600px);
  aspect-ratio: 1;
  pointer-events: none;
}
.eye__svg { width: 100%; height: 100%; }
.eye__sweep {
  position: absolute;
  inset: 4.5%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(124, 92, 255, 0.22),
    transparent 18%
  );
  animation: lx-sweep 7s linear infinite;
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%, #000 92%, transparent 93%);
  mask: radial-gradient(circle, transparent 54%, #000 55%, #000 92%, transparent 93%);
}
@keyframes lx-sweep { to { transform: rotate(360deg); } }

.ring { fill: none; stroke: var(--lx-bone); }
.ring--ticks {
  stroke-width: 10;
  stroke-dasharray: 1.5 14;
  opacity: 0.28;
}
.ring--dash {
  stroke: var(--lx-violet);
  stroke-width: 1;
  stroke-dasharray: 60 26 8 26;
  opacity: 0.55;
  transform-origin: 320px 320px;
  animation: lx-spin 40s linear infinite;
}
.ring--fine { stroke-width: 0.75; opacity: 0.18; }
@keyframes lx-spin { to { transform: rotate(-360deg); } }

.eye__cross line { stroke: var(--lx-bone); stroke-width: 1; opacity: 0.3; }

.iris-line { fill: none; stroke: rgba(244, 241, 234, 0.22); stroke-width: 0.8; stroke-dasharray: 3 7; }
.iris-line--b { stroke-dasharray: 1.5 5; opacity: 0.7; }

[data-iris], [data-pupil] { transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1); }

.eye__blink { transform-origin: 320px 320px; transition: transform 0.09s ease-in; }
.eye__blink.is-blink { transform: scaleY(0.04); }

/* app showcase phone — floats in front of the eye */
.lphone {
  position: absolute;
  top: 50%;
  right: clamp(24px, 5vw, 110px);
  transform: translateY(-50%);
  width: clamp(225px, 20vw, 292px);
  z-index: 3;
  pointer-events: none;
}
.lphone__float { animation: lx-float 7s ease-in-out infinite; }
@keyframes lx-float {
  0%, 100% { transform: translateY(-8px); }
  50% { transform: translateY(10px); }
}
.lphone__screens {
  position: relative;
  aspect-ratio: 609 / 1200;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 60px rgba(124, 92, 255, 0.28));
}
.lphone__screens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.lphone__screens img.is-on { opacity: 1; }
.lphone__cap {
  margin: 20px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--lx-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244, 241, 234, 0.55);
  white-space: nowrap;
}
.lphone__cap i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lx-signal);
  box-shadow: 0 0 9px var(--lx-signal);
  animation: lx-pulse 2.2s infinite;
}
@keyframes lx-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.lhero__copy { position: relative; z-index: 2; max-width: 700px; }

.mono-tag {
  font-family: var(--lx-mono);
  font-size: clamp(10.5px, 1.1vw, 12.5px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lx-signal);
  margin: 0 0 26px;
}
.mono-tag__bracket { color: var(--lx-bone); opacity: 0.5; }

.lhero__title {
  font-family: var(--lx-sans);
  font-size: clamp(44px, 6.4vw, 100px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
  margin: 0;
}
.lhero__title .line { display: block; }
.lhero__title em {
  font-family: var(--lx-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  background: linear-gradient(100deg, var(--lx-violet-hot), #d5c6ff 60%, var(--lx-violet-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lhero__lede {
  margin: 30px 0 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: rgba(244, 241, 234, 0.72);
  max-width: 33em;
}

.lhero__actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--lx-bone);
  color: #0d0b14;
  text-decoration: none;
  padding: 13px 24px 13px 20px;
  border-radius: 14px;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 0 0 1px rgba(244, 241, 234, 0.1), 0 18px 44px -18px rgba(124, 92, 255, 0.7);
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(244, 241, 234, 0.15), 0 24px 54px -18px rgba(124, 92, 255, 0.9); }
.btn-store svg { width: 22px; height: 26px; }
.btn-store span { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.btn-store small { font-size: 10.5px; font-weight: 500; opacity: 0.65; letter-spacing: 0.02em; }

.btn-line {
  font-family: var(--lx-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(244, 241, 234, 0.75);
  border-bottom: 1px solid rgba(244, 241, 234, 0.3);
  padding-bottom: 4px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-line:hover { color: var(--lx-bone); border-color: var(--lx-bone); }

.lhero__meta {
  position: absolute;
  bottom: 26px;
  left: var(--lx-pad);
  right: var(--lx-pad);
  display: flex;
  justify-content: space-between;
  font-family: var(--lx-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
}

/* ─────────────────────────── live wire ─────────────────────────── */

.wire {
  border-top: 1px solid var(--lx-hair);
  border-bottom: 1px solid var(--lx-hair);
  background: var(--lx-night-2);
  overflow: hidden;
  padding: 13px 0;
}
.wire__track { display: flex; width: max-content; animation: lx-wiremove 46s linear infinite; }
.wire__seq {
  font-family: var(--lx-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: rgba(244, 241, 234, 0.6);
}
.wire__seq b { font-weight: 600; color: rgba(244, 241, 234, 0.85); }
.wire__seq b.hit { color: var(--lx-signal); }
.wire__seq i { font-style: normal; opacity: 0.3; margin: 0 1.4em; }
@keyframes lx-wiremove { to { transform: translateX(-50%); } }

/* ─────────────────────────── responsive ─────────────────────────── */

@media (max-width: 1060px) {
  .eye {
    right: 50%;
    transform: translate(50%, -50%);
    top: 30%;
    width: min(78vw, 480px);
    opacity: 0.4;
  }
  .lhero { justify-content: flex-end; padding-bottom: 110px; }
  .lhero__copy { max-width: 560px; }
  .lphone {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    order: -1;
    width: min(56vw, 235px);
    margin: 24px auto 48px;
    z-index: 2;
  }
}

@media (max-width: 820px) {
  .lhero__meta span:nth-child(2) { display: none; }
}

@media (max-width: 520px) {
  .lhero__title { font-size: clamp(42px, 12.5vw, 60px); }
}

/* ─────────────────────────── motion safety ─────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  [data-io] { opacity: 1; transform: none; transition: none; }
  .eye__sweep, .ring--dash, .wire__track { animation: none; }
  [data-iris], [data-pupil], .eye__blink { transition: none; }
}
