/* ═══════════════════════════════════════════════
   Performance360 — Redesigned Design System
   Clean, professional sports science aesthetic
   Inspired by neillivemore.com & athletelab.uk
   ═══════════════════════════════════════════════ */

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

/* ── Custom Properties ───────────────────────── */
:root {
  /* Colors — Clean, professional palette */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f8fafb;
  --bg-tertiary:   #f1f5f9;
  --bg-dark:       #0c1220;
  --bg-dark-card:  #141d2f;
  --bg-card:       #ffffff;
  --border-light:  #e2e8f0;
  --border-subtle: #f0f0f0;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-light:     #f1f5f9;

  --accent-teal:    #0d9488;
  --accent-teal-light: #14b8a6;
  --accent-teal-bg: rgba(13, 148, 136, 0.08);
  --accent-navy:    #1e293b;
  --accent-blue:    #3b82f6;
  --accent-green:   #10b981;
  --accent-rose:    #f43f5e;
  --accent-amber:   #f59e0b;

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1180px;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.1);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ── 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-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

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

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

/* ── Container ───────────────────────────────── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ──────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-teal);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 16px;
  color: var(--text-primary);
  /* Override old gradient text */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 60px;
  line-height: 1.8;
}

.gradient-text {
  color: var(--accent-teal);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

/* ── Navigation — Premium Redesign ───────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 10px 0;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ── Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.nav-logo:hover img {
  transform: scale(1.08) rotate(-4deg);
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-light);
  letter-spacing: -0.02em;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  white-space: nowrap;
}

.nav-logo-accent {
  color: var(--accent-teal-light);
  font-weight: 800;
}

.navbar.scrolled .nav-logo-text {
  color: var(--text-primary);
}

.navbar.scrolled .nav-logo-accent {
  color: var(--accent-teal);
}

/* ── Center Nav Links ── */
.nav-center {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar.scrolled .nav-center {
  background: var(--bg-secondary);
  border-color: var(--border-light);
  backdrop-filter: none;
}

.nav-center a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.25s ease;
  white-space: nowrap;
  position: relative;
}

.nav-center a::after {
  display: none !important;
}

.nav-center a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-center a.active {
  color: #fff;
  background: rgba(13, 148, 136, 0.25);
}

.navbar.scrolled .nav-center a {
  color: var(--text-secondary);
}

.navbar.scrolled .nav-center a:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.navbar.scrolled .nav-center a.active {
  color: var(--accent-teal);
  background: rgba(13, 148, 136, 0.08);
}

/* ── Action Buttons (Right) ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  letter-spacing: 0.01em;
}

/* Sign In — Ghost button */
.nav-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}

.nav-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.navbar.scrolled .nav-btn--ghost {
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.navbar.scrolled .nav-btn--ghost:hover {
  color: var(--accent-teal);
  border-color: var(--accent-teal);
  background: rgba(13, 148, 136, 0.04);
}

/* Try Demo — Amber gradient, eye-catching */
.nav-btn--demo {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-btn--demo:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-btn-icon {
  font-size: 0.6rem;
  opacity: 0.9;
}

/* Join Alpha — Teal primary */
.nav-btn--primary {
  background: var(--accent-teal);
  color: #fff;
  border: none;
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-btn--primary:hover {
  background: var(--accent-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Keep old .nav-cta for any other references (backwards compat) */
.nav-cta {
  padding: 10px 24px !important;
  background: var(--accent-teal) !important;
  border-radius: var(--radius-full) !important;
  color: #fff !important;
  font-weight: 600 !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
  border: none !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
  background: var(--accent-teal-light) !important;
}

/* Hero demo button */
.btn-demo {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3);
}

.btn-demo:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.4);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: var(--transition-base);
  border-radius: 2px;
}

.navbar.scrolled .nav-toggle span {
  background: var(--text-primary);
}

.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 Section ────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
  background: var(--bg-dark);
  color: var(--text-light);
}

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

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
}

.hero-bg-orb--blue {
  width: 500px;
  height: 500px;
  background: var(--accent-teal);
  top: -15%;
  left: -8%;
}

