.medid-hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding: 58px 0 120px;
  overflow: hidden;
}

.medid-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.medid-hero-title {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(3.5rem, 10vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

.medid-hero-title span {
  display: block;
  color: #cfe3ff;
}

.medid-hero-copy {
  max-width: 760px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.72;
}

.medid-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.medid-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.72;
  pointer-events: none;
}

.medid-orb-one {
  width: 520px;
  height: 520px;
  left: -180px;
  top: 110px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.34), transparent 68%);
}

.medid-orb-two {
  width: 620px;
  height: 620px;
  right: -240px;
  bottom: 0;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
}

.medid-stage {
  position: relative;
  width: min(940px, 100%);
  min-height: 580px;
  margin-top: 64px;
  display: grid;
  place-items: center;
  border-radius: 52px;
  background:
    radial-gradient(circle at 50% 20%, rgba(96, 165, 250, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(13, 25, 45, 0.74), rgba(5, 11, 22, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 50px 120px rgba(2, 6, 23, 0.46);
  overflow: hidden;
}

.medid-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 44px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.medid-product-float {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(9, 19, 35, 0.74);
  backdrop-filter: blur(20px);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.38);
}

.medid-card-preview {
  left: 8%;
  top: 18%;
  width: min(320px, 42vw);
  min-height: 190px;
  padding: 28px;
  border-radius: 28px;
  text-align: left;
  animation: medidFloat 5s ease-in-out infinite;
}

.medid-card-preview span,
.medid-scan-card span {
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.medid-card-preview strong,
.medid-tag-preview strong,
.medid-scan-card strong {
  display: block;
  margin-top: 44px;
  font-size: 1.25rem;
}

.medid-card-preview small,
.medid-scan-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.medid-tag-preview {
  right: 12%;
  bottom: 18%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 999px;
  animation: medidFloat 5.8s ease-in-out infinite reverse;
}

.medid-tag-preview strong {
  margin: 0;
  font-size: 1rem;
}

.tag-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #60a5fa;
  box-shadow: 0 0 0 10px rgba(96, 165, 250, 0.14);
}

.app-shot {
  position: relative;
  z-index: 1;
  width: 290px;
  height: auto;
  filter: drop-shadow(0 34px 56px rgba(2, 6, 23, 0.48));
}

.hero-phone {
  transform: rotate(-3deg);
  animation: phoneRise 1s ease-out both, medidPhoneBreathe 6s ease-in-out 1.2s infinite;
}

.medid-highlights,
.medid-products,
.medid-buy,
.medid-app,
.medid-cinematic,
.medid-how,
.medid-manual {
  padding: 118px 0;
}

.medid-manual-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.08), rgba(74, 144, 226, 0.02));
  border: 1px solid rgba(74, 144, 226, 0.18);
  border-radius: 28px;
  padding: 48px;
}

