/* JODM — medical / digital medicine theme (landing) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

.home-page {
  --med-teal: #0d9488;
  --med-teal-deep: #0f766e;
  --med-teal-dark: #115e59;
  --med-mint: #ecfdf5;
  --med-cyan: #06b6d4;
  --med-glow: rgba(45, 212, 191, 0.45);
  --landing-pad: clamp(20px, 4vw, 48px);
  --landing-teal-left: #14b8a6;
  --landing-teal-mid: #0d9488;
  --landing-teal-deep: #0f4c47;
  --landing-navy: #042f2e;
  font-family: 'Outfit', 'Montserrat', system-ui, sans-serif;
  background: var(--med-mint);
}

/* ---- Header: clinical glass bar ---- */
.home-page .landing-header {
  background: linear-gradient(
    105deg,
    rgba(15, 118, 110, 0.97) 0%,
    rgba(13, 148, 136, 0.95) 38%,
    rgba(17, 94, 89, 0.98) 72%,
    rgba(4, 47, 46, 0.99) 100%
  );
  border-bottom: 1px solid rgba(167, 243, 208, 0.22);
  box-shadow:
    0 4px 24px rgba(15, 118, 110, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.home-page .landing-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 50%, rgba(94, 234, 212, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 88% 0%, rgba(6, 182, 212, 0.12) 0%, transparent 40%);
  pointer-events: none;
}

.home-page .landing-nav-inner {
  position: relative;
  z-index: 1;
}

.home-page .landing-brand-sm {
  color: rgba(204, 251, 241, 0.85);
  letter-spacing: 0.14em;
}

.med-hero-visual--cover,
.med-hero-cover-img {
  display: none;
}

.home-page .landing-brand img {
  height: 56px !important;
  width: auto !important;
  border-radius: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2)) !important;
}

/* Pill menu cluster */
.home-page .landing-menu {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(167, 243, 208, 0.2);
  border-radius: 999px;
  padding: 5px 8px;
  margin-left: clamp(16px, 3vw, 40px);
  gap: 2px;
  backdrop-filter: blur(8px);
}

.home-page .landing-menu > a,
.home-page .landing-dropdown > button {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  color: rgba(240, 253, 250, 0.95);
}

.home-page .landing-menu > a:hover,
.home-page .landing-dropdown > button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.home-page .landing-dropdown-panel {
  border: 1px solid #ccfbf1;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 118, 110, 0.18);
  padding: 10px;
}

.home-page .landing-dropdown-panel a {
  color: #134e4a;
  font-family: 'Outfit', sans-serif;
}

.home-page .landing-dropdown-panel a:hover {
  background: #ecfdf5;
  color: #0f766e;
}

.home-page .landing-dropdown-panel .muted {
  color: #5eead4;
}

.home-page .lang-switch__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-color: rgba(167, 243, 208, 0.5);
}

.home-page .landing-link-login {
  color: #ccfbf1;
  border: 1px solid rgba(167, 243, 208, 0.35);
  border-radius: 999px;
  padding: 9px 18px;
  transition: background 0.2s, border-color 0.2s;
}

.home-page .landing-link-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(167, 243, 208, 0.6);
  text-decoration: none;
}

/* ---- Hero: medical gradient + ECG grid ---- */
.home-page .landing-hero {
  background: linear-gradient(
    125deg,
    #5eead4 0%,
    var(--landing-teal-left) 12%,
    var(--landing-teal-mid) 42%,
    var(--landing-teal-deep) 78%,
    var(--landing-navy) 100%
  );
  min-height: min(560px, 88vh);
}

.home-page .landing-hero::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, rgba(236,253,245,0.95) 100%);
  height: 3px;
  box-shadow: 0 0 30px rgba(94, 234, 212, 0.5);
}

.home-page .landing-hero-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, black 20%, transparent 75%);
}

.home-page .landing-hero-glow {
  width: 70%;
  left: -5%;
  background:
    radial-gradient(ellipse at 25% 45%, rgba(94, 234, 212, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 60%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
}

.home-page .landing-hero-copy h1 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #ccfbf1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.15));
}

.home-page .landing-hero-copy .sub {
  color: rgba(236, 253, 245, 0.92);
}

.home-page .landing-hero-ghost {
  border-color: rgba(167, 243, 208, 0.55);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.home-page .landing-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #5eead4;
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.25);
}

