/* ============================================
   Clinic VIP Landing — Professional RTL Theme
   ============================================ */

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --accent: #0891b2;
  --accent-light: #22d3ee;

  --bg: #f8fafc;
  --bg-dark: #0f172a;
  --surface: #ffffff;
  --surface-2: #f1f5f9;

  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 48px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 60px rgba(13, 148, 136, 0.15);

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font: 'Vazirmatn', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 72px;
}

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

html {
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

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

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

/* ---- Utilities ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 50%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(8, 145, 178, 0.1));
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(13, 148, 136, 0.2);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13, 148, 136, 0.45);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.btn--white {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
}

.nav__logo-icon svg {
  width: 36px;
  height: 36px;
}

.nav__logo-text strong {
  color: var(--primary);
}

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

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--primary);
}

.nav__cta {
  padding: 10px 20px !important;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff !important;
  border-radius: 10px;
}

.nav__cta:hover {
  opacity: 0.9;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 8s ease-in-out infinite;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(13, 148, 136, 0.2);
  top: -100px;
  right: -100px;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(8, 145, 178, 0.15);
  bottom: 0;
  left: -100px;
  animation-delay: -3s;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(34, 211, 238, 0.1);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -5s;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.hero__stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.hero__stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero__visual {
  position: relative;
}

.hero__lottie-wrap {
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(241,245,249,0.9));
  border-radius: var(--radius-xl);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-height: 420px;
}

.hero__lottie-wrap .lottie-player {
  height: 100%;
  aspect-ratio: auto;
}

.hero__float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  animation: floatCard 4s ease-in-out infinite;
}

.hero__float-card strong {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
}

.hero__float-card span {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.hero__float-card--1 {
  top: 10%;
  left: -30px;
  animation-delay: 0s;
}

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

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-card__icon svg {
  width: 22px;
  height: 22px;
}

.float-card__icon--green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.float-card__icon--blue {
  background: rgba(8, 145, 178, 0.15);
  color: var(--accent);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.75rem;
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

.lottie-player {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lottie-player svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  display: block;
}

.lottie-player--center {
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
}

/* ---- Trust Bar ---- */
.trust-bar {
  padding: 32px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-bar__item svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
}

/* ---- Features ---- */
.features {
  padding: 100px 0;
}

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

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.feature-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  transform: translateY(-4px);
}

.feature-card--large {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.feature-card--reverse .feature-card__content {
  order: 2;
}

.feature-card--reverse .feature-card__lottie {
  order: 1;
}

.feature-card__tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(13, 148, 136, 0.08);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.feature-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

.feature-card__list li {
  position: relative;
  padding-right: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-card__list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.feature-card__lottie {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
  max-height: 280px;
}

.feature-card__lottie .lottie-player {
  max-height: 260px;
  max-width: 320px;
  margin: 0 auto;
}

.feature-card__lottie--sm {
  max-height: 150px;
  margin-bottom: 16px;
}

.feature-card__lottie--sm .lottie-player {
  max-height: 140px;
  max-width: 180px;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-badge {
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ---- AI Assistant Banner ---- */
.ai-banner {
  position: relative;
  margin-top: 32px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 24px 80px rgba(88, 28, 135, 0.2);
}

.ai-banner__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #0f766e 100%);
  z-index: 0;
}

.ai-banner__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: aiFloat 10s ease-in-out infinite;
}

.ai-banner__orb--1 {
  width: 320px;
  height: 320px;
  background: rgba(139, 92, 246, 0.45);
  top: -80px;
  right: -60px;
}

.ai-banner__orb--2 {
  width: 280px;
  height: 280px;
  background: rgba(13, 148, 136, 0.4);
  bottom: -60px;
  left: -40px;
  animation-delay: -4s;
}

.ai-banner__orb--3 {
  width: 200px;
  height: 200px;
  background: rgba(34, 211, 238, 0.25);
  top: 40%;
  left: 45%;
  animation-delay: -7s;
}

@keyframes aiFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.08); }
}

.ai-banner__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 30% 50%, black 10%, transparent 70%);
}

.ai-banner__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 52px;
}

.ai-banner__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #c4b5fd;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 20px;
}

