/* RigoNext — styles.css */

:root {
  --bg: #070b1a;
  --bg-2: #0b1228;
  --bg-card: #ffffff;
  --ink: #0c1230;
  --ink-2: #2a3160;
  --muted: #6a7099;
  --line: #e6e8f5;
  --line-strong: #d2d6ee;

  --brand-1: #2cb1ff;   /* sky */
  --brand-2: #5b6df0;   /* indigo */
  --brand-3: #8a4cff;   /* purple */
  --brand-4: #18d6c2;   /* teal accent */

  --grad-brand: linear-gradient(135deg, var(--brand-1) 0%, var(--brand-2) 50%, var(--brand-3) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(44,177,255,.12), rgba(138,76,255,.12));

  --radius: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 4px 20px rgba(15, 25, 70, 0.08);
  --shadow-md: 0 18px 50px rgba(15, 25, 70, 0.12);
  --shadow-lg: 0 30px 80px rgba(15, 25, 70, 0.18);

  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Reveal-on-scroll: classes added/removed by script.js */
.section-head, .why__card, .pcard, .pdetail__copy, .pdetail__art, .tech__cell {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.in-view { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .section-head, .why__card, .pcard, .pdetail__copy, .pdetail__art, .tech__cell {
    opacity: 1; transform: none;
  }
  .tech__marquee-track { animation: none; }
  .hero::before, .hero::after, .hero__art::before, .grad { animation: none; }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fbfbff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* -------- Nav -------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(15, 25, 70, 0.06);
}
.nav__brand { display: flex; align-items: center; flex-shrink: 0; }
.nav__brand img { height: 44px; width: auto; max-width: none; display: block; }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-weight: 500; font-size: 15px; color: var(--ink-2);
  position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
  transition: width .25s ease;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__menu { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__menu span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* -------- Buttons -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn--primary {
  color: #fff; background: var(--grad-brand);
  box-shadow: 0 8px 24px rgba(91,109,240,.35);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(91,109,240,.45); }
.btn--ghost {
  color: var(--ink); background: rgba(12,18,48,.05);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: rgba(12,18,48,.08); }
.btn--sm { padding: 10px 18px; font-size: 14px; }

/* -------- Section heads -------- */
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: .12em;
  font-size: 12px; font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head {
  text-align: center;
  max-width: 800px; margin: 0 auto 64px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800; letter-spacing: -.025em;
  margin: 14px 0 18px;
  line-height: 1.08;
}
.lead { color: var(--muted); font-size: 17px; line-height: 1.65; }

/* -------- Hero (DARK + animated mesh) -------- */
.hero {
  position: relative; overflow: hidden;
  background: #050816;
  padding: 100px 0 120px;
  isolation: isolate;
  color: #fff;
}
/* Animated mesh blobs */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(110px); opacity: .55; z-index: -1;
  animation: heroBlob 18s ease-in-out infinite;
}
.hero::before {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #2cb1ff 0%, transparent 70%);
  top: -180px; left: -150px;
}
.hero::after {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #8a4cff 0%, transparent 70%);
  bottom: -220px; right: -180px;
  animation-delay: -9s;
}
@keyframes heroBlob {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(60px,-40px) scale(1.1); }
  66%     { transform: translate(-40px,50px) scale(.95); }
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center;
}
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #cbd5ff; font-weight: 600; font-size: 13px;
  border: 1px solid rgba(255,255,255,.12);
  position: relative;
}
.hero__pill::before {
  content: '✨'; font-size: 14px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -.03em;
  margin: 20px 0 22px; color: #fff;
}
.grad {
  background: linear-gradient(135deg, #2cb1ff 0%, #8a4cff 50%, #ff6ec4 100%);
  background-size: 200% 200%;
  animation: gradShift 6s ease-in-out infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes gradShift {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}
.hero__lead {
  font-size: 18px; color: #b8c0e0; line-height: 1.65; max-width: 560px;
}
.hero__ctas { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn--primary {
  box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 12px 40px rgba(91,109,240,.55), 0 0 80px rgba(138,76,255,.35);
}
.hero .btn--primary:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 16px 50px rgba(91,109,240,.7), 0 0 100px rgba(138,76,255,.5);
}
.hero .btn--ghost {
  color: #fff; background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
}
.hero .btn--ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }
.hero__stats {
  display: flex; gap: 40px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08);
}
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong {
  font-family: var(--font-display); font-size: 36px; font-weight: 800;
  background: linear-gradient(135deg, #2cb1ff 0%, #8a4cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(91,109,240,.4));
}
.hero__stats span { color: #8c97cc; font-size: 13px; margin-top: 2px; }

/* hero art with glow halo */
.hero__art {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 1200 / 630;
  width: 100%;
  background: linear-gradient(135deg, #0b1228, #1a2055);
  isolation: isolate;
}
.hero__art::before {
  content: ''; position: absolute; inset: -30px;
  background: conic-gradient(from 0deg, #2cb1ff, #8a4cff, #ff6ec4, #2cb1ff);
  border-radius: var(--radius-lg);
  filter: blur(40px); opacity: .6; z-index: -1;
  animation: haloSpin 12s linear infinite;
}
@keyframes haloSpin { to { transform: rotate(360deg); } }
.hero__art img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.1);
}

/* -------- Why -------- */
.why { padding: 110px 0; }
.why__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.why__card {
  position: relative;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 26px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .25s ease;
  overflow: hidden; isolation: isolate;
  transform-style: preserve-3d;
}
.why__card::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, #2cb1ff, #8a4cff, #ff6ec4);
  opacity: 0; transition: opacity .35s ease;
}
.why__card::after {
  content: ''; position: absolute; inset: 1px; z-index: -1;
  border-radius: calc(var(--radius) - 1px);
  background: #fff;
}
.why__card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(91,109,240,.18); border-color: transparent; }
.why__card:hover::before { opacity: 1; }
.why__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(44,177,255,.15), rgba(138,76,255,.15));
  font-size: 26px; margin-bottom: 18px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.why__card:hover .why__icon { transform: scale(1.1) rotate(-5deg); }
