:root {
  --bg: #0a0a0a;
  --bg-2: #101210;
  --surface: #141514;
  --surface-2: #1e211e;
  --line: rgba(155, 150, 140, 0.14);
  --orange: #c8622a;
  --orange-soft: #e08a4f;
  --teal: #5bbfc8;
  --teal-soft: #8fd8de;
  --amber: #ffd600;
  --text: #e7e3d9;
  --muted: #9a968c;
  --muted-2: #6f6c64;
  --maxw: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.9rem;
}

/* ---------- Ambient background field ---------- */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(91, 191, 200, 0.10), transparent 60%),
    radial-gradient(900px 600px at 110% 100%, rgba(200, 98, 42, 0.10), transparent 55%),
    var(--bg);
}

.bg-grid {
  position: absolute;
  inset: -2px;
  background-image:
    radial-gradient(rgba(155, 150, 140, 0.16) 1px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 90% at 50% 20%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 20%, #000 0%, transparent 75%);
  opacity: 0.5;
}

.bg-glow {
  position: absolute;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg-glow--teal { top: -12vw; left: 52%; background: rgba(91, 191, 200, 0.22); animation: drift1 22s var(--ease) infinite alternate; }
.bg-glow--orange { bottom: -14vw; left: -6vw; background: rgba(200, 98, 42, 0.20); animation: drift2 26s var(--ease) infinite alternate; }

@keyframes drift1 { to { transform: translate(-8vw, 6vw) scale(1.1); } }
@keyframes drift2 { to { transform: translate(10vw, -5vw) scale(1.15); } }

/* Slow radar sweep near the top hero */
.radar-sweep {
  position: absolute;
  top: -40vmin;
  left: 50%;
  width: 120vmin;
  height: 120vmin;
  transform: translateX(-50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(91,191,200,0.16), transparent 24%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 20%, #000 21%, #000 60%, transparent 62%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 20%, #000 21%, #000 60%, transparent 62%);
  opacity: 0.5;
  animation: sweep 14s linear infinite;
}
@keyframes sweep { to { transform: translateX(-50%) rotate(360deg); } }

/* Drifting signal dots (like the app's map blips) */
.signal {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 214, 0, 0.6);
  animation: blip 4.5s ease-out infinite;
}
.signal--1 { top: 22%; left: 18%; animation-delay: 0s; }
.signal--2 { top: 34%; left: 78%; background: var(--teal); box-shadow: 0 0 0 0 rgba(91,191,200,0.6); animation-delay: 1.1s; }
.signal--3 { top: 62%; left: 30%; background: var(--orange); box-shadow: 0 0 0 0 rgba(200,98,42,0.6); animation-delay: 2s; }
.signal--4 { top: 70%; left: 68%; animation-delay: 2.8s; }
.signal--5 { top: 15%; left: 55%; background: var(--teal); box-shadow: 0 0 0 0 rgba(91,191,200,0.6); animation-delay: 3.6s; }
@keyframes blip {
  0% { transform: scale(0.6); opacity: 0; box-shadow: 0 0 0 0 currentColor; }
  15% { opacity: 1; }
  70% { box-shadow: 0 0 0 22px transparent; }
  100% { transform: scale(0.6); opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem clamp(1.1rem, 4vw, 2.4rem);
}
.brand-mark { height: 30px; width: auto; display: block; }
.header-cta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.header-cta:hover { color: var(--teal); border-color: rgba(91,191,200,0.5); background: rgba(91,191,200,0.06); }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.1rem, 4vw, 2.4rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
}
.hero-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.6rem);
}
.hero-inner {
  flex: 1 1 auto;
  max-width: 720px;
}
.hero-inner > * { animation: rise 0.9s var(--ease) both; }

/* Flanking presentation phones */
.hero-phone {
  flex: 0 0 auto;
  width: clamp(150px, 15vw, 208px);
  animation: fade 1s var(--ease) both;
}
.hero-phone .phone-frame { width: 100%; padding: 7px; border-radius: 32px; }
.hero-phone .phone-frame img { border-radius: 26px; }
.hero-phone .phone-notch { top: 11px; height: 15px; }
.hero-phone--left { transform: rotate(-5deg); animation-delay: 0.35s; }
.hero-phone--right { transform: rotate(5deg); animation-delay: 0.5s; }
.hero-phone--left .phone-frame { animation-delay: 0s; }
.hero-phone--right .phone-frame { animation-delay: 1.5s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 900px) {
  .hero-phone { display: none; }
}

/* Animated logomark */
.logo-mark {
  width: clamp(120px, 22vw, 176px);
  margin: 0 auto 1.6rem;
  filter: drop-shadow(0 0 26px rgba(91, 191, 200, 0.28));
}
.logo-mark svg { width: 100%; height: auto; display: block; }
.ring { transform-box: fill-box; transform-origin: center; }
.ring--1 { animation: spin 26s linear infinite; }
.ring--2 { animation: spin 18s linear infinite reverse; }
.ring--3 { animation: spin 12s linear infinite; }
.core { transform-box: fill-box; transform-origin: center; animation: heartbeat 2.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.7); opacity: 1; }
}

