/* ==========================================================================
   HealthIYO Modern Landing Page Stylesheet
   Signature Theme: Royal Blue (#0066FF) & Emerald Green (#22C55E)
   ========================================================================== */

:root {
  --primary: #0066ff;
  --primary-hover: #0052cc;
  --primary-light: #e8f1ff;
  --primary-glow: rgba(0, 102, 255, 0.25);
  
  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-light: #ecfdf5;
  --accent-glow: rgba(34, 197, 94, 0.25);

  --dark-bg: #0b0f19;
  --dark-surface: #111827;
  --dark-card: rgba(17, 24, 39, 0.7);
  --dark-border: rgba(255, 255, 255, 0.08);

  --light-bg: #f8fafc;
  --light-surface: #ffffff;
  --light-border: #e2e8f0;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #94a3b8;
  
  --wa-bg: #e5ddd5;
  --wa-header: #075e54;
  --wa-green: #25d366;
  --wa-user-bubble: #dcf8c6;
  --wa-bot-bubble: #ffffff;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--light-bg);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Ambient Glows */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 800px;
  background: radial-gradient(circle at 50% 15%, rgba(0, 102, 255, 0.12) 0%, rgba(34, 197, 94, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light-border);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.35);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 60px 0 80px;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(0, 102, 255, 0.08);
  margin-bottom: 24px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text-main);
}

.hero-gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--light-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.25s;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* ==========================================================================
   Interactive WhatsApp Mobile Mockup
   ========================================================================== */
.mockup-wrapper {
  position: relative;
  max-width: 420px;
  margin: 0 auto 60px;
}

.mockup-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.tab-btn {
  padding: 8px 18px;
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Smartphone Frame */
.phone-frame {
  background: #000000;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease;
}

.phone-screen {
  background: var(--wa-bg);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 600px;
  position: relative;
  background-image: radial-gradient(#d1c7bc 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Phone Status Bar */
.phone-status-bar {
  background: var(--wa-header);
  color: #ffffff;
  padding: 8px 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
}

.phone-notch {
  width: 90px;
  height: 18px;
  background: #000000;
  border-radius: 12px;
  margin: 0 auto;
}

/* WhatsApp Chat Header */
.wa-header {
  background: var(--wa-header);
  color: #ffffff;
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wa-user-info {
  flex: 1;
  text-align: left;
}

.wa-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wa-badge {
  background: var(--wa-green);
  color: #ffffff;
  font-size: 0.65rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wa-status {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
}

/* WhatsApp Chat Messages Container */
.wa-chat-body {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.wa-date-pill {
  align-self: center;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Bubbles */
.wa-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.wa-user-bubble {
  align-self: flex-end;
  background: var(--wa-user-bubble);
  border-top-right-radius: 2px;
}

.wa-bot-bubble {
  align-self: flex-start;
  background: var(--wa-bot-bubble);
  border-top-left-radius: 2px;
}

.wa-bubble-time {
  font-size: 0.65rem;
  color: #8c8c8c;
  float: right;
  margin-top: 4px;
  margin-left: 8px;
}

.wa-img-preview {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 130px;
}

.wa-score-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.wa-voice-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  margin-top: 8px;
  border: 1px solid var(--light-border);
}

.wa-play-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.wa-waveform {
  flex: 1;
  height: 14px;
  background: repeating-linear-gradient(90deg, #94a3b8, #94a3b8 2px, transparent 2px, transparent 5px);
  border-radius: 2px;
}

.wa-input-bar {
  background: #f0f2f5;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #e1e4e8;
}

.wa-input-fake {
  flex: 1;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Floating feature pill */
.floating-pill {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  border: 1px solid rgba(0, 102, 255, 0.15);
}

/* ==========================================================================
   Features Section (Multimodal Capabilities)
   ========================================================================== */
.features-section {
  padding: 80px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

.feature-card {
  background: var(--light-bg);
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 16px 36px rgba(0, 102, 255, 0.08);
}

.feature-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

.feature-icon-box.green {
  background: var(--accent-light);
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   Technology Stack Section
   ========================================================================== */
.tech-section {
  padding: 80px 0;
  text-align: center;
  background: var(--light-bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.tech-card {
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.tech-icon {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tech-role {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Lead Capture Waitlist Section
   ========================================================================== */
.lead-section {
  padding: 90px 0 110px;
  background: radial-gradient(circle at 50% 50%, #f0f7ff 0%, var(--light-bg) 100%);
  position: relative;
}

.lead-box {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: 0 20px 50px rgba(0, 102, 255, 0.08);
  text-align: center;
  position: relative;
}

.lead-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.lead-box p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  background: #f8fafc;
}

.form-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.phone-input-group {
  display: flex;
  gap: 10px;
}

.country-code-select {
  padding: 14px 12px;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  cursor: pointer;
  width: 120px;
}

.interest-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip-radio {
  display: none;
}

.chip-label {
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.chip-radio:checked + .chip-label {
  background: var(--primary-light);
  color: var(--primary);
  border-color: rgba(0, 102, 255, 0.3);
}

.btn-submit {
  margin-top: 10px;
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, #0052cc 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 102, 255, 0.35);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--text-subtle);
  margin-top: 14px;
}

/* Success State Box */
.success-card {
  display: none;
  text-align: center;
  padding: 24px 10px;
}

.success-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 20px;
}

.success-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
}

.success-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #ffffff;
  border-top: 1px solid var(--light-border);
  padding: 60px 0 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--text-main);
}

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

.footer-col a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}

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

.footer-disclaimer {
  background: #f8fafc;
  border: 1px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 32px;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid var(--light-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .lead-box {
    padding: 32px 20px;
  }
  .phone-input-group {
    flex-direction: column;
  }
  .country-code-select {
    width: 100%;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
  }
  .footer-links-group {
    width: 100%;
    justify-content: space-between;
  }
}
