/* Valenox landing page — dark, sporty, blue glow.
   Deliberately not the in-app design system (see swasthya-os/DESIGN.md). */

:root {
  --bg:        #05070d;
  --bg-raise:  #0b0f1a;
  --line:      #1a2133;
  --ink:       #e8edf7;
  --ink-dim:   #94a1bb;
  --ink-faint: #66738d;

  --blue:      #4cc9ff;
  --blue-deep: #2f6bff;
  --blue-soft: #a9e2ff;

  --maxw: 1180px;
  --pad: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

p { margin: 0 0 18px; color: var(--ink-dim); }

a { color: var(--blue); text-decoration: none; }

/* ── Ambient background ─────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 620px at 78% -8%,  rgba(47,107,255,.28), transparent 68%),
    radial-gradient(760px 560px at 6% 34%,   rgba(76,201,255,.13), transparent 70%),
    radial-gradient(900px 700px at 50% 108%, rgba(47,107,255,.16), transparent 70%);
}
.grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 78%);
}

/* ── Type ───────────────────────────────────────────────── */
.h2, .h3, .hero__title, .stat__num {
  font-family: "Barlow Condensed", Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.02;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: #fff;
}

.hero__title { font-size: clamp(46px, 7.4vw, 92px); }
.h2          { font-size: clamp(34px, 4.6vw, 60px); }
.h3          { font-size: clamp(27px, 3.1vw, 40px); }

/* Glow is for display type and numerals only — never body copy. */
.glow {
  color: var(--blue-soft);
  text-shadow:
    0 0 6px  rgba(76,201,255,.55),
    0 0 24px rgba(76,201,255,.35),
    0 0 60px rgba(47,107,255,.30);
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 16px;
}

.kicker {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.lede { font-size: 19px; max-width: 40ch; }

.fineprint {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-faint);
  margin-top: 18px;
}
.fineprint--center { text-align: center; max-width: 62ch; margin: 40px auto 0; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad);
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5,7,13,.88), rgba(5,7,13,.35));
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: .16em;
  color: #fff;
}
.mark {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 8px rgba(76,201,255,.55)) drop-shadow(0 0 20px rgba(42,161,152,.35));
}

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color .2s ease;
}
.nav__links a:hover { color: #fff; }
.nav__cta {
  padding: 9px 18px;
  border: 1px solid rgba(76,201,255,.45);
  border-radius: 999px;
  color: var(--blue) !important;
  box-shadow: 0 0 22px rgba(76,201,255,.18) inset;
}
.nav__cta:hover { background: rgba(76,201,255,.1); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  transition: transform .18s ease, box-shadow .25s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #04101f;
  box-shadow: 0 0 26px rgba(76,201,255,.45), 0 0 70px rgba(47,107,255,.28);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(76,201,255,.65), 0 0 95px rgba(47,107,255,.4);
}
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255,255,255,.02);
}
.btn--ghost:hover { border-color: rgba(76,201,255,.5); transform: translateY(-2px); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 56px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 76px var(--pad) 88px;
}
.hero::before {                  /* the launcher ring, blown up as a watermark */
  content: "";
  position: absolute;
  top: -6%;
  left: -14%;
  width: 620px;
  height: 620px;
  background: url("assets/valenox-mark-dark.svg") center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
  z-index: -1;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.hero__note { font-size: 13.5px; color: var(--ink-faint); max-width: 46ch; margin: 0; }
.hero__device { display: flex; justify-content: center; }

/* ── Phone frame ────────────────────────────────────────── */
.phone {
  position: relative;
  width: 300px;
  padding: 11px;
  border-radius: 44px;
  background: linear-gradient(160deg, #232b3d 0%, #0d1119 55%, #1c2333 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.06),
    0 30px 70px rgba(0,0,0,.65);
}
.phone::before {                 /* speaker slot */
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 62px; height: 5px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  z-index: 2;
}
.phone__screen {
  border-radius: 34px;
  overflow: hidden;
  background: #f7f8fc;
  aspect-ratio: 420 / 880;
}
.phone__screen > img,
.phone__screen > video { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.phone--hero {
  width: 336px;
  box-shadow:
    0 0 0 1px rgba(76,201,255,.22),
    0 0 60px rgba(47,107,255,.35),
    0 40px 90px rgba(0,0,0,.7);
}

/* ── Stats ──────────────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}
.stat {
  background: var(--bg);
  padding: 34px 22px;
  text-align: center;
}
.stat__num { display: block; font-size: clamp(44px, 5vw, 62px); margin: 0 0 6px; }
.stat__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--ink-faint);
  text-transform: uppercase;
  line-height: 1.45;
}

/* ── Sections ───────────────────────────────────────────── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 104px var(--pad);
  scroll-margin-top: 84px;      /* clear the sticky nav on anchor jumps */
}
.section--tight { padding-top: 72px; }

.section__head { max-width: 46rem; margin-bottom: 66px; }
.section__sub { font-size: 18px; max-width: 56ch; }

/* ── Feature rows ───────────────────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 68px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
}
.feature--flip .feature__text { order: 2; }
.feature--flip .feature__shot { order: 1; }
.feature__text { max-width: 46ch; }
.feature__shot { display: flex; justify-content: center; }

.ticks { list-style: none; margin: 0 0 4px; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  color: var(--ink-dim);
  font-size: 16px;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 9px var(--blue);
}

/* ── Trio (trends) ──────────────────────────────────────── */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.trio__item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.trio__item .phone { width: 270px; }
.trio__item figcaption {
  font-size: 14.5px;
  color: var(--ink-faint);
  text-align: center;
  max-width: 30ch;
  line-height: 1.55;
}

/* ── Module grid (secondary features) ───────────────────── */
.modules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 40px;
}
.mod { display: flex; flex-direction: column; align-items: center; text-align: center; }
.mod__title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  margin: 24px 0 10px;
}
.mod p { font-size: 15.5px; max-width: 34ch; margin: 0; }
.mod em { color: var(--blue-soft); font-style: normal; font-weight: 600; }

