:root {
  --brand: #0e078f;
  --cream: #f4e7df;
  --white: #fffdf9;
  --glass: rgba(248, 239, 232, 0.86);
  --line: rgba(255, 255, 255, 0.55);
}

@font-face {
  font-family: "YekanX";
  src: url("assets/yekanx/IRANYekanX-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "YekanX";
  src: url("assets/yekanx/IRANYekanX-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "YekanX";
  src: url("assets/yekanx/IRANYekanX-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "YekanX";
  src: url("assets/yekanx/IRANYekanX-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "YekanX";
  src: url("assets/yekanx/IRANYekanX-ExtraBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Font Awesome 6 Brands";
  src: url("assets/fonts/fa-brands-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

.fa-brands {
  display: inline-block;
  font-family: "Font Awesome 6 Brands";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.fa-instagram::before { content: "\f16d"; }
.fa-telegram::before { content: "\f2c6"; }
.fa-whatsapp::before { content: "\f232"; }

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background: #d4cec9;
  color: var(--brand);
  font-family: "YekanX", Tahoma, Arial, sans-serif;
}

button,
a {
  font: inherit;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  padding: clamp(18px, 4vh, 42px) 20px;
  place-items: start center;
  isolation: isolate;
}

.slider,
.slide,
.slider-shade {
  position: absolute;
  inset: 0;
}

.slider {
  z-index: -2;
  overflow: hidden;
  background: #b9b3ad;
}

.slide {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1),
    transform 7s ease-out;
  will-change: opacity, transform;
}

.slide.is-visible {
  opacity: 1;
  transform: scale(1);
}

.slider-shade {
  background:
    linear-gradient(90deg, rgba(12, 8, 35, 0.28), transparent 35%, rgba(12, 8, 35, 0.2)),
    linear-gradient(180deg, rgba(15, 10, 35, 0.08), transparent 50%, rgba(9, 6, 29, 0.5));
}

.glass-card {
  width: min(92vw, 410px);
  max-height: calc(100svh - clamp(36px, 8vh, 84px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--glass);
  box-shadow:
    0 28px 80px rgba(10, 5, 50, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(1.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.12);
  animation: card-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  scrollbar-width: none;
}

.glass-card::-webkit-scrollbar {
  display: none;
}

.brand-frame,
.footer-frame {
  margin: 10px;
  overflow: hidden;
  border-radius: 19px;
}

.brand-frame {
  aspect-ratio: 2.55 / 1;
}

.brand-logo,
.store-info {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo {
  object-position: 50% 50%;
}

.card-content {
  padding: 20px clamp(22px, 5vw, 34px) 22px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 9px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

h1 {
  margin: 0;
  font-size: clamp(25px, 4vh, 36px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.045em;
}

.intro {
  max-width: 32ch;
  margin: 13px auto 0;
  color: rgba(14, 7, 143, 0.78);
  font-size: 13px;
  line-height: 1.9;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 19px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 10px 6px 14px;
  border: 1px solid rgba(14, 7, 143, 0.22);
  border-radius: 999px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.social-mark {
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--social-color);
  color: #fff;
  font-size: 13px;
  place-items: center;
}

.social-link--instagram { --social-color: #e1306c; --social-tint: rgba(225, 48, 108, 0.1); }
.social-link--telegram { --social-color: #229ed9; --social-tint: rgba(34, 158, 217, 0.1); }
.social-link--whatsapp { --social-color: #25d366; --social-tint: rgba(37, 211, 102, 0.1); }

.socials a:hover,
.socials a:focus-visible {
  border-color: var(--social-color);
  background: var(--social-tint);
  color: var(--social-color);
  outline: none;
  transform: translateY(-2px);
}

.socials a:hover .social-mark,
.socials a:focus-visible .social-mark {
  box-shadow: 0 4px 12px var(--social-tint);
}

.footer-frame { aspect-ratio: auto; margin-top: 0; background: var(--brand); }

.store-info { height: auto; object-fit: contain; object-position: center; }

.slider-ui {
  position: absolute;
  bottom: 25px;
  left: clamp(18px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.slider-toggle {
  display: grid;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(15, 8, 70, 0.18);
  color: var(--white);
  cursor: pointer;
  place-items: center;
  backdrop-filter: blur(8px);
}

.slider-toggle:hover,
.slider-toggle:focus-visible {
  background: var(--white);
  color: var(--brand);
  outline: none;
}

.toggle-icon {
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.slide-count {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.count-line {
  width: 34px;
  height: 1px;
  background: rgba(255, 255, 255, 0.65);
}

.scroll-note {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: 25px;
  margin: 0;
  color: var(--white);
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(-22px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-height: 790px) and (min-width: 701px) {
  .hero {
    padding-top: 20px;
  }

  .glass-card {
    width: min(90vw, 350px);
    max-height: calc(100svh - 40px);
  }

  .card-content {
    padding-top: 13px;
    padding-bottom: 15px;
  }

  .intro {
    margin-top: 8px;
    font-size: 11px;
  }

  .socials {
    margin-top: 12px;
  }
}

@media (max-width: 700px) {
  .hero {
    align-items: start;
    padding: 16px 14px 70px;
  }

  .slide {
    background-position: center top;
  }

  .slider-shade {
    background:
      linear-gradient(180deg, rgba(7, 4, 35, 0.05), rgba(7, 4, 35, 0.13) 45%, rgba(7, 4, 35, 0.52)),
      linear-gradient(90deg, rgba(7, 4, 35, 0.16), transparent 55%);
  }

  .glass-card {
    width: min(100%, 360px);
    max-height: calc(100svh - 92px);
    border-radius: 24px;
    background: rgba(248, 239, 232, 0.82);
    backdrop-filter: blur(15px) saturate(1.1);
    -webkit-backdrop-filter: blur(15px) saturate(1.1);
  }

  .brand-frame,
  .footer-frame {
    margin: 8px;
    border-radius: 17px;
  }

  .card-content {
    padding: 17px 19px 18px;
  }

  h1 {
    font-size: clamp(23px, 7vw, 31px);
  }

  .intro {
    font-size: 12px;
  }

  .socials {
    margin-top: 14px;
  }

  .socials a {
    min-height: 35px;
    padding: 5px 8px 5px 11px;
    font-size: 10px;
  }

  .slider-ui,
  .scroll-note {
    bottom: 18px;
  }

  .slider-ui {
    left: 15px;
  }

  .scroll-note {
    right: 15px;
  }
}

@media (max-width: 370px), (max-height: 680px) {
  .glass-card {
    width: min(94vw, 320px);
  }

  .intro {
    display: none;
  }

  .socials {
    margin-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
