/* ═══════════════════════════════════════════════════════════════════
   MiraAssure Landing — Premium Stylesheet
   Medical-Grade QMS for MedTech
   ═══════════════════════════════════════════════════════════════════ */

/* ── Custom Properties ─────────────────────────────────────────── */
:root {
  /* Palette */
  --navy:        #0f1b2d;
  --blue-dark:   #0a3d7c;
  --blue:        #0066CC;
  --blue-light:  #4DA6FF;
  --blue-pale:   #e8f2ff;
  --blue-ghost:  #f0f7ff;
  --green:       #00A86B;
  --green-pale:  #e6f9f0;

  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-800:    #1f2937;

  /* Radii */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  /* Sizing */
  --max-width:   1200px;
  --nav-height:  72px;

  /* Motion */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    0.3s;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg:   0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-xl:   0 20px 48px rgba(0, 0, 0, 0.16);

  /* Font */
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}


/* ── Reset & Base ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  outline: none;
}


/* ═══════════════════════════════════════════════════════════════════
   1. ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */

/* ── Scroll-triggered entrance ─────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-animate="fade-right"] {
  transform: translateX(-24px);
}

[data-animate="fade-left"] {
  transform: translateX(24px);
}

[data-animate="fade-in"] {
  transform: none;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ── Keyframes ─────────────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(0, 102, 204, 0);
  }
}

@keyframes pulse-fp {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.35);
  }
  50% {
    box-shadow: 0 0 0 18px rgba(0, 102, 204, 0);
  }
}

@keyframes scale-in {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   2. NAV
   ═══════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
}

.nav--scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.nav__logo-mira {
  color: var(--navy);
}

.nav__logo-assure {
  color: var(--blue);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  text-decoration: none;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color var(--duration) var(--ease);
}

.nav__link:hover {
  color: var(--blue);
}

/* Right-side actions wrapper */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--duration) var(--ease);
}

.nav__lang-toggle:hover {
  background: var(--gray-200);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.nav__cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease),
              opacity var(--duration) var(--ease);
}


/* ═══════════════════════════════════════════════════════════════════
   3. HERO
   ═══════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--blue-ghost) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, var(--green-pale) 0%, transparent 50%),
    var(--white);
  position: relative;
  overflow: hidden;
}

.hero__container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--blue-ghost);
  border: 1px solid var(--blue-pale);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: -0.01em;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--navy);
  max-width: 800px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 640px;
  letter-spacing: -0.01em;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero__metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
}

.hero__metric {
  text-align: center;
}

.hero__metric-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero__metric-label {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  margin-top: 2px;
}

.hero__metric-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   4. BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 204, 0.28);
}

.btn--ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

.btn--ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-ghost);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn--block {
  width: 100%;
}

.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}

.btn--whatsapp:hover {
  background: #1fb855;
  border-color: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.28);
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════════
   5. TRUST
   ═══════════════════════════════════════════════════════════════════ */
.trust {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 40px 24px;
}

.trust__container {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
}

.trust__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.trust__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.trust__badge:hover {
  border-color: var(--blue-pale);
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.08);
}


/* ═══════════════════════════════════════════════════════════════════
   6. SECTION SHARED
   ═══════════════════════════════════════════════════════════════════ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-title--left {
  text-align: left;
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 540px;
  margin: 0 auto;
  letter-spacing: -0.01em;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.55);
}


/* ═══════════════════════════════════════════════════════════════════
   7. PROBLEMS
   ═══════════════════════════════════════════════════════════════════ */
.problems {
  padding: 100px 24px;
}

.problems__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.problems__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.problems__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-pale);
}

.problems__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.problems__icon--red {
  background: #fef2f2;
}

.problems__icon--orange {
  background: #fff7ed;
}

.problems__icon--blue {
  background: var(--blue-pale);
}

.problems__problem {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 4px;
  line-height: 1.4;
}

.problems__arrow {
  color: var(--blue);
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 600;
}

