/* ============================================================
   VoilaMed Landing Page Styles
   ============================================================ */

/* ─── Page-level overrides ───────────────────────────────── */

body {
  background: #ffffff;
  position: relative;
}

/* All direct children of body (except ambient-bg and navbar) sit above the gradient */
body > *:not(.ambient-bg):not(.navbar) {
  position: relative;
  z-index: 1;
}

/* ─── Navbar ──────────────────────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding-top: 16px;
  transition: padding var(--transition-base);
}

.navbar-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.navbar-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  flex-shrink: 0;
}

.navbar-logo {
  height: 28px;
  width: auto;
}

.navbar-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 4px;
}

.navbar-link {
  position: relative;
  color: var(--fg-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.navbar-link:hover {
  color: var(--accent);
  background: var(--accent-light);
}

/* Active state with tubelight glow */
.navbar-link.active {
  color: var(--accent);
  background: rgba(26, 138, 138, 0.08);
}

.navbar-link.active::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 4px 4px;
}

.navbar-link.active::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 12px;
  background: rgba(26, 138, 138, 0.15);
  border-radius: 50%;
  filter: blur(6px);
}

/* CTA link */
.navbar-link-cta {
  color: white !important;
  background: var(--accent) !important;
  font-weight: 600;
}

.navbar-link-cta:hover {
  background: var(--accent-hover) !important;
  color: white !important;
}

/* ─── Ambient Background Gradients ────────────────────────── */

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: blur(120px);
}

/* Top-right: soft teal/mint */
.ambient-blob-1 {
  top: -25%;
  right: -15%;
  width: 55%;
  height: 55%;
  background: rgba(186, 230, 230, 0.6);
}

/* Top-right: soft blue */
.ambient-blob-2 {
  top: -20%;
  right: -5%;
  width: 50%;
  height: 50%;
  background: rgba(191, 219, 254, 0.65);
}

/* Top-right: subtle sky blend */
.ambient-blob-3 {
  top: -10%;
  right: 5%;
  width: 40%;
  height: 40%;
  background: rgba(224, 242, 254, 0.5);
}

/* ─── Hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-top: clamp(8rem, 15vh, 12rem);
  padding-bottom: clamp(4rem, 8vh, 8rem);
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  max-width: 900px;
  margin: 0 auto 32px;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
  animation: fadeInUp 0.7s ease forwards;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--fg-secondary);
  line-height: 1.6;
  text-wrap: balance;
  animation: fadeInUp 0.7s ease 0.15s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: fadeInUp 0.7s ease 0.3s forwards;
  opacity: 0;
}

/* Dark primary button (like reference) */
.btn-dark {
  background: var(--fg);
  color: white;
  border: 1px solid var(--fg);
  border-radius: var(--radius-lg);
  font-weight: 500;
  padding: 12px 28px;
}

.btn-dark:hover {
  background: #1e293b;
  border-color: #1e293b;
  color: white;
}

/* Ghost button (like reference) */
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: none;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--fg);
}

/* ─── Liquid Glass Buttons ───────────────────────────────── */

.hidden-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.liquid-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.liquid-btn:hover {
  transform: translateY(-1px);
}

.liquid-btn:active {
  transform: translateY(0);
}

/* ── Primary: solid teal ── */
.liquid-btn-primary {
  background: var(--accent);
  color: white !important;
  border-color: var(--accent);
  box-shadow: 0 1px 3px rgba(26, 138, 138, 0.3);
}

.liquid-btn-primary:hover,
.liquid-btn-primary:focus {
  background: var(--accent-hover);
  color: white !important;
  box-shadow: 0 4px 12px rgba(26, 138, 138, 0.35);
}

/* ── Ghost: outlined ── */
.liquid-btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.liquid-btn-ghost:hover,
.liquid-btn-ghost:focus {
  color: var(--accent) !important;
  border-color: var(--accent);
  background: var(--accent-light);
}

/* ─── How It Works ────────────────────────────────────────── */

.how-it-works {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.0625rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent-light);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.step-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.step-card h3 {
  margin-bottom: 12px;
  font-size: 1.125rem;
}

