/* ==========================================================================
   VetCare National Ecosystem Portal - UI/UX Pro Max Design System
   Color Palette: Medical Caring Teal (#0D9488), Accent Warm Orange (#EA580C)
   Typography: Vazirmatn (RTL Persian), Nunito Sans
   Standard: Contrast >= 4.5:1, Micro-interactions 150-300ms, SVG Icons only
   ========================================================================== */

:root {
  --primary: #0D9488;
  --primary-hover: #0F766E;
  --primary-light: #F0FDFA;
  --primary-border: #99F6E4;
  --secondary: #14B8A6;
  --accent: #EA580C;
  --accent-hover: #C2410C;
  --accent-light: #FFF7ED;
  --bg-page: #F8FAFC;
  --surface: #FFFFFF;
  --surface-card: #FFFFFF;
  --surface-soft: #F1F5F9;
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --border-focus: #0D9488;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 24px -4px rgba(13, 148, 136, 0.12), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
  --shadow-clay: 0 8px 20px rgba(13, 148, 136, 0.14), inset 0 2px 4px rgba(255, 255, 255, 0.8);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  direction: rtl;
  text-align: right;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Header & Navigation (UI/UX Pro Max Edition)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03), 0 4px 14px rgba(13, 148, 136, 0.04);
  transition: all var(--transition-fast);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 74px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Brand & Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .logo-badge {
  transform: scale(1.05);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  white-space: nowrap;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-title {
  font-size: 19px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-badge {
  font-size: 10px;
  font-weight: 800;
  background: #E0F2FE;
  color: #0284C7;
  padding: 2px 8px;
  border-radius: 9999px;
  border: 1px solid #BAE6FD;
  letter-spacing: 0.2px;
}

.brand-subtitle {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 3px;
}

/* Desktop Nav Menu */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  padding: 8px 12px;
  border-radius: 9px;
  transition: all 180ms ease;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.nav-link:hover {
  color: #0D9488;
  background: rgba(13, 148, 136, 0.08);
}

.nav-link.active {
  color: #0D9488;
  background: rgba(13, 148, 136, 0.1);
  font-weight: 700;
}

.nav-link.nav-highlight {
  color: #0D9488;
  background: #CCFBF1;
  border: 1px solid #99F6E4;
  font-weight: 700;
}

.nav-link.nav-highlight:hover {
  background: #99F6E4;
}

.nav-link.nav-admin {
  color: #4F46E5;
  background: #EEF2FF;
  border: 1px solid #E0E7FF;
  font-weight: 700;
}

.nav-link.nav-admin:hover {
  background: #E0E7FF;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #4F46E5;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-header {
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-ghost {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
}

.btn-ghost:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.btn-accent {
  background: linear-gradient(135deg, #EA580C, #F97316);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.28);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #C2410C, #EA580C);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #334155;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mobile-toggle:hover {
  background: #E2E8F0;
}

.mobile-drawer {
  display: none;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
  padding: 16px 20px 24px;
  animation: slideDown 200ms ease-out;
}

.mobile-drawer.open {
  display: block;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mobile-menu {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #1E293B;
  border-radius: 8px;
  text-decoration: none;
  transition: background 150ms ease;
}

.mobile-link:hover {
  background: #F1F5F9;
}

.mobile-link.highlight {
  background: #CCFBF1;
  color: #0D9488;
  font-weight: 700;
}

.mobile-link.admin {
  background: #EEF2FF;
  color: #4F46E5;
  font-weight: 700;
}

.mobile-drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.28);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}

.btn-accent:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-portal {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.btn-portal:hover {
  background: #CCFBF1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 70px 0 60px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(204, 251, 241, 0.45) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(254, 243, 199, 0.35) 0%, transparent 50%);
}

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

.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #FFFFFF;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-hover);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.hero-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero-title .highlight {
  background: linear-gradient(120deg, var(--primary), #0284C7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-actions .btn {
  padding: 14px 28px;
  font-size: 15px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Showcase Card */
.hero-visual {
  position: relative;
}

.visual-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}

.visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.visual-title-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.mock-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.mock-metric-card {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 14px;
}

.mock-metric-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.mock-metric-lbl {
  font-size: 12px;
  color: var(--text-muted);
}

.visual-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vf-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-body);
  background: var(--primary-light);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-right: 3px solid var(--primary);
}

/* Floating Ecosystem Pill & Badges */
.floating-pill {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(13, 148, 136, 0.08);
  border: 1px solid var(--border);
  animation: floatSlow 6s ease-in-out infinite;
  z-index: 5;
}

.floating-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Floating interactive chips on Hero */
.hero-floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(13, 148, 136, 0.08);
  border: 1px solid rgba(226, 232, 240, 0.95);
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hero-floating-badge:hover {
  transform: scale(1.06) !important;
  box-shadow: 0 16px 36px -4px rgba(13, 148, 136, 0.22);
}

.hero-floating-badge.badge-top-left {
  top: -18px;
  left: -20px;
  animation: floatBadgeTop 6s ease-in-out infinite;
}

.hero-floating-badge.badge-bottom-right {
  bottom: 24px;
  right: -24px;
  animation: floatBadgeBottom 7s ease-in-out infinite 1s;
}

.badge-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.badge-text-wrap {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.badge-desc {
  font-size: 10.5px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* ==========================================================================
   Ecosystem Stakeholders (4 Pillars)
   ========================================================================== */
.section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid var(--primary-border);
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.35;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

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

.pillar-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-lg);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: transform var(--transition-fast);
}

.pillar-card:hover .pillar-icon-box {
  transform: scale(1.08);
}

.pillar-card.clinic .pillar-icon-box { background: #CCFBF1; color: #0D9488; }
.pillar-card.pet .pillar-icon-box { background: #FEF3C7; color: #D97706; }
.pillar-card.pharma .pillar-icon-box { background: #E0E7FF; color: #4F46E5; }
.pillar-card.farm .pillar-icon-box { background: #DCFCE7; color: #16A34A; }

.pillar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.pillar-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  color: var(--text-body);
}

/* ==========================================================================
   Software Downloads Hub
   ========================================================================== */
.download-section {
  background: #F1F5F9;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.download-cards-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.dl-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.dl-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.dl-badge-flag {
  position: absolute;
  top: -12px;
  left: 28px;
  background: var(--primary);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

.dl-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.dl-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dl-title-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.dl-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.dl-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 24px;
  flex: 1;
}

.dl-specs-table {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
}

.dl-spec-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

.dl-spec-row strong {
  color: var(--text-main);
}

.dl-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ==========================================================================
   Pricing & Subscriptions
   ========================================================================== */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 46px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #CBD5E1;
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

.discount-badge {
  background: #DCFCE7;
  color: #166534;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1.5px solid var(--border);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow-clay);
}

.popular-badge {
  position: absolute;
  top: -14px;
  right: 32px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 3px 8px rgba(234, 88, 12, 0.3);
}

.plan-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.plan-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 42px;
}

.plan-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.plan-price {
  font-size: 34px;
  font-weight: 900;
  color: var(--text-main);
}

.plan-period {
  font-size: 14px;
  color: var(--text-muted);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
}

.feature-check {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Subscriber Portal Interactive Simulation
   ========================================================================== */
.portal-showcase-section {
  background: radial-gradient(circle at center, #F0FDFA 0%, #F8FAFC 100%);
  border-top: 1px solid var(--border);
}

.portal-simulator-container {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.portal-nav-bar {
  background: var(--surface-soft);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-clinic-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clinic-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.portal-body-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 480px;
}

.portal-sidebar {
  background: #FAFBFD;
  border-left: 1px solid var(--border);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.p-tab-btn:hover {
  background: var(--surface-soft);
  color: var(--primary);
}

.p-tab-btn.active {
  background: var(--primary-light);
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

.portal-content-area {
  padding: 30px;
}

.portal-view {
  display: none;
}

.portal-view.active {
  display: block;
}

.license-box {
  background: var(--surface-soft);
  border: 1px dashed var(--primary-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.license-code {
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-hover);
}

.sub-status-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.ssc-item {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: 16px;
}

.ssc-title {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ssc-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 13px;
}

.data-table th {
  background: var(--surface-soft);
  padding: 12px 14px;
  text-align: right;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}

/* ==========================================================================
   FAQ & Documentation
   ========================================================================== */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  text-align: right;
}

.faq-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 70px 0 30px;
  border-top: 1px solid #1E293B;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  color: #FFFFFF;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-col h5 {
  color: #F8FAFC;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
}

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

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

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalIn 200ms ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--surface-soft);
  color: var(--text-main);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-main);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .brand-subtitle { display: none; }
  .nav-menu { gap: 4px; }
  .nav-link { font-size: 13px; padding: 6px 9px; }
  .header-actions { gap: 6px; }
  .btn-header { padding: 0 12px; font-size: 12.5px; height: 38px; }
}

@media (max-width: 1024px) {
  .header-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .header-actions .btn-ghost { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .download-cards-grid { grid-template-columns: 1fr; }
  .pricing-cards-grid { grid-template-columns: 1fr; }
  .portal-body-grid { grid-template-columns: 1fr; }
  .portal-sidebar { flex-direction: row; overflow-x: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-container { height: 66px; padding: 0 16px; }
  .hero-title { font-size: 30px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats-row { flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 480px) {
  .brand-title { font-size: 17px; }
  .brand-badge { display: none; }
  .btn-header { padding: 0 10px; font-size: 12px; height: 36px; }
  .btn-header svg { display: none; }
}

/* ==========================================================================
   UI/UX Pro Max Animation Engine & Scroll Reveal
   ========================================================================== */

/* Keyframe Definitions */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(8px); }
}

@keyframes floatBadgeTop {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-3px, -10px); }
}

@keyframes floatBadgeBottom {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4px, 8px); }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(13, 148, 136, 0);
  }
}

@keyframes shimmerGleam {
  0% { transform: translateX(-100%) rotate(25deg); }
  100% { transform: translateX(200%) rotate(25deg); }
}

/* Scroll Reveal Utility Classes */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Staggered Delays */
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }

/* Micro-interactions: Cards 3D Depth on Hover */
.pillar-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

.pillar-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 16px 32px -6px rgba(13, 148, 136, 0.12), 0 6px 14px -4px rgba(15, 23, 42, 0.05) !important;
  border-color: var(--primary-border) !important;
}