.problems__solution {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.problems__detail {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.65;
  margin-top: auto;
}


/* ═══════════════════════════════════════════════════════════════════
   8. FEATURES
   ═══════════════════════════════════════════════════════════════════ */
.features {
  padding: 100px 24px;
  background: var(--gray-50);
}

.features__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.features__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}

.features__card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-pale);
}

.features__icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  line-height: 1;
}

.features__card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.features__card-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════
   9. SIGNATURE
   ═══════════════════════════════════════════════════════════════════ */
.signature {
  padding: 100px 24px;
}

.signature__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.signature__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.signature__subtitle {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.signature__steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.signature__step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.signature__step-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.signature__step-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.signature__step strong {
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.signature__step p {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.5;
}


/* ═══════════════════════════════════════════════════════════════════
   10. PHONE MOCKUP
   ═══════════════════════════════════════════════════════════════════ */
.signature__phone-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  width: 280px;
  height: 560px;
  background: var(--navy);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 24px 64px rgba(15, 27, 45, 0.35),
    0 8px 24px rgba(15, 27, 45, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
}

.phone__notch {
  width: 100px;
  height: 24px;
  background: var(--navy);
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone__screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  position: relative;
}

.phone__state {
  position: absolute;
  inset: 0;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

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

.phone__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.phone__doc-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phone__doc-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.phone__ai-badge {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--blue-ghost);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  display: inline-block;
}

.phone__ai-text {
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.5;
}

.phone__btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  margin-bottom: 8px;
}

.phone__btn--primary {
  background: var(--blue);
  color: var(--white);
}

.phone__btn--primary:hover {
  background: var(--blue-dark);
}

.phone__btn--secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.phone__btn--secondary:hover {
  background: var(--gray-200);
}

.phone__auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
}

.phone__fingerprint {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  cursor: pointer;
  background: var(--blue-ghost);
  border: 2px solid var(--blue-pale);
  animation: pulse-fp 2.5s ease-in-out infinite;
  transition: transform var(--duration) var(--ease);
}

.phone__fingerprint:hover {
  transform: scale(1.08);
}

.phone__auth-text {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 500;
  text-align: center;
}

.phone__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  flex: 1;
}

.phone__checkmark {
  animation: scale-in 0.5s var(--ease) forwards;
  font-size: 48px;
  line-height: 1;
}

.phone__success-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -0.02em;
}

.phone__success-detail {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

.phone__success-meta {
  background: var(--green-pale);
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  line-height: 1.45;
  text-align: left;
  width: 100%;
}

.phone__meta-row {
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

.phone__meta-label {
  color: var(--green);
  font-weight: 600;
  font-size: 11px;
}

.phone__meta-value {
  color: var(--navy);
  font-weight: 600;
  font-size: 11px;
}

.phone__meta-value--mono {
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 0.02em;
}


/* ═══════════════════════════════════════════════════════════════════
   11. INFRASTRUCTURE
   ═══════════════════════════════════════════════════════════════════ */
.infra {
  padding: 100px 24px;
  background: var(--navy);
  color: var(--white);
}

.infra__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.infra .section-title {
  color: var(--white);
}

.infra .section-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.infra__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.infra__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: background var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.infra__card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.infra__icon {
  font-size: 28px;
  margin-bottom: 14px;
  display: block;
  line-height: 1;
}

.infra__card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.infra__card-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════════
   12. COMPARISON
   ═══════════════════════════════════════════════════════════════════ */
.comparison {
  padding: 100px 24px;
}

.comparison__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.comparison__table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  -webkit-overflow-scrolling: touch;
}

.comparison__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison__table th,
.comparison__table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  text-align: left;
  white-space: nowrap;
}

.comparison__table thead th {
  background: var(--gray-50);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}

.comparison__table tbody tr:last-child td {
  border-bottom: none;
}

.comparison__table tbody tr:hover {
  background: var(--blue-ghost);
}

.comparison__th--highlight {
  background: var(--blue-ghost);
  color: var(--navy);
  font-weight: 600;
}

.comparison__cell--check {
  color: var(--green);
  font-weight: 700;
}

