@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

/* --- DESIGN SYSTEM & TOKENS --- */
:root {
  /* Brand Colors Extracted from Logo */
  --primary-teal: #14bbb6;
  --primary-teal-hover: #0ea5a0;
  --primary-teal-light: #e6f9f8;
  --primary-teal-glow: rgba(20, 187, 182, 0.18);

  --brand-lime: #a2cc46;
  --brand-lime-hover: #8db736;
  --brand-lime-light: #f3f9e6;
  --brand-lime-glow: rgba(162, 204, 70, 0.2);

  --accent-green: #01a551;
  --accent-green-hover: #018a44;
  --accent-green-light: #e6f7ee;
  --accent-green-glow: rgba(1, 165, 81, 0.18);

  --accent-orange: #f97316;
  --accent-orange-light: #ffedd5;

  --accent-blue: #0ea5e9;
  --accent-blue-light: #e0f2fe;

  --accent-red: #ef4444;
  --accent-red-light: #fee2e2;

  --accent-magenta: #d946ef;
  --accent-magenta-light: #fdf4ff;

  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.9);
  --border-glass: rgba(255, 255, 255, 0.6);
  --border-light: #e2e8f0;

  --text-dark: #0f172a;
  --text-medium: #475569;
  --text-light: #94a3b8;

  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-teal: 0 10px 20px -5px rgba(20, 187, 182, 0.35);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* --- RESET & BASIC STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  position: relative;
  line-height: 1.6;
}

/* --- DECORATIVE GRADIENT BACKGROUND BLOBS --- */
body::before,
body::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
  animation: floatBlobs 20s infinite alternate ease-in-out;
}

body::before {
  background: radial-gradient(
    circle,
    rgba(230, 249, 248, 1) 0%,
    rgba(20, 187, 182, 0.12) 70%
  );
  top: 5%;
  right: -200px;
}

body::after {
  background: radial-gradient(
    circle,
    rgba(243, 249, 230, 1) 0%,
    rgba(162, 204, 70, 0.09) 70%
  );
  top: 45%;
  left: -200px;
  animation-delay: -8s;
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 40px) scale(1.05);
  }
}

/* --- SECTION CONTAINER --- */
section {
  padding: clamp(3.5rem, 6vw, 6rem) clamp(1rem, 3vw, 1.5rem);
  position: relative;
  overflow: hidden; /* Prevent background blur circles from causing scrollbars */
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2; /* Content above background circles */
  padding-left: clamp(0.75rem, 2vw, 1.25rem);
  padding-right: clamp(0.75rem, 2vw, 1.25rem);
}

/* Background Decorative Circular Shapes */
.bg-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  box-sizing: border-box;
  opacity: 0.35;
}

@keyframes floatCircle1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -20px) scale(1.05);
  }
  100% {
    transform: translate(-15px, 15px) scale(0.97);
  }
}

@keyframes floatCircle2 {
  0% {
    transform: translate(0, 0) scale(1.02);
  }
  50% {
    transform: translate(-25px, 30px) scale(0.97);
  }
  100% {
    transform: translate(20px, -10px) scale(1.04);
  }
}

@keyframes floatCircle3 {
  0% {
    transform: translate(0, 0) scale(0.98);
  }
  50% {
    transform: translate(15px, 25px) scale(1.04);
  }
  100% {
    transform: translate(-20px, -20px) scale(1.02);
  }
}

.bg-circle-1 {
  width: 200px;
  height: 200px;
  background: rgba(20, 187, 182, 0.04);
  border: 1.5px solid rgba(20, 187, 182, 0.2);
  top: -30px;
  left: -60px;
  animation: floatCircle1 12s infinite alternate ease-in-out;
}

.bg-circle-2 {
  width: 260px;
  height: 260px;
  background: transparent;
  border: 1.5px dashed rgba(162, 204, 70, 0.25);
  bottom: -80px;
  right: -60px;
  animation: floatCircle2 16s infinite alternate ease-in-out;
}

.bg-circle-3 {
  width: 230px;
  height: 230px;
  background: rgba(1, 165, 81, 0.03);
  border: 1.5px solid rgba(1, 165, 81, 0.18);
  top: 10%;
  left: -80px;
  animation: floatCircle3 14s infinite alternate ease-in-out;
}

.bg-circle-4 {
  width: 190px;
  height: 190px;
  background: transparent;
  border: 1.5px solid rgba(20, 187, 182, 0.2);
  bottom: -30px;
  right: -30px;
  animation: floatCircle1 18s infinite alternate ease-in-out;
}