.ai-banner__pulse {
  width: 8px;
  height: 8px;
  background: #a78bfa;
  border-radius: 50%;
  box-shadow: 0 0 12px #a78bfa;
  animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.ai-banner__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.ai-banner__desc {
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

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

.ai-banner__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.ai-banner__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.25);
  color: #5eead4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-banner__check svg {
  width: 13px;
  height: 13px;
}

.ai-banner__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 320px;
}

.ai-banner__lottie-wrap {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.ai-banner__lottie-wrap .lottie-player {
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
}

.ai-banner__chat {
  position: absolute;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: chatFloat 5s ease-in-out infinite;
}

.ai-banner__chat--user {
  top: 8%;
  left: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-radius: 14px 14px 4px 14px;
  animation-delay: 0s;
}

.ai-banner__chat--ai {
  bottom: 22%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.9), rgba(8, 145, 178, 0.9));
  color: #fff;
  border-radius: 14px 14px 14px 4px;
  animation-delay: -2.5s;
}

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

.ai-banner__chat-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: aiPulse 1.5s ease-in-out infinite;
}

.ai-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}

.ai-chip {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
}

/* ---- Workflow ---- */
.workflow {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}

.workflow__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.workflow__step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  text-align: center;
  padding: 0 12px;
  position: relative;
}

.workflow__step-num {
  position: absolute;
  top: -8px;
  right: 50%;
  transform: translateX(50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.workflow__step-icon {
  width: 72px;
  height: 72px;
  margin: 20px auto 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.workflow__step:hover .workflow__step-icon {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.05);
}

.workflow__step-icon svg {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.workflow__step-icon--success svg {
  color: #10b981;
}

.workflow__step h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.workflow__step p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.workflow__connector {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin-top: 56px;
  opacity: 0.3;
  border-radius: 2px;
}

/* ---- Roles ---- */
.roles {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.roles__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(13, 148, 136, 0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  pointer-events: none;
}

.roles .container {
  position: relative;
  z-index: 1;
}

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

.role-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 32px 28px 28px;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
  text-align: right;
}

.role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

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

.role-card__accent {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.role-card--patient .role-card__accent {
  background: linear-gradient(90deg, #6366f1, #818cf8);
}

.role-card--patient::before {
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, transparent 40%);
}

.role-card--patient:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
}

.role-card--patient:hover::before {
  opacity: 1;
}

.role-card--doctor .role-card__accent {
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
}

.role-card--operator .role-card__accent {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.role-card--operator::before {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
}

.role-card--operator:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.12);
}

.role-card--operator:hover::before {
  opacity: 1;
}

.role-card--featured {
  background: linear-gradient(160deg, #0f766e 0%, var(--primary) 45%, var(--accent) 100%);
  color: #fff;
  border: none;
  box-shadow: 0 24px 64px rgba(13, 148, 136, 0.35);
}

.role-card--featured::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  opacity: 1;
}

.role-card--featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 72px rgba(13, 148, 136, 0.4);
}

.role-card--featured .role-card__accent {
  background: rgba(255, 255, 255, 0.5);
  height: 3px;
}

.role-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 5px 14px;
  background: #fff;
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 100px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  letter-spacing: 0.02em;
}

.role-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.role-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.role-card:hover .role-card__icon {
  transform: scale(1.06);
}

.role-card__icon svg {
  width: 28px;
  height: 28px;
}

.role-card__icon--patient {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.1));
  color: #6366f1;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.role-card__icon--doctor {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.role-card__icon--operator {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(251, 191, 36, 0.1));
  color: #d97706;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.role-card__label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.role-card--patient .role-card__label {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.role-card--doctor .role-card__label {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.role-card--operator .role-card__label {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}

.role-card__title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.35;
}

.role-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.role-card--featured .role-card__desc {
  color: rgba(255, 255, 255, 0.82);
}

