/* ═══════════════════════════════════════════════════════════
   MedConverse AI — Shared Design System
   Fonts: Bricolage Grotesque (display) + Outfit (body)
   ═══════════════════════════════════════════════════════════ */

:root {
  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body: 'Outfit', system-ui, sans-serif;

  --blue: #2668ff;
  --blue-deep: #1a4fd4;
  --blue-glow: #5b8fff;
  --blue-pale: #eef4ff;
  --navy: #0a1628;
  --navy-soft: #162036;

  --text: #111827;
  --text-secondary: #4b5e7e;
  --muted: #8293ab;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --line: #e2eaf6;
  --line-soft: #f0f4fb;

  --mint: #10b981;
  --mint-pale: #ecfdf5;
  --violet: #7c5cfc;
  --violet-pale: #f3f0ff;
  --amber: #f59e0b;
  --amber-pale: #fffbeb;
  --rose: #f43f5e;
  --rose-pale: #fff1f2;
  --coral: #ff6b35;

  --shadow-xs: 0 1px 2px rgba(11,20,38,0.04);
  --shadow-sm: 0 2px 8px rgba(11,20,38,0.06);
  --shadow-md: 0 8px 24px rgba(11,20,38,0.07);
  --shadow-lg: 0 20px 48px rgba(11,20,38,0.09);
  --shadow-xl: 0 32px 64px rgba(11,20,38,0.11);
  --shadow-blue: 0 12px 32px rgba(38,104,255,0.22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #f8faff;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.018'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* ── Site Shell ── */
.site-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  border: none;
  border-radius: 0;
  background:
    radial-gradient(circle at 15% 0%, rgba(38,104,255,0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(124,92,252,0.035) 0%, transparent 35%),
    radial-gradient(circle at 50% 80%, rgba(16,185,129,0.025) 0%, transparent 35%),
    linear-gradient(180deg, #f8faff 0%, #f0f5ff 25%, #f5f8ff 50%, #fafcff 75%, #ffffff 100%);
  position: relative;
}

/* ── Site Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 36px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(38,104,255,0.06);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.site-brand strong { color: var(--blue); }

.brand-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-glow) 100%);
  box-shadow: 0 4px 12px rgba(38,104,255,0.3);
}

.brand-heart::before,
.brand-heart::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 7px;
  height: 10px;
  background: #fff;
  border-radius: 7px 7px 0 0;
}
.brand-heart::before { left: 8px; transform: rotate(-45deg); transform-origin: 0 100%; }
.brand-heart::after { left: 13px; transform: rotate(45deg); transform-origin: 100% 100%; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-out-expo);
}

.site-nav a:hover {
  color: var(--blue);
  background: rgba(38,104,255,0.04);
}

.site-nav a.active {
  color: var(--blue);
  font-weight: 600;
  background: rgba(38,104,255,0.07);
}

.site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  box-shadow: 0 16px 40px rgba(38,104,255,0.3);
}

.btn-ghost {
  color: var(--text);
  background: var(--surface-solid);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.btn-light {
  color: var(--blue);
  background: var(--surface-solid);
  border-color: rgba(38,104,255,0.2);
}
.btn-light:hover {
  background: var(--blue-pale);
  border-color: var(--blue);
}

.btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.6);
}

.btn-lg {
  min-height: 48px;
  padding: 0 28px;
  font-size: 15px;
  border-radius: var(--radius-lg);
}

/* ── Eyebrow Badge ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(38,104,255,0.15);
  background: rgba(38,104,255,0.04);
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s ease infinite;
}

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

/* ── Page Content ── */
.page-content {
  padding: 32px 40px 40px;
}

/* ── Glass Card ── */
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

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

/* ── Section Heading ── */
.section-label {
  text-align: center;
  margin-bottom: 40px;
}

.section-label h2 {
  margin: 0 0 10px;
  font-size: 2.4rem;
  letter-spacing: -0.04em;
}

.section-label p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
}

/* ── CTA Banner ── */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding: 36px 40px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 10% 40%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 90% 60%, rgba(91,143,255,0.2) 0%, transparent 40%),
    linear-gradient(135deg, #0f3dcf 0%, #2668ff 50%, #3b7dff 100%);
  box-shadow: 0 20px 48px rgba(15,61,207,0.25);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.cta-banner::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
}

.cta-content {
  position: relative;
  z-index: 1;
  flex: 1;
}

.cta-content h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.cta-content p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  flex-shrink: 0;
}

.cta-buttons {
  display: flex;
  gap: 12px;
}

.cta-points {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.cta-points span::before {
  content: "\2713";
  margin-right: 6px;
  color: rgba(255,255,255,0.6);
}

/* ── Newsletter Banner ── */
.newsletter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 48px;
  padding: 32px 36px;
  border-radius: var(--radius-xl);
  color: #fff;
  background:
    radial-gradient(circle at 80% 30%, rgba(91,143,255,0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0f3dcf 0%, #2668ff 60%, #4080ff 100%);
  box-shadow: 0 16px 40px rgba(15,61,207,0.2);
}

.newsletter-info {
  display: flex;
  align-items: center;
  gap: 18px;
}

.newsletter-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.12);
  position: relative;
  flex-shrink: 0;
}

.newsletter-icon::before {
  content: "\2709";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
}

.newsletter-info h2 {
  margin: 0 0 4px;
  font-size: 1.5rem;
  color: #fff;
}

.newsletter-info p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 15px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  width: min(480px, 100%);
}

.newsletter-form input {
  flex: 1;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { border-color: rgba(255,255,255,0.5); }

.newsletter-form button {
  min-width: 120px;
  min-height: 48px;
  border: 0;
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ── Footer ── */
.site-footer {
  margin-top: 48px;
  padding: 40px 40px 0;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

.footer-brand-text {
  margin: 16px 0;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-socials span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s;
}

.footer-socials span:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}

.footer-links {
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.footer-links div {
  display: grid;
  gap: 10px;
}

.footer-links strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom div {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ── Form Elements ── */
.search-input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow-xs);
  transition: all 0.25s;
}

.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(38,104,255,0.1);
}

.search-input::placeholder { color: var(--muted); }

/* ── Icon Boxes ── */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
}

.icon-box.blue { background: rgba(38,104,255,0.1); color: var(--blue); }
.icon-box.mint { background: rgba(16,185,129,0.1); color: var(--mint); }
.icon-box.violet { background: rgba(124,92,252,0.12); color: var(--violet); }
.icon-box.amber { background: rgba(245,158,11,0.12); color: var(--amber); }
.icon-box.rose { background: rgba(244,63,94,0.1); color: var(--rose); }

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo);
}

.stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.stagger.is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
.stagger.is-visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.stagger.is-visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

/* ── Responsive ── */
@media (max-width: 1280px) {
  .site-shell { margin: 0; }
  .page-content { padding: 24px 28px 32px; }
  .cta-banner { flex-direction: column; align-items: stretch; padding: 28px 28px; }
  .cta-points { justify-content: flex-start; flex-wrap: wrap; }
  .newsletter-banner { flex-direction: column; align-items: stretch; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 20px;
  }
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
  }
  .site-nav a { padding: 6px 10px; font-size: 13px; }
  .page-content { padding: 20px 16px 28px; }
  .cta-buttons { flex-direction: column; }
  .cta-points { flex-direction: column; gap: 8px; }
  .btn { width: 100%; }
  .newsletter-form { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
