/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #0f172a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
.gradient-text {
  background: linear-gradient(135deg, #FF6B35 0%, #a855f7 50%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.highlight-red { color: #7C3AED; }
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7C3AED;
  background: #ede9fe;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: #0f172a;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7C3AED, #a855f7);
  color: white;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-large { font-size: 16px; padding: 16px 32px; border-radius: 14px; }
.btn-primary.btn-full { width: 100%; justify-content: center; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #0f172a;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-ghost:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn-ghost.btn-large { font-size: 16px; padding: 16px 28px; }
.btn-provider {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: background 0.15s;
}
.btn-provider:hover { background: #e2e8f0; }
.btn-primary-nav {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #7C3AED, #a855f7);
  color: white;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 10px;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary-nav:hover { opacity: 0.9; transform: translateY(-1px); }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-scrolled {
  border-color: #e2e8f0;
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1160px;
  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-brand {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  transition: color 0.15s;
}
.nav-links a:hover { color: #0f172a; }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.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: #0f172a;
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid #f1f5f9;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: #334155;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 20% 80%, rgba(10, 126, 164, 0.06) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 80% 70%, rgba(232, 64, 64, 0.04) 0%, transparent 50%);
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}
.hero-content { max-width: 560px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid #fcd34d;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: #f59e0b;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 18px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

/* Phone mockups */
.hero-phones {
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-stack {
  position: relative;
  width: 260px;
  height: 520px;
}
.phone {
  position: absolute;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.06);
  background: #000;
}
.phone-front {
  width: 220px;
  height: 460px;
  bottom: 0;
  left: 20px;
  z-index: 2;
}
.phone-back {
  width: 200px;
  height: 420px;
  top: 0;
  right: 0;
  z-index: 1;
  transform: rotate(4deg);
  opacity: 0.85;
}
.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ===== PROBLEM ===== */
.problem {
  padding: 100px 0;
  background: #f8fafc;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}
.problem-card {
  background: white;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.08); }
.problem-icon { font-size: 28px; margin-bottom: 12px; }
.problem-stat { font-size: 32px; font-weight: 900; color: #7C3AED; margin-bottom: 8px; letter-spacing: -0.02em; }
.problem-label { font-size: 14px; color: #64748b; line-height: 1.5; }

.bridge-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: white;
  border-radius: 24px;
  padding: 40px 48px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.bridge-side {
  text-align: center;
  flex-shrink: 0;
  width: 120px;
}
.bridge-icon { font-size: 36px; margin-bottom: 8px; }
.bridge-label { font-size: 15px; font-weight: 700; color: #0f172a; }
.bridge-sublabel { font-size: 12px; color: #94a3b8; margin-top: 4px; }
.bridge-middle { flex: 1; padding: 0 24px; }
.bridge-gap { text-align: center; }
.bridge-wave svg { width: 100%; max-width: 300px; height: 60px; }
.bridge-label-center { font-size: 13px; font-weight: 700; color: #a855f7; margin-top: 8px; letter-spacing: 0.05em; text-transform: uppercase; }

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
}
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C3AED, #a855f7);
  color: white;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-content h3 { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: #64748b; line-height: 1.6; }
.step-arrow {
  font-size: 24px;
  color: #cbd5e1;
  padding: 0 16px;
  padding-top: 10px;
  flex-shrink: 0;
}

/* ===== FEATURES ===== */
.features {
  padding: 100px 0;
  background: #f8fafc;
}
.features-showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}
.feature-row-reverse {
  grid-template-columns: 1.4fr 1fr;
}
.feature-row-reverse .feature-phone { order: 2; }
.feature-row-reverse .feature-text { order: 1; }
.feature-phone { display: flex; justify-content: center; }
.phone-mockup {
  width: 220px;
  height: 460px;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  background: #000;
  flex-shrink: 0;
}
.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.feature-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-purple { background: #ede9fe; color: #7c3aed; }
.tag-orange { background: #ffedd5; color: #c2410c; }
.tag-pink { background: #fce7f3; color: #be185d; }
.tag-indigo { background: #e0e7ff; color: #4338ca; }
.tag-violet { background: #f3e8ff; color: #7e22ce; }
.feature-text h3 { font-size: 26px; font-weight: 800; color: #0f172a; margin-bottom: 14px; line-height: 1.2; }
.feature-text p { font-size: 16px; color: #475569; line-height: 1.7; margin-bottom: 20px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  font-size: 14px;
  color: #334155;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
  font-size: 13px;
}

/* ===== DEVICES ===== */
.devices {
  padding: 100px 0;
}
.devices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.device-card {
  background: #f8fafc;
  border-radius: 24px;
  padding: 36px 28px;
  border: 1px solid #e2e8f0;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.device-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.08); }
.device-card-featured {
  background: #ffffff;
  border-color: #7C3AED;
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(124,58,237,0.12);
  color: #0f172a;
}
.device-card-featured h3 { color: #0f172a; }
.device-card-featured p { color: #64748b; }
.device-card-featured .device-specs li { color: #475569; }
.device-card-featured .device-specs li::before { color: #7C3AED; }
.device-featured-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7C3AED, #a855f7);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.device-icon { font-size: 36px; margin-bottom: 16px; }
.device-card h3 { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.device-card p { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 20px; }
.device-specs { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.device-specs li {
  font-size: 13px;
  color: #475569;
  padding-left: 18px;
  position: relative;
}
.device-specs li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #7C3AED;
  font-weight: 700;
}
.devices-integrations { text-align: center; }
.devices-integrations p { font-size: 14px; color: #94a3b8; margin-bottom: 16px; font-weight: 500; }
.integration-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.integration-badges span {
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
}

/* ===== DATA POINTS ===== */
.data-points {
  padding: 80px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c1a2e 100%);
  color: white;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.data-stat { text-align: center; }
.data-number {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FF6B35, #a855f7, #7C3AED);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.data-label { font-size: 14px; color: #94a3b8; font-weight: 500; }
.health-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.health-categories span {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}

/* ===== FOR PROVIDERS ===== */
.for-providers {
  padding: 100px 0;
  background: #f8fafc;
}
.provider-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.provider-feature {
  background: white;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s, box-shadow 0.2s;
}
.provider-feature:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.07); }
.pf-icon { font-size: 28px; margin-bottom: 12px; }
.provider-feature h4 { font-size: 17px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.provider-feature p { font-size: 14px; color: #64748b; line-height: 1.6; }
.provider-cta { text-align: center; }
.provider-cta-note { font-size: 13px; color: #94a3b8; margin-top: 12px; }

/* ===== JOIN ===== */
.join {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.join-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,64,64,0.04) 0%, rgba(168,85,247,0.06) 50%, rgba(10,126,164,0.04) 100%);
}
.join .container { position: relative; }
.join-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.join-badge {
  display: inline-block;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  border: 1px solid #fcd34d;
}
.join-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.join-subtitle {
  font-size: 17px;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 36px;
}
.join-who {
  background: #f8fafc;
  border-radius: 20px;
  padding: 24px 28px;
  border: 1px solid #e2e8f0;
  margin-bottom: 36px;
  text-align: left;
}
.join-who h4 { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 14px; }
.who-grid { display: flex; flex-direction: column; gap: 8px; }
.who-item { font-size: 14px; color: #334155; }

.signup-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}
.form-input:focus { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168,85,247,0.1); }
.form-select { cursor: pointer; }
.form-disclaimer { font-size: 12px; color: #94a3b8; text-align: center; line-height: 1.5; }

.signup-success {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  background: #f0fdf4;
  border-radius: 20px;
  border: 1px solid #bbf7d0;
}
.success-icon {
  width: 56px;
  height: 56px;
  background: #22c55e;
  color: white;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.signup-success h3 { font-size: 22px; font-weight: 800; color: #166534; }
.signup-success p { font-size: 15px; color: #15803d; text-align: center; }

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 60px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-brand .nav-brand { color: white; }
.footer-tagline { font-size: 14px; color: #64748b; margin-top: 8px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 13px; font-weight: 700; color: #e2e8f0; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: #64748b; transition: color 0.15s; }
.footer-col a:hover { color: #e2e8f0; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: #475569; }
.footer-badges { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-badges span { font-size: 12px; color: #475569; }

/* ===== ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .data-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-phones { display: none; }

  .feature-row { grid-template-columns: 1fr; }
  .feature-row-reverse { grid-template-columns: 1fr; }
  .feature-row-reverse .feature-phone { order: 0; }
  .feature-row-reverse .feature-text { order: 0; }
  .feature-phone { display: none; }

  .devices-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 48px; }
  .provider-features { grid-template-columns: 1fr; }

  .steps { flex-direction: column; gap: 24px; }
  .step-arrow { display: none; }

  .bridge-diagram { flex-direction: column; gap: 24px; padding: 28px; }
  .bridge-middle { width: 100%; }
}

@media (max-width: 640px) {
  .hero { padding: 100px 0 60px; }
  .problem, .how-it-works, .features, .devices, .for-providers, .join { padding: 72px 0; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
