/* ============================================================
   Mine Medical Control — Marketing Site
   Logo palette: Blue #5B7EE8 · Deep Blue #1535BE · Red #E53535
   ============================================================ */

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

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

:root {
  /* ── Logo-matched palette ── */
  --brand-blue:      #5B7EE8;   /* logo circle / main blue */
  --brand-deep:      #1535BE;   /* logo text blue */
  --brand-deeper:    #0D247A;   /* darkest blue for hero/dark sections */
  --brand-darkest:   #081650;   /* near-navy with blue hue */
  --brand-red:       #E53535;   /* logo cross red */
  --brand-red-light: #FF5252;
  --brand-red-glow:  rgba(229, 53, 53, 0.2);
  --brand-mid:       #3B5ED6;   /* between light and deep */
  --brand-light:     #7B9CF0;   /* lighter tint of brand blue */
  --brand-lavender:  #C2CCEE;   /* logo pill lavender */
  --brand-glow:      rgba(91, 126, 232, 0.3);

  /* ── Backgrounds ── */
  --bg-dark:    #081650;        /* hero, dark sections */
  --bg-dark2:   #0D1F7A;
  --bg-dark3:   #112085;
  --bg-light:   #F0F4FF;        /* light blue tint sections */
  --bg-lighter: #F8FAFF;

  /* ── Neutral ── */
  --white:      #ffffff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1e293b;
  --green:      #10b981;

  /* ── Misc ── */
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --shadow:     0 4px 24px rgba(21, 53, 190, 0.08);
  --shadow-lg:  0 20px 60px rgba(21, 53, 190, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Scroll Progress ─────────────────────────────────────────── */

#progress-bar {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  width: 0%; z-index: 9999;
  transition: width 0.1s linear;
}

/* ── Utility ─────────────────────────────────────────────────── */

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(91, 126, 232, 0.1);
  border: 1px solid rgba(91, 126, 232, 0.25);
  color: var(--brand-deep);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 16px;
}
.section-tag.red {
  background: rgba(229, 53, 53, 0.08);
  border-color: rgba(229, 53, 53, 0.25);
  color: var(--brand-red);
}
.section-tag.white {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.95);
}

.section-heading {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.1;
  color: var(--gray-800); margin-bottom: 16px;
}
.section-heading.white { color: var(--white); }
.section-sub {
  font-size: 1.125rem; color: var(--gray-600);
  max-width: 600px; line-height: 1.7;
}
.section-sub.white { color: rgba(255,255,255,0.7); }

.text-red   { color: var(--brand-red); }
.text-blue  { color: var(--brand-blue); }
.text-deep  { color: var(--brand-deep); }

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: var(--transition); white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-deep) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(91, 126, 232, 0.45);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(91, 126, 232, 0.55);
}

.btn-red {
  background: linear-gradient(135deg, var(--brand-red) 0%, #c02020 100%);
  color: var(--white); font-weight: 700;
  box-shadow: 0 4px 20px rgba(229, 53, 53, 0.4);
}
.btn-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 53, 53, 0.5);
}

.btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.65);
  transform: translateY(-2px);
}

.btn-outline-blue {
  background: transparent; color: var(--brand-deep);
  border: 1.5px solid var(--brand-blue);
}
.btn-outline-blue:hover {
  background: var(--brand-blue); color: var(--white);
  transform: translateY(-2px);
}

/* ── Reveal Animations ───────────────────────────────────────── */

.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-left  { transform: translateX(-40px); }
.reveal.reveal-right { transform: translateX(40px); }
.reveal.reveal-scale { transform: scale(0.92); }
.reveal.visible { opacity: 1; transform: none; }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ── Navigation ──────────────────────────────────────────────── */

#nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 20px 0;
  transition: all 0.4s ease;
}
#nav.scrolled {
  padding: 12px 0;
  background: rgba(8, 22, 80, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1.1rem; color: var(--white);
}
.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-deep));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px var(--brand-glow);
}
.nav-logo-img {
  width: 40px; height: 40px;
  object-fit: contain; flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(91,126,232,0.4));
}
.sidebar-logo-img {
  width: 28px; height: 28px;
  object-fit: contain;
}
.nav-logo span { color: var(--brand-red); }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,0.75); font-size: 0.9rem;
  font-weight: 500; transition: var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--brand-red);
  transition: width 0.3s ease; border-radius: 2px;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-login {
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  font-weight: 500; transition: var(--transition);
}
.nav-login:hover { color: var(--white); }
.btn-nav { padding: 10px 20px; font-size: 0.9rem; border-radius: 8px; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-dark);
  z-index: 999; flex-direction: column;
  align-items: center; justify-content: center; gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  color: var(--white); font-size: 1.5rem;
  font-family: 'Poppins', sans-serif; font-weight: 700;
  opacity: 0; transform: translateY(20px); transition: all 0.4s ease;
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.5s; }
.mobile-close {
  position: absolute; top: 24px; right: 24px;
  font-size: 2rem; color: var(--white);
  cursor: pointer; background: none; border: none;
}

/* ── Hero ────────────────────────────────────────────────────── */

#hero {
  min-height: 100vh;
  background: var(--bg-dark);
  position: relative; display: flex;
  align-items: center; overflow: hidden;
}
#hero-canvas { position: absolute; inset: 0; opacity: 0.5; }

.hero-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91, 126, 232, 0.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(229, 53, 53, 0.08) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 160px 0 100px; max-width: 760px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(229, 53, 53, 0.12);
  border: 1px solid rgba(229, 53, 53, 0.3);
  color: #FF7070; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 100px; margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229, 53, 53, 0); }
  50%       { box-shadow: 0 0 0 6px rgba(229, 53, 53, 0.1); }
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--brand-red); border-radius: 50%;
  animation: dot-blink 1.5s ease-in-out infinite;
}
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 900; line-height: 1.08;
  color: var(--white); margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-title .accent {
  background: linear-gradient(135deg, #FF7070, var(--brand-red));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-title .line-blue {
  background: linear-gradient(135deg, var(--brand-light), var(--brand-blue));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.2rem; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 40px; max-width: 620px;
}
.hero-actions {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap; margin-bottom: 60px;
}
.hero-trust {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.4); font-size: 0.85rem;
}
.hero-trust-divider {
  width: 1px; height: 16px; background: rgba(255,255,255,0.2);
}

