/* SimpleRX Website — Groundwork Digital Style */

:root {
  --purple: #667EEA;
  --purple-dark: #764BA2;
  --pink: #EC4899;
  --green: #10B981;
  --amber: #F59E0B;
  --red: #EF4444;
  --gray-900: #1F2937;
  --gray-700: #374151;
  --gray-500: #6B7280;
  --gray-300: #D1D5DB;
  --gray-100: #F3F4F6;
  --gray-50: #F8F9FC;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 16px;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--purple); }

.nav-cta {
  background: var(--gradient);
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-cta:hover { opacity: 0.9; }

/* ── HERO ────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
  display: flex;
  align-items: center;
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(102,126,234,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(236,72,153,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  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;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  width: fit-content;
}

.hero-badge span { font-size: 16px; }

.hero h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #667EEA, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--purple-dark);
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.2); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item { text-align: left; }

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: white;
  display: block;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

/* Phone mockup */
.hero-phones {
  display: flex;
  justify-content: center;
  gap: -20px;
  position: relative;
}

.phone-mockup {
  width: 220px;
  background: #1a1a2e;
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
}

.phone-mockup.front { z-index: 2; }
.phone-mockup.back {
  margin-left: -40px;
  margin-top: 40px;
  opacity: 0.7;
  transform: scale(0.95);
}

.phone-screen {
  background: var(--gray-50);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 9/19.5;
}

.phone-screen-inner {
  height: 100%;
  background: linear-gradient(160deg, #667EEA 0%, #764BA2 45%, #F8F9FC 45%);
  padding: 24px 16px 16px;
}

.phone-header {
  color: white;
  margin-bottom: 16px;
}

.phone-header h3 { font-size: 15px; font-weight: 700; }
.phone-header p { font-size: 10px; opacity: 0.8; }

.phone-stats {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.phone-stat {
  flex: 1;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
  color: white;
}

.phone-stat strong { display: block; font-size: 14px; font-weight: 800; }
.phone-stat span { font-size: 8px; opacity: 0.8; }

.phone-card {
  background: white;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.phone-card-name { font-size: 11px; font-weight: 700; color: var(--gray-900); }
.phone-card-purpose { font-size: 9px; color: var(--purple); }
.phone-card-time {
  font-size: 10px;
  font-weight: 600;
  color: var(--purple);
  margin-top: 6px;
  padding: 4px 8px;
  background: rgba(102,126,234,0.1);
  border-radius: 6px;
  text-align: center;
}

/* ── SECTIONS ────────────────────────────── */
section { padding: 100px 24px; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(102,126,234,0.1);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 60px;
}

/* ── FEATURES GRID ───────────────────────── */
.features { background: var(--gray-50); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ── HOW IT WORKS ────────────────────────── */
.how-it-works { background: white; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(102,126,234,0.4);
}

.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.step p { font-size: 14px; color: var(--gray-500); line-height: 1.5; }

/* ── CAREGIVER ───────────────────────────── */
.caregiver { background: var(--gray-50); }

.caregiver-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.caregiver-features { display: flex; flex-direction: column; gap: 20px; }

.cg-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.cg-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cg-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--gray-900); }
.cg-item p { font-size: 13px; color: var(--gray-500); line-height: 1.5; }

.caregiver-visual {
  background: var(--gradient);
  border-radius: 28px;
  padding: 40px 32px;
  color: white;
  position: relative;
  overflow: hidden;
}

.caregiver-visual::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.cg-visual-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cg-visual-sub { font-size: 14px; opacity: 0.8; margin-bottom: 28px; }

.cg-patient-card {
  background: rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  backdrop-filter: blur(10px);
}

.cg-patient-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }

.adherence-bar {
  height: 6px;
  background: rgba(255,255,255,0.2);
  border-radius: 3px;
  margin: 8px 0 4px;
  overflow: hidden;
}

.adherence-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
}

.adherence-label { font-size: 11px; opacity: 0.75; }

/* ── PRO ─────────────────────────────────── */
.pro { background: white; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 780px;
  margin: 0 auto;
}

.pricing-card {
  border-radius: 24px;
  padding: 40px 36px;
  border: 2px solid var(--gray-100);
}

.pricing-card.featured {
  background: var(--gradient);
  border-color: transparent;
  color: white;
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; opacity: 0.6; margin-bottom: 8px; }
.pricing-card.featured .pricing-tier { opacity: 0.8; color: rgba(255,255,255,0.8); }

.pricing-price { font-size: 48px; font-weight: 900; line-height: 1; margin-bottom: 4px; }
.pricing-price span { font-size: 16px; font-weight: 500; }
.pricing-desc { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; }
.pricing-card.featured .pricing-desc { color: rgba(255,255,255,0.75); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-700);
}

.pricing-card.featured .pricing-features li { color: rgba(255,255,255,0.9); }

.check { color: var(--green); font-weight: 700; font-size: 16px; }
.pricing-card.featured .check { color: rgba(255,255,255,0.9); }

/* ── TESTIMONIAL ─────────────────────────── */
.testimonial {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  padding: 100px 24px;
}

.testimonial .section-label { color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); }
.testimonial .section-title { color: white; }

.quote-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 48px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.quote-text {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.65;
  margin-bottom: 32px;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.quote-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.quote-name { font-weight: 700; color: white; font-size: 15px; }
.quote-role { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ── CTA BANNER ──────────────────────────── */
.cta-banner {
  background: var(--gradient);
  padding: 100px 24px;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-banner p { font-size: 18px; color: rgba(255,255,255,0.8); margin-bottom: 40px; }

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: black;
  color: white;
  padding: 14px 28px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.2s;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.app-store-btn:hover { transform: translateY(-2px); }

.app-store-btn svg { width: 28px; height: 28px; fill: white; }

.app-store-text { text-align: left; }
.app-store-text small { display: block; font-size: 11px; opacity: 0.7; }
.app-store-text strong { font-size: 18px; font-weight: 700; }

.coming-soon-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  margin-top: 20px;
}

/* ── FOOTER ──────────────────────────────── */
footer {
  background: #0d0d1a;
  color: rgba(255,255,255,0.6);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 280px; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: white;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--purple); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-phones { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .caregiver-inner { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  section { padding: 72px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