.hero-bg-orb--cyan {
  width: 350px;
  height: 350px;
  background: #0ea5e9;
  bottom: 5%;
  right: -5%;
  opacity: 0.08;
}

.hero-bg-orb--indigo {
  width: 250px;
  height: 250px;
  background: #6366f1;
  top: 40%;
  right: 25%;
  opacity: 0.06;
}

.hero-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: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

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

.hero-text {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-teal-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease both;
}

.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: #fff;
  animation: fadeInUp 0.8s ease 0.15s both;
}

.hero h1 .gradient-text {
  color: var(--accent-teal-light);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease 0.3s both;
}

.hero-logo-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
}

.hero-logo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: logoFloat 8s ease-in-out infinite;
}

.hero-logo-ring {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px solid rgba(20, 184, 166, 0.12);
  animation: ringPulse 5s ease-in-out infinite;
}

.hero-logo-ring:nth-child(2) {
  inset: -45px;
  border-color: rgba(20, 184, 166, 0.06);
  animation-delay: -2s;
}

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

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.02); }
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  position: relative;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-teal);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35);
  background: var(--accent-teal-light);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-cta {
  background: var(--accent-teal);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35);
  background: var(--accent-teal-light);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* ── Section Base ────────────────────────────── */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-divider {
  height: 1px;
  background: var(--border-light);
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ── About Section ───────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.85;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.stat-card {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition-base);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-teal);
  /* Override old gradient */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

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

.platform-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: var(--transition-base);
}

.platform-card:hover {
  border-color: var(--accent-teal);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.platform-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.platform-card h4 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.platform-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── App Showcase / Screenshots ──────────────── */
.showcase-section {
  background: var(--bg-secondary);
}

.showcase-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.showcase-tab {
  padding: 12px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
}

.showcase-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.showcase-tab.active {
  background: var(--accent-teal);
  border-color: var(--accent-teal);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.25);
}

.showcase-panel {
  display: none;
}

.showcase-panel.active {
  display: block;
}

/* Web App Gallery */
.showcase-web-item {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: var(--transition-base);
}

.showcase-web-item:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