/* Rings */
.hero-rings {
  position: absolute; right: -100px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px; z-index: 1; pointer-events: none;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(91, 126, 232, 0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: ringRotate 20s linear infinite;
}
.ring:nth-child(1) { width: 200px; height: 200px; border-color: rgba(229,53,53,0.2); animation-duration: 15s; }
.ring:nth-child(2) { width: 320px; height: 320px; animation-duration: 25s; animation-direction: reverse; }
.ring:nth-child(3) { width: 460px; height: 460px; animation-duration: 35s; }
.ring:nth-child(4) { width: 580px; height: 580px; border-color: rgba(229,53,53,0.08); animation-duration: 50s; animation-direction: reverse; }
@keyframes ringRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── Stats Bar ───────────────────────────────────────────────── */

#stats {
  background: var(--bg-dark2);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item {
  text-align: center; padding: 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child { border-right: none; }
.stat-value {
  font-family: 'Poppins', sans-serif; font-size: 2.4rem;
  font-weight: 800; color: var(--white); display: block; line-height: 1.1;
}
.stat-value .stat-unit { color: var(--brand-red); }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 6px; display: block; }

/* ── Problem / Solution ──────────────────────────────────────── */

#problem { padding: 100px 0; background: var(--bg-light); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.problem-list { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.problem-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: var(--white);
  border-radius: var(--radius); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.problem-item:hover {
  border-color: rgba(229,53,53,0.3);
  box-shadow: 0 4px 20px rgba(229,53,53,0.08);
  transform: translateX(4px);
}
.problem-icon {
  width: 40px; height: 40px;
  background: rgba(229,53,53,0.08); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.problem-item h4 { font-weight: 600; color: var(--gray-800); font-size: 0.95rem; margin-bottom: 4px; }
.problem-item p { font-size: 0.85rem; color: var(--gray-600); line-height: 1.5; }

.solution-card {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark2) 100%);
  border-radius: var(--radius-xl); padding: 48px;
  border: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden;
}
.solution-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(229,53,53,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.solution-card::after {
  content: ''; position: absolute; bottom: -40px; left: -40px;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(91,126,232,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.solution-check-list { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.solution-check {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.85); font-size: 0.95rem;
  position: relative; z-index: 1;
}
.check-icon {
  width: 24px; height: 24px;
  background: rgba(16,185,129,0.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--green); font-size: 0.75rem;
}

/* ── Features ────────────────────────────────────────────────── */

#features { padding: 100px 0; background: var(--white); }
.features-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.features-header .section-sub { margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.feature-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(91,126,232,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.feature-card:hover {
  border-color: rgba(91,126,232,0.35);
  box-shadow: 0 20px 60px rgba(91,126,232,0.12);
  transform: translateY(-6px);
}
.feature-card:hover::before { opacity: 1; }
.feature-card.red-hover:hover {
  border-color: rgba(229,53,53,0.3);
  box-shadow: 0 20px 60px rgba(229,53,53,0.1);
}
.feature-card.red-hover::before {
  background: linear-gradient(135deg, rgba(229,53,53,0.04) 0%, transparent 60%);
}

.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px; position: relative; z-index: 1;
}
.feature-icon.blue   { background: rgba(91,126,232,0.1); }
.feature-icon.red    { background: rgba(229,53,53,0.1); }
.feature-icon.green  { background: rgba(16,185,129,0.1); }
.feature-icon.purple { background: rgba(139,92,246,0.1); }
.feature-icon.deep   { background: rgba(21,53,190,0.1); }
.feature-icon.teal   { background: rgba(20,184,166,0.1); }

.feature-card h3 {
  font-family: 'Poppins', sans-serif; font-size: 1.15rem;
  font-weight: 700; color: var(--gray-800); margin-bottom: 10px;
  position: relative; z-index: 1;
}
.feature-card p {
  font-size: 0.9rem; color: var(--gray-600);
  line-height: 1.65; position: relative; z-index: 1;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; position: relative; z-index: 1; }
.feature-tag {
  background: var(--bg-light); color: var(--brand-deep);
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 100px;
}

/* ── App Screenshots ─────────────────────────────────────────── */

#screenshots {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--white) 100%);
}
.screenshots-header { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.screenshots-header .section-sub { margin: 0 auto; }

.screenshots-tabs {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 24px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--gray-200);
  background: var(--white); color: var(--gray-600);
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--brand-blue); color: var(--white);
  border-color: var(--brand-blue);
  box-shadow: 0 4px 16px rgba(91,126,232,0.35);
}

.screenshot-frame {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px rgba(21,53,190,0.15), 0 0 0 1px rgba(91,126,232,0.12);
  overflow: hidden;
  display: none;
}
.screenshot-frame.active { display: block; }

/* Browser chrome bar */
.browser-bar {
  background: #f0f0f0;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid #e0e0e0;
}
.browser-dots { display: flex; gap: 6px; }
.browser-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.browser-dot:nth-child(1) { background: #FF5F57; }
.browser-dot:nth-child(2) { background: #FEBC2E; }
.browser-dot:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1; background: white; border-radius: 6px;
  padding: 5px 14px; font-size: 0.78rem; color: #666;
  border: 1px solid #e0e0e0; max-width: 400px; margin: 0 auto;
  text-align: center;
}

/* App shell inside screenshot */
.app-shell {
  display: grid; grid-template-columns: 220px 1fr;
  min-height: 480px;
}
.app-sidebar {
  background: #0D2137;
  padding: 20px 0;
  display: flex; flex-direction: column;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 16px;
}
.sidebar-logo-icon {
  width: 32px; height: 32px;
  background: var(--brand-blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}
.sidebar-logo-text {
  font-size: 0.82rem; font-weight: 700;
  color: white; font-family: 'Poppins', sans-serif;
  line-height: 1.2;
}
.sidebar-section-label {
  font-size: 0.65rem; font-weight: 700;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 8px 20px 4px;
}
.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  cursor: default; transition: var(--transition);
}
.sidebar-item:hover, .sidebar-item.active {
  background: rgba(91,126,232,0.15);
  color: white;
}
.sidebar-item.active {
  border-left: 3px solid var(--brand-blue);
  padding-left: 17px;
}
.sidebar-icon { font-size: 1rem; opacity: 0.8; }

/* App main content area */
.app-main { background: #F8FAFC; padding: 24px; overflow: hidden; }
.app-topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.app-page-title {
  font-family: 'Poppins', sans-serif; font-size: 1.2rem;
  font-weight: 700; color: #0D2137;
}
.app-btn {
  padding: 7px 16px; border-radius: 7px;
  font-size: 0.78rem; font-weight: 600;
  background: var(--brand-blue); color: white;
  border: none; cursor: default;
}
.app-btn.secondary {
  background: white; color: var(--brand-deep);
  border: 1px solid var(--gray-200);
}

/* Stat cards in dashboard */
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-stat {
  background: white; border-radius: 10px; padding: 16px;
  border: 1px solid var(--gray-200);
}
.dash-stat-val {
  font-family: 'Poppins', sans-serif; font-size: 1.6rem;
  font-weight: 800; color: #0D2137; line-height: 1;
}
.dash-stat-label { font-size: 0.72rem; color: var(--gray-600); margin-top: 4px; }
.dash-stat-badge {
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px;
  border-radius: 100px; margin-top: 8px; display: inline-block;
}
.badge-up   { background: rgba(16,185,129,0.12); color: #059669; }
.badge-warn { background: rgba(245,158,11,0.12); color: #d97706; }
.badge-blue { background: rgba(91,126,232,0.12); color: var(--brand-deep); }
.badge-red  { background: rgba(229,53,53,0.12); color: var(--brand-red); }

/* Table inside app */
.app-table { background: white; border-radius: 10px; border: 1px solid var(--gray-200); overflow: hidden; }
.app-table-head {
  background: #f8fafc; padding: 10px 16px;
  display: grid; gap: 8px;
  font-size: 0.7rem; font-weight: 700; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--gray-200);
}
.app-table-row {
  padding: 10px 16px; display: grid; gap: 8px;
  font-size: 0.78rem; color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100); align-items: center;
}
.app-table-row:last-child { border-bottom: none; }
.app-table-row:hover { background: #f8fafc; }
.tbl-badge {
  font-size: 0.65rem; font-weight: 700; padding: 3px 8px;
  border-radius: 100px; display: inline-block;
}
.tbl-green  { background: rgba(16,185,129,0.12); color: #059669; }
.tbl-yellow { background: rgba(245,158,11,0.12); color: #d97706; }
.tbl-blue   { background: rgba(91,126,232,0.12); color: var(--brand-deep); }
.tbl-red    { background: rgba(229,53,53,0.12); color: var(--brand-red); }

/* Form fields in app */
.app-form { background: white; border-radius: 10px; padding: 20px; border: 1px solid var(--gray-200); }
.app-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-field label {
  font-size: 0.72rem; font-weight: 600; color: var(--gray-700);
  display: block; margin-bottom: 4px;
}
.app-field input, .app-field select {
  width: 100%; padding: 7px 10px;
  border: 1px solid var(--gray-200); border-radius: 7px;
  font-size: 0.8rem; color: var(--gray-800);
  background: var(--bg-lighter);
}
.app-section-label {
  font-size: 0.7rem; font-weight: 700; color: var(--brand-deep);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin: 16px 0 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--bg-light);
}
.vitals-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.vital-box {
  background: var(--bg-light); border-radius: 8px; padding: 10px;
  text-align: center; border: 1px solid rgba(91,126,232,0.15);
}
.vital-val { font-weight: 700; font-size: 1rem; color: var(--brand-deep); }
.vital-label { font-size: 0.65rem; color: var(--gray-600); margin-top: 2px; }

/* ── How It Works ────────────────────────────────────────────── */

#how {
  padding: 100px 0;
  background: var(--bg-dark);
  position: relative; overflow: hidden;
}
#how::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91,126,232,0.5), transparent);
}
.how-header { text-align: center; max-width: 600px; margin: 0 auto 72px; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.how-connector {
  position: absolute; top: 28px;
  left: calc(12.5% + 28px); right: calc(12.5% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  opacity: 0.3; pointer-events: none;
}
.step-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(91,126,232,0.1);
  border: 2px solid rgba(91,126,232,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Poppins', sans-serif; font-size: 1.3rem;
  font-weight: 800; color: var(--brand-light); margin-bottom: 24px;
  position: relative; z-index: 1; transition: var(--transition);
}
.step-card:hover .step-number {
  background: rgba(91,126,232,0.25); border-color: var(--brand-blue);
  transform: scale(1.1); box-shadow: 0 0 20px rgba(91,126,232,0.4);
}
.step-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.step-card p  { font-size: 0.875rem; color: rgba(255,255,255,0.5); line-height: 1.65; }

/* ── Compliance ──────────────────────────────────────────────── */

#compliance { padding: 100px 0; background: var(--white); }
.compliance-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.compliance-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.compliance-badge {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 14px; transition: var(--transition);
}
.compliance-badge:hover { border-color: rgba(91,126,232,0.3); box-shadow: var(--shadow); }
.compliance-badge-icon {
  width: 44px; height: 44px;
  background: rgba(91,126,232,0.08); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.compliance-badge-text strong { font-size: 0.85rem; font-weight: 700; color: var(--gray-800); display: block; }
.compliance-badge-text span   { font-size: 0.75rem; color: var(--gray-600); }

.compliance-visual {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark2) 100%);
  border-radius: var(--radius-xl); padding: 48px;
  border: 1px solid rgba(255,255,255,0.08); position: relative; overflow: hidden;
}
.compliance-visual::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(91,126,232,0.12) 0%, transparent 70%);
}
.screen-mock {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; padding: 16px; font-size: 0.8rem;
  position: relative; z-index: 1;
}
.screen-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.screen-header-title { color: var(--white); font-weight: 700; font-size: 0.9rem; font-family: 'Poppins', sans-serif; }
.screen-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: screenDot 2s ease-in-out infinite; }
@keyframes screenDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.screen-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 6px;
  transition: background 0.3s ease; cursor: default;
}
.screen-row:hover { background: rgba(255,255,255,0.06); }
.screen-row-icon { font-size: 1rem; flex-shrink: 0; }
.screen-row-label { color: rgba(255,255,255,0.7); font-size: 0.82rem; flex: 1; }
.screen-row-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 100px; font-weight: 600; }
.badge-active { background: rgba(16,185,129,0.2); color: #34d399; }
.badge-due    { background: rgba(229,53,53,0.2); color: #FF7070; }
.badge-ok     { background: rgba(91,126,232,0.2); color: #93c5fd; }

/* ── Who We Serve ────────────────────────────────────────────── */

#clients { padding: 100px 0; background: var(--bg-light); }
.clients-header { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.clients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.client-card {
  border: 1px solid var(--gray-200); background: var(--white);
  border-radius: var(--radius-lg); padding: 36px 28px;
  text-align: center; transition: var(--transition);
  position: relative; overflow: hidden;
}
.client-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
  transform: scaleX(0); transition: transform 0.4s ease;
}
.client-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(91,126,232,0.2); }
.client-card:hover::before { transform: scaleX(1); }
.client-emoji { font-size: 3rem; margin-bottom: 16px; display: block; }
.client-card h3 { font-family: 'Poppins', sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; }
.client-card p  { font-size: 0.875rem; color: var(--gray-600); line-height: 1.65; }

/* ── Pricing ─────────────────────────────────────────────────── */

#pricing {
  padding: 100px 0; background: var(--bg-dark);
  position: relative; overflow: hidden;
}
#pricing::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,53,53,0.4), transparent);
}
.pricing-bg-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(91,126,232,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.pricing-header { text-align: center; max-width: 620px; margin: 0 auto 48px; }

/* Plan feature comparison — sits directly above Stripe table, same width */
.pricing-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; max-width: 1100px; margin: 0 auto 16px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}
.pricing-feat-col {
  background: rgba(255,255,255,0.05);
  padding: 28px 32px 28px;
  position: relative;
  border-right: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}