.why__card h3 { margin: 0 0 8px; font-size: 18px; font-family: var(--font-display); }
.why__card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* -------- Products: BENTO GRID -------- */
.products { padding: 110px 0; background: linear-gradient(180deg, #f3f5fe, #fbfbff); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(240px, auto);
  gap: 18px;
}
/* Bento sizing: Tick & Stetho are featured big tiles */
.product-grid .pcard--tick     { grid-column: span 3; grid-row: span 2; }
.product-grid .pcard--stetho   { grid-column: span 3; grid-row: span 2; }
.product-grid .pcard--medipulse{ grid-column: span 2; }
.product-grid .pcard--zestro   { grid-column: span 2; }
.product-grid .pcard--vivid    { grid-column: span 2; }
.product-grid .pcard--walk     { grid-column: span 3; }
.product-grid .pcard--more     { grid-column: span 3; }

.product-grid .pcard {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease, border-color .25s ease;
  transform-style: preserve-3d;
  isolation: isolate;
}
/* Glow border on hover via gradient pseudo-element */
.product-grid .pcard::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--card-glow, linear-gradient(135deg, #2cb1ff, #8a4cff));
  opacity: 0; transition: opacity .4s ease;
  border-radius: inherit;
}
.product-grid .pcard::after {
  content: ''; position: absolute; inset: 1.5px; z-index: -1;
  background: #fff; border-radius: calc(var(--radius-lg) - 1.5px);
}
.product-grid .pcard:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(15, 25, 70, 0.22);
  border-color: transparent;
}
.product-grid .pcard:hover::before { opacity: 1; }
/* Big featured tiles get a soft gradient glow accent */
.product-grid .pcard--tick,
.product-grid .pcard--stetho {
  background: radial-gradient(800px 400px at 100% 0%, rgba(91,109,240,.06), transparent 60%), #fff;
}

.pcard__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px;
}
.pcard__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-glow, linear-gradient(135deg, #2cb1ff, #8a4cff));
  color: #fff;
  box-shadow: 0 10px 24px -8px var(--card-glow-shadow, rgba(91,109,240,.5));
  position: relative;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease;
}
.pcard__icon::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,.25) 0%, transparent 50%);
  pointer-events: none;
}
.pcard__icon svg { width: 28px; height: 28px; position: relative; z-index: 1; }
.pcard:hover .pcard__icon {
  transform: scale(1.08) rotate(-6deg);
  box-shadow: 0 14px 30px -6px var(--card-glow-shadow, rgba(91,109,240,.7));
}
.product-grid .pcard--tick .pcard__icon,
.product-grid .pcard--stetho .pcard__icon {
  width: 64px; height: 64px;
}
.product-grid .pcard--tick .pcard__icon svg,
.product-grid .pcard--stetho .pcard__icon svg { width: 32px; height: 32px; }

