:root {
  --navy: #0b1c2d;
  --turquoise: #19d3d3;
  --orange: #ff7a00;
  --text: #e6eef5;
  --muted: #9fb4c4;
  --line: rgba(25, 211, 211, 0.2);
  --surface: rgba(7, 22, 36, 0.72);
  --surface-strong: rgba(6, 20, 33, 0.88);
  --shadow: 0 18px 52px rgba(2, 8, 19, 0.35);
  --radius: 18px;
  --container: 1120px;
  --timing: 620ms;
  --header-height: 78px;
  --glow-a-x: 0px;
  --glow-a-y: 0px;
  --glow-b-x: 0px;
  --glow-b-y: 0px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  background: var(--navy);
  font-family: "Vazirmatn", "Dana", "IRANSansX", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
  scroll-snap-type: y mandatory;
}

body[data-lang="en"] {
  font-family: "Sora", "Manrope", "IBM Plex Sans", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.bg-layer,
.bg-grid {
  position: fixed;
  inset: -20vmax;
  pointer-events: none;
  z-index: -3;
}

.bg-layer-a {
  background:
    radial-gradient(circle at 22% 22%, rgba(25, 211, 211, 0.22), transparent 36%),
    radial-gradient(circle at 84% 18%, rgba(255, 122, 0, 0.07), transparent 28%);
  transform: translate3d(var(--glow-a-x), var(--glow-a-y), 0);
}

.bg-layer-b {
  background:
    radial-gradient(circle at 78% 72%, rgba(25, 211, 211, 0.16), transparent 38%),
    radial-gradient(circle at 14% 84%, rgba(11, 28, 45, 0.52), transparent 44%);
  transform: translate3d(var(--glow-b-x), var(--glow-b-y), 0);
}

.bg-grid {
  z-index: -2;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(159, 180, 196, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 180, 196, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.container {
  width: min(var(--container), 92vw);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: none;
  background: rgba(11, 28, 45, 0.84);
  backdrop-filter: blur(8px);
  min-height: var(--header-height);
  transition: background-color 200ms ease;
}

.site-header.scrolled {
  background: rgba(8, 24, 40, 0.94);
}

.header-row {
  min-height: var(--header-height);
  height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-content: center;
  align-items: center;
  gap: 1rem;
}

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

.header-row a:focus,
.header-row a:focus-visible,
.header-row button:focus,
.header-row button:focus-visible {
  outline: none;
  box-shadow: none;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  line-height: 1.2;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(25, 211, 211, 0.35);
  background: rgba(6, 18, 30, 0.74);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-mark svg {
  width: 32px;
  height: 32px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.brand-copy {
  display: grid;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1rem;
  line-height: 1.2;
}

.brand-copy small {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}

.primary-nav {
  min-width: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.nav-list a {
  font-size: 0.81rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--muted);
}

.nav-list a.is-active {
  color: var(--turquoise);
}

.lang-toggle {
  border: 1px solid var(--line);
  background: rgba(25, 211, 211, 0.08);
  color: var(--turquoise);
  border-radius: 999px;
  min-width: 46px;
  height: 34px;
  padding: 0 0.85rem;
  font-size: 0.78rem;
  cursor: pointer;
  line-height: 1.2;
}

.lang-toggle:hover,
.lang-toggle:active {
  background: rgba(25, 211, 211, 0.16);
}

main {
  position: relative;
  z-index: 1;
}

.section {
  padding: clamp(4.1rem, 8vw, 6.2rem) 0;
  scroll-margin-top: calc(var(--header-height) + 8px);
}

#surfaces {
  padding-bottom: clamp(8.4rem, 16vw, 12rem);
}

.snap-section {
  min-height: calc(100dvh - var(--header-height));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  position: relative;
}

@supports not (height: 100dvh) {
  .snap-section {
    min-height: calc(100vh - var(--header-height));
  }
}

.section-transitions .snap-section {
  opacity: 0;
  transform: translate3d(0, 56px, 0);
  filter: blur(0.25px);
  pointer-events: none;
  transition:
    opacity 290ms ease,
    transform 560ms cubic-bezier(0.2, 0.82, 0.2, 1),
    filter 320ms ease;
}

.section-transitions .snap-section.section-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: none;
  pointer-events: auto;
  transition-delay: 95ms;
}

.section-transitions .snap-section.section-before {
  opacity: 0;
  transform: translate3d(0, -58px, 0);
  transition-delay: 0ms;
}

.section-transitions .snap-section.section-after {
  opacity: 0;
  transform: translate3d(0, 58px, 0);
  transition-delay: 0ms;
}

.hero {
  padding-top: clamp(4.5rem, 10vw, 8.2rem);
}

.hero .container {
  transform: translateY(-4vh);
}

.eyebrow {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--turquoise);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1 {
  margin-top: 0.8rem;
  max-width: 15ch;
  font-size: clamp(2rem, 6vw, 4.2rem);
}

.hero-title {
  white-space: pre-line;
}

.hero-copy {
  margin: 1rem 0 0;
  max-width: 68ch;
  color: var(--muted);
}

.hero-copy-first {
  margin-top: 2rem;
  margin-bottom: 0;
}

.hero-copy-first + .hero-copy {
  margin-top: 0.5rem;
}

.hero-actions {
  margin-top: 2rem;
}

.hero-actions .btn {
  display: flex;
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--turquoise);
  padding: 0.76rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 220ms ease, background-color 220ms ease;
}

.btn-primary {
  color: var(--turquoise);
  background: rgba(25, 211, 211, 0.09);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  background: rgba(25, 211, 211, 0.18);
}

.section-head {
  max-width: 760px;
}

.section-head h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.62rem, 4vw, 2.6rem);
}