.wordmark {
  width: clamp(210px, 42vw, 320px);
  height: auto;
  display: block;
  margin: 0 auto 1.8rem;
}

.tagline {
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.tagline .word {
  display: inline-block;
  margin: 0 0.12em;
  background: linear-gradient(180deg, #fff, #cfd6cf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(0.25s + var(--i) * 0.12s);
}
.tagline .word:nth-child(2) {
  background: linear-gradient(180deg, var(--teal-soft), var(--teal));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lede {
  max-width: 660px;
  margin: 0 auto 2.2rem;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  color: var(--muted);
}
.lede em { color: var(--text); font-style: normal; border-bottom: 1px solid rgba(91,191,200,0.5); }

/* CTA row */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  align-items: center;
}
.playbadge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.3rem 0.7rem 1.1rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #17191a, #0d0e0f);
  border: 1px solid rgba(155,150,140,0.28);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.playbadge:hover { transform: translateY(-2px); border-color: rgba(91,191,200,0.55); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.playbadge-icon { width: 26px; height: 26px; }
.playbadge-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.playbadge-text small { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.playbadge-text strong { font-size: 1.12rem; font-weight: 500; color: #fff; letter-spacing: 0.01em; }
.playbadge-soon {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  color: var(--bg);
  background: var(--amber);
  padding: 0.16rem 0.4rem;
  border-radius: 5px;
  margin-left: 0.3rem;
  font-weight: 600;
}
.ghost-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text);
  padding: 0.85rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.ghost-btn:hover { color: var(--teal); border-color: rgba(91,191,200,0.5); background: rgba(91,191,200,0.06); }

/* ---------- Showcase ---------- */
.showcase {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 6rem) clamp(1.1rem, 4vw, 2.4rem);
}
.showcase-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.phone { display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: min(300px, 78vw);
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(160deg, #26292a, #0c0d0e);
  border: 1px solid rgba(155,150,140,0.22);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 40px 80px -30px rgba(0,0,0,0.9),
    0 0 60px -10px rgba(91,191,200,0.28);
  animation: float 7s ease-in-out infinite;
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}
.phone-notch { display: none; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* Screenshot placeholder — shown until a real image is dropped in */
.phone-ph { display: none; }
.phone-frame.is-empty img { display: none; }
.phone-frame.is-empty .phone-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  aspect-ratio: 1220 / 2712;
  border-radius: 30px;
  background:
    repeating-linear-gradient(-45deg, rgba(91,191,200,0.05) 0 12px, transparent 12px 24px),
    var(--bg-2);
  border: 1px dashed rgba(91,191,200,0.35);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  text-align: center;
  padding: 1rem;
}
.phone-frame.is-empty .phone-ph b {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.phone-frame.is-empty .phone-ph span {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.features h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 1.8rem; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.3rem; }
.feature-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.feature-dot {
  flex: none;
  width: 12px; height: 12px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(91,191,200,0.16);
}
.feature-list li:nth-child(2) .feature-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(200,98,42,0.16); }
.feature-list li:nth-child(3) .feature-dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255,214,0,0.14); }
.feature-list h3 { font-size: 1.12rem; font-weight: 500; margin-bottom: 0.2rem; color: #fff; }
.feature-list p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Contact ---------- */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.1rem, 4vw, 2.4rem) clamp(3rem, 7vw, 6rem);
}
.contact-inner {
  text-align: center;
  padding: clamp(2.2rem, 5vw, 3.6rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(91,191,200,0.08), transparent 70%),
    var(--surface);
}
.contact-inner h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 0.8rem; }
.contact-copy { color: var(--muted); max-width: 520px; margin: 0 auto 1.8rem; }
.mail-btn {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.02em;
  color: var(--bg);
  background: linear-gradient(135deg, var(--teal), var(--teal-soft));
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-weight: 500;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.mail-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(91,191,200,0.5); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.2rem 3rem;
  border-top: 1px solid var(--line);
}
.footer-mark { height: 34px; width: auto; opacity: 0.9; margin-bottom: 0.7rem; }
.footer-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.6rem;
}
.footer-meta { font-size: 0.8rem; color: var(--muted-2); margin: 0; }

/* ---------- Motion ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger hero children */
.hero-inner .logo-mark { animation-delay: 0.05s; }
.hero-inner .wordmark { animation-delay: 0.15s; }
.hero-inner .tagline { animation-delay: 0.2s; }
.hero-inner .lede { animation-delay: 0.45s; }
.hero-inner .cta-row { animation-delay: 0.55s; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .showcase-inner { grid-template-columns: 1fr; text-align: center; }
  .features { order: 2; }
  .feature-list li { text-align: left; max-width: 460px; margin: 0 auto; }
  .phone { order: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-inner > *, .tagline .word { opacity: 1 !important; transform: none !important; }
}
