:root {
  color-scheme: light;
  --ink: #111d35;
  --muted: #657089;
  --blue: #2d6cf5;
  --purple: #9466f7;
  --cyan: #54d7da;
  --surface: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  background: #f8faff;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

.stifar-hero {
  --mouse-x: 72%;
  --mouse-y: 42%;
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  width: 100%;
  min-height: min(820px, 100svh);
  padding: clamp(80px, 10vw, 150px) clamp(22px, 6.4vw, 112px) clamp(70px, 8vw, 110px);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(45, 108, 245, 0.11), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(204, 127, 248, 0.15), transparent 31%),
    linear-gradient(135deg, #fbfdff 0%, #f8f9ff 54%, #fdf9ff 100%);
}

.stifar-hero::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle 230px at var(--mouse-x) var(--mouse-y), rgba(54, 231, 255, 0.18), transparent 43%),
    radial-gradient(circle 390px at var(--mouse-x) var(--mouse-y), rgba(111, 79, 255, 0.13), transparent 66%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.stifar-hero.is-pointer-active::before {
  opacity: 1;
}

.hero-ambient {
  position: absolute;
  z-index: -3;
  inset: -25%;
  opacity: 0.9;
  background:
    radial-gradient(circle at 68% 45%, rgba(83, 216, 217, 0.12), transparent 23%),
    radial-gradient(circle at 44% 74%, rgba(138, 91, 246, 0.1), transparent 25%);
  filter: blur(24px);
  animation: ambient-drift 12s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(45, 108, 245, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 108, 245, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, transparent, #000 52%, #000 100%);
}

.mouse-neon,
.neon-trail-dot {
  position: absolute;
  z-index: 8;
  top: 0;
  left: 0;
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.mouse-neon {
  width: 136px;
  height: 136px;
  margin: -68px 0 0 -68px;
  filter: drop-shadow(0 0 17px rgba(66, 224, 255, 0.55));
  transition: opacity 0.22s ease;
}

.is-pointer-active .mouse-neon {
  opacity: 1;
}

.mouse-neon-aura,
.mouse-neon-ring,
.mouse-neon-core {
  position: absolute;
  border-radius: 50%;
}

.mouse-neon-aura {
  inset: 0;
  background: radial-gradient(circle, rgba(90, 247, 255, 0.17), rgba(97, 104, 255, 0.09) 36%, transparent 70%);
  animation: neon-breathe 1.8s ease-in-out infinite;
}

.mouse-neon-ring {
  inset: 39px;
  border: 1px solid rgba(137, 251, 255, 0.85);
  box-shadow:
    0 0 7px rgba(97, 242, 255, 0.9),
    0 0 20px rgba(91, 130, 255, 0.65),
    inset 0 0 8px rgba(114, 237, 255, 0.7);
  animation: neon-ring-spin 2.4s linear infinite;
}

.mouse-neon-ring::before,
.mouse-neon-ring::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.mouse-neon-ring::before {
  inset: -7px;
  border-top: 1px solid rgba(190, 94, 255, 0.9);
  border-right: 1px solid transparent;
  filter: drop-shadow(0 0 6px #ba66ff);
}

.mouse-neon-ring::after {
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  background: #fff;
  box-shadow: 0 0 7px #fff, 0 0 16px #67f1ff, 0 0 25px #766cff;
  transform: translateX(-50%);
}

.mouse-neon-core {
  inset: 63px;
  background: #fff;
  box-shadow: 0 0 6px #fff, 0 0 15px #61efff, 0 0 26px #6a72ff;
}

.neon-trail-dot {
  width: var(--trail-size, 8px);
  height: var(--trail-size, 8px);
  margin: calc(var(--trail-size, 8px) / -2) 0 0 calc(var(--trail-size, 8px) / -2);
  background: rgba(104, 235, 255, 0.78);
  box-shadow: 0 0 7px #65ecff, 0 0 15px rgba(113, 99, 255, 0.68);
  transition: opacity 0.25s ease;
}

.is-pointer-active .neon-trail-dot {
  opacity: var(--trail-opacity, 0.3);
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 700px;
  padding: 18px 0 0;
  will-change: transform;
}

.eyebrow,
.hero-copy h1,
.hero-lead,
.hero-detail,
.hero-actions,
.trust-row {
  opacity: 0;
  transform: translateY(22px);
  animation: reveal-up 0.85s cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

.eyebrow {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 25px;
  padding: 9px 14px;
  border: 1px solid rgba(45, 108, 245, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 12px 35px rgba(55, 75, 126, 0.08);
  color: #3567c9;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(15px);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(84, 215, 218, 0.14), 0 0 18px rgba(84, 215, 218, 0.65);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  font-size: clamp(48px, 5.4vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.067em;
  animation-delay: 0.1s;
}

.hero-copy h1 > .title-line {
  display: block;
  overflow: hidden;
  margin-top: -0.2em;
  padding: 0.3em 0 0.24em;
}

.hero-copy h1 > .title-line-gradient {
  padding: 0.3em 0 0.26em;
}

.title-word {
  --slide-delay: 0s;
  display: inline-block;
  margin-right: 0.12em;
  opacity: 0;
  transform: translate3d(0, 112%, 0) skewY(3deg);
  transform-origin: 50% 100%;
  will-change: opacity, transform;
  animation: title-sliding-loop 5.2s var(--slide-delay) cubic-bezier(0.18, 0.86, 0.22, 1) infinite both;
}

.title-word:last-child {
  margin-right: 0;
}

.title-line-gradient .title-word {
  background: linear-gradient(105deg, #1d5de4 0%, #6769eb 34%, #b053df 52%, #6769eb 69%, #1d5de4 100%);
  background-size: 230% auto;
  background-clip: text;
  color: transparent;
  animation:
    title-sliding-loop 5.2s var(--slide-delay) cubic-bezier(0.18, 0.86, 0.22, 1) infinite both,
    title-shimmer 8s 1.85s ease-in-out infinite alternate;
}

.title-line-dark .title-word:nth-child(1) {
  --slide-delay: 0s;
}

.title-line-dark .title-word:nth-child(2) {
  --slide-delay: 0s;
}

.title-line-gradient .title-word:nth-child(1) {
  --slide-delay: 0.24s;
}

.title-line-gradient .title-word:nth-child(2) {
  --slide-delay: 0.24s;
}

.title-line-gradient .title-word:nth-child(3) {
  --slide-delay: 0.24s;
}

.hero-lead,
.hero-detail {
  position: relative;
}

.hero-lead::after {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-radius: 50%;
  background: #6d76f0;
  box-shadow: 0 0 0 5px rgba(109, 118, 240, 0.1), 0 0 15px rgba(92, 105, 240, 0.65);
  content: "";
  animation: lead-spark 2.2s 1.6s ease-in-out infinite;
  vertical-align: middle;
}

.hero-lead {
  max-width: 590px;
  margin: 27px 0 7px;
  color: #25324b;
  font-size: clamp(17px, 1.45vw, 21px);
  font-weight: 700;
  line-height: 1.45;
  animation-delay: 0.2s;
}

.hero-detail {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  animation-delay: 0.28s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  align-items: center;
  margin-top: 31px;
  animation-delay: 0.36s;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-action {
  gap: 16px;
  min-width: 189px;
  padding: 0 22px;
  background: linear-gradient(115deg, #2469ec 0%, #8265f3 74%, #ad61e1 100%);
  box-shadow: 0 17px 32px rgba(75, 96, 227, 0.28);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.primary-action svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 0.25s ease;
}

.secondary-action {
  gap: 8px;
  padding: 0 18px;
  color: #33415d;
  font-size: 14px;
  font-weight: 700;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
}

.primary-action:hover {
  box-shadow: 0 21px 38px rgba(75, 96, 227, 0.35);
}

.primary-action:hover svg {
  transform: translateX(4px);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.7);
}

.trust-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 48px;
  animation-delay: 0.44s;
}

.trust-item {
  display: grid;
  gap: 3px;
}

.trust-item strong {
  color: #22314e;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.trust-item span {
  color: #8690a5;
  font-size: 11px;
  font-weight: 600;
}

.trust-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(transparent, rgba(42, 65, 115, 0.2), transparent);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 590px;
  opacity: 0;
  transform: scale(0.96);
  animation: visual-reveal 1.25s 0.12s cubic-bezier(0.15, 0.8, 0.22, 1) forwards;
}

#pharmacy-canvas {
  position: absolute;
  z-index: 0;
  inset: -14% -13% -12% -10%;
  width: 123%;
  height: 126%;
  pointer-events: none;
}

.visual-glow {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 52%;
  width: min(36vw, 570px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0%, rgba(226, 237, 255, 0.7) 34%, rgba(223, 215, 255, 0.2) 62%, transparent 72%);
  filter: blur(4px);
  transform: translate(-50%, -50%);
}

.brand-orb {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 52%;
  display: grid;
  width: min(24vw, 350px);
  min-width: 260px;
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
}

.logo-shell {
  position: relative;
  display: grid;
  width: 72%;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.63) 56%, rgba(227, 237, 255, 0.48));
  box-shadow:
    0 35px 70px rgba(62, 76, 139, 0.19),
    inset 0 0 0 10px rgba(255, 255, 255, 0.38),
    inset 0 -18px 35px rgba(100, 116, 211, 0.1);
  backdrop-filter: blur(18px);
  animation: orb-float 5.5s ease-in-out infinite;
}

.logo-shell::after {
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(108, 118, 201, 0.09);
  border-radius: inherit;
  content: "";
}

.logo-shell img {
  display: block;
  width: 81%;
  height: 81%;
  object-fit: contain;
  filter: drop-shadow(0 12px 15px rgba(38, 46, 81, 0.18));
}

.orb-ring {
  position: absolute;
  inset: 1%;
  border: 1px solid rgba(97, 113, 220, 0.22);
  border-radius: 50%;
}

.orb-ring::before,
.orb-ring::after {
  position: absolute;
  width: 9px;
  aspect-ratio: 1;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #6c75ee;
  box-shadow: 0 0 17px #7b83f5;
  content: "";
}

.orb-ring::before {
  top: 12%;
  left: 13%;
}

.orb-ring::after {
  right: 7%;
  bottom: 23%;
  width: 7px;
  background: var(--cyan);
  box-shadow: 0 0 17px var(--cyan);
}

.orb-ring-one {
  animation: ring-spin 14s linear infinite;
}

.orb-ring-two {
  inset: -10%;
  border-color: rgba(138, 103, 234, 0.12);
  transform: rotate(55deg) scaleY(0.5);
  animation: ring-spin-flat 19s linear infinite reverse;
}

.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  gap: 11px;
  align-items: center;
  min-width: 181px;
  padding: 12px 15px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.67);
  box-shadow: 0 18px 40px rgba(64, 78, 131, 0.14);
  backdrop-filter: blur(18px);
}

.floating-card span:last-child {
  display: grid;
  gap: 2px;
}

.floating-card small {
  color: #8992a7;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.floating-card strong {
  color: #27344f;
  font-size: 12px;
}

.card-icon {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #ecf2ff, #e5e5ff);
  color: #4a6de6;
}

.card-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.leaf-icon {
  background: linear-gradient(145deg, #e3fbf7, #e4f8ee);
  color: #20a37e;
}

.card-study {
  top: 22%;
  left: 1%;
  animation: card-float 5s ease-in-out infinite;
}

.card-natural {
  right: -1%;
  bottom: 20%;
  animation: card-float 5.8s 1s ease-in-out infinite reverse;
}

.interaction-hint {
  position: absolute;
  right: 5%;
  bottom: 4%;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #929bb0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.interaction-hint span {
  position: relative;
  width: 20px;
  height: 30px;
  border: 1px solid rgba(75, 94, 146, 0.25);
  border-radius: 10px;
}

.interaction-hint span::after {
  position: absolute;
  top: 6px;
  left: 8px;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: #6d78ec;
  content: "";
  animation: mouse-scroll 1.8s ease-in-out infinite;
}

.scroll-mark {
  position: absolute;
  z-index: 5;
  bottom: 30px;
  left: clamp(22px, 6.4vw, 112px);
  display: flex;
  gap: 9px;
  align-items: center;
  color: #9aa3b5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.scroll-mark span {
  width: 1px;
  height: 36px;
  background: linear-gradient(#8e95f7, transparent);
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-sliding-loop {
  0% {
    opacity: 0;
    transform: translate3d(0, 112%, 0) skewY(3deg);
  }
  14% {
    opacity: 1;
    transform: translate3d(0, -4%, 0) skewY(-0.7deg);
  }
  20%,
  66% {
    opacity: 1;
    transform: translate3d(0, 0, 0) skewY(0);
  }
  82% {
    opacity: 1;
    transform: translate3d(0, -112%, 0) skewY(-3deg);
  }
  83%,
  100% {
    opacity: 0;
    transform: translate3d(0, -112%, 0) skewY(-3deg);
  }
}

@keyframes title-shimmer {
  0% {
    background-position: 100% center;
  }
  100% {
    background-position: -230% center;
  }
}

@keyframes lead-spark {
  50% {
    opacity: 0.45;
    transform: scale(0.65);
  }
}

@keyframes visual-reveal {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes ambient-drift {
  to {
    transform: translate3d(4%, -3%, 0) scale(1.05);
  }
}

@keyframes orb-float {
  50% {
    transform: translateY(-11px) rotate(1deg);
  }
}

@keyframes card-float {
  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes ring-spin-flat {
  from {
    transform: rotate(55deg) scaleY(0.5);
  }
  to {
    transform: rotate(415deg) scaleY(0.5);
  }
}

@keyframes dot-pulse {
  50% {
    box-shadow: 0 0 0 8px rgba(84, 215, 218, 0.08), 0 0 22px rgba(84, 215, 218, 0.8);
  }
}

@keyframes mouse-scroll {
  60% {
    opacity: 0;
    transform: translateY(9px);
  }
  61% {
    transform: translateY(0);
  }
}

@keyframes neon-ring-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes neon-breathe {
  50% {
    opacity: 0.72;
    transform: scale(1.14);
  }
}

@media (max-width: 1100px) {
  .stifar-hero {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.84fr);
    padding-inline: clamp(22px, 4vw, 55px);
  }

  .hero-copy h1 {
    font-size: clamp(45px, 5.5vw, 67px);
  }

  .brand-orb {
    left: 54%;
    min-width: 230px;
  }

  .floating-card {
    min-width: 165px;
  }

  .card-study {
    left: -3%;
  }
}

@media (max-width: 850px) {
  .stifar-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 65px 23px 60px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-copy h1 {
    font-size: clamp(46px, 11vw, 68px);
  }

  .hero-visual {
    min-height: 500px;
    margin-top: 10px;
  }

  .brand-orb {
    left: 50%;
    width: min(48vw, 330px);
  }

  .card-study {
    left: 5%;
  }

  .card-natural {
    right: 4%;
  }

  .hero-grid {
    mask-image: linear-gradient(transparent, #000 52%, transparent);
  }

  .scroll-mark {
    display: none;
  }
}

@media (max-width: 540px) {
  .stifar-hero {
    padding: 50px 18px 42px;
  }

  .eyebrow {
    margin-bottom: 19px;
    font-size: 10px;
  }

  .hero-copy h1 {
    font-size: clamp(39px, 12.3vw, 58px);
    line-height: 1.02;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 16px;
  }

  .hero-detail {
    font-size: 13px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .primary-action {
    width: 100%;
  }

  .secondary-action {
    display: none;
  }

  .trust-row {
    gap: 12px;
    justify-content: space-between;
    margin-top: 35px;
  }

  .trust-item span {
    font-size: 9px;
  }

  .trust-line {
    height: 25px;
  }

  .hero-visual {
    min-height: 390px;
    margin-top: 2px;
  }

  .brand-orb {
    top: 48%;
    min-width: 205px;
  }

  .floating-card {
    min-width: 143px;
    padding: 9px 10px 9px 9px;
  }

  .floating-card strong {
    font-size: 10px;
  }

  .card-icon {
    width: 32px;
  }

  .card-study {
    top: 14%;
    left: 0;
  }

  .card-natural {
    right: 0;
    bottom: 14%;
  }

  .interaction-hint {
    display: none;
  }
}

@media (pointer: coarse) {
  .mouse-neon,
  .neon-trail-dot {
    display: none;
  }
}