.medid-manual-copy h2 {
  margin: 12px 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.medid-manual-copy p {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.medid-manual-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.medid-manual-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.medid-manual-points li {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(74, 144, 226, 0.18);
  border-radius: 16px;
}

.medid-manual-points strong {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1f3b66;
}

.medid-manual-points span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 880px) {
  .medid-manual-layout {
    grid-template-columns: 1fr;
    padding: 32px;
    gap: 32px;
  }
}

.medid-section-heading,
.medid-products-heading {
  max-width: 850px;
  margin-bottom: 44px;
}

.medid-section-heading h2,
.medid-products-heading h2,
.medid-cinematic h2,
.medid-app-copy h2 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.medid-highlight-grid,
.medid-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.medid-highlight-card,
.medid-product-card,
.app-download {
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 17, 31, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.medid-highlight-card,
.medid-product-card {
  display: grid;
  gap: 22px;
  padding: 22px;
  border-radius: 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.medid-highlight-card:hover,
.medid-product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(96, 165, 250, 0.34);
}

.medid-highlight-card h3,
.medid-product-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.medid-highlight-card p,
.medid-product-card p,
.medid-app-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.placeholder-visual,
.product-placeholder {
  display: grid;
  place-items: center;
  min-height: 260px;
  border-radius: 26px;
  color: rgba(238, 244, 255, 0.72);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  overflow: hidden;
}

.placeholder-visual {
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(145deg, #0d1b32, #111827);
}

.placeholder-visual img {
  width: auto;
  height: min(100%, 340px);
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 24px 42px rgba(2, 6, 23, 0.36));
}

.placeholder-blue {
  background:
    radial-gradient(circle at 50% 40%, rgba(96, 165, 250, 0.38), transparent 28%),
    linear-gradient(145deg, #10284f, #071224);
}

.placeholder-silver {
  background:
    radial-gradient(circle at 50% 44%, rgba(226, 232, 240, 0.4), transparent 30%),
    linear-gradient(145deg, #243145, #071224);
}

.placeholder-dark {
  background:
    radial-gradient(circle at 50% 44%, rgba(15, 23, 42, 0.9), transparent 28%),
    linear-gradient(145deg, #162033, #030712);
}

.medid-cinematic-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.medid-cinematic-copy {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
}

.medid-cinematic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.medid-cinematic-panel {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  border-radius: 42px;
  background:
    radial-gradient(circle at center, rgba(37, 99, 235, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.72), rgba(3, 7, 18, 0.94));
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.medid-scan-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.34);
  box-shadow:
    0 0 0 44px rgba(96, 165, 250, 0.08),
    0 0 0 96px rgba(96, 165, 250, 0.04);
  animation: scanPulse 2.8s ease-in-out infinite;
}

.medid-scan-card {
  position: relative;
  z-index: 1;
  width: min(420px, calc(100% - 48px));
  min-height: 250px;
  padding: 34px;
  border-radius: 34px;
  background: rgba(8, 17, 31, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.42);
}

.reader-phone {
  z-index: 1;
  width: 360px;
  transform: rotate(-5deg);
  animation: medidPhoneBreathe 6s ease-in-out infinite;
}

.product-placeholder {
  aspect-ratio: 1.04;
}

.product-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.2);
  transform-origin: center;
  filter: none;
}

.medid-product-card .button {
  margin-top: 14px;
}

.product-card-placeholder {
  background:
    linear-gradient(115deg, transparent 33%, rgba(255, 255, 255, 0.12), transparent 67%),
    linear-gradient(145deg, #10284f, #071224);
}

.product-band-placeholder {
  background:
    radial-gradient(ellipse at center, transparent 23%, rgba(226, 232, 240, 0.3) 24%, transparent 35%),
    linear-gradient(145deg, #1d2a3f, #071224);
}

.product-tag-placeholder {
  background:
    radial-gradient(circle at center, rgba(96, 165, 250, 0.32), transparent 30%),
    linear-gradient(145deg, #0f1d37, #030712);
}

.medid-app-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 48px;
  align-items: center;
}

.medid-how-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.medid-how-video {
  border-radius: 30px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow-soft);
  background: rgba(8, 17, 31, 0.72);
  padding: 18px;
}

.medid-trailer-link {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 30% 26%, rgba(96, 165, 250, 0.28), transparent 36%),
    radial-gradient(circle at 72% 66%, rgba(37, 99, 235, 0.24), transparent 36%),
    linear-gradient(145deg, #0f213f, #071224);
  color: #f8fafc;
  text-align: center;
  padding: 18px;
}

.medid-trailer-link strong {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.medid-trailer-link span {
  color: rgba(226, 232, 240, 0.86);
}

.medid-trailer-play {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 1.4rem;
  background: rgba(2, 6, 23, 0.4);
  border: 1px solid rgba(226, 232, 240, 0.4);
}

.medid-trailer-notes {
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.24);
  padding: 14px 16px;
}

.medid-trailer-notes .eyebrow {
  margin-bottom: 8px;
}

.medid-trailer-notes ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.medid-how-steps {
  display: grid;
  gap: 14px;
}

.medid-how-step {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(8, 17, 31, 0.72);
  box-shadow: var(--shadow-soft);
}

.medid-how-index {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  color: rgba(96, 165, 250, 0.88);
}

.medid-how-step h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.medid-how-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.medid-checkout-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.checkout-panel {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 32px;
  background: rgba(8, 17, 31, 0.78);
  box-shadow: var(--shadow-soft);
}

.checkout-field {
  display: grid;
  gap: 10px;
}

.checkout-field-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-variant-cards {
  display: grid;
  gap: 10px;
}

.checkout-variant-card {
  display: grid;
  gap: 4px;
  justify-items: start;
  width: 100%;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.checkout-variant-card:hover:not(:disabled) {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(30, 41, 59, 0.75);
}

.checkout-variant-card.is-selected {
  border-color: rgba(96, 165, 250, 0.75);
  background: rgba(37, 99, 235, 0.18);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.25);
}

.checkout-variant-card:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-variant-card strong {
  font-size: 1.05rem;
}

.checkout-variant-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.checkout-qty-stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 0;
  max-width: 220px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.84);
}

.checkout-qty-stepper input {
  width: 100%;
  padding: 12px 6px;
  border: 0;
  border-left: 1px solid rgba(148, 163, 184, 0.15);
  border-right: 1px solid rgba(148, 163, 184, 0.15);
  background: transparent;
  color: var(--text);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: textfield;
}

.checkout-qty-stepper input::-webkit-outer-spin-button,
.checkout-qty-stepper input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.checkout-qty-btn {
  height: 100%;
  min-height: 48px;
  border: 0;
  background: rgba(30, 41, 59, 0.65);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.checkout-qty-btn:hover {
  background: rgba(51, 65, 85, 0.9);
}

.checkout-qty-btn:active {
  transform: scale(0.96);
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-summary,
.checkout-alert {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  background: rgba(37, 99, 235, 0.1);
}

.checkout-summary span,
.checkout-summary strong {
  display: block;
}

.checkout-summary span {
  color: var(--muted);
  margin-bottom: 6px;
}

.checkout-alert {
  color: #bfdbfe;
}

.medid-app-copy p {
  max-width: 600px;
  margin-top: 20px;
}

.app-downloads {
  display: grid;
  gap: 16px;
  max-width: 460px;
  margin-top: 30px;
}

.app-download {
  display: inline-block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  transition: transform 0.2s ease;
}

.app-download:hover {
  transform: translateY(-2px);
}

.app-download strong,
.app-download span {
  display: block;
}

.app-download span {
  margin-top: 8px;
  color: var(--muted);
}

.store-badge-image {
  display: block;
  margin-top: 12px;
  width: auto;
  max-width: 190px;
  height: auto;
}

.medid-app-showcase {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  border-radius: 48px;
  background:
    radial-gradient(circle at 50% 20%, rgba(96, 165, 250, 0.22), transparent 32%),
    linear-gradient(180deg, rgba(12, 23, 42, 0.72), rgba(5, 11, 22, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.app-phone {
  width: 292px;
}

.app-phone-front {
  z-index: 2;
  transform: translate(54px, 18px) rotate(4deg);
  animation: appPhoneScroll linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 72%;
}

.app-phone-back {
  position: absolute;
  z-index: 1;
  opacity: 0.72;
  transform: translate(-124px, 74px) rotate(-10deg) scale(0.92);
  filter: blur(0.2px);
  animation: appPhoneBackScroll linear both;
  animation-timeline: view();
  animation-range: entry 0% cover 72%;
}

@keyframes phoneRise {
  from {
    opacity: 0;
    transform: translateY(60px) rotate(-3deg) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(-3deg) scale(1);
  }
}

@keyframes medidPhoneBreathe {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -12px;
  }
}

@keyframes medidFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@keyframes scanPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes appPhoneScroll {
  from {
    transform: translate(54px, 110px) rotate(7deg) scale(0.96);
  }

  to {
    transform: translate(54px, -44px) rotate(2deg) scale(1);
  }
}

@keyframes appPhoneBackScroll {
  from {
    transform: translate(-124px, 130px) rotate(-13deg) scale(0.9);
  }

  to {
    transform: translate(-124px, -18px) rotate(-8deg) scale(0.94);
  }
}

@media (max-width: 1040px) {
  .medid-highlight-grid,
  .medid-product-grid,
  .medid-cinematic-layout,
  .medid-how-layout,
  .medid-checkout-layout,
  .medid-app-layout {
    grid-template-columns: 1fr;
  }

  .medid-cinematic-panel,
  .medid-app-showcase {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .medid-hero {
    padding: 42px 0 92px;
  }

  .medid-hero-title {
    font-size: clamp(3rem, 17vw, 4.8rem);
  }

  .medid-stage {
    min-height: 520px;
    margin-top: 48px;
    border-radius: 34px;
  }

  .app-shot,
  .app-phone {
    width: 238px;
  }

  .medid-card-preview {
    left: 14px;
    top: 28px;
    width: 210px;
    min-height: 138px;
    padding: 18px;
  }

  .medid-card-preview strong {
    margin-top: 24px;
    font-size: 1rem;
  }

  .medid-tag-preview {
    right: 14px;
    bottom: 32px;
  }

  .medid-highlights,
  .medid-products,
  .medid-buy,
  .medid-app,
  .medid-cinematic {
    padding: 82px 0;
  }

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

  .placeholder-visual {
    min-height: 220px;
  }

  .medid-cinematic-panel,
  .medid-app-showcase {
    min-height: 560px;
    border-radius: 34px;
  }

  .app-phone-front {
    transform: translate(36px, 10px) rotate(4deg);
  }

  .app-phone-back {
    transform: translate(-76px, 72px) rotate(-10deg) scale(0.88);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-phone,
  .medid-card-preview,
  .medid-tag-preview,
  .medid-scan-ring,
  .app-phone-front,
  .app-phone-back {
    animation: none;
  }
}
