/* NoBand — landing page. Dark, calm, modern. Palette mirrors the app's Theme. */
:root {
  --bg: #0E1116;
  --bg-elev: #151A21;
  --card: #1A2029;
  --line: rgba(255,255,255,.07);
  --text: #F0F2F7;
  --muted: #9EA8BA;
  --recovery: #47D1AE;
  --readiness: #789EF2;
  --strain: #F5B35C;
  --sleep: #8C94ED;
  --hrv: #73C7DB;
  --stress: #B88CF2;
  --radius: 20px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; margin: 0; }
em { font-style: normal; color: var(--recovery); }

/* Ambient glows */
.glow { position: fixed; z-index: 0; border-radius: 50%; filter: blur(120px); opacity: .32; pointer-events: none; }
.glow--teal { width: 620px; height: 620px; background: var(--recovery); top: -220px; right: -160px; }
.glow--blue { width: 560px; height: 560px; background: var(--readiness); top: 640px; left: -240px; opacity: .22; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled { background: rgba(14,17,22,.72); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); }
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.02em; font-size: 18px; }
.nav__brand img { filter: drop-shadow(0 0 6px rgba(115,199,219,.45)); }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav__links a { transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__right { display: flex; align-items: center; gap: 14px; margin-left: 22px; }
.lang { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lang select {
  appearance: none; -webkit-appearance: none; background: rgba(255,255,255,.05);
  color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font: inherit; font-size: 13.5px; cursor: pointer; transition: background .2s, border-color .2s;
}
.lang select:hover { background: rgba(255,255,255,.09); }
.lang select:focus-visible { outline: 2px solid var(--recovery); outline-offset: 2px; }
/* RTL: mirror the nav and text flow for Arabic */
[dir="rtl"] .nav__links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav__right { margin-left: 0; margin-right: 22px; }
[dir="rtl"] .lede, [dir="rtl"] .hero__note, [dir="rtl"] .price__list li { text-align: right; }
[dir="rtl"] .price__list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .price__list li::before { left: auto; right: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s;
  white-space: nowrap; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--recovery); color: #05221B; box-shadow: 0 10px 30px -8px rgba(71,209,174,.55); }
.btn--primary:hover { box-shadow: 0 16px 40px -8px rgba(71,209,174,.7); }
.btn--ghost { background: rgba(255,255,255,.05); color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(255,255,255,.09); }
.btn--wide { width: 100%; justify-content: center; padding: 15px; }

/* Layout */
main { position: relative; z-index: 1; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section__head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase;
  color: var(--recovery); margin-bottom: 16px;
}

/* Hero */
.hero {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 40px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; min-height: min(700px, 82vh);
}
.hero__copy h1 { font-size: clamp(40px, 6.4vw, 74px); font-weight: 800; letter-spacing: -.035em; }
.grad {
  background: linear-gradient(100deg, var(--recovery), var(--hrv) 55%, var(--readiness));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(16px, 1.9vw, 19px); color: var(--muted); max-width: 540px; margin: 22px 0 30px; }
.lede strong { color: var(--text); font-weight: 650; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note { margin-top: 22px; font-size: 13.5px; color: var(--muted); opacity: .85; }

/* Phone frame */
.phone {
  position: relative; margin: 0; border-radius: 40px; padding: 10px;
  background: linear-gradient(160deg, #262c36, #12161c);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone img { border-radius: 30px; width: 100%; }
.phone figcaption { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 14px; font-weight: 550; }
.hero__device { display: flex; justify-content: center; }
.phone--hero { width: min(300px, 78vw); animation: float 6s ease-in-out infinite; }
.phone--hero::after {
  content: ""; position: absolute; inset: -30% -20%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(71,209,174,.28), transparent 62%); filter: blur(30px);
}
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }

/* Trust strip */
.strip {
  max-width: var(--maxw); margin: 8px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.strip__item {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 3px;
}
.strip__item b { font-size: 17px; }
.strip__item span { color: var(--muted); font-size: 13.5px; }

/* Duo (two scores) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 0 auto; }
.duo__card {
  background: linear-gradient(180deg, var(--card), rgba(26,32,41,.4));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px;
  position: relative; overflow: hidden;
}
.duo__card::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%;
  background: var(--accent); opacity: .14; filter: blur(50px);
}
.duo__scoreblock { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.duo__ring {
  --pct: 0; width: 84px; height: 84px; border-radius: 50%; position: relative; flex: 0 0 auto;
  background:
    radial-gradient(closest-side, var(--card) 76%, transparent 78% 100%),
    conic-gradient(var(--accent) calc(var(--pct) * 1%), rgba(255,255,255,.08) 0);
}
.duo__ring::after {
  content: attr(data-score); position: absolute; inset: 0; display: grid; place-content: center;
  font-size: 27px; font-weight: 800; color: var(--text);
}
.duo__label {
  font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
}
.duo__card h3 { font-size: 21px; margin-bottom: 10px; }
.duo__card p { color: var(--muted); font-size: 15.5px; margin: 0; }
.duo__foot { text-align: center; color: var(--muted); margin: 34px auto 0; max-width: 640px; font-size: 15.5px; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 24px 50px -30px var(--accent); }
.feat__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-content: center; font-size: 24px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.feat h3 { font-size: 18.5px; margin-bottom: 9px; }
.feat p { color: var(--muted); font-size: 15px; margin: 0; }
.feat em { color: var(--accent); }

/* Screens gallery */
.section--screens { padding-bottom: 60px; }
.gallery {
  display: flex; gap: 26px; overflow-x: auto; padding: 8px 4px 28px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery .phone { flex: 0 0 auto; width: 232px; scroll-snap-align: center; padding: 8px; border-radius: 32px; }
.gallery .phone img { border-radius: 24px; }
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 999px; }

/* Pricing */
.price { max-width: 620px; margin: 0 auto; text-align: center; }
.price h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
.price__lede { color: var(--muted); font-size: 17px; margin: 16px auto 34px; max-width: 480px; }
.price__lede strong { color: var(--text); }
.price__card {
  background: linear-gradient(180deg, var(--card), rgba(26,32,41,.5));
  border: 1px solid var(--line); border-radius: 24px; padding: 40px 34px;
  box-shadow: 0 40px 80px -40px rgba(71,209,174,.35);
  position: relative;
}
.price__tag {
  display: inline-block; font-size: 13px; font-weight: 650; color: var(--recovery);
  background: color-mix(in srgb, var(--recovery) 14%, transparent); border: 1px solid color-mix(in srgb, var(--recovery) 30%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.price__amount { font-size: 32px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 24px; }
.price__list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; text-align: left; }
.price__list li { position: relative; padding-left: 30px; color: var(--text); font-size: 15.5px; }
.price__list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; color: var(--recovery); font-weight: 800;
  width: 20px; height: 20px; display: grid; place-content: center; border-radius: 50%;
  background: color-mix(in srgb, var(--recovery) 16%, transparent); font-size: 12px;
}
.price__fine { color: var(--muted); font-size: 13px; margin: 16px 0 0; }

/* Footer */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 60px 24px 80px; text-align: center;
  border-top: 1px solid var(--line); position: relative; z-index: 1;
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.footer__brand img { filter: drop-shadow(0 0 5px rgba(115,199,219,.4)); }
.footer__tag { color: var(--muted); margin: 10px 0 22px; }
.footer__links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: var(--muted); opacity: .6; font-size: 12.5px; margin-top: 28px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* Entrance cascade — animation (not transition) with fill-mode BOTH, so the
   end state is always visible even if JS never runs. Staggered by position. */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.reveal:nth-child(2) { animation-delay: .07s; }
.reveal:nth-child(3) { animation-delay: .14s; }
.reveal:nth-child(4) { animation-delay: .21s; }
.reveal:nth-child(5) { animation-delay: .28s; }
.reveal:nth-child(6) { animation-delay: .35s; }
.hero__device.reveal { animation-delay: .18s; }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; min-height: auto; gap: 34px; }
  .hero__copy { order: 1; }
  .hero__device { order: 2; }
  .lede, .hero__note { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .duo { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 68px 20px; }
  .grid { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .nav__cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .phone--hero { animation: none; }
  html { scroll-behavior: auto; }
}