.phone--sm { width: 232px; padding: 9px; border-radius: 34px; }
.phone--sm::before { top: 17px; width: 46px; height: 4px; }
.phone--sm .phone__screen { border-radius: 26px; }

/* ── Split (hindi) ──────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 68px;
}
.split__text { max-width: 46ch; }
.split__shot { display: flex; justify-content: center; }

/* ── Cards (privacy) ────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255,255,255,.035), rgba(255,255,255,.008));
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: rgba(76,201,255,.4); transform: translateY(-3px); }
.card__title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}
.card p { margin: 0; font-size: 15.5px; }

/* ── Get / placeholder ──────────────────────────────────── */
.get { text-align: center; }
.get__sub { font-size: 19px; max-width: 46ch; margin: 0 auto 44px; }

.get__cta { display: flex; justify-content: center; }
.get__badge { height: 59px; width: auto; transition: transform .18s ease; }
.get__badge:hover { transform: translateY(-2px); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 44px var(--pad) 64px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 34px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .16em;
  color: #fff;
}
.footer__brand .mark { width: 30px; height: 30px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer__links a { font-size: 14.5px; color: var(--ink-dim); }
.footer__links a:hover { color: #fff; }
.footer__note {
  flex-basis: 100%;
  margin: 0;
  font-size: 13px;
  color: var(--ink-faint);
}

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

/* Phones twist through 3D as they travel across the viewport, sitting flat and
   fully legible when centred. main.js sets the custom properties; unset they
   resolve to a flat, static phone. */
.feature__shot,
.split__shot { perspective: 1100px; }

.feature__shot .phone,
.split__shot .phone {
  transform:
    translateY(var(--drift, 0px))
    rotateY(var(--twist, 0deg))
    rotate(var(--tilt, 0deg));
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 52px; padding-top: 52px; text-align: left; }
  .feature, .split { grid-template-columns: 1fr; gap: 40px; }
  .feature--flip .feature__text { order: 0; }
  .feature--flip .feature__shot { order: 0; }
  .trio { grid-template-columns: 1fr; gap: 52px; }
  .modules { grid-template-columns: repeat(2, 1fr); gap: 46px 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav__links a:not(.nav__cta) { display: none; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }
  body { font-size: 16px; }
  .section { padding: 72px var(--pad); }
  .stats { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .phone, .phone--hero, .trio__item .phone, .phone--sm { width: min(300px, 82vw); }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