.step-card p {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.step-connector {
  display: none;
}

/* ─── Features ────────────────────────────────────────────── */

.features-section {
  position: relative;
}

.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.features-heading {
  position: sticky;
  top: 120px;
}

.features-heading h2 {
  margin-bottom: 16px;
}

.features-heading p {
  font-size: 1.0625rem;
  margin-bottom: 24px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.feature-item:last-child {
  border-bottom: 1px solid var(--border);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.125rem;
}

.feature-content h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-content p {
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* ─── Stats ───────────────────────────────────────────────── */

/* Animated border wrapper */
.stats-border-wrapper {
  position: relative;
  padding: 2px;
  border-radius: calc(var(--radius-xl) + 2px);
}

/* Border lines — thin strips along each edge */
.border-line {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.border-line-top {
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
}

.border-line-right {
  top: 16px;
  right: 0;
  bottom: 16px;
  width: 2px;
}

.border-line-bottom {
  bottom: 0;
  left: 16px;
  right: 16px;
  height: 2px;
}

.border-line-left {
  top: 16px;
  left: 0;
  bottom: 16px;
  width: 2px;
}

/* Corner dots — small pulsing circles at each corner */
.border-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26, 138, 138, 0.9);
  z-index: 3;
  animation: dotPulse 3s ease-in-out infinite;
}

.border-dot-tl { top: 16px; left: 16px; animation-delay: 0s; }
.border-dot-tr { top: 16px; right: 16px; animation-delay: 0.75s; }
.border-dot-br { bottom: 16px; right: 16px; animation-delay: 1.5s; }
.border-dot-bl { bottom: 16px; left: 16px; animation-delay: 2.25s; }

@keyframes dotPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}

/* Corner glows — soft blur behind corners */
.border-glow {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(26, 138, 138, 0.15);
  filter: blur(16px);
  z-index: 1;
  pointer-events: none;
}

.border-glow-tl { top: -10px; left: -10px; }
.border-glow-tr { top: -10px; right: -10px; }
.border-glow-br { bottom: -10px; right: -10px; }
.border-glow-bl { bottom: -10px; left: -10px; }

.stats-section {
  background: var(--fg);
  color: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
}

/* ── Stats heading ── */
.stats-heading {
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.stats-heading h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: white;
}

.stats-accent {
  background: linear-gradient(135deg, #1a8a8a, #2dd4bf);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-heading p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

/* ── 2x2 Feature grid ── */
.stats-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
}

.stats-feature-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.stats-feature-box:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(26, 138, 138, 0.4);
  transform: translateY(-2px);
}

.stats-feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a8a8a, #0f6565);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  box-shadow: 0 0 16px rgba(26, 138, 138, 0.3);
}

.stats-feature-text h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: white;
}

.stats-feature-text p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ── Stats CTA ── */
.stats-cta {
  text-align: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.stats-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #1a8a8a, #0f6565);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(26, 138, 138, 0.25);
}

.stats-cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(26, 138, 138, 0.4);
  color: white;
}

/* ─── CTA Section ─────────────────────────────────────────── */

.cta-section {
  text-align: center;
}

.cta-card {
  background: var(--accent-light);
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 4rem);
  max-width: 800px;
  margin: 0 auto;
}

.cta-card h2 {
  margin-bottom: 16px;
}

.cta-card p {
  font-size: 1.0625rem;
  margin-bottom: 32px;
  color: var(--fg-secondary);
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ─── Footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand img {
  height: 28px;
}

.footer-brand span {
  font-weight: 600;
  font-size: 1.125rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.875rem;
  color: var(--fg-secondary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 600px;
  line-height: 1.5;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .features-layout {
    grid-template-columns: 1fr;
  }

  .features-heading {
    position: static;
    text-align: center;
  }

  .stats-features-grid {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .navbar-link:not(.navbar-link-cta) {
    display: none;
  }

  .navbar-divider {
    display: none;
  }

  .stats-border-wrapper {
    margin: 0 16px;
  }

  .stats-features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cta-actions {
    flex-direction: column;
  }
}
