:root {
  --ink: #07222b; /* deep clinical teal-navy */
  --ink-soft: #0f3541;
  --surface: #f2faf8; /* pale mint-white for the content panel */
  --primary: #12626b; /* deep teal */
  --accent: #35c6b0; /* mint accent */
  --accent-dim: rgba(53, 198, 176, 0.16);
  --coral: #ff7a4d; /* CTA */
  --coral-hover: #ef6a3d;
  --text-on-dark: #eafbf6;
  --text-muted-dark: #a9c9c8;
  --text-main: #0b2a30;
  --text-muted: #4d6c6d;
  --line: rgba(234, 251, 246, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  direction: rtl;
}

.banner-container {
  min-height: 100vh;
  display: contents;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ===== Card shell ===== */
.banner {
  position: relative;
  width: min(100%, 1000px);
  min-height: clamp(360px, 52vw, 440px);
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    var(--ink) 0%,
    var(--ink-soft) 55%,
    #0b3f43 100%
  );
  box-shadow: 0 24px 60px rgba(6, 30, 36, 0.35);
}

/* ===== Signature: full-banner pulse line watermark ===== */
.pulse-watermark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.55;
}
.pulse-watermark path {
  fill: none;
  stroke: rgba(234, 251, 246, 0.09);
  stroke-width: 2;
}
.pulse-watermark .live {
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 26 900;
  stroke-dashoffset: 0;
  animation: travel 7s linear infinite;
  filter: drop-shadow(0 0 6px rgba(53, 198, 176, 0.65));
}
@keyframes travel {
  to {
    stroke-dashoffset: -926;
  }
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.5;
  z-index: 0;
}
.glow-orb.a {
  width: 320px;
  height: 320px;
  left: -60px;
  top: -80px;
  background: radial-gradient(
    circle,
    rgba(53, 198, 176, 0.35),
    transparent 70%
  );
}
.glow-orb.b {
  width: 260px;
  height: 260px;
  right: 8%;
  bottom: -100px;
  background: radial-gradient(
    circle,
    rgba(255, 122, 77, 0.22),
    transparent 70%
  );
}

.banner-layout {
  position: relative;
  z-index: 2;
  min-height: 100%;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  gap: clamp(0px, 2vw, 8px);
}

/* ===== Visual panel ===== */
.visual-panel {
  position: relative;
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 32px);
}

.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 380px;
  border-radius: 26px 60px 26px 60px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(234, 251, 246, 0.12),
    0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, #1c6b6a 0%, #35c6b0 50%, #bdeee2 100%);
}

.hero-gif {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 108%;
  height: 108%;
  margin: 0;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease-in-out;
}
.hero-gif.active {
  opacity: 0.96;
}

.hero-ring {
  position: absolute;
  inset: 10px;
  border-radius: 20px 54px 20px 54px;
  border: 1.5px solid rgba(234, 251, 246, 0.35);
  z-index: 2;
  pointer-events: none;
}

.live-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 34, 43, 0.55);
  backdrop-filter: blur(6px);
  color: var(--text-on-dark);
  font-size: 0.76rem;
  font-weight: 600;
}
.live-tag .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(53, 198, 176, 0.25);
  animation: dotPulse 1.6s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* ===== Content panel ===== */
.content-panel {
  flex: 1 1 60%;
  display: flex;
  align-items: center;
  padding: clamp(24px, 3.5vw, 40px) clamp(24px, 3.5vw, 44px)
    clamp(24px, 3.5vw, 40px) clamp(8px, 2vw, 16px);
}

.content-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  max-width: 480px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid rgba(53, 198, 176, 0.35);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.banner h2 {
  margin: 0;
  line-height: 1.18;
}
.banner h2 span {
  display: block;
}

.line1 {
  color: var(--text-on-dark);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.line2 {
  margin-top: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #7fe6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  font-weight: 800;
}

.divider {
  width: 100%;
  max-width: 220px;
  height: 1px;
  margin: 16px 0;
}

.banner p {
  margin: 0;
  max-width: 36ch;
  color: var(--text-muted-dark);
  font-size: clamp(0.96rem, 1.4vw, 1.06rem);
  line-height: 1.95;
}

.banner strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  color: var(--text-muted-dark);
  font-size: 0.82rem;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-item svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--accent);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
  min-height: 52px;
  width: clamp(215px, 28vw, 290px);
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral) 0%, #ff9166 100%);
  color: #fff;
  text-decoration: none;
  font-size: clamp(0.97rem, 1.8vw, 1.08rem);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 28px rgba(255, 122, 77, 0.32);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}
