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

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

:root {
  color-scheme: dark;
  --bg: #06050f;
  --bg-soft: #0c0920;
  --surface: rgba(20, 14, 47, 0.72);
  --surface-border: rgba(171, 126, 255, 0.18);
  --text: #f8f7ff;
  --muted: #b9b2cf;
  --purple: #8d4cff;
  --purple-light: #b587ff;
  --header-height: 92px;
  font-family: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 25%, rgba(82, 35, 166, 0.11), transparent 35%),
    var(--bg);
  font-family: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  right: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: #6f35e8;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

site-header,
site-footer {
  display: block;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1160px, calc(100% - 72px));
  height: var(--header-height);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  font-size: 21px;
  font-weight: 700;
}

.brand__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(126, 59, 234, 0.3));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 53px);
  color: #aaa3be;
  font-size: 14px;
  font-weight: 400;
}

.desktop-nav a,
.brand,
.header-cta,
.footer-nav a {
  transition: color 180ms ease, transform 180ms ease, filter 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.desktop-nav a[aria-current="page"] {
  color: #fff;
}

.header-cta {
  justify-self: end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button:focus-visible,
.desktop-nav a:focus-visible,
.brand:focus-visible,
.menu-toggle:focus-visible,
.footer-nav a:focus-visible {
  outline: 3px solid rgba(182, 135, 255, 0.72);
  outline-offset: 4px;
}

.button--small {
  min-width: 122px;
  min-height: 45px;
  padding: 0 25px;
  font-size: 14px;
}

.button--large {
  min-height: 58px;
  padding: 0 29px;
  font-size: 16px;
}

.button--large svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: scaleX(-1);
}

.button--primary {
  color: #fff;
  background: linear-gradient(100deg, #7432eb 0%, #9d64ff 100%);
  box-shadow: 0 11px 32px rgba(117, 56, 235, 0.4), inset 0 1px rgba(255, 255, 255, 0.22);
}

.button--primary:hover {
  box-shadow: 0 15px 38px rgba(117, 56, 235, 0.52), inset 0 1px rgba(255, 255, 255, 0.24);
}

.button--secondary {
  border-color: rgba(154, 91, 255, 0.62);
  color: #fcfaff;
  background: rgba(6, 5, 15, 0.42);
  backdrop-filter: blur(12px);
}

.button--secondary:hover {
  background: rgba(34, 19, 65, 0.72);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  position: relative;
  min-height: clamp(900px, 150vw, 1536px);
  overflow: hidden;
  isolation: isolate;
  background: #05040e;
}

.hero::after {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  height: clamp(150px, 18vw, 270px);
  content: "";
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero__visual {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 50%;
  width: min(100%, 1024px);
  aspect-ratio: 2 / 3;
  transform: translateX(-50%);
}

.hero__back {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.hero__float {
  position: absolute;
  top: max(38.3%, 410px);
  left: 50%;
  width: 97.4%;
  height: auto;
  user-select: none;
  filter: drop-shadow(0 30px 45px rgba(0, 0, 0, 0.28));
  animation: hero-float 5.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-float {
  0%, 100% { transform: translate(-50%, 0) rotate(-0.35deg); }
  50% { transform: translate(-50%, -18px) rotate(0.35deg); }
}

.hero__content {
  position: absolute;
  z-index: 4;
  top: clamp(152px, 16vw, 225px);
  left: 50%;
  width: min(800px, calc(100% - 40px));
  text-align: center;
  transform: translateX(-50%);
}

.eyebrow {
  margin: 0 0 16px;
  color: #ae83ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: clamp(48px, 6.5vw, 79px);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  text-shadow: 0 8px 45px rgba(0, 0, 0, 0.65);
}

.hero__accent {
  padding-bottom: 7px;
  color: #bf9bfd;
  text-shadow: 4px 4px 8px black;
  background-clip: text;
  -webkit-background-clip: text;
}

.hero__subtitle {
  max-width: 615px;
  margin: 26px auto 28px;
  color:white;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.9;
  text-wrap: balance;
  text-shadow: 4px 4px 8px black;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.feature-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 110px;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2,
.final-cta h2 {
  margin: 0 0 17px;
  font-size: clamp(34px, 5vw, 55px);
  line-height: 1.3;
  text-wrap: balance;
}

.section-heading > p:last-child,
.final-cta > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 245px;
  padding: 29px;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(45, 28, 89, 0.62), rgba(14, 10, 32, 0.72)),
    var(--surface);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.16);
}

.feature-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 24px;
  background: linear-gradient(135deg, #9f5aff, #6534e1);
  box-shadow: 0 10px 28px rgba(123, 63, 232, 0.34);
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 21px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto 88px;
  padding: clamp(34px, 6vw, 65px);
  border: 1px solid rgba(170, 116, 255, 0.25);
  border-radius: 30px;
  background:
    radial-gradient(circle at 88% 10%, rgba(135, 70, 255, 0.25), transparent 37%),
    linear-gradient(130deg, #17102f, #0d091f);
}

.final-cta > div {
  max-width: 650px;
}

.site-footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(171, 126, 255, 0.12);
  background:
    radial-gradient(circle at 15% 0%, rgba(126, 59, 234, 0.15), transparent 34%),
    rgba(5, 4, 14, 0.92);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 52px 0 36px;
}

.brand--footer {
  justify-self: auto;
}

.site-footer__brand p {
  max-width: 460px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 26px;
  color: #c9c3d9;
  font-size: 14px;
}

.footer-nav a {
  padding: 7px 0;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #fff;
}

.site-footer__bottom {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(171, 126, 255, 0.1);
  color: #7f788f;
  font-size: 12px;
}

.terms-page {
  position: relative;
  min-height: 100vh;
  background: #05040e;
}

.terms-backdrop {
  position: fixed;
  z-index: 0;
  inset: -28px;
  pointer-events: none;
  background:
    linear-gradient(rgba(5, 4, 14, 0.58), rgba(5, 4, 14, 0.78)),
    url("assets/hero-product-back.jpg") center 48% / cover no-repeat;
  filter: blur(13px) brightness(0.55) saturate(0.9);
  transform: scale(1.04);
}

.terms-page .site-header {
  position: relative;
}

.terms-page main,
.terms-page site-footer {
  position: relative;
  z-index: 2;
}

.terms-main {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 90px;
}

.terms-card {
  overflow: hidden;
  border: 1px solid rgba(190, 154, 255, 0.22);
  border-radius: 32px;
  background: rgba(10, 7, 25, 0.72);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.45), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
}

.terms-card__header {
  padding: clamp(32px, 6vw, 64px);
  border-bottom: 1px solid rgba(190, 154, 255, 0.14);
  background:
    radial-gradient(circle at 85% 0%, rgba(141, 76, 255, 0.22), transparent 38%),
    rgba(20, 13, 44, 0.46);
}

.terms-card h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.25;
}

.terms-card__intro {
  max-width: 720px;
  margin: 22px 0 0;
  color: #d2ccdf;
  font-size: 17px;
  line-height: 2;
}

.terms-card__updated {
  margin: 18px 0 0;
  color: #938aa8;
  font-size: 13px;
}

.terms-content {
  padding: clamp(28px, 5vw, 58px);
}

.terms-content section + section {
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid rgba(190, 154, 255, 0.1);
}

.terms-content h2 {
  margin: 0 0 13px;
  font-size: 21px;
  line-height: 1.6;
}

.terms-content p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 2.05;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 40px);
  }

  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: clamp(900px, 150vw, 1240px);
  }

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

  .feature-card {
    min-height: 0;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 76px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 32px);
  }

  .brand {
    font-size: 18px;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 10px;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(167, 117, 255, 0.23);
    border-radius: 13px;
    color: #fff;
    background: rgba(14, 10, 33, 0.78);
  }

  .menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav {
    position: absolute;
    top: 70px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(164, 112, 255, 0.22);
    border-radius: 18px;
    background: rgba(10, 7, 24, 0.95);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(18px);
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav > a:not(.button) {
    padding: 13px 12px;
    color: #cbc5da;
  }

  .mobile-nav .button {
    min-height: 48px;
    margin-top: 6px;
  }

  .hero {
    min-height: max(650px, 150vw);
  }

  .hero__content {
    top: 112px;
    width: min(520px, calc(100% - 32px));
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: clamp(39px, 11.5vw, 58px);
    line-height: 1.16;
  }

  .hero__subtitle {
    margin: 18px auto 22px;
    font-size: 15px;
    line-height: 1.85;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: min(320px, 100%);
    margin: 0 auto;
    gap: 12px;
  }

  .button--large {
    min-height: 54px;
  }

  .hero__visual {
    top: 0;
    width: 100%;
  }

  .hero__float {
    width: 100%;
  }

  .feature-section {
    width: calc(100% - 32px);
    padding: 62px 0 80px;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .feature-card {
    padding: 25px;
    border-radius: 20px;
  }

  .feature-card__icon {
    margin-bottom: 27px;
  }

  .final-cta {
    flex-direction: column;
    align-items: stretch;
    width: calc(100% - 32px);
    margin-bottom: 48px;
    text-align: center;
  }

  .site-footer__inner,
  .site-footer__bottom {
    width: calc(100% - 32px);
  }

  .site-footer__inner {
    gap: 30px;
    padding-top: 40px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  .terms-page .site-header {
    position: relative;
  }

  .terms-main {
    width: calc(100% - 24px);
    padding: 34px 0 60px;
  }

  .terms-card {
    border-radius: 24px;
  }

  .terms-card__intro {
    font-size: 15px;
  }

  .terms-content section + section {
    margin-top: 30px;
    padding-top: 30px;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: max(620px, 150vw);
  }

  .hero__content {
    top: 102px;
  }

  .hero h1 {
    font-size: clamp(36px, 10.5vw, 45px);
  }

  .hero__visual {
    width: 100%;
  }

  .hero__float {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --- Refinements: typography, branding, responsive stability --- */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  min-width: 0;
}

main,
site-header,
site-footer,
.site-header,
.site-footer,
.hero,
.feature-section,
.final-cta,
.terms-main,
.terms-card {
  max-width: 100%;
}

img,
svg {
  max-width: 100%;
}

.site-header {
  left: 0;
  right: 0;
  margin-inline: auto;
  transform: none;
}

.brand {
  min-width: 0;
  font-size: 22px;
}

.brand-logo {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.desktop-nav {
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.58);
}

.button--small {
  min-height: 47px;
  font-size: 15px;
}

.button--large {
  font-size: 17px;
}

.hero {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.hero__visual {
  left: 0;
  right: 0;
  max-width: 100%;
  margin-inline: auto;
  transform: none;
}

.hero__float {
  left: 0;
  right: 0;
  max-width: 100%;
  margin-inline: auto;
  transform: none;
  transform-origin: 50% 50%;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-18px) rotate(0.3deg); }
}

.hero__content {
  left: 0;
  right: 0;
  max-width: calc(100% - 32px);
  margin-inline: auto;
  transform: none;
}

.hero__app-mark,
.terms-app-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
}

.hero__app-mark {
  margin-bottom: 16px;
}

.hero__app-mark img,
.terms-app-mark img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(27, 8, 57, 0.62));
}