@keyframes btn-pulse-med {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(45, 212, 191, 0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 28px rgba(45, 212, 191, 0.35);
  }
}

.home-page .btn-pulse-ad--soft {
  animation-name: btn-pulse-med;
}

.home-page .landing-cta-orange,
.home-page .btn-primary {
  background: linear-gradient(135deg, #2dd4bf 0%, #0d9488 50%, #0f766e 100%) !important;
  border: none !important;
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4) !important;
  color: #fff !important;
}

.home-page .landing-cta-orange:hover,
.home-page .btn-primary:hover {
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.5) !important;
}

/* ---- Medical hero visual ---- */
.med-hero-visual {
  position: relative;
  width: min(440px, 92vw);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.med-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.med-hero-orb--1 {
  width: 200px;
  height: 200px;
  background: rgba(94, 234, 212, 0.35);
  top: 10%;
  right: 5%;
  animation: med-float 6s ease-in-out infinite;
}

.med-hero-orb--2 {
  width: 140px;
  height: 140px;
  background: rgba(6, 182, 212, 0.25);
  bottom: 15%;
  left: 0;
  animation: med-float 7s ease-in-out infinite reverse;
}

@keyframes med-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -16px) scale(1.08); }
}

.med-hero-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  padding: 28px 32px 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(167, 243, 208, 0.35);
  backdrop-filter: blur(16px);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.med-hero-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #99f6e4;
  margin-bottom: 16px;
}

.med-hero-card__cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2dd4bf, #0d9488);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.med-ecg-wrap {
  width: 100%;
  height: 100px;
  margin: 8px 0 20px;
  overflow: visible;
}

.med-ecg-line {
  fill: none;
  stroke: url(#medEcgGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: med-ecg-draw 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.8));
}

@keyframes med-ecg-draw {
  0% { stroke-dashoffset: 600; opacity: 0.4; }
  40% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -600; opacity: 0.4; }
}

.med-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.med-hero-stat {
  text-align: center;
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(4, 47, 46, 0.35);
  border: 1px solid rgba(167, 243, 208, 0.15);
}

.med-hero-stat__icon {
  font-size: 20px;
  margin-bottom: 4px;
  line-height: 1;
}

.med-hero-stat__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(204, 251, 241, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.med-pulse-ring {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(94, 234, 212, 0.25);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: med-pulse-ring 3s ease-out infinite;
  pointer-events: none;
}

.med-pulse-ring--2 {
  animation-delay: 1.5s;
}

@keyframes med-pulse-ring {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0; }
}

/* Professional hero panel — digital health UI */
.med-hero-pro {
  position: relative;
  z-index: 2;
  width: min(440px, 92vw);
}

.med-hero-pro__panel {
  padding: 22px 24px 20px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(4, 47, 46, 0.72) 0%, rgba(15, 76, 71, 0.55) 100%);
  border: 1px solid rgba(167, 243, 208, 0.22);
  backdrop-filter: blur(20px);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.med-hero-pro__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(204, 251, 241, 0.75);
}

.med-hero-pro__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.med-hero-pro__status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.8);
  animation: med-status-pulse 2.8s ease-in-out infinite;
}

@keyframes med-status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

.med-hero-pro__tag {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: #99f6e4;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.med-hero-pro__viz {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 4px;
}

.med-hero-pro__cloud circle {
  animation: med-cloud-twinkle 4s ease-in-out infinite;
}

.med-hero-pro__cloud circle:nth-child(3n) { animation-delay: 0.6s; }
.med-hero-pro__cloud circle:nth-child(5n) { animation-delay: 1.2s; }
.med-hero-pro__cloud circle:nth-child(7n) { animation-delay: 1.8s; }

@keyframes med-cloud-twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}

.med-hero-pro__silhouette {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: med-silhouette-draw 8s ease-in-out infinite;
}

@keyframes med-silhouette-draw {
  0% { stroke-dashoffset: 420; opacity: 0.4; }
  40% { stroke-dashoffset: 0; opacity: 0.9; }
  100% { stroke-dashoffset: 0; opacity: 0.65; }
}