.bg-circle-5 {
  width: 220px;
  height: 220px;
  background: rgba(162, 204, 70, 0.03);
  border: 1.5px dashed rgba(162, 204, 70, 0.2);
  top: 35%;
  left: 35%;
  animation: floatCircle2 20s infinite alternate ease-in-out;
}

.bg-circle-6 {
  width: 210px;
  height: 210px;
  background: transparent;
  border: 1.5px dashed rgba(1, 165, 81, 0.2);
  bottom: 10%;
  left: -50px;
  animation: floatCircle3 15s infinite alternate ease-in-out;
}

/* --- NAVIGATION BAR --- */
.navbar {
  position: fixed;
  top: clamp(10px, 2vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, var(--max-width));
  max-width: var(--max-width);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.75); /* Frosted glass background */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6); /* Glass highlight border */
  border-radius: 9999px; /* Capsule shape */
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
  transition: var(--transition-fast);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(0.45rem, 1vw, 0.85rem) clamp(1rem, 2vw, 2rem);
  width: 100%;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-image {
  width: clamp(40px, 5.5vw, 54px);
  height: clamp(40px, 5.5vw, 54px);
  object-fit: contain;
}

.logo-text {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 800;
  color: var(--primary-teal);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: clamp(1.25rem, 2vw, 2.25rem);
  align-items: center;
}

.nav-link {
  color: #4b5563; /* Grey text */
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  transition: var(--transition-fast);
  padding: 0.4rem 0.25rem;
  position: relative;
  white-space: nowrap;
}

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

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

/* Active navigation item underline */
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-teal);
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary-teal);
  color: white;
  border: none;
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
  background-color: var(--primary-teal-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(20, 187, 182, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-teal);
  border: 1px solid var(--primary-teal);
}

.btn-secondary:hover {
  background-color: var(--primary-teal-light);
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
  padding: 8px;
  outline: none;
  transition: transform 0.3s ease;
}

.menu-toggle svg line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active svg line:nth-child(1) {
  opacity: 0;
}

.menu-toggle.active svg line:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: clamp(7.5rem, 13vw, 10rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
  box-sizing: border-box;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-content {
  max-width: 580px;
}

.hero-tag {
  background-color: var(--primary-teal-light);
  color: var(--primary-teal);
  font-family:
    SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
    monospace;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: clamp(0.72rem, 1.4vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text-dark);
  letter-spacing: -1px;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.hero-title span {
  color: var(--primary-teal);
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-medium);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 2.5vw, 2rem);
  flex-wrap: wrap;
}