.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 34px rgba(255, 122, 77, 0.4);
  filter: brightness(1.04);
}
.cta-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}
.cta-button:hover svg {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .banner-container {
    padding: 10px;
    align-items: flex-start;
  }

  .banner {
    min-height: auto;
    border-radius: 20px;
    box-shadow: 0 16px 34px rgba(6, 30, 36, 0.24);
  }

  .banner-layout {
    flex-direction: column;
    gap: 0;
  }

  .pulse-watermark {
    opacity: 0.24;
  }

  .glow-orb.a {
    width: 180px;
    height: 180px;
    left: -50px;
    top: -40px;
    filter: blur(34px);
  }

  .glow-orb.b {
    width: 150px;
    height: 150px;
    right: -20px;
    bottom: -60px;
    filter: blur(34px);
  }

  .visual-panel {
    flex: none;
    padding: 14px 14px 4px;
  }

  .hero-frame {
    max-height: 148px;
    aspect-ratio: 16 / 8.2;
    border-radius: 18px;
  }

  .hero-ring {
    inset: 8px;
    border-radius: 14px;
  }

  .hero-gif {
    width: 104%;
    height: 104%;
    transform: scale(1.01);
  }

  .live-tag {
    top: 10px;
    left: 10px;
    gap: 5px;
    padding: 5px 9px;
    font-size: 0.64rem;
    border-radius: 999px;
  }

  .live-tag .dot {
    width: 6px;
    height: 6px;
  }

  .content-panel {
    padding: 12px 16px 18px;
  }

  .content-inner {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }

  .eyebrow {
    margin-bottom: 10px;
    padding: 5px 11px;
    font-size: 0.74rem;
  }

  .banner h2,
  .banner p {
    text-align: center;
  }

  .line1 {
    font-size: 1.42rem;
    line-height: 1.28;
  }

  .line2 {
    margin-top: 3px;
    font-size: 1rem;
    line-height: 1.35;
  }

  .divider {
    max-width: 120px;
    margin: 10px auto 12px;
  }

  .banner p {
    max-width: 100%;
    font-size: 0.84rem;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .trust-row {
    display: none;
  }

  .cta-button {
    margin-top: 14px;
    min-height: 44px;
    width: min(100%, 220px);
    padding: 10px 18px;
    font-size: 0.9rem;
    box-shadow: 0 10px 22px rgba(255, 122, 77, 0.24);
  }

  .cta-button svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 520px) {
  .banner-container {
    padding: 8px;
  }

  .banner {
    border-radius: 18px;
  }

  .visual-panel {
    padding: 12px 12px 2px;
  }

  .hero-frame {
    max-height: 128px;
    aspect-ratio: 16 / 8;
    border-radius: 16px;
  }

  .hero-ring {
    inset: 7px;
    border-radius: 12px;
  }

  .content-panel {
    padding: 10px 14px 16px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.68rem;
    padding: 5px 10px;
  }

  .line1 {
    font-size: 1.24rem;
    line-height: 1.3;
  }

  .line2 {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .divider {
    margin: 8px auto 10px;
    max-width: 100px;
  }

  .banner p {
    font-size: 0.78rem;
    line-height: 1.68;
    -webkit-line-clamp: 2;
  }

  .cta-button {
    min-height: 40px;
    width: min(100%, 200px);
    padding: 9px 16px;
    font-size: 0.84rem;
  }

  .live-tag {
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    font-size: 0.58rem;
  }
    .eyebrow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-watermark .live,
  .live-tag .dot,
  .hero-gif {
    animation: none;
    transition: none;
  }
}

.banner-cnt {
  margin: 0;
}

@media (min-width: 936px) {
  .banner-cnt {
    margin: 0 12% 0 0;
  }
}

.banner {
  position: relative;
  overflow: hidden;
}

.banner-loader {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 32, 40, 0.94);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.banner-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.banner-loader-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: #35c6b0;
  animation: bannerSpinner 0.85s linear infinite;
}

.banner-loader-text {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
}

.banner.is-loading .banner-layout,
.banner.is-loading .pulse-watermark,
.banner.is-loading .glow-orb {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.banner.is-loading .banner-loader {
  opacity: 1;
  visibility: visible;
}

.banner.is-ready .banner-layout,
.banner.is-ready .pulse-watermark,
.banner.is-ready .glow-orb {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.banner.is-ready .banner-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.banner-layout,
.pulse-watermark,
.glow-orb {
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

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

@media (max-width: 768px) {
  .banner-loader-spinner {
    width: 30px;
    height: 30px;
  }

  .banner-loader-text {
    font-size: 0.76rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner-loader,
  .banner-layout,
  .pulse-watermark,
  .glow-orb,
  .banner-loader-spinner {
    animation: none;
    transition: none;
  }
}