.pricing-feat-col:last-child { border-right: none; }
.pricing-feat-col.featured {
  background: rgba(91,126,232,0.14);
  border-right: 1px solid rgba(91,126,232,0.2);
}
.pricing-feat-badge {
  display: inline-block;
  background: var(--brand-red); color: white;
  font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 10px;
}
.pricing-feat-head {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 16px;
}
.pricing-feat-list {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  flex-grow: 1;
}
.pricing-feat-list li {
  font-size: 0.82rem; color: rgba(255,255,255,0.6);
  line-height: 1.5;
}
.pricing-feat-col.featured .pricing-feat-list li { color: rgba(255,255,255,0.85); }

.stripe-pricing-wrapper {
  max-width: 1100px; margin: 0 auto;
  position: relative; z-index: 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.stripe-placeholder {
  background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius-xl); padding: 80px 40px;
  text-align: center; color: rgba(255,255,255,0.4); font-size: 1rem;
}

@media (max-width: 768px) {
  .pricing-features { grid-template-columns: 1fr; }
}

/* ── CTA ─────────────────────────────────────────────────────── */

#cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--bg-dark2) 0%, var(--bg-dark) 50%, var(--bg-dark3) 100%);
  position: relative; overflow: hidden; text-align: center;
}
#cta::before {
  content: ''; position: absolute; top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(229,53,53,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-content { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }
.cta-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap; margin-top: 40px;
}
.cta-note { margin-top: 20px; font-size: 0.85rem; color: rgba(255,255,255,0.3); }