.role-card__features {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-card--featured .role-card__features {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.role-card__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.role-card--featured .role-card__features li {
  color: rgba(255, 255, 255, 0.95);
}

.role-card__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.role-card__check svg {
  width: 12px;
  height: 12px;
}

.role-card--patient .role-card__check {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.role-card--doctor .role-card__check {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.role-card--operator .role-card__check {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

/* Operator Highlight */
.operator-highlight {
  margin-top: 56px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.2);
  box-shadow: var(--shadow-md);
}

.operator-highlight__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  background: var(--surface);
}

.operator-highlight__content {
  padding: 40px 36px;
  background: linear-gradient(160deg, #fffbeb 0%, #fef3c7 100%);
  border-left: 1px solid rgba(245, 158, 11, 0.15);
}

.operator-highlight__tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 14px;
}

.operator-highlight__content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--text);
}

.operator-highlight__content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.operator-highlight__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  padding: 1px;
}

.operator-highlight__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  padding: 24px 22px;
  transition: background var(--transition);
}

.operator-highlight__item:hover {
  background: #fffbeb;
}

.operator-highlight__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}

.operator-highlight__item:hover .operator-highlight__icon {
  transform: scale(1.08);
  background: rgba(245, 158, 11, 0.2);
}

.operator-highlight__icon svg {
  width: 22px;
  height: 22px;
}

.operator-highlight__item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.operator-highlight__item span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.widget-chip--operator {
  border-color: rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.06);
}

.widget-chip--operator:hover {
  border-color: #f59e0b;
  color: #b45309;
}

/* ---- Widgets ---- */
.widgets {
  padding: 100px 0;
  background: var(--surface-2);
}

.widgets__tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.widgets__tab {
  padding: 12px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.widgets__tab.active,
.widgets__tab:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

.widgets__panel {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
  animation: fadeIn 0.4s ease;
}

.widgets__panel.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.widget-chip {
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  cursor: default;
}

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

.widget-chip--doctor {
  border-color: rgba(13, 148, 136, 0.2);
  background: rgba(13, 148, 136, 0.05);
}

.widgets__visual {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.widgets__visual .lottie-player {
  max-height: 240px;
}

/* ---- Tech ---- */
.tech {
  padding: 100px 0;
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tech-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  transition: var(--transition);
  text-align: center;
}

.tech-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.tech-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.tech-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.tech-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- CTA ---- */
.cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 50%, #0e7490 100%);
}

.cta__orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -200px;
  left: -200px;
  filter: blur(60px);
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.cta__lottie {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 220px;
}

.cta__lottie .lottie-player {
  max-height: 200px;
  max-width: 280px;
  margin: 0 auto;
}

.cta__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.35;
}

.cta__content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.cta__channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: #fff;
  transition: var(--transition);
}

.contact-channel:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(-4px);
}

.contact-channel__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel__icon svg {
  width: 24px;
  height: 24px;
}

