/* ═══════════════════════════════════════════════════════════════
   VitalSync Clinical Hub — Website Stylesheet
   Dark, premium, Apple-inspired design
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #080c10;
  --bg2:       #0d1117;
  --bg3:       #111820;
  --surface:   #161d27;
  --surface2:  #1c2532;
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,255,255,0.12);
  --text:      #e8edf3;
  --text2:     #8b9ab0;
  --text3:     #5a6a7e;
  --green:     #22c55e;
  --green2:    #16a34a;
  --teal:      #0d9488;
  --blue:      #3b82f6;
  --indigo:    #6366f1;
  --violet:    #8b5cf6;
  --pink:      #ec4899;
  --red:       #ef4444;
  --amber:     #f59e0b;
  --orange:    #f97316;
  --emerald:   #10b981;
  --radius:    16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow:    0 4px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 64px rgba(0,0,0,0.6);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Gradient Text ─────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #22c55e 0%, #0d9488 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,197,94,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(34,197,94,0.5);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-xl { padding: 18px 40px; font-size: 18px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section Shared ────────────────────────────────────────── */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(8,12,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}
.nav-logo-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.nav-logo-sub {
  font-weight: 400;
  color: var(--text2);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta { padding: 9px 20px; font-size: 14px; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text2);
  transition: all var(--transition);
}
.mobile-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.mobile-cta { margin-top: 8px; justify-content: center; }

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}
.hero-glow-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #22c55e, transparent 70%);
  top: -200px; left: -200px;
}
.hero-glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  bottom: -100px; right: -100px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 100px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--green);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero-title {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat { padding: 0 24px; }
.stat:first-child { padding-left: 0; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}
.hero-device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.device-float {
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.hero-ipad {
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 80px rgba(34,197,94,0.1);
}

/* ══════════════════════════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════════════════════════ */
.trust-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 20px 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
}

/* ══════════════════════════════════════════════════════════════
   FEATURES
══════════════════════════════════════════════════════════════ */
.features {
  padding: 120px 0;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(34,197,94,0.04), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card:hover::before { opacity: 1; }
.feature-card--large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.feature-card--large .feature-img {
  grid-row: span 3;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  object-fit: cover;
  max-height: 260px;
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon--blue   { background: rgba(59,130,246,0.15); color: var(--blue); }
.feature-icon--red    { background: rgba(239,68,68,0.15); color: var(--red); }
.feature-icon--amber  { background: rgba(245,158,11,0.15); color: var(--amber); }
.feature-icon--indigo { background: rgba(99,102,241,0.15); color: var(--indigo); }
.feature-icon--green  { background: rgba(34,197,94,0.15); color: var(--green); }
.feature-icon--emerald{ background: rgba(16,185,129,0.15); color: var(--emerald); }
.feature-icon--teal   { background: rgba(13,148,136,0.15); color: var(--teal); }
.feature-icon--orange { background: rgba(249,115,22,0.15); color: var(--orange); }
.feature-icon--pink   { background: rgba(236,72,153,0.15); color: var(--pink); }
.feature-icon--violet { background: rgba(139,92,246,0.15); color: var(--violet); }
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.feature-card p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════
   SCREENSHOTS
══════════════════════════════════════════════════════════════ */
.screenshots {
  padding: 120px 0;
  background: var(--bg2);
  overflow: hidden;
}
.screenshots-scroll {
  overflow-x: auto;
  padding-bottom: 16px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--surface2) transparent;
}
.screenshots-scroll:active { cursor: grabbing; }
.screenshots-track {
  display: flex;
  gap: 20px;
  padding: 8px 24px;
  width: max-content;
}
.screenshot-item {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.screenshot-item img {
  width: 260px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
  object-fit: cover;
}
.screenshot-item:hover img { transform: scale(1.03) translateY(-6px); }
.screenshot-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════════════════════
   PRIVACY
══════════════════════════════════════════════════════════════ */
.privacy {
  padding: 120px 0;
  background: var(--bg);
}
.privacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.privacy-lead {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
}
.privacy-body {
  font-size: 16px;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 32px;
}
.privacy-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.privacy-device { position: relative; }
.privacy-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 60px rgba(34,197,94,0.08);
}

/* ══════════════════════════════════════════════════════════════
   APPLE WATCH
══════════════════════════════════════════════════════════════ */
.watch {
  padding: 120px 0;
  background: var(--bg2);
}
.watch-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.watch-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.watch-item img {
  width: 180px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition);
}
.watch-item:hover img { transform: scale(1.05) translateY(-6px); }
.watch-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════════════════════
   DOWNLOAD CTA
══════════════════════════════════════════════════════════════ */
.download {
  padding: 120px 0;
  background: var(--bg);
}
.download-inner {
  text-align: center;
  position: relative;
  padding: 80px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
}
.download-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.12), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.download-logo {
  width: 80px; height: 80px;
  border-radius: 20px;
  margin: 0 auto 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  position: relative;
}
.download-title {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.download-sub {
  font-size: 17px;
  color: var(--text2);
  margin-bottom: 40px;
  position: relative;
}
.download-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  position: relative;
}
.download-note {
  font-size: 13px;
  color: var(--text3);
  position: relative;
}

/* ══════════════════════════════════════════════════════════════
   SUPPORT
══════════════════════════════════════════════════════════════ */
.support {
  padding: 120px 0;
  background: var(--bg2);
}
.support-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.support-lead {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 40px;
}
.support-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.support-link-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.support-link-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.support-link-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.support-link-item span {
  font-size: 14px;
  color: var(--text2);
}

/* Support Form */
.support-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.support-form h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b9ab0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text3); }
.form-success {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
}
.form-success.show { display: flex; }

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-tagline {
  font-size: 13px;
  color: var(--text3);
  margin: 8px 0 4px;
}
.footer-copy {
  font-size: 13px;
  color: var(--text3);
}
.footer-links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text2);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.footer-bottom p {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.7;
  max-width: 800px;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-device { order: -1; }
  .hero-ipad { max-width: 420px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card--large { grid-column: span 2; }
  .privacy-inner { grid-template-columns: 1fr; gap: 48px; }
  .privacy-device { order: -1; }
  .privacy-img { max-width: 480px; margin: 0 auto; }
  .support-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--large { grid-column: span 1; grid-template-columns: 1fr; }
  .feature-card--large .feature-img { grid-row: auto; max-height: 200px; }
  .hero-stats { gap: 16px; }
  .stat { padding: 0 12px; }
  .stat-num { font-size: 22px; }
  .trust-items { gap: 20px; }
  .watch-grid { gap: 16px; }
  .watch-item img { width: 140px; }
  .download-inner { padding: 48px 24px; }
  .footer-inner { flex-direction: column; }
  .footer-links { gap: 32px; }
  .support-form-wrap { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .hero { padding: 100px 16px 60px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; justify-content: center; }
  .section-title { font-size: 28px; }
  .screenshots-track { padding: 8px 16px; }
  .screenshot-item img { width: 200px; }
}

/* ── Scroll animations ─────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