/* ── Footer ──────────────────────────────────────────────────── */

#footer {
  background: #04112A;
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 0.875rem; color: rgba(255,255,255,0.4); line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
  font-family: 'Poppins', sans-serif; font-size: 0.875rem; font-weight: 700;
  color: rgba(255,255,255,0.9); margin-bottom: 20px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.3); transition: var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Floating CTA ────────────────────────────────────────────── */

#floating-cta {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  opacity: 0; transform: translateY(20px);
  transition: all 0.4s ease; pointer-events: none;
}
#floating-cta.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#floating-cta .btn { box-shadow: 0 8px 32px rgba(91,126,232,0.5); }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid  { grid-template-columns: 1fr; gap: 40px; }
  .compliance-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-steps     { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .how-connector { display: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .app-shell     { grid-template-columns: 160px 1fr; }
  .dash-stats    { grid-template-columns: repeat(2, 1fr); }
  .vitals-grid   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .hero-content  { padding: 140px 0 80px; }
  .hero-title    { font-size: 2.4rem; }
  .hero-rings    { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .clients-grid  { grid-template-columns: 1fr; }
  .how-steps     { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .compliance-badges { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .app-shell     { grid-template-columns: 1fr; }
  .app-sidebar   { display: none; }
  .app-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions  { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-actions   { flex-direction: column; align-items: stretch; }
  .cta-actions .btn { justify-content: center; }
  .stats-grid    { grid-template-columns: 1fr; }
  .stat-item     { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .stat-item:last-child { border-bottom: none; }
  .screenshots-tabs { gap: 8px; }
  .tab-btn       { padding: 8px 14px; font-size: 0.8rem; }
}