.dl-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

.dl-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: 0 20px 36px -8px rgba(13, 148, 136, 0.14), 0 8px 16px -4px rgba(15, 23, 42, 0.05) !important;
  border-color: var(--primary-border) !important;
}

.price-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease !important;
}

.price-card:hover {
  transform: translateY(-8px) scale(1.015) !important;
  box-shadow: 0 24px 44px -8px rgba(13, 148, 136, 0.18), 0 8px 16px -4px rgba(15, 23, 42, 0.06) !important;
}

.faq-item {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.faq-item:hover {
  border-color: var(--primary-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

/* Button Shimmer / Light Gleam Effect */
.btn-primary, .btn-accent {
  position: relative;
  overflow: hidden;
}

.btn-primary::after, .btn-accent::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 35%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: rotate(25deg);
  transition: none;
  pointer-events: none;
}

.btn-primary:hover::after, .btn-accent:hover::after {
  left: 140%;
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visual Card Floating Ambient Animation */
.visual-card {
  animation: floatSlow 7s ease-in-out infinite;
}

/* Stats Item Hover Accent */
.stat-item {
  transition: transform 0.25s ease;
}

.stat-item:hover {
  transform: translateY(-3px);
}

.stat-num {
  background: linear-gradient(135deg, var(--text-main), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

