/* Consolak landing — tokens from docs/brand/palette.md · Vazirmatn self-host */

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

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

:root {
  --color-bg: #12122b;
  --color-surface: #1a2348;
  --color-brand: #ff6b1a;
  --color-accent: #14d8c4;
  --color-text: #f2f2f7;
  --font-sans: Vazirmatn, Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html[lang="fa"] {
  font-family: var(--font-sans);
}

html[lang="fa"] body {
  margin: 0;
  min-height: 100vh;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1rem;
}

main {
  margin: 0;
}

/* —— Hero: one composition, brand-first, full-bleed visual —— */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(
      to left,
      rgb(18 18 43 / 92%) 0%,
      rgb(18 18 43 / 78%) 42%,
      rgb(18 18 43 / 35%) 70%,
      rgb(18 18 43 / 20%) 100%
    ),
    url("./public/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__content {
  width: min(36rem, 100%);
  max-width: 100%;
}

.hero__brand,
.hero__title,
.hero__lead,
.hero__cta {
  animation: hero-rise 0.7s ease-out both;
}

.hero__brand {
  margin: 0 0 0.75rem;
  font-size: clamp(2.75rem, 9vw, 4.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--color-brand);
  animation-delay: 0.05s;
}

.hero__title {
  margin: 0;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  animation-delay: 0.14s;
}

.hero__title::before {
  content: "";
  display: block;
  width: 3rem;
  height: 0.2rem;
  margin-bottom: 0.85rem;
  background: var(--color-accent);
  border-radius: 999px;
}

.hero__lead {
  margin: 0.85rem 0 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
  opacity: 0.92;
  animation-delay: 0.24s;
}

.hero__cta {
  margin: 1.75rem 0 0;
  animation-delay: 0.34s;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.85rem 1.5rem;
  background: var(--color-brand);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.5;
  border-radius: 0.65rem;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.cta:hover,
.cta:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-2px);
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .hero {
    align-items: flex-end;
    padding-bottom: 2.25rem;
  }

  .hero__backdrop {
    background-image:
      linear-gradient(
        to top,
        rgb(18 18 43 / 94%) 0%,
        rgb(18 18 43 / 72%) 45%,
        rgb(18 18 43 / 40%) 100%
      ),
      url("./public/hero.jpg");
    background-position: 65% center;
  }
}

/* —— How it works: one job, three short steps —— */
.how {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  background: var(--color-bg);
}

.how__inner {
  width: min(40rem, 100%);
  margin-inline: auto;
}

.how__title {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
}

.how__lead {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
  opacity: 0.9;
}

.how__steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.how__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  animation: hero-rise 0.55s ease-out both;
}

.how__step:nth-child(1) {
  animation-delay: 0.45s;
}

.how__step:nth-child(2) {
  animation-delay: 0.58s;
}

.how__step:nth-child(3) {
  animation-delay: 0.71s;
}

.how__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  border-radius: 999px;
}

.how__step-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}

.how__step-text {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* —— Footer: product links only —— */
.site-footer {
  padding: 2rem clamp(1.5rem, 4vw, 3rem) 2.5rem;
  border-block-start: 1px solid rgb(242 242 247 / 12%);
  text-align: center;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
}

.site-footer__nav a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.site-footer__nav a:hover,
.site-footer__nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.site-footer__brand {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  line-height: 1.8;
  opacity: 0.75;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(0.85rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__brand,
  .hero__title,
  .hero__lead,
  .hero__cta,
  .how__step {
    animation: none;
  }

  .cta {
    transition: none;
  }

  .cta:hover,
  .cta:focus-visible {
    transform: none;
  }
}