/* Browser mockup bar */
.showcase-browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-light);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-dot:nth-child(1) { background: #f43f5e; }
.browser-dot:nth-child(2) { background: #f59e0b; }
.browser-dot:nth-child(3) { background: #10b981; }

.browser-url {
  flex: 1;
  margin-left: 12px;
  padding: 6px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.showcase-web-item img {
  width: 100%;
  display: block;
}

.showcase-web-label {
  padding: 16px 20px;
  background: var(--bg-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-web-label span {
  color: var(--accent-teal);
}

/* Mobile & Tablet Gallery — horizontal scroll */
.showcase-mobile-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 0 40px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(13, 148, 136, 0.3) transparent;
}

.showcase-mobile-scroll::-webkit-scrollbar {
  height: 6px;
}

.showcase-mobile-scroll::-webkit-scrollbar-track {
  background: var(--border-subtle);
  border-radius: 3px;
}

.showcase-mobile-scroll::-webkit-scrollbar-thumb {
  background: rgba(13, 148, 136, 0.3);
  border-radius: 3px;
}

.showcase-device-frame {
  flex-shrink: 0;
  scroll-snap-align: center;
  transition: var(--transition-base);
}

.showcase-device-frame:hover {
  transform: translateY(-8px);
}

/* Phone frame */
.showcase-phone-frame {
  width: 220px;
  padding: 10px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 28px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.showcase-phone-frame .device-notch {
  width: 80px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  margin: 4px auto 8px;
}

.showcase-phone-frame img {
  width: 100%;
  border-radius: 18px;
  display: block;
}

/* Tab 7" frame */
.showcase-tab7-frame {
  width: 320px;
  padding: 12px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.showcase-tab7-frame img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Tab 10" frame */
.showcase-tab10-frame {
  width: 440px;
  padding: 14px;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.showcase-tab10-frame img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Web screenshots — 2-col grid */
.showcase-web-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.showcase-web-grid .showcase-web-item:first-child {
  grid-column: 1 / -1;
}

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

  .showcase-phone-frame {
    width: 180px;
  }

  .showcase-tab7-frame {
    width: 260px;
  }

  .showcase-tab10-frame {
    width: 340px;
  }
}

@media (max-width: 480px) {
  .showcase-phone-frame {
    width: 160px;
  }

  .showcase-tab7-frame {
    width: 220px;
  }

  .showcase-tab10-frame {
    width: 280px;
  }
}

/* ── Lightbox Modal ─────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  cursor: default;
  animation: lightboxIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lightbox-img {
  max-width: 92vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
  left: -64px;
}

.lightbox-next {
  right: -64px;
}

.lightbox-counter {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: -44px; right: 4px; }
  .lightbox-nav { width: 40px; height: 40px; }
}

/* ── Features Section ────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-teal);
  opacity: 0;
  transition: var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(13, 148, 136, 0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: var(--accent-teal-bg);
  border: 1px solid rgba(13, 148, 136, 0.12);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ── Alpha Testing Section ───────────────────── */
.alpha-section {
  background: var(--bg-dark);
  color: var(--text-light);
}

.alpha-section .section-label {
  color: var(--accent-teal-light);
}

.alpha-section .section-title {
  color: #fff;
}

.alpha-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.alpha-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.alpha-card {
  padding: 48px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.alpha-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-teal);
}

.alpha-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
  text-align: center;
}

.alpha-step {
  padding: 20px;
}

.alpha-step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 16px;
}

.alpha-step h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: #fff;
}

.alpha-step p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.alpha-form {
  display: flex;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
}

.alpha-form input {
  flex: 1;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-base);
}

.alpha-form input:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.alpha-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.alpha-form-message {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 24px;
}

.alpha-form-message.success {
  color: var(--accent-green);
}

.alpha-form-message.error {
  color: var(--accent-rose);
}

/* ── Pricing Section ─────────────────────────── */
#pricing {
  background: var(--bg-secondary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.pricing-card.featured {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 1px var(--accent-teal);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-teal);
}

/* Secondary btn inside pricing needs dark text for light bg */
.pricing-card .btn-secondary {
  color: var(--text-primary);
  border-color: var(--border-light);
}

.pricing-card .btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
}

.pricing-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-teal);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 20px;
}