.hero__content .eyebrow {
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.88), 0 0 20px rgba(91, 42, 173, 0.42);
}

.eyebrow {
  font-size: 15px;
  line-height: 1.75;
}

.hero h1 {
  text-shadow: 0 7px 22px rgba(0, 0, 0, 0.88), 0 18px 60px rgba(0, 0, 0, 0.72);
}

.hero__subtitle {
  font-size: clamp(18px, 2vw, 21px);
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.95), 0 7px 34px rgba(0, 0, 0, 0.88);
}

.feature-card p,
.site-footer__brand p,
.footer-nav,
.terms-content p,
.terms-list {
  font-size: 16px;
}

.footer-nav {
  font-weight: 500;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.footer-app-mark {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.brand-logo--footer .brand__mark {
  width: 52px;
  height: 52px;
}

.site-footer__brand p {
  margin: 0;
}

.site-footer__bottom {
  font-size: 13px;
}

.final-cta {
  position: relative;
}

.final-cta__identity {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.final-cta__identity img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 13px 26px rgba(84, 35, 170, 0.5));
}

.final-cta__copy {
  flex: 1 1 560px;
  min-width: 0;
}

.terms-backdrop {
  inset: 0;
  overflow: hidden;
  background: #05040e;
  filter: none;
  transform: none;
}

.terms-backdrop::before {
  position: absolute;
  inset: -36px;
  content: "";
  background:
    linear-gradient(rgba(5, 4, 14, 0.58), rgba(5, 4, 14, 0.8)),
    url("assets/hero-product-back.jpg") center 48% / cover no-repeat;
  filter: blur(14px) brightness(0.56) saturate(0.9);
}

.terms-page .site-header {
  left: 0;
  right: 0;
  margin-inline: auto;
}

.terms-main {
  max-width: min(920px, calc(100% - 40px));
}

.terms-card,
.terms-content,
.terms-card__header {
  min-width: 0;
}

.terms-app-mark {
  margin-bottom: 22px;
}

.terms-app-mark img {
  width: 68px;
  height: 68px;
}

.terms-card__header .eyebrow,
.terms-card h1,
.terms-card__intro {
  text-shadow: 0 3px 20px rgba(0, 0, 0, 0.62);
}

.terms-card__updated {
  font-size: 14px;
}

.terms-content h2 {
  font-size: 23px;
}

.terms-content p,
.terms-list {
  line-height: 2.05;
}

.terms-list {
  margin: 18px 0 0;
  padding: 0 24px 0 0;
  color: var(--muted);
}

.terms-list li + li {
  margin-top: 12px;
}

.terms-section--important {
  padding: 30px;
  border: 1px solid rgba(184, 130, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(53, 27, 104, 0.24), rgba(16, 10, 35, 0.3));
}

.terms-content section + .terms-section--important,
.terms-section--important + section {
  border-top: 0;
}

@media (max-width: 900px) {
  .site-header {
    max-width: calc(100% - 40px);
  }

  .final-cta {
    flex-wrap: wrap;
  }

  .final-cta__identity {
    order: -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .brand {
    font-size: 19px;
  }

  .mobile-nav {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    font-size: 16px;
  }

  .mobile-nav > a:not(.button) {
    font-size: 16px;
    font-weight: 500;
  }

  .mobile-nav .button {
    font-size: 16px;
  }

  .hero__content {
    width: calc(100% - 28px);
    max-width: calc(100% - 28px);
  }

  .hero__app-mark {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .hero__app-mark img {
    width: 52px;
    height: 52px;
  }

  .eyebrow {
    margin-bottom: 13px;
    font-size: 13px;
  }

  .hero__subtitle {
    font-size: 16px;
  }

  .button--large {
    font-size: 16px;
  }

  .feature-card p,
  .site-footer__brand p,
  .footer-nav,
  .terms-content p,
  .terms-list {
    font-size: 15px;
  }

  .site-footer__brand {
    align-items: flex-start;
  }

  .footer-app-mark {
    font-size: 15px;
  }

  .brand-logo--footer .brand__mark {
    width: 46px;
    height: 46px;
  }

  .final-cta {
    gap: 24px;
  }

  .final-cta__identity {
    align-self: center;
  }

  .terms-main {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
  }

  .terms-card__header,
  .terms-content {
    padding-right: 24px;
    padding-left: 24px;
  }

  .terms-app-mark {
    margin-bottom: 18px;
    font-size: 16px;
  }

  .terms-app-mark img {
    width: 58px;
    height: 58px;
  }

  .terms-card h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .terms-card__intro {
    font-size: 16px;
  }

  .terms-content h2 {
    font-size: 20px;
  }

  .terms-section--important {
    margin-inline: -8px;
    padding: 22px;
    border-radius: 18px;
  }
}

@media (max-width: 420px) {
  .site-header {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
  }

  .hero__content {
    width: calc(100% - 22px);
    max-width: calc(100% - 22px);
  }

  .hero__app-mark img {
    width: 46px;
    height: 46px;
  }

  .hero__app-mark {
    font-size: 15px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    gap: 14px;
  }

  .terms-card__header,
  .terms-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .terms-list {
    padding-right: 20px;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
  }

  .desktop-nav {
    display: flex;
    gap: 24px;
    font-size: 15px;
  }
}

.site-footer__bottom {
  font-size: 14px;
}

@media (max-width: 760px) {
  .eyebrow {
    font-size: 14px;
  }
}

/* v3 mobile/performance refinements */
.eyebrow {
  font-size: clamp(16px, 1.25vw, 17px);
  font-weight: 700;
  line-height: 1.65;
}

.hero__float {
  top: 45.3%;
  width: 97.4%;
  filter: none;
  animation: hero-float-optimized 7s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  will-change: transform;
  contain: paint;
}

@keyframes hero-float-optimized {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -10px, 0); }
}

@media (max-width: 760px) {
  .eyebrow {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero__visual {
    width: 100%;
    max-width: 100%;
  }

  .hero__float {
    top: 49%;
    width: 96%;
    max-width: 96%;
    animation-duration: 8s;
  }

  .final-cta {
    gap: 14px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .final-cta__identity {
    gap: 4px;
    font-size: 15px;
  }

  .final-cta__identity img {
    width: 44px;
    height: 44px;
  }

  .final-cta h2 {
    margin-bottom: 10px;
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.25;
  }

  .final-cta > div > p:last-child {
    font-size: 15px;
    line-height: 1.7;
  }

  .final-cta .button--large {
    min-height: 50px;
  }
}

@media (max-width: 420px) {
  .hero__float {
    top: 40%;
    width: 98%;
    max-width: 98%;
  }

  .final-cta {
    padding: 20px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__float {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }
}

@media (max-width: 760px) {
  .final-cta__copy {
    flex: 0 1 auto;
    width: 100%;
  }
}

/* Keep Persian eyebrow text visually consistent with surrounding copy. */
.eyebrow {
  letter-spacing: 0;
}

@media (max-width: 760px) {
  .hero__float {
    top: 50%;
  }
}

@media (max-width: 420px) {
  .hero__float {
    top: 50%;
  }
}

/* v4 hero readability + mobile composition refinements */
.hero h1,
.hero__subtitle {
  position: relative;
  isolation: isolate;
}

.hero h1::before {
  position: absolute;
  z-index: -1;
  inset: -20% -8%;
  content: "";
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center,
      rgba(7, 4, 18, 0.78) 0%,
      rgba(24, 10, 52, 0.56) 48%,
      rgba(92, 47, 176, 0.18) 68%,
      transparent 82%);
  filter: blur(18px);
}

.hero__subtitle::before {
  position: absolute;
  z-index: -1;
  inset: -14px -28px;
  content: "";
  pointer-events: none;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center,
      rgba(5, 4, 14, 0.76) 0%,
      rgba(23, 11, 47, 0.50) 55%,
      rgba(102, 54, 190, 0.14) 72%,
      transparent 88%);
  filter: blur(16px);
}

@media (max-width: 760px) {
  .hero {
    min-height: clamp(820px, 156vw, 1030px);
  }

  .hero h1::before {
    inset: -16% -4%;
    filter: blur(14px);
  }

  .hero__subtitle::before {
    inset: -10px -14px;
    filter: blur(12px);
  }

  /* Leave a clear visual window for the floating product artwork. */
  .hero__actions {
    margin-top: clamp(170px, 34vw, 235px);
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: clamp(800px, 205vw, 900px);
  }

  .hero__actions {
    margin-top: clamp(155px, 41vw, 185px);
  }
}

/* v5 mobile hero composition: place subtitle below floating artwork */
@media (max-width: 760px) {
  /* Move the reserved artwork window between the title and subtitle. */
  .hero__subtitle {
    margin-top: clamp(250px, 58vw, 340px);
    margin-bottom: 18px;
  }

  /* Buttons should follow the subtitle normally. */
  .hero__actions {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .hero__subtitle {
    margin-top: clamp(215px, 61vw, 265px);
    margin-bottom: 16px;
  }

  .hero__actions {
    margin-top: 0;
  }
}
