*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #2563EB; --primary-dark: #1D4ED8; --primary-light: #EFF6FF;
  --accent: #10B981; --dark: #0F172A; --dark2: #1E293B;
  --gray: #64748B; --light: #F8FAFC; --border: #E2E8F0; --white: #fff;
  --radius: 20px; --shadow: 0 4px 24px rgba(0,0,0,0.07); --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: all 0.3s; }
.nav.scrolled { background: rgba(255,255,255,0.96); backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--border); padding: 14px 0; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; color: var(--dark); }
.logo-icon { width: 38px; height: 38px; background: linear-gradient(135deg, #2563EB, #10B981); border-radius: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav-links { display: flex; list-style: none; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--gray); font-size: 0.9rem; font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all 0.2s; }
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-cta { background: var(--primary); color: white; padding: 10px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; white-space: nowrap; }
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,99,235,0.3); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; flex-direction: column; padding: 12px 24px 20px; background: white; border-top: 1px solid var(--border); gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 14px; text-decoration: none; color: var(--dark); font-weight: 500; border-radius: 10px; transition: background 0.2s; }
.mobile-menu a:hover { background: var(--light); }
.mobile-cta { background: var(--primary) !important; color: white !important; text-align: center; margin-top: 8px; border-radius: 10px; }

/* HERO */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 120px 24px 80px; max-width: 1200px; margin: 0 auto; position: relative; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.hero-orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 70%); top: -100px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%); bottom: 0; left: -100px; }
.hero-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 70%); top: 50%; right: 30%; }
.hero-inner { display: flex; align-items: center; gap: 80px; width: 100%; }
.hero-content { flex: 1; max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary); padding: 8px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; margin-bottom: 28px; border: 1px solid #BFDBFE; }
.badge-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 22px; }
.gradient-text { background: linear-gradient(135deg, #2563EB 0%, #10B981 60%, #06B6D4 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: var(--gray); line-height: 1.75; margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary { background: var(--primary); color: white; padding: 14px 28px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 0.97rem; transition: all 0.2s; display: inline-flex; align-items: center; gap: 8px; border: none; cursor: pointer; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.35); }
.btn-ghost { background: transparent; color: var(--dark); padding: 14px 24px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 0.97rem; border: 2px solid var(--border); transition: all 0.2s; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.hero-stats { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat-n { font-size: 1.6rem; font-weight: 900; color: var(--dark); line-height: 1; }
.hstat-l { font-size: 0.78rem; color: var(--gray); font-weight: 500; margin-top: 2px; }
.hstat-div { width: 1px; height: 36px; background: var(--border); }

/* PHONE */
.hero-visual { flex: 1; display: flex; justify-content: center; align-items: center; }
.phone-wrap { position: relative; }
.phone-glow { position: absolute; inset: -40px; background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%); border-radius: 50%; z-index: -1; }
.phone { width: 270px; height: 540px; background: #0F172A; border-radius: 44px; padding: 10px; box-shadow: 0 40px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 1px rgba(255,255,255,0.05); }
.phone-notch { width: 80px; height: 24px; background: #0F172A; border-radius: 0 0 16px 16px; margin: 0 auto 8px; position: relative; z-index: 2; }
.phone-screen { width: 100%; height: calc(100% - 32px); background: #F8FAFC; border-radius: 36px; overflow: hidden; display: flex; flex-direction: column; }
.app-status-bar { display: flex; justify-content: space-between; padding: 8px 16px 4px; font-size: 0.6rem; font-weight: 700; color: var(--dark); }
.app-header-bar { background: linear-gradient(135deg, #2563EB, #1D4ED8); padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; }
.app-hi { font-size: 0.62rem; color: rgba(255,255,255,0.75); }
.app-user { font-size: 0.85rem; font-weight: 800; color: white; }
.app-avatar { width: 30px; height: 30px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 800; color: white; }
.app-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 10px 0; }
.app-tile { border-radius: 12px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.app-tile.blue { background: #EFF6FF; } .app-tile.green { background: #F0FDF4; }
.app-tile.purple { background: #FDF4FF; } .app-tile.orange { background: #FFF7ED; }
.tile-icon { font-size: 1.3rem; }
.tile-txt { font-size: 0.58rem; font-weight: 700; color: var(--dark); text-align: center; }
.app-reminder-card { margin: 8px 10px 0; background: white; border-radius: 12px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.reminder-left { display: flex; align-items: center; gap: 8px; }
.reminder-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.reminder-title { font-size: 0.65rem; font-weight: 700; color: var(--dark); }
.reminder-sub { font-size: 0.58rem; color: var(--gray); }
.reminder-now { background: #FEF3C7; color: #D97706; font-size: 0.55rem; font-weight: 800; padding: 3px 8px; border-radius: 100px; }
.app-health-bar { margin: 8px 10px; background: white; border-radius: 12px; padding: 10px; display: flex; align-items: center; justify-content: space-around; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.health-val { font-size: 0.7rem; font-weight: 800; color: var(--dark); text-align: center; }
.health-lbl { font-size: 0.55rem; color: var(--gray); text-align: center; }
.health-sep { width: 1px; height: 24px; background: var(--border); }
.float-card { position: absolute; background: white; border-radius: 12px; padding: 10px 14px; font-size: 0.75rem; font-weight: 700; color: var(--dark); box-shadow: 0 8px 24px rgba(0,0,0,0.12); display: flex; align-items: center; gap: 6px; white-space: nowrap; animation: float 3s ease-in-out infinite; }
.card-1 { top: 60px; right: -60px; animation-delay: 0s; }
.card-2 { bottom: 100px; left: -70px; animation-delay: 1.5s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* TICKER */
.ticker { background: var(--dark); padding: 14px 0; overflow: hidden; }
.ticker-inner { display: flex; gap: 48px; align-items: center; white-space: nowrap; animation: ticker 25s linear infinite; width: max-content; }
.ticker-inner span { color: rgba(255,255,255,0.65); font-size: 0.88rem; font-weight: 500; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* SECTIONS */
section { padding: 100px 0; }
.section-label { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 5px 14px; border-radius: 100px; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.section-label.light { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.section-h { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 16px; }
.section-p { font-size: 1.05rem; color: var(--gray); max-width: 540px; line-height: 1.75; margin-bottom: 56px; }

/* FEATURES */
.features { background: var(--light); }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.feat-card { background: white; border-radius: var(--radius); padding: 32px; border: 1px solid var(--border); transition: all 0.3s; cursor: default; }
.feat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #BFDBFE; }
.feat-icon { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 18px; }
.feat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feat-card p { color: var(--gray); font-size: 0.93rem; line-height: 1.65; }

/* HOW IT WORKS */
.how { background: white; }
.steps-row { display: flex; align-items: flex-start; gap: 0; }
.step-card { flex: 1; background: var(--light); border-radius: var(--radius); padding: 36px 28px; border: 1px solid var(--border); transition: all 0.3s; position: relative; }
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.step-num { font-size: 3rem; font-weight: 900; color: var(--primary); opacity: 0.12; line-height: 1; margin-bottom: 12px; }
.step-icon { font-size: 2rem; margin-bottom: 14px; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--gray); font-size: 0.93rem; line-height: 1.65; }
.step-connector { display: flex; align-items: center; padding: 0 8px; padding-top: 60px; flex-shrink: 0; }
.connector-line { width: 40px; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 2px; }

/* ROLES */
.roles { background: var(--light); }
.roles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.role-card { background: white; border-radius: var(--radius); padding: 32px; border: 2px solid var(--border); transition: all 0.3s; position: relative; overflow: hidden; }
.role-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.role-featured { border-color: var(--primary); }
.role-featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.role-badge-top { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 0.75rem; font-weight: 700; padding: 5px 14px; border-radius: 100px; display: inline-block; margin-bottom: 20px; }
.role-top { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.role-emoji { font-size: 2.2rem; }
.role-top h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 2px; }
.role-top p { color: var(--gray); font-size: 0.85rem; }
.patient-top h3 { color: #2563EB; } .doctor-top h3 { color: #059669; } .pharmacy-top h3 { color: #D97706; }
.role-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.role-list li { font-size: 0.9rem; color: var(--dark); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.check { color: var(--accent); font-weight: 800; }
.role-btn { display: block; text-align: center; padding: 13px; border-radius: 12px; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: all 0.2s; }
.patient-btn { background: #EFF6FF; color: var(--primary); }
.patient-btn:hover { background: var(--primary); color: white; }
.doctor-btn { background: var(--primary); color: white; }
.doctor-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.pharmacy-btn { background: #FFF7ED; color: #D97706; }
.pharmacy-btn:hover { background: #D97706; color: white; }

/* STATS */
.stats { padding: 0; }
.stats-bg { background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 60%, #0F172A 100%); padding: 100px 0; }
.stats-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.stats-text h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: white; line-height: 1.2; margin-bottom: 16px; }
.stats-text p { color: rgba(255,255,255,0.55); font-size: 1rem; line-height: 1.75; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-box { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 28px 24px; text-align: center; transition: all 0.3s; }
.stat-box:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.stat-n { font-size: 2.8rem; font-weight: 900; color: white; line-height: 1; margin-bottom: 8px; }
.stat-l { color: rgba(255,255,255,0.55); font-size: 0.9rem; font-weight: 500; }

/* LANGUAGES */
.languages { background: white; }
.lang-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.lang-pill { background: var(--light); border: 1.5px solid var(--border); padding: 10px 22px; border-radius: 100px; font-size: 0.9rem; font-weight: 600; color: var(--dark); transition: all 0.2s; cursor: default; }
.lang-pill:hover { background: var(--primary-light); border-color: #BFDBFE; color: var(--primary); transform: translateY(-2px); }

/* DOWNLOAD */
.download { background: var(--light); }
.download-card { background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 50%, #0F172A 100%); border-radius: 28px; padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; overflow: hidden; position: relative; }
.download-card::before { content: ''; position: absolute; top: -100px; right: -100px; width: 400px; height: 400px; background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%); }
.dl-tag { background: rgba(255,255,255,0.15); color: white; font-size: 0.78rem; font-weight: 700; padding: 5px 14px; border-radius: 100px; display: inline-block; margin-bottom: 16px; }
.download-left h2 { font-size: 2rem; font-weight: 800; color: white; margin-bottom: 12px; }
.download-left p { color: rgba(255,255,255,0.65); font-size: 1rem; margin-bottom: 32px; max-width: 400px; }
.play-btn { display: inline-flex; align-items: center; gap: 14px; background: white; color: var(--dark); padding: 14px 24px; border-radius: 14px; text-decoration: none; transition: all 0.2s; }
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.25); }
.play-sub { display: block; font-size: 0.7rem; color: var(--gray); }
.play-name { display: block; font-size: 1.05rem; font-weight: 800; }
.download-right { position: relative; flex-shrink: 0; }
.dl-phone { font-size: 7rem; opacity: 0.25; }
.dl-circles { position: absolute; inset: 0; }
.dl-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,0.1); }
.c1 { width: 120px; height: 120px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.c2 { width: 180px; height: 180px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.c3 { width: 240px; height: 240px; top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* CONTACT */
.contact { background: white; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.contact-left { display: flex; flex-direction: column; gap: 20px; }
.cinfo-item { display: flex; align-items: flex-start; gap: 14px; }
.cinfo-icon { width: 44px; height: 44px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.cinfo-lbl { font-size: 0.78rem; color: var(--gray); font-weight: 500; margin-bottom: 2px; }
.cinfo-val { font-size: 0.95rem; font-weight: 600; color: var(--dark); }
.cinfo-val a { color: var(--primary); text-decoration: none; }
.cinfo-val a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 0.93rem; color: var(--dark); background: var(--light); transition: all 0.2s; outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(37,99,235,0.08); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* FOOTER */
.footer { background: var(--dark); color: white; padding: 64px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.9rem; line-height: 1.75; max-width: 300px; margin: 16px 0 20px; }
.footer-badge { display: inline-block; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); padding: 5px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; color: rgba(255,255,255,0.3); font-size: 0.82rem; flex-wrap: wrap; gap: 12px; }

/* ANIMATIONS */
.animate { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-sub, .section-p { max-width: 100%; }
  .hero-btns, .hero-stats { justify-content: center; }
  .roles-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .stats-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-visual { display: none; }
  .steps-row { flex-direction: column; }
  .step-connector { display: none; }
  .download-card { flex-direction: column; text-align: center; padding: 40px 28px; }
  .download-right { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  section { padding: 64px 0; }
  .feat-grid, .roles-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .hero-stats { gap: 14px; }
}