.comparison__cell--cross {
  color: var(--gray-300);
}

.comparison__cell--partial {
  color: #f0ad4e;
  font-weight: 600;
}


/* ═══════════════════════════════════════════════════════════════════
   13. CONTACT
   ═══════════════════════════════════════════════════════════════════ */
.contact {
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--blue-ghost) 0%, var(--gray-50) 100%);
}

.contact__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__subtitle {
  font-size: 17px;
  color: var(--gray-500);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__channel {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact__channel-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--blue-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 20px;
}

.contact__channel-icon svg {
  width: 20px;
  height: 20px;
}

.contact__channel-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact__channel-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.contact__channel-value {
  font-size: 15px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--duration) var(--ease);
}

.contact__channel-value:hover {
  color: var(--blue-dark);
}

.contact__form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: -0.01em;
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--gray-400);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.contact__textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__submit {
  margin-top: 4px;
}


/* ═══════════════════════════════════════════════════════════════════
   14. FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 24px 30px;
}

.footer__container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

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

.footer__logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.footer__logo-mira {
  color: var(--white);
}

.footer__logo-assure {
  color: var(--blue-light);
}

.footer__tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.5;
  max-width: 280px;
}

.footer__links {
  display: flex;
  gap: 64px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 4px;
}

.footer__col-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__link {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  transition: color var(--duration) var(--ease);
}

.footer__link:hover {
  color: var(--white);
}

.footer__bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
}


/* ═══════════════════════════════════════════════════════════════════
   15. RESPONSIVE — Mobile First Breakpoint
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav ───────────────────────────────────────────────────── */
  .nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-md);
  }

  .nav__links.is-open {
    display: flex;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .nav__link {
    font-size: 16px;
    padding: 8px 0;
  }

  .nav__cta {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .nav__lang-toggle {
    align-self: flex-start;
  }

  /* ── Hero ──────────────────────────────────────────────────── */
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 32px) 20px 56px;
  }

  .hero__title {
    letter-spacing: -0.03em;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__metrics {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hero__metric-value {
    font-size: 24px;
  }

  .hero__metric-divider {
    height: 32px;
  }

  /* ── Trust ─────────────────────────────────────────────────── */
  .trust {
    padding: 32px 20px;
  }

  .trust__badges {
    gap: 8px;
  }

  .trust__badge {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* ── Sections ──────────────────────────────────────────────── */
  .problems,
  .features,
  .signature,
  .infra,
  .comparison,
  .contact {
    padding: 64px 20px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-subtitle {
    font-size: 15px;
  }

  /* ── Grids → 1 column ─────────────────────────────────────── */
  .problems__grid,
  .features__grid,
  .infra__grid {
    grid-template-columns: 1fr;
  }

  /* ── Signature ─────────────────────────────────────────────── */
  .signature__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .signature__phone-wrapper {
    order: -1;
  }

  /* ── Comparison ────────────────────────────────────────────── */
  .comparison__table {
    font-size: 12px;
  }

  .comparison__table th,
  .comparison__table td {
    padding: 12px 14px;
  }

  /* ── Contact ───────────────────────────────────────────────── */
  .contact__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact__form-card {
    padding: 24px;
  }

  /* ── Footer ────────────────────────────────────────────────── */
  .footer__top {
    flex-direction: column;
    gap: 32px;
  }

  .footer__links {
    flex-direction: column;
    gap: 32px;
  }

  .footer__bottom {
    margin-top: 32px;
  }
}

/* ── Extra-small screens ───────────────────────────────────────── */
@media (max-width: 420px) {
  .phone {
    width: 256px;
    height: 510px;
    border-radius: 30px;
  }

  .phone__screen {
    border-radius: 22px;
  }

  .phone__notch {
    width: 80px;
    height: 20px;
  }

  .phone__doc-name {
    font-size: 14px;
  }

  .hero__metrics {
    gap: 12px;
  }

  .hero__metric-value {
    font-size: 20px;
  }

  .hero__metric-label {
    font-size: 11px;
  }
}