.pricing-plan {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.pricing-price .currency {
  font-size: 1.5rem;
  vertical-align: super;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-monthly {
  font-size: 0.85rem;
  color: var(--accent-teal);
  margin-bottom: 32px;
  font-weight: 600;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-check {
  color: var(--accent-teal);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Discount Ribbon ────────────────────────── */
.pricing-discount-ribbon {
  position: absolute;
  top: 16px;
  right: -36px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 6px 40px;
  transform: rotate(45deg);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.4);
  z-index: 2;
}

.pricing-original-price {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #ef4444;
  font-weight: 500;
  margin-bottom: 4px;
  opacity: 0.7;
}

.pricing-savings {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: linear-gradient(135deg, #059669, #10b981);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/* ── Skeleton Loading ───────────────────────── */
.skeleton-line {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  border-radius: 6px;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.pricing-skeleton {
  pointer-events: none;
}

/* ── Doctor Section ──────────────────────────── */
.doctor-hero {
  padding: 140px 0 80px;
  background: var(--bg-secondary);
}

.doctor-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.doctor-photo-wrapper {
  position: relative;
}

.doctor-photo {
  width: 280px;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 3px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.doctor-photo-bg {
  display: none;
}

.doctor-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(13,148,136,0.2), rgba(59,130,246,0.1));
  z-index: -1;
  filter: blur(16px);
  opacity: 0.5;
}

.doctor-info h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.doctor-title {
  font-size: 1.1rem;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 16px;
}

.doctor-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.credential-tag {
  padding: 6px 14px;
  background: var(--accent-teal-bg);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-teal);
}

.doctor-summary {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Doctor Highlights Bar */
.doctor-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.doctor-highlight-item {
  text-align: center;
  padding: 12px;
  position: relative;
}

.doctor-highlight-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light);
}

.doctor-highlight-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-teal);
  /* Override old gradient */
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  line-height: 1.2;
}

.doctor-highlight-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Doctor Expertise */
.doctor-expertise-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.doctor-expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.expertise-tag {
  padding: 10px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.expertise-tag:hover {
  background: var(--accent-teal-bg);
  border-color: var(--accent-teal);
  color: var(--accent-teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Responsive: Doctor Highlights */
@media (max-width: 768px) {
  .doctor-intro {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-photo-wrapper {
    display: flex;
    justify-content: center;
  }

  .doctor-credentials {
    justify-content: center;
  }

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

  .doctor-highlight-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .doctor-highlights {
    grid-template-columns: 1fr 1fr;
    padding: 24px;
    gap: 16px;
  }

  .doctor-highlight-number {
    font-size: 1.8rem;
  }
}

/* Doctor Page Sections */
.doctor-section {
  padding: 80px 0;
}

.doctor-section-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Education Timeline */
.education-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.education-item {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--accent-teal);
  transition: var(--transition-base);
}

.education-item:hover {
  border-left-color: var(--accent-teal-light);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.education-degree {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.education-school {
  color: var(--accent-teal);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.education-year {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.education-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Certifications */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.cert-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
  align-items: start;
  transition: var(--transition-base);
}

.cert-card:hover {
  border-color: rgba(13, 148, 136, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-teal-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cert-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.cert-issuer {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

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

/* Experience */
.experience-timeline {
  position: relative;
  padding-left: 32px;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-teal), var(--accent-blue), var(--accent-green));
  border-radius: 1px;
}

.experience-item {
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  position: relative;
  transition: var(--transition-base);
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -40px;
  top: 34px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-teal);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.experience-item:hover {
  border-color: rgba(13, 148, 136, 0.2);
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.experience-role {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.experience-org {
  color: var(--accent-teal);
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.experience-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.experience-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.experience-desc ul {
  margin-top: 8px;
}

.experience-desc li {
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.experience-desc li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-teal);
}

.experience-toggle {
  margin-top: 12px;
  padding: 6px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.experience-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.experience-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.experience-details.open {
  max-height: 1000px;
}

/* ── Contact Form ────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-teal-bg);
  border: 1px solid rgba(13, 148, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-detail-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-detail-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.contact-form-wrapper {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-message {
  margin-top: 16px;
  font-size: 0.9rem;
  min-height: 24px;
}

.form-message.success { color: var(--accent-green); }
.form-message.error { color: var(--accent-rose); }

/* ── Footer ──────────────────────────────────── */
.footer {
  padding: 80px 0 40px;
  background: var(--bg-dark);
  color: var(--text-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .nav-logo-text {
  color: #fff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-teal-light);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-base);
}

.footer-social a:hover {
  background: rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.3);
  color: var(--accent-teal-light);
  transform: translateY(-3px);
}

/* ── Animations ──────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.05s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.15s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.2s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.25s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.3s; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 0.35s; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 0.4s; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 0.45s; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 0.5s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Loading spinner ─────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

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

  .hero-text {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-logo-wrapper {
    width: 260px;
    height: 260px;
  }

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

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

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

  .doctor-credentials {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  .nav-center,
  .nav-actions {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 18, 32, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 999;
    border: none;
    border-radius: 0;
    padding: 20px;
  }

  .nav-center.open {
    display: flex;
    padding-bottom: 0;
  }

  .nav-actions.open {
    display: flex;
    top: auto;
    bottom: 0;
    height: auto;
    padding: 40px 20px;
    background: rgba(12, 18, 32, 0.99);
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav-center a {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 12px 24px;
  }

  .nav-center a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
  }

  .nav-btn {
    font-size: 1rem;
    padding: 14px 28px;
  }

  .nav-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo-wrapper {
    width: 200px;
    height: 200px;
  }

  .alpha-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .alpha-form {
    flex-direction: column;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .experience-timeline {
    padding-left: 24px;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .alpha-card {
    padding: 28px 20px;
  }
}

/* ── Utility ─────────────────────────────────── */
.text-center { text-align: center; }
.text-gradient {
  color: var(--accent-teal);
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
}
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