.app-badges {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.badge-btn {
  height: clamp(42px, 5vw, 48px);
  width: auto;
  transition: var(--transition-fast);
}

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

/* Floating App Frame (Hero Mockup) */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.phone-skeleton {
  width: min(340px, 80vw);
  max-width: 100%;
  aspect-ratio: 342 / 700;
  height: auto;
  background: #0f172a;
  border: clamp(6px, 1.5vw, 10px) solid #1e293b;
  border-radius: clamp(30px, 6vw, 44px);
  box-shadow:
    var(--shadow-lg),
    0 30px 60px -15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.hero-mockup-wrapper .phone-skeleton {
  margin: 0 0 0 auto;
}

/* Phone notch */
.phone-skeleton::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(90px, 20vw, 130px);
  height: clamp(14px, 3vw, 22px);
  background: #1e293b;
  border-bottom-left-radius: clamp(10px, 2vw, 16px);
  border-bottom-right-radius: clamp(10px, 2vw, 16px);
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.phone-screen::-webkit-scrollbar {
  display: none;
}

/* Floating Stat Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.85rem 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: floatingAnimation 4s infinite alternate ease-in-out;
}

.floating-badge.badge-1 {
  top: 15%;
  left: -20px;
}

.floating-badge.badge-2 {
  bottom: 15%;
  right: -20px;
  animation-delay: -2s;
}

.floating-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-1 .floating-badge-icon {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
}
.badge-2 .floating-badge-icon {
  background-color: var(--accent-green-light);
  color: var(--accent-green);
}

.floating-badge-info {
  display: flex;
  flex-direction: column;
}

.floating-badge-title {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
}

.floating-badge-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
}

@keyframes floatingAnimation {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-12px);
  }
}

/* --- SECTION HEADER --- */
.section-header {
  text-align: center;
  max-width: 650px;
  margin: 0 auto clamp(2.25rem, 4vw, 3.5rem) auto;
}

.section-tag {
  color: var(--primary-teal);
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.75px;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.section-description {
  color: var(--text-medium);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
  line-height: 1.6;
}

/* --- FEATURES GRID --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.15rem, 2vw, 1.5rem);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-teal-light);
}

.feature-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card.vitals .feature-icon-wrapper {
  background-color: var(--accent-orange-light);
  color: var(--accent-orange);
}
.feature-card.meds .feature-icon-wrapper {
  background-color: var(--primary-teal-light);
  color: var(--primary-teal);
}
.feature-card.checkups .feature-icon-wrapper {
  background-color: var(--accent-blue-light);
  color: var(--accent-blue);
}
.feature-card.docs .feature-icon-wrapper {
  background-color: var(--accent-magenta-light);
  color: var(--accent-magenta);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.5;
}

/* --- INTERACTIVE DEMO (MOCKUP) --- */
.demo-section {
  background-color: rgba(241, 245, 249, 0.5);
}

.demo-tabs-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.demo-tab-btn {
  background: white;
  border: 1px solid var(--border-light);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-tab-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-light);
  stroke-width: 2;
  fill: none;
  transition: var(--transition-fast);
}

.demo-tab-btn:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.demo-tab-btn.active {
  background-color: var(--primary-teal);
  color: white;
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-teal);
}

.demo-tab-btn.active svg {
  stroke: white;
}

.demo-subtab-btn {
  background: white;
  border: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  border-radius: 20px;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.demo-subtab-btn:hover {
  border-color: var(--primary-teal);
  color: var(--primary-teal);
}

.demo-subtab-btn.active {
  background-color: var(--primary-teal);
  color: white;
  border-color: var(--primary-teal);
  box-shadow: var(--shadow-teal);
}

/* Center Laptop/Mobile Frame for Interactive Mockup */
.interactive-mockup-frame {
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}

/* Mockup Screens (loaded inside smartphone) */
.mock-app-screen {
  display: none;
  animation: screenFade 0.4s ease-out forwards;
  padding: 1rem;
}

.mock-app-screen.active {
  display: block;
}

@keyframes screenFade {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* --- MOCK VITAL SCREEN STYLES (MATCHES HIGH-FIDELITY SCREENSHOT) --- */
.mock-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.mock-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.mock-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-teal-light);
  color: var(--primary-teal);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vitals Cards Horizontal Scroll Mock */
.mock-vitals-scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.mock-vitals-scroller::-webkit-scrollbar {
  display: none;
}

.mock-vital-pill {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 0.75rem;
  min-width: 90px;
  flex-shrink: 0;
  cursor: pointer;
}

.mock-vital-pill.active {
  border-color: var(--primary-teal);
  box-shadow: 0 4px 10px rgba(20, 187, 182, 0.12);
}

.mock-vital-pill-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.mock-vital-pill-val {
  font-size: 0.95rem;
  font-weight: 700;
}

.mock-vital-pill-unit {
  font-size: 0.65rem;
  color: var(--text-medium);
}

/* Trend Card Mock */
.mock-trend-card {
  background: white;
  border-radius: 18px;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  margin-bottom: 1rem;
}

.mock-trend-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.mock-trend-title {
  font-size: 0.8rem;
  font-weight: 700;
}

.mock-trend-stats {
  display: flex;
  gap: 0.5rem;
  font-size: 0.65rem;
}

.mock-trend-stat-val {
  font-weight: 700;
}

.mock-chart-container {
  height: 120px;
  position: relative;
}

/* History List Mock */
.mock-history-section {
  background: white;
  border-radius: 18px;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
}

.mock-history-list {
  list-style: none;
}

.mock-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.75rem;
}

.mock-history-item:last-child {
  border-bottom: none;
}

/* Medications Mock Screen */
.mock-search-bar {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.mock-med-card {
  background: white;
  border-radius: 16px;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.mock-med-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

.mock-med-title {
  font-weight: 700;
  color: var(--text-dark);
}

.mock-med-badge {
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.mock-med-badge.active {
  background-color: var(--accent-green-light);
  color: var(--accent-green);
}
.mock-med-badge.completed {
  background-color: var(--border-light);
  color: var(--text-medium);
}

.mock-med-details {
  font-size: 0.7rem;
  color: var(--text-medium);
  border-top: 1px solid #f1f5f9;
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Checkups Mock Screen */
.mock-checkups-selector {
  display: flex;
  background: #e2e8f0;
  padding: 0.2rem;
  border-radius: 8px;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.mock-checkups-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-medium);
  border-radius: 6px;
  cursor: pointer;
}

.mock-checkups-btn.active {
  background: white;
  color: var(--primary-teal);
}

.mock-chk-card {
  background: white;
  border-radius: 16px;
  padding: 0.85rem;
  border: 1px solid var(--border-light);
  margin-bottom: 0.75rem;
}

.mock-chk-date {
  background-color: var(--primary-teal-light);
  color: var(--primary-teal);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.mock-chk-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.mock-chk-doc {
  font-size: 0.7rem;
  color: var(--text-light);
}

/* --- COMMUNITY ROLE & OUTREACH SECTION --- */
.security-section {
  background: white;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.security-card {
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.security-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-teal-light);
  color: var(--primary-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  flex-shrink: 0;
}

.security-card h3 {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.security-card p {
  font-size: clamp(0.88rem, 1.4vw, 0.92rem);
  color: var(--text-medium);
  line-height: 1.6;
}

/* --- FAQ SECTION --- */
.faq-section {
  background-color: rgba(241, 245, 249, 0.3);
}

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

.faq-item {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-question {
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 600;
  font-size: clamp(0.92rem, 1.6vw, 1rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--text-medium);
  font-size: clamp(0.86rem, 1.4vw, 0.92rem);
  line-height: 1.65;
  transition:
    max-height 0.35s ease-out,
    padding 0.35s ease-out;
}

.faq-item.active {
  border-color: var(--primary-teal);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* arbitrary height to slide down without clipping text */
  padding-bottom: 1.25rem;
}

.faq-icon {
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-teal);
}

/* --- CTA BANNER --- */
.cta-section {
  padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 3vw, 1.5rem);
  background-color: white; /* Clean white background */
  position: relative;
  text-align: center;
}

.cta-content {
  max-width: 650px;
  margin: 0 auto;
}

.cta-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: clamp(1.5rem, 3vw, 2.25rem) 0;
  color: var(--text-gray);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.cta-separator::before,
.cta-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border-light);
  max-width: 80px;
}

.cta-separator::before {
  margin-right: 1.25rem;
}

.cta-separator::after {
  margin-left: 1.25rem;
}

.cta-section .app-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0;
  flex-wrap: wrap;
}

.badge-btn {
  height: clamp(42px, 5vw, 50px);
  width: auto;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.badge-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.cta-tag {
  font-size: clamp(0.75rem, 1.4vw, 0.85rem);
  font-weight: 700;
  color: var(--primary-teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 0.85rem;
}

.cta-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 850;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  letter-spacing: -0.75px;
}

.cta-title span {
  background: linear-gradient(to right, var(--primary-teal), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-description {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  background: #f1f5f9;
  padding: 0.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  margin: 0 auto;
}

.cta-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 0.75rem 1rem;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.cta-input::placeholder {
  color: #94a3b8;
}

.cta-submit {
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-hover) 100%);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(20, 187, 182, 0.25);
}

.cta-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 187, 182, 0.35);
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--bg-main);
  color: var(--text-medium);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 3vw, 1.5rem) clamp(1.5rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3rem);
  max-width: var(--max-width);
  margin: 0 auto clamp(2rem, 4vw, 3rem) auto;
}

