/* Public Vexio pages, styled like the app: "Ocean Glass" palette from the
   app theme (src/theme.ts) on the launch-screen navy (#050B14). */
:root {
  --void: #02060C;
  --ink: #050B14;
  --surface: #0B1624;
  --surface2: #10202F;
  --surface3: #172A3D;
  --sky: #38BDF8;
  --blue: #3B82F6;
  --cyan: #22D3EE;
  --text: #F0F9FF;
  --text-dim: rgba(240, 249, 255, 0.74);
  --muted: rgba(224, 242, 254, 0.58);
  --faint: rgba(224, 242, 254, 0.40);
  --line: rgba(186, 230, 253, 0.10);
  --glass: rgba(125, 190, 240, 0.07);
  --glass-line: rgba(186, 230, 253, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ink);
  color: var(--text);
  line-height: 1.6;
}

body { display: flex; flex-direction: column; min-height: 100vh; overflow-x: hidden; position: relative; }

/* Ocean backdrop: two soft lights drifting slowly behind everything. */
body::before,
body::after {
  content: '';
  position: fixed;
  z-index: -1;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}
body::before {
  top: -25vmax;
  left: -20vmax;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.20) 0%, rgba(59, 130, 246, 0.08) 40%, transparent 70%);
}
body::after {
  bottom: -30vmax;
  right: -25vmax;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, rgba(13, 148, 136, 0.06) 45%, transparent 70%);
}

main { flex: 1 0 auto; }
a { color: var(--sky); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 18px 20px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.3px;
}
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--text); }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sky); }

/* App icon (the real Vexio icon) */
.app-icon { display: block; border-radius: 22%; }
.app-icon.small { width: 32px; height: 32px; border-radius: 8px; }
.hero-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 18px 48px rgba(56, 189, 248, 0.28);
}

/* Hero */
.hero {
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 48px 20px 40px;
  position: relative;
}
.hero-home { padding-top: 56px; }
.hero-content { position: relative; z-index: 1; width: 100%; max-width: 820px; }
.brand { margin-bottom: 8px; }
.brand-name {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #FFFFFF 0%, #BAE6FD 45%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-sub { font-size: 14px; color: var(--sky); font-weight: 700; letter-spacing: 1.5px; }
h1 {
  font-size: 48px;
  font-weight: 900;
  margin: 24px 0 16px;
  letter-spacing: -1.2px;
  line-height: 1.12;
}
.tagline {
  font-size: 18px;
  color: var(--text-dim);
  margin: 0 auto 30px;
  max-width: 640px;
  line-height: 1.55;
}

/* Store badges */
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(186, 230, 253, 0.35);
  color: #fff;
  text-decoration: none;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.badge span { white-space: nowrap; }
.badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.85; }
a.badge { box-shadow: 0 12px 28px rgba(56, 189, 248, 0.22); transition: border-color 0.2s, transform 0.2s; }
a.badge:hover { border-color: var(--sky); transform: translateY(-1px); }
.badge-soon { opacity: 0.6; cursor: default; }

/* Phones with real app screenshots */
.phone {
  position: relative;
  width: 260px;
  aspect-ratio: 540 / 1200;
  border-radius: 38px;
  padding: 9px;
  background: linear-gradient(160deg, #1B2B3D 0%, #0A1320 60%, #050B14 100%);
  box-shadow: 0 0 0 1px var(--glass-line), 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 60px rgba(56, 189, 248, 0.12);
  flex-shrink: 0;
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: var(--surface);
}
.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  padding: 0 20px 48px;
  max-width: 1000px;
  margin: 0 auto;
}
.hero-phones .center { z-index: 2; width: 290px; }
.hero-phones .side { width: 240px; opacity: 0.92; }
.hero-phones .left { transform: translateX(28px) rotate(-6deg); margin-bottom: 18px; }
.hero-phones .right { transform: translateX(-28px) rotate(6deg); margin-bottom: 18px; }