.contact-channel__icon--phone {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.contact-channel__icon--whatsapp {
  background: rgba(37, 211, 102, 0.2);
  color: #4ade80;
}

.contact-channel__icon--instagram {
  background: rgba(236, 72, 153, 0.2);
  color: #f9a8d4;
}

.contact-channel__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-channel__info strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-channel__info span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.cta__dev {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta__dev a {
  color: #fff;
  text-decoration: underline;
}

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  color: #94a3b8;
  padding: 48px 0 24px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer__brand .nav__logo-text {
  color: #fff;
  font-size: 1.2rem;
  display: block;
  margin-bottom: 12px;
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--primary-light);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #94a3b8;
  transition: var(--transition);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__social a:hover {
  background: rgba(13, 148, 136, 0.2);
  border-color: var(--primary);
  color: var(--primary-light);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Scroll Animations ---- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

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

[data-animate="scale-x"] {
  transform: scaleX(0);
  transform-origin: right center;
}

[data-animate].visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    margin: 0 auto;
  }

  .hero__visual {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .hero__lottie-wrap {
    max-height: 360px;
  }

  .hero__float-card--1 { left: 8px; }
  .hero__float-card--2 { right: 8px; }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .feature-card--large {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .feature-card--reverse .feature-card__content,
  .feature-card--reverse .feature-card__lottie {
    order: unset;
  }

  .roles__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .role-card--featured:hover {
    transform: translateY(-8px);
  }

  .operator-highlight__inner {
    grid-template-columns: 1fr;
  }

  .operator-highlight__content {
    border-left: none;
    border-bottom: 1px solid rgba(245, 158, 11, 0.15);
    text-align: center;
  }

  .cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta__actions {
    justify-content: center;
  }

  .workflow__connector {
    display: none;
  }

  .workflow__steps {
    gap: 24px;
  }

  .tech__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card__lottie {
    max-height: 240px;
  }

  .feature-card__lottie .lottie-player {
    max-height: 220px;
  }

  .ai-banner__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 36px;
    text-align: center;
  }

  .ai-banner__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .ai-banner__list {
    align-items: flex-start;
    max-width: 360px;
    margin: 0 auto;
    text-align: right;
  }

  .ai-banner__visual {
    min-height: 280px;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .features,
  .workflow,
  .roles,
  .widgets,
  .tech,
  .cta {
    padding: 64px 0;
  }

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

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav__links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding-bottom: 48px;
  }

  .hero__scroll {
    display: none;
  }

  .hero__visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    padding: 0 4px;
  }

  .hero__lottie-wrap {
    max-height: 260px;
    padding: 12px;
    aspect-ratio: 16 / 11;
  }

  .hero__float-card {
    position: static;
    animation: none;
    width: 100%;
    max-width: 100%;
  }

  .hero__float-card--1,
  .hero__float-card--2 {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .hero__stat-divider {
    width: 60px;
    height: 1px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .feature-card__lottie {
    max-height: 200px;
    margin-top: 8px;
  }

  .feature-card__lottie .lottie-player {
    max-height: 180px;
    max-width: 100%;
  }

  .feature-card__lottie--sm {
    max-height: 120px;
  }

  .feature-card__lottie--sm .lottie-player {
    max-height: 110px;
    max-width: 140px;
  }

  .ai-banner {
    margin-top: 24px;
  }

  .ai-banner__inner {
    padding: 32px 22px;
    gap: 28px;
  }

  .ai-banner__visual {
    min-height: 240px;
  }

  .ai-banner__lottie-wrap {
    max-width: 200px;
  }

  .ai-banner__chat {
    font-size: 0.72rem;
    max-width: 180px;
    padding: 8px 12px;
  }

  .ai-banner__chat--user {
    top: 4%;
    left: -4px;
  }

  .ai-banner__chat--ai {
    bottom: 18%;
    right: -4px;
  }

  .widgets__tabs {
    flex-wrap: wrap;
    gap: 8px;
  }

  .widgets__tab {
    padding: 10px 16px;
    font-size: 0.82rem;
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
  }

  .widgets__visual {
    padding: 24px 16px;
  }

  .widgets__visual .lottie-player {
    max-height: 160px;
  }

  .cta__lottie {
    max-height: 160px;
    order: -1;
  }

  .cta__lottie .lottie-player {
    max-height: 140px;
    max-width: 200px;
  }

  .trust-bar__inner {
    gap: 20px;
  }

  .operator-highlight__grid {
    grid-template-columns: 1fr;
  }

  .operator-highlight__content {
    padding: 28px 22px;
  }

  .operator-highlight__item {
    padding: 20px 18px;
  }

  .role-card {
    padding: 28px 22px 24px;
  }

  .role-card__badge {
    top: 16px;
    left: 16px;
  }

  .tech__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }

  .cta__inner {
    padding: 32px 24px;
  }

  .trust-bar__item {
    flex: 1 1 calc(50% - 12px);
    justify-content: center;
    text-align: center;
    font-size: 0.82rem;
  }

  .workflow__step {
    min-width: 140px;
    max-width: none;
    flex: 1 1 calc(50% - 12px);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }

  .hero__lottie-wrap {
    max-height: 220px;
  }

  .feature-card__lottie .lottie-player {
    max-height: 150px;
  }

  .feature-card__lottie--sm .lottie-player {
    max-height: 90px;
    max-width: 120px;
  }

  .widgets__tab {
    flex: 1 1 100%;
  }

  .trust-bar__item {
    flex: 1 1 100%;
  }

  .workflow__step {
    flex: 1 1 100%;
  }

  .ai-banner__chat {
    display: none;
  }

  .ai-banner__visual {
    min-height: 200px;
  }

  .ai-banner__lottie-wrap {
    max-width: 160px;
  }
}
