/* ==========================================================================
   Medicine Minder — Modern Marketing Website Stylesheet
   Elevated Design: Responsive, Fluid, Glassmorphic, Modern Mobile Frame
   ========================================================================== */

:root {
  --primary: #2563EB;
  --primary-glow: rgba(37, 99, 235, 0.35);
  --primary-dark: #1D4ED8;
  --accent: #38BDF8;
  --accent-teal: #0D9488;
  --success: #10B981;
  --success-glow: rgba(16, 185, 129, 0.3);
  --food-badge: #F97316;
  --food-bg: rgba(249, 115, 22, 0.12);

  --bg: #090D16;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(56, 189, 248, 0.35);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --font-main: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Lighting */
.ambient-glow-top {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22) 0%, rgba(13, 148, 136, 0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-right {
  position: absolute;
  top: 700px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 13, 22, 0.82);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
  transition: opacity 0.2s ease;
}

.brand:hover {
  opacity: 0.95;
}

.brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4), 0 2px 8px rgba(37, 99, 235, 0.35);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  overflow: hidden;
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.55), 0 4px 14px rgba(37, 99, 235, 0.45);
}

.brand-icon svg {
  width: 28px;
  height: 28px;
  fill: white;
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  display: flex;
  align-items: center;
}

.brand-name span {
  color: var(--accent);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.btn-nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white !important;
  padding: 10px 22px;
  border-radius: 99px;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}

.btn-nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Hero Section */
.hero {
  padding: 80px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #93C5FD 70%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.store-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

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

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-text span {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.store-btn-text strong {
  font-size: 1.05rem;
  font-weight: 700;
}

.trust-badges {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.trust-item svg {
  width: 16px;
  height: 16px;
  fill: var(--success);
}

/* Phone Mockup Frame */
.mockup-container {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 320px;
  background: #0F172A;
  border-radius: 44px;
  padding: 12px;
  border: 4px solid #334155;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 40px var(--primary-glow);
  position: relative;
}

.phone-screen {
  background: #090D16;
  border-radius: 34px;
  overflow: hidden;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.screen-date h4 {
  font-size: 1.15rem;
  font-weight: 800;
}

.screen-date p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.screen-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 8px;
  border-radius: 99px;
}

.phone-card {
  background: #1E293B;
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.phone-card.active {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.15);
}

.phone-card.taken {
  border-color: rgba(16, 185, 129, 0.4);
  background: #13241B;
}

.card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.card-info h5 {
  font-size: 0.88rem;
  font-weight: 700;
}

.card-info p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.tag-food {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--food-badge);
  background: var(--food-bg);
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 2px;
}

.interactive-check {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.interactive-check.checked {
  background: var(--success);
  border-color: var(--success);
}

.interactive-check svg {
  width: 16px;
  height: 16px;
  fill: white;
  display: none;
}

.interactive-check.checked svg {
  display: block;
}

/* Feature Grid */
.features-section {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

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

.section-tag {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

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

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--accent);
}

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

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

/* WhatsApp / Share Spotlight */
.share-spotlight {
  padding: 80px 0;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.05), transparent);
}

.spotlight-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px;
  backdrop-filter: blur(16px);
}

.whatsapp-bubble {
  background: #0B141A;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: monospace;
  font-size: 0.88rem;
  color: #E9EDEF;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.whatsapp-header {
  color: #25D366;
  font-weight: bold;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Comparison Table */
.comparison-section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

td {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

td.highlight {
  color: var(--text-primary);
  font-weight: 700;
}

.check-green {
  color: var(--success);
  font-weight: bold;
}

.cross-red {
  color: #EF4444;
  font-weight: bold;
}

/* FAQ Section */
.faq-section {
  padding: 90px 0;
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--border-highlight);
}

.faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Download CTA Banner */
.cta-banner {
  margin: 80px 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(13, 148, 136, 0.2));
  border: 1px solid var(--border-highlight);
  border-radius: 32px;
  padding: 64px 32px;
  text-align: center;
  box-shadow: 0 0 50px var(--primary-glow);
}

.cta-banner h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: #060910;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 36px;
  }
  .hero-buttons, .trust-badges {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .spotlight-box {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.6rem;
  }
}