.section-head p {
  margin: 0.95rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.9rem;
}

.cards-4,
.cards-2 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--surface-strong));
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.04rem;
}

.card p {
  margin: 0.63rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.section-emphasis .card {
  background: rgba(6, 20, 33, 0.9);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}

.feature-list li {
  position: relative;
  padding-inline-start: 1.25rem;
  padding-inline-end: 1.25rem;
}

.feature-list li::before {
  content: none;
}

.product-grid {
  align-items: stretch;
}

.product-card {
  display: block;
  text-decoration: none;
  padding: 1.3rem;
  border-radius: 20px;
  border: 1px solid rgba(25, 211, 211, 0.26);
  background: linear-gradient(170deg, rgba(8, 25, 40, 0.88), rgba(6, 18, 31, 0.88));
  box-shadow: var(--shadow);
  transition: border-color 220ms ease, transform 220ms ease, background-color 220ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(25, 211, 211, 0.58);
  transform: translateY(-4px);
}

.product-head {
  display: flex;
  align-items: center;
  gap: 0.78rem;
}

.product-title-wrap {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}

.product-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(25, 211, 211, 0.36);
  background: rgba(9, 28, 44, 0.8);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.product-icon svg {
  width: 1.8rem;
  height: 1.8rem;
}

.product-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.product-card h3 {
  font-size: 1.08rem;
}

.product-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 0, 0.56);
  background: rgba(255, 122, 0, 0.12);
  color: #ffbe86;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0.28rem 0.56rem;
}

.product-card p {
  margin: 0.78rem 0 0;
  color: var(--muted);
}

.product-link-row {
  margin-top: 1.05rem;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(25, 211, 211, 0.32);
  padding: 0.4rem 0.72rem;
  color: var(--turquoise);
  font-size: 0.82rem;
  transition: background-color 220ms ease;
  margin-left: 0;
  margin-right: auto;
  text-decoration: none;
}

.product-arrow {
  transition: transform 220ms ease;
}

.product-card:hover .product-link-row,
.product-card:focus-visible .product-link-row {
  background: rgba(25, 211, 211, 0.14);
}

.product-card:hover .product-arrow,
.product-card:focus-visible .product-arrow {
  transform: translateX(-2px) translateY(-1px);
}

.product-card.is-coming-soon .product-link-row {
  border-color: rgba(255, 122, 0, 0.44);
  color: #ffbe86;
  background: rgba(255, 122, 0, 0.08);
}

.product-card.is-coming-soon:hover .product-link-row,
.product-card.is-coming-soon:focus-visible .product-link-row {
  background: rgba(255, 122, 0, 0.14);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 22, 36, 0.72);
  padding: 1.45rem 0 1.2rem;
  margin-top: 0;
  scroll-snap-align: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(120px, 1fr);
  gap: 2rem;
  align-items: start;
}

.footer-info h3 {
  margin: 0;
  font-size: 1rem;
}

.footer-info p {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 60ch;
}

.footer-info ul {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.62rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-trust {
  justify-self: center;
}

.trust-stack {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  gap: 0.88rem;
}


.trust-box {
  margin-top: 0;
  width: clamp(108px, 11vw, 138px);
  aspect-ratio: 3 / 4;
  border: 1px dashed rgba(25, 211, 211, 0.48);
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  background: rgba(10, 27, 42, 0.58);

  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trust-box > a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.trust-box > a > img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}


.footer-bottom {
  margin: 2rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

[data-i18n] {
  transition: opacity 180ms ease, transform 180ms ease;
}

body.lang-switching [data-i18n] {
  opacity: 0;
  transform: translateY(4px);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--timing) cubic-bezier(0.2, 0.75, 0.3, 1),
    transform var(--timing) cubic-bezier(0.2, 0.75, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .cards-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card {
   padding: 1.45rem;
  }

  .feature-list li {
    padding-inline-start: 1.45rem;
    padding-inline-end: 1.45rem;
  }
}

@media (min-width: 761px) and (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem;
  }

  .footer-trust {
    justify-self: stretch;
  }
}

@media (max-width: 920px) {
  :root {
    --header-height: 72px;
  }

  .snap-section {
    padding-block: 2.2rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .hero .container {
    transform: translateY(-4.8vh);
  }
}

@media (max-width: 840px) {
  .header-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand lang"
      "nav nav";
    row-gap: 0.65rem;
    align-content: center;
    min-height: var(--header-height);
    height: auto;
    padding: 0.72rem 0;
  }

  .brand {
    grid-area: brand;
  }

  .primary-nav {
    grid-area: nav;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    max-height: 48px;
    opacity: 1;
    transform: translateY(0);
    transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease, padding-bottom 180ms ease;
  }

  .nav-list {
    justify-content: flex-start;
    width: max-content;
    gap: 0.9rem;
  }

  .lang-toggle {
    grid-area: lang;
    justify-self: end;
  }

  .site-header.nav-collapsed .primary-nav {
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    padding-bottom: 0;
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  .section {
    padding-block: 2.3rem;
  }

  .mobile-split {
    white-space: pre-line;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .footer-trust {
    justify-self: stretch;
  }

  .trust-box {
    width: min(160px, 43vw);
  }
}

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

  body {
    scroll-snap-type: y proximity;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-header,
  .btn,
  .product-card,
  .product-link-row,
  .product-arrow,
  [data-i18n] {
    transition: none;
  }

  .section-transitions .snap-section,
  .section-transitions .snap-section.section-active,
  .section-transitions .snap-section.section-before,
  .section-transitions .snap-section.section-after {
    opacity: 1;
    transform: none;
    filter: none;
    pointer-events: auto;
    transition: none;
  }
}