/* Content sections */
.content {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px;
  overflow-wrap: break-word;
}
.content h2 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin: 8px 0 14px;
}
.content p { color: var(--text-dim); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.content strong { color: var(--text); }
.more { font-weight: 700; text-decoration: none; color: var(--sky); }
.more:hover { color: var(--cyan); }
.steps { padding-left: 22px; color: var(--text-dim); line-height: 1.7; }
.steps li { margin-bottom: 10px; }
.steps li::marker { color: var(--sky); font-weight: 800; }

/* Text beside a phone */
.content.split {
  max-width: 1000px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 56px;
  align-items: center;
}
.content.split.flip { grid-template-columns: auto minmax(0, 1fr); }
.content.split.flip .phone, .content.split.flip .shot { order: -1; }
.split-text { max-width: 620px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 16px;
  margin-top: 18px;
}
.card {
  padding: 24px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color 0.25s, transform 0.25s;
}
.card:hover { border-color: rgba(56, 189, 248, 0.35); transform: translateY(-2px); }
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 14px; margin: 0; }

.faq details {
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq details[open] { border-color: rgba(56, 189, 248, 0.30); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary::marker { color: var(--sky); }
.faq details p { margin: 10px 0 0; font-size: 15px; }

.cta { text-align: center; padding-bottom: 72px; }
.cta p { margin-bottom: 22px; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 20px;
  background: rgba(2, 6, 12, 0.6);
}
.footer-content { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.footer-links { display: flex; justify-content: center; gap: 12px 24px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--sky); }
.footer-credit { text-align: center; font-size: 13px; color: var(--faint); }

@media (max-width: 860px) {
  .content.split, .content.split.flip { grid-template-columns: 1fr; gap: 28px; max-width: 760px; }
  .content.split .phone { margin: 0 auto; width: 230px; }
  .content.split .shot, .content.split.flip .shot { order: 2; }
  .hero-phones .side { width: 170px; }
  .hero-phones .center { width: 210px; }
  .hero-phones .left { transform: translateX(34px) rotate(-6deg); }
  .hero-phones .right { transform: translateX(-34px) rotate(6deg); }
}

@media (max-width: 640px) {
  .site-header { justify-content: center; }
  .site-header nav { justify-content: center; gap: 14px; }
  h1 { font-size: 34px; }
  .brand-name { font-size: 36px; }
  .tagline { font-size: 16px; }
  .content h2 { font-size: 24px; }
  .badge { min-width: 0; flex: 1 1 150px; max-width: 220px; padding: 10px 12px; font-size: 16px; gap: 8px; }
  .hero-phones { padding-bottom: 32px; }
  .hero-phones .side { width: 112px; margin-bottom: 10px; }
  .hero-phones .center { width: 168px; }
  .hero-phones .left { transform: translateX(22px) rotate(-6deg); }
  .hero-phones .right { transform: translateX(-22px) rotate(6deg); }
  .hero-phones .phone { border-radius: 24px; padding: 6px; }
  .hero-phones .phone img { border-radius: 19px; }
}

/* Motion: slow and subtle, and only when the person has not asked for less. */
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: drift-a 26s ease-in-out infinite alternate; }
  body::after { animation: drift-b 32s ease-in-out infinite alternate; }
  @keyframes drift-a { to { transform: translate(14vmax, 10vmax) scale(1.08); } }
  @keyframes drift-b { to { transform: translate(-12vmax, -8vmax) scale(1.12); } }

  .hero-icon { animation: glow 4.5s ease-in-out infinite; }
  @keyframes glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 18px 48px rgba(56, 189, 248, 0.22); }
    50% { box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45), 0 18px 64px rgba(56, 189, 248, 0.45); }
  }

  .hero-content { animation: rise 0.8s ease-out both; }
  .hero-phones { animation: rise 1s ease-out 0.15s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

  /* Sections fade and slide in as they scroll into view (browsers without
     scroll-driven animations simply show them). */
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}

/* "Screens shown with sample profiles." under the phone mockups */
.shot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shots-note { font-size: 12px; color: var(--faint); text-align: center; margin: 0; }
.hero-note { margin: -28px auto 40px; padding: 0 20px; }
@media (max-width: 640px) { .hero-note { margin-top: -16px; } }