.footer-brand h3 {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-col h4 {
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link-item a {
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-link-item a:hover {
  color: var(--primary-teal);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.75rem, 1.5vw, 0.82rem);
  color: var(--text-light);
  gap: 1rem;
}

/* --- DOWNLOAD MODAL (QR CODE POPUP) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: white;
  border-radius: 24px;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 2rem);
  max-width: 400px;
  width: min(400px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
  box-shadow:
    var(--shadow-lg),
    0 30px 60px -15px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-light);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(241, 245, 249, 0.8);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-medium);
  transition: var(--transition-fast);
}

.modal-close-btn svg {
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.modal-close-btn:hover {
  background: rgba(226, 232, 240, 1);
  color: var(--text-dark);
  transform: rotate(90deg);
}

.modal-icon-container {
  width: clamp(48px, 6vw, 56px);
  height: clamp(48px, 6vw, 56px);
  background-color: var(--primary-teal-light);
  color: var(--primary-teal);
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.modal-description {
  font-size: clamp(0.85rem, 1.6vw, 0.9rem);
  color: var(--text-medium);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.modal-qr-container {
  background: #f8fafc;
  padding: clamp(0.75rem, 2vw, 1rem);
  border-radius: 20px;
  border: 1px solid var(--border-light);
  display: inline-block;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.modal-qr-img {
  width: clamp(140px, 36vw, 175px);
  height: clamp(140px, 36vw, 175px);
  display: block;
  border-radius: 10px;
}

.modal-badges-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-badge-btn {
  height: clamp(38px, 5vw, 44px);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-badge-btn:hover {
  transform: translateY(-1px);
}

/* --- CONTACT PAGE STYLES --- */
.contact-page-section {
  padding-top: clamp(7.5rem, 13vw, 9.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  min-height: 100vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: flex-start;
}

.contact-info .section-title {
  text-align: left;
  margin-left: 0;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  background: var(--bg-card);
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}

.contact-method-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-teal-light);
}

.contact-icon {
  width: clamp(44px, 5vw, 54px);
  height: clamp(44px, 5vw, 54px);
  border-radius: 50%;
  background-color: var(--primary-teal-light);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-text h3 {
  font-size: clamp(0.98rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.contact-method-text p {
  color: var(--text-medium);
  font-size: clamp(0.88rem, 1.4vw, 0.95rem);
  margin: 0;
}

.contact-form-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.contact-form .form-title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: white;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition-fast);
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-teal);
  box-shadow: 0 0 0 3px var(--primary-teal-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.95rem;
  font-size: 0.98rem;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: min(420px, calc(100vw - 32px));
}

.toast {
  pointer-events: auto;
  background: white;
  color: var(--text-dark);
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS & ADAPTERS
   ========================================================================== */

/* --- TABLET LANDSCAPE & SMALL LAPTOPS (<= 1024px) --- */
@media (max-width: 1024px) {
  .navbar {
    width: calc(100% - 2rem);
    border-radius: 20px;
    top: 12px;
  }

  .navbar .container {
    padding: 0.6rem 1.25rem;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    width: 100%;
    height: auto;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    gap: 0.85rem;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    z-index: 1000;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu .nav-link {
    font-size: 1.05rem;
    padding: 0.55rem 0;
    display: block;
    width: 100%;
  }

  .nav-menu .btn {
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
    margin: 0.5rem auto 0 auto;
    display: block;
    box-sizing: border-box;
  }

  .hero-section {
    min-height: auto;
    display: block;
    padding-top: clamp(6.5rem, 12vw, 8.5rem);
    padding-bottom: 3.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
  }

  .hero-content {
    max-width: 680px;
    margin: 0 auto;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

  .app-badges {
    justify-content: center;
  }

  .hero-mockup-wrapper {
    justify-content: center;
  }

  .hero-mockup-wrapper .phone-skeleton {
    margin: 0 auto;
    width: min(300px, 80vw);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* --- TABLET PORTRAIT (<= 768px) --- */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .security-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin: 0 auto;
    gap: 1.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-mockup-wrapper .phone-skeleton {
    width: min(280px, 78vw);
  }
}

/* --- MOBILE DEVICES (<= 540px) --- */
@media (max-width: 540px) {
  .navbar {
    width: calc(100% - 1.25rem);
    top: 8px;
    border-radius: 16px;
  }

  .navbar .container {
    padding: 0.45rem 0.85rem;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .app-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }

  .badge-btn {
    height: 44px;
  }

  .cta-form {
    flex-direction: column;
    padding: 0.65rem;
    gap: 0.65rem;
    background: #f8fafc;
    border: 1px solid var(--border-light);
  }

  .cta-input {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .cta-submit {
    width: 100%;
    padding: 0.85rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.85rem;
    text-align: center;
  }

  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: 100%;
  }

  .hide-mobile {
    display: none !important;
  }

  .contact-form-wrapper {
    padding: 1.5rem 1.25rem;
    border-radius: 18px;
  }

  .contact-method-card {
    padding: 1rem;
    gap: 0.85rem;
  }

  .contact-icon {
    width: 44px;
    height: 44px;
  }

  .modal-card {
    padding: 1.75rem 1.25rem;
    width: 92%;
    border-radius: 20px;
  }

  .modal-qr-img {
    width: 150px;
    height: 150px;
  }
}

/* --- SMALL MOBILE PHONES (<= 380px) --- */
@media (max-width: 380px) {
  .hero-mockup-wrapper .phone-skeleton {
    width: 240px;
    border-width: 6px;
    border-radius: 28px;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .logo-image {
    width: 36px;
    height: 36px;
  }

  .badge-btn {
    height: 40px;
  }

  .feature-card {
    padding: 1.25rem 1rem;
  }

  .security-card {
    padding: 1.25rem 1rem;
  }
}