.med-hero-pro__chest {
  animation: med-chest-breathe 3.2s ease-in-out infinite;
}

.med-hero-pro__heart-core {
  transform-box: fill-box;
  transform-origin: center;
  animation: med-heart-ring 3.2s ease-in-out infinite;
}

@keyframes med-chest-breathe {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.08); }
}

@keyframes med-heart-ring {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
}

.med-hero-pro__scanline {
  animation: med-viz-scan 5s linear infinite;
}

@keyframes med-viz-scan {
  0% { transform: translateY(-30px); opacity: 0; }
  10% { opacity: 0.5; }
  90% { opacity: 0.5; }
  100% { transform: translateY(200px); opacity: 0; }
}

.med-hero-pro__dna-bg {
  animation: med-dna-drift 10s ease-in-out infinite;
}

@keyframes med-dna-drift {
  0%, 100% { opacity: 0.12; transform: translateX(0); }
  50% { opacity: 0.22; transform: translateX(4px); }
}

.med-hero-pro__stream {
  stroke-dasharray: 8 12;
  animation: med-stream-flow 6s linear infinite;
}

.med-hero-pro__stream--b {
  animation-duration: 7s;
  animation-direction: reverse;
}

@keyframes med-stream-flow {
  to { stroke-dashoffset: -40; }
}

.med-hero-pro__vitals {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  color: rgba(167, 243, 208, 0.65);
  letter-spacing: 0.06em;
}

.med-hero-pro__vitals em {
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  color: #ccfbf1;
  margin-right: 3px;
}

.med-hero-pro__ecg-wrap {
  margin: 8px 0 16px;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(167, 243, 208, 0.15);
  border-bottom: 1px solid rgba(167, 243, 208, 0.1);
  overflow: hidden;
}

.med-hero-pro__scan {
  animation: med-ecg-scan 4s linear infinite;
}

@keyframes med-ecg-scan {
  0% { width: 0; }
  100% { width: 420px; }
}

.med-hero-pro__ecg {
  filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.35));
}

.med-hero-pro__metrics {
  display: none;
}

/* Legacy hero scene — hidden */
.med-hero-scene,
.med-hero-orb,
.med-pulse-ring {
  display: none !important;
}

/* ---- Main content area ---- */
.home-page .main-content {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
}

.home-page .main-content::after {
  background: linear-gradient(90deg, transparent, #99f6e4, transparent);
  height: 2px;
  box-shadow: none;
}

.home-page .jodm-journal-card {
  border: 1px solid #ccfbf1;
  box-shadow:
    0 4px 6px rgba(15, 118, 110, 0.04),
    0 24px 48px rgba(15, 118, 110, 0.1);
}

.home-page .jodm-journal-card__cover {
  background: linear-gradient(160deg, #0f766e 0%, #134e4a 100%);
}

.home-page .jodm-journal-card__head::before {
  background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 100%);
}

.home-page .jodm-journal-card__title {
  color: #0f766e;
}

.home-page .jodm-journal-card__price-value {
  color: #0d9488;
}

.home-page .jodm-journal-card__price-value--free {
  color: #059669;
}

.home-page .section-title {
  color: #0f766e;
}

.home-page .site-footer {
  background: linear-gradient(180deg, #042f2e 0%, #0f4c47 50%, #115e59 100%) !important;
}

@media (prefers-reduced-motion: reduce) {
  .med-ecg-line,
  .med-hero-pro__scan,
  .med-hero-pro__status i,
  .med-hero-pro__heart-core,
  .med-hero-pro__chest,
  .med-hero-pro__scanline,
  .med-hero-pro__silhouette,
  .med-hero-pro__cloud circle,
  .med-hero-pro__stream,
  .med-hero-pro__dna-bg {
    animation: none !important;
  }
  .med-hero-pro__scan { width: 420px; }
  .med-hero-pro__silhouette { stroke-dashoffset: 0; }
  .med-ecg-line { stroke-dashoffset: 0; opacity: 1; }
}

@media (max-width: 960px) {
  .home-page .landing-menu {
    border-radius: 16px;
    margin-left: 0;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .med-hero-visual {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 280px;
    margin: 0 auto;
  }
}