.pcard__badge {
  padding: 5px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: linear-gradient(135deg, rgba(44,177,255,.12), rgba(138,76,255,.12));
  color: var(--brand-2);
  border: 1px solid rgba(91,109,240,.18);
  white-space: nowrap;
}

.pcard__stats {
  display: flex; gap: 16px; margin: 4px 0 14px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.pcard__stats span {
  display: flex; flex-direction: column; font-size: 12px; color: var(--muted); font-weight: 500;
}
.pcard__stats strong {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  background: var(--card-glow, linear-gradient(135deg, #2cb1ff, #8a4cff));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 2px;
}

/* Light sweep on hover */
.pcard__shine {
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none; overflow: hidden; z-index: 2;
}
.pcard__shine::before {
  content: ''; position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 1s ease;
}
.pcard:hover .pcard__shine::before { left: 130%; }

/* Subtle RigoNext watermark in bottom-right of each card */
.pcard__watermark {
  position: absolute; right: 18px; bottom: 18px;
  height: 18px; width: auto; max-width: none;
  opacity: 0.08;
  pointer-events: none;
  transition: opacity .3s ease;
  filter: grayscale(1);
}
.pcard:hover .pcard__watermark { opacity: 0.16; }
.pcard h3 {
  font-family: var(--font-display); font-weight: 800;
  font-size: 28px; margin: 0 0 8px; letter-spacing: -.015em;
}
.product-grid .pcard--tick h3,
.product-grid .pcard--stetho h3 { font-size: 36px; }
.pcard__tag { color: var(--ink-2); font-weight: 600; font-size: 14.5px; margin: 0 0 12px; }
.pcard__desc { color: var(--muted); font-size: 14.5px; line-height: 1.65; margin: 0 0 18px; }
.pcard__more {
  margin-top: auto; font-weight: 700; font-size: 14px;
  background: linear-gradient(135deg, #2cb1ff, #8a4cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-flex; align-items: center; gap: 4px;
}
.pcard:hover .pcard__more { gap: 10px; transition: gap .3s ease; }

.pcard--more {
  background: linear-gradient(135deg, #0b1228 0%, #1a2055 60%, #2a1a55 100%) !important;
  color: #fff; border: none !important;
  position: relative;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.pcard--more::before { background: none !important; }
.pcard--more::after { display: none; }
.pcard--more h3 { color: #fff; font-size: 24px; }
.pcard--more .pcard__desc { color: rgba(255,255,255,.7); }
.pcard--more .btn { margin-top: 14px; }

/* per-card glow tints + matching icon-shadow color */
.pcard--tick     { --card-glow: linear-gradient(135deg, #2cb1ff, #5b6df0); --card-glow-shadow: rgba(44,177,255,.55); }
.pcard--stetho   { --card-glow: linear-gradient(135deg, #5b6df0, #8a4cff); --card-glow-shadow: rgba(91,109,240,.55); }
.pcard--medipulse{ --card-glow: linear-gradient(135deg, #18d6c2, #2cb1ff); --card-glow-shadow: rgba(24,214,194,.55); }
.pcard--zestro   { --card-glow: linear-gradient(135deg, #ff8050, #ff6ec4); --card-glow-shadow: rgba(255,128,80,.55); }
.pcard--vivid    { --card-glow: linear-gradient(135deg, #8a4cff, #ff6ec4); --card-glow-shadow: rgba(138,76,255,.55); }
.pcard--walk     { --card-glow: linear-gradient(135deg, #50c878, #18d6c2); --card-glow-shadow: rgba(80,200,120,.55); }

/* -------- Detail sections -------- */
.pdetail { padding: 100px 0; }
.pdetail--alt { background: #fff; }
.pdetail__inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
.pdetail__inner--reverse { grid-template-columns: 1fr 1.1fr; }
.pdetail__inner--reverse .pdetail__copy { order: 2; }
.pdetail__inner--reverse .pdetail__art { order: 1; }
.pdetail__copy h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em;
  margin: 14px 0 16px;
}
.pdetail__copy .lead { font-size: 17px; color: var(--ink-2); }
.checklist {
  list-style: none; padding: 0; margin: 24px 0 28px;
  display: grid; gap: 12px;
}
.checklist li {
  position: relative; padding-left: 30px;
  font-size: 15px; color: var(--ink-2); line-height: 1.55;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff;
  font-size: 11px; font-weight: 700;
}
.checklist strong { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; padding: 6px 12px; border-radius: 999px;
  background: rgba(91,109,240,.08); color: var(--brand-2);
  font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(91,109,240,.18);
}

/* -------- mock visuals -------- */
.pdetail__art { display: flex; justify-content: center; }
.mock {
  width: 100%; max-width: 460px;
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  padding: 18px; min-height: 320px;
}
.mock--dark { background: #0b1228; color: #c5cdf3; border-color: rgba(255,255,255,.08); }
.mock--zestro { background: #0d1326; color: #cdd5f0; border-color: rgba(255,255,255,.08); }
.mock__bar {
  display: flex; gap: 6px; margin-bottom: 16px;
}
.mock__bar span {
  width: 10px; height: 10px; border-radius: 50%; background: #ddd;
}
.mock--dark .mock__bar span, .mock--zestro .mock__bar span { background: #2a335c; }
.mock__row { display: flex; gap: 10px; margin-bottom: 16px; }
.kpi {
  flex: 1; padding: 14px; border-radius: 12px;
  background: var(--grad-brand-soft);
  display: flex; flex-direction: column;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink);
}
.kpi small { font-family: var(--font-sans); font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 4px; }
.chart {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px;
  height: 140px; align-items: end;
}
.chart > div {
  height: var(--h, 50%);
  background: var(--grad-brand);
  border-radius: 6px 6px 0 0;
  opacity: .85;
}

.vital {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 14px; margin-bottom: 8px; border-radius: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
}
.vital span { font-size: 13px; color: #8c97cc; }
.vital strong { font-family: var(--font-display); font-size: 17px; color: #fff; }
.ekg { color: var(--brand-1); margin-top: 12px; height: 60px; }
.ekg svg { width: 100%; height: 100%; display: block; }

.appt {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 8px;
  background: #f7f8ff; border: 1px solid var(--line); border-radius: 12px;
}
.appt strong { display: block; font-size: 14.5px; }
.appt small { font-size: 12px; color: var(--muted); }
.appt > div { flex: 1; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.ok { background: #22c55e; }
.dot.warn { background: #f59e0b; }
.tag { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag--green { background: #d1fadf; color: #047a45; }
.tag--amber { background: #ffe6b3; color: #a25a00; }
.tag--blue { background: #d8e4ff; color: #1f3aa3; }
.tag--red { background: #ffdcdc; color: #a3251f; }

.kds { display: grid; gap: 10px; }
.ord {
  background: #131a36; border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 12px 14px; color: #cdd5f0;
  display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; row-gap: 4px;
}
.ord strong { color: #fff; font-family: var(--font-display); font-size: 15px; }
.ord small { color: #8c97cc; grid-column: 2 / 3; align-self: start; }
.ord ul { margin: 4px 0 0; padding-left: 16px; grid-column: 1 / -1; font-size: 13px; }
.ord ul li { margin: 2px 0; }
.ord .tag { align-self: start; grid-column: 3 / 4; grid-row: 1; }

.lead-row, .inv-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 12px;
  align-items: center;
  padding: 12px 14px; margin-bottom: 8px;
  background: #f7f8ff; border: 1px solid var(--line); border-radius: 12px;
}
.lead-row strong, .inv-row strong { font-size: 14.5px; }
.lead-row small, .inv-row small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

.phone {
  width: 280px; height: 540px; border-radius: 40px;
  background: #0c1230; padding: 14px;
  position: relative; box-shadow: var(--shadow-lg);
  border: 4px solid #161d3e;
}
.phone__notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 24px; border-radius: 0 0 14px 14px;
  background: #161d3e;
}
.phone__inner {
  background: linear-gradient(180deg, #f8fbff, #eef3ff);
  border-radius: 28px; height: 100%; padding: 36px 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.walk-card {
  background: var(--grad-brand); color: #fff;
  border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 10px 24px rgba(91,109,240,.35);
}
.walk-card__title { font-size: 12px; opacity: .85; }
.walk-card__score {
  font-family: var(--font-display); font-weight: 800; font-size: 36px; line-height: 1.1; margin-top: 4px;
}
.walk-card__score span { font-size: 16px; opacity: .8; }
.walk-card__bar {
  height: 6px; background: rgba(255,255,255,.25); border-radius: 999px; margin-top: 8px; overflow: hidden;
}
.walk-card__bar span { display: block; height: 100%; background: #fff; border-radius: 999px; }
.walk-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
}
.walk-row span:first-child { font-size: 22px; }
.walk-row strong { display: block; font-size: 14px; }
.walk-row small { font-size: 12px; color: var(--muted); }

/* -------- Tech: dark + auto-scrolling marquee -------- */
.tech {
  padding: 110px 0; background: #050816; color: #fff;
  position: relative; overflow: hidden; isolation: isolate;
}
.tech::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(91,109,240,.18), transparent 60%),
    radial-gradient(700px 400px at 80% 100%, rgba(138,76,255,.18), transparent 60%);
}
.tech .section-head h2 { color: #fff; }
.tech .section-head .lead { color: #b8c0e0; }
.tech__marquee {
  position: relative;
  margin-top: 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.tech__marquee-track {
  display: flex; gap: 14px; width: max-content;
  animation: marquee 40s linear infinite;
}
.tech__marquee:hover .tech__marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tech__cell {
  flex: 0 0 auto; min-width: 240px;
  padding: 22px 24px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.tech__cell:hover {
  transform: translateY(-2px);
  border-color: rgba(91,109,240,.5);
  background: rgba(91,109,240,.08);
}
.tech__cell strong { font-family: var(--font-display); font-size: 16px; color: #fff; }
.tech__cell span { font-size: 13px; color: #8c97cc; margin-top: 4px; }

/* -------- Contact -------- */
.contact { padding: 110px 0; background: #fff; }
.contact__inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start;
}
.contact h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.02em;
  margin: 14px 0 16px;
}
.contact__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; align-items: center; gap: 14px; font-size: 15.5px; }
.contact__list span {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--grad-brand-soft); color: var(--brand-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact__list a { color: var(--ink); font-weight: 600; }
.contact__list a:hover { color: var(--brand-2); }

.contact__form {
  background: #f7f8ff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: grid; gap: 16px;
}
.contact__form label {
  display: flex; flex-direction: column; gap: 6px;
  font-weight: 600; font-size: 13px; color: var(--ink-2);
}
.contact__form input, .contact__form select, .contact__form textarea {
  font: inherit; font-weight: 500; color: var(--ink);
  padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line-strong);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus {
  outline: none; border-color: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(91,109,240,.12);
}
.contact__form textarea { resize: vertical; }
.contact__form button { justify-self: start; margin-top: 4px; }
.contact__hint { color: #047a45; font-weight: 600; margin: 0; }

/* -------- Footer -------- */
.footer { background: #0b1228; color: #c5cdf3; padding: 56px 0 24px; }
.footer__inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start;
}
.footer__brand img { height: 56px; width: auto; max-width: none; filter: brightness(1.1); margin-bottom: 12px; }
.footer__brand span { color: #8c97cc; font-size: 14px; }
.footer__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.footer__cols h4 {
  font-family: var(--font-display); color: #fff; margin: 0 0 12px;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.footer__cols a {
  display: block; color: #8c97cc; font-size: 14px; padding: 4px 0;
  transition: color .15s ease;
}
.footer__cols a:hover { color: #fff; }
.footer__bottom {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; font-size: 13px; color: #6b73a3;
}

/* -------- Responsive -------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 560px; margin: 0 auto; }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
  }
  .product-grid .pcard--tick    { grid-column: span 4; grid-row: auto; }
  .product-grid .pcard--stetho  { grid-column: span 4; grid-row: auto; }
  .product-grid .pcard--medipulse,
  .product-grid .pcard--zestro,
  .product-grid .pcard--vivid   { grid-column: span 2; }
  .product-grid .pcard--walk    { grid-column: span 2; }
  .product-grid .pcard--more    { grid-column: span 4; }
  .product-grid .pcard--tick h3,
  .product-grid .pcard--stetho h3 { font-size: 28px; }
  .pdetail__inner, .pdetail__inner--reverse {
    grid-template-columns: 1fr; gap: 40px;
  }
  .pdetail__inner--reverse .pdetail__copy { order: 1; }
  .pdetail__inner--reverse .pdetail__art { order: 2; }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 20px; }
  .nav__links { display: none; }
  .nav__menu { display: flex; }
  .nav__links.is-open {
    display: flex; flex-direction: column; gap: 14px;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; padding: 20px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .hero { padding: 56px 0 80px; }
  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .why, .products, .pdetail, .tech, .contact { padding: 72px 0; }
  .why__grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-grid .pcard,
  .product-grid .pcard--tick,
  .product-grid .pcard--stetho,
  .product-grid .pcard--medipulse,
  .product-grid .pcard--zestro,
  .product-grid .pcard--vivid,
  .product-grid .pcard--walk,
  .product-grid .pcard--more { grid-column: span 1; grid-row: auto; }
  .tech__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
}
