/* Yemnzil landing — white, red, black */

:root {
  --bg: #ffffff;
  --bg-soft: #f9fafb;
  --ink: #111827;
  --ink-2: #1f2937;
  --muted: #4b5563;
  --line: #e5e7eb;
  --red: #c62828;
  --red-deep: #b71c1c;
  --red-soft: rgba(198, 40, 40, 0.1);
  --black: #111827;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(17, 24, 39, 0.18);
  --header: 76px;
  --font: "Inter", "Segoe UI", Tahoma, sans-serif;
  --font-ar: "Tajawal", "Inter", Tahoma, sans-serif;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: var(--font-ar);
}

body.nav-lock {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

::selection {
  background: rgba(198, 40, 40, 0.16);
  color: var(--ink);
}

[id] {
  scroll-margin-top: 92px;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
}

.skip:focus {
  top: 12px;
}

.drop-shadow-2xl {
  box-shadow: var(--shadow-lg);
}

.rounded-3xl {
  border-radius: 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
  backdrop-filter: blur(16px);
}

.nav-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  object-position: center top;
  border-radius: 10px;
  background: #fff;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}

html[dir="rtl"] .brand-name {
  letter-spacing: 0;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-start;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--red);
  background: var(--red-soft);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.lang-switch-menu {
  display: none;
}

.lang-switch a {
  min-width: 36px;
  min-height: 32px;
  padding: 4px 8px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.lang-switch a.is-active {
  background: var(--red);
  color: #fff;
}

.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.28);
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-red:hover {
  background: var(--red-deep);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
  background: #ffffff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 52% 46% at 78% 6%, rgba(198, 40, 40, 0.16), transparent 64%),
    radial-gradient(ellipse 36% 34% at 10% 86%, rgba(254, 202, 202, 0.5), transparent 70%),
    radial-gradient(ellipse 28% 26% at 46% 40%, rgba(243, 244, 246, 0.95), transparent 72%),
    radial-gradient(ellipse 24% 22% at 92% 74%, rgba(17, 24, 39, 0.05), transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(17, 24, 39, 0.075) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 78% 68% at 72% 38%, #000 12%, transparent 74%);
  pointer-events: none;
}

html[dir="rtl"] .hero::before {
  background:
    radial-gradient(ellipse 52% 46% at 22% 6%, rgba(198, 40, 40, 0.16), transparent 64%),
    radial-gradient(ellipse 36% 34% at 90% 86%, rgba(254, 202, 202, 0.5), transparent 70%),
    radial-gradient(ellipse 28% 26% at 54% 40%, rgba(243, 244, 246, 0.95), transparent 72%),
    radial-gradient(ellipse 24% 22% at 8% 74%, rgba(17, 24, 39, 0.05), transparent 72%);
}

html[dir="rtl"] .hero::after {
  mask-image: radial-gradient(ellipse 78% 68% at 28% 38%, #000 12%, transparent 74%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.92rem;
}

html[dir="rtl"] .eyebrow {
  padding: 6px 10px 6px 12px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(198, 40, 40, 0.16);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 0;
  max-width: 12em;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.hero-title-main {
  font-size: clamp(2.05rem, 4vw, 3.05rem);
}

.hero-title-accent {
  margin-top: 6px;
  color: var(--red);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  font-weight: 800;
  line-height: 1.3;
}

.hero-title-detail {
  margin-top: 10px;
  max-width: 28ch;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
}

html[dir="rtl"] .hero-title,
html[dir="rtl"] .section-head h2,
html[dir="rtl"] .legal h1 {
  letter-spacing: 0;
}

html[dir="rtl"] .hero-title {
  max-width: 14em;
}

html[dir="rtl"] .hero-title-main {
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  line-height: 1.35;
}

html[dir="rtl"] .hero-title-accent {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.45;
}

html[dir="rtl"] .hero-title-detail {
  max-width: 36ch;
  font-size: 0.98rem;
  line-height: 1.7;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  min-width: 0;
  margin-top: 22px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  min-width: 0;
  flex: 1 1 180px;
  padding: 8px 18px 8px 14px;
  border-radius: 16px;
  background: var(--black);
  color: #fff;
  border: 1px solid var(--black);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.16);
  transition: transform 0.2s ease, background 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  background: #000;
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: start;
}

.store-badge small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.78;
}

.store-badge strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[dir="rtl"] .store-badge strong {
  letter-spacing: 0;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(292px, 74vw);
}

.phone::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8% -10% -4%;
  background: radial-gradient(closest-side, rgba(198, 40, 40, 0.28), transparent 72%);
  filter: blur(10px);
}

.phone-frame {
  position: relative;
  padding: 11px;
  border-radius: 46px;
  background: linear-gradient(155deg, #5a5a5e 0%, #2c2c30 16%, #161618 52%, #0a0a0c 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.32),
    inset 0 0 0 4px #1c1c1e,
    0 30px 50px -18px rgba(17, 24, 39, 0.45),
    0 14px 28px rgba(17, 24, 39, 0.14);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 640 / 1272;
  border-radius: 36px;
  background: #0b0b0c;
}

.phone-screen img {
  position: absolute;
  width: calc(100% * 1080 / 640);
  height: calc(100% * 1920 / 1272);
  max-width: none;
  left: calc(100% * -220 / 640);
  top: calc(100% * -96 / 1272);
}

.phone-island {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 50%;
  width: 36%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050506;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 6px 12px rgba(0, 0, 0, 0.28);
}

.phone-btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #8a8a8e, #3a3a3e 45%, #1a1a1c);
}

.phone-silent {
  top: 16%;
  left: -3px;
  height: 20px;
}

.phone-vol-up {
  top: 24%;
  left: -3px;
  height: 46px;
}

.phone-vol-down {
  top: 36%;
  left: -3px;
  height: 46px;
}

.phone-power {
  top: 28%;
  right: -3px;
  height: 68px;
}

/* Sections */

.pillars,
.features,
.screens,
.legal {
  padding: 96px 0;
}

.hero,
.features,
.legal {
  background: #ffffff;
}

.pillars,
.screens {
  background: #f3f4f6;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-head h2,
.legal h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.05rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 900;
}

html[dir="rtl"] .section-head h2,
html[dir="rtl"] .legal h1 {
  line-height: 1.3;
}

.section-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar-card,
.feature-card {
  background: #ffffff;
  border: 1px solid #f3f4f6;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), 0 10px 24px -16px rgba(17, 24, 39, 0.12);
}

.pillar-card {
  padding: 28px 26px 30px;
  border-radius: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover,
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -12px rgba(17, 24, 39, 0.18), 0 8px 16px -8px rgba(17, 24, 39, 0.08);
}

.pillar-icon,
.feature-icon {
  display: grid;
  place-items: center;
  color: #dc2626;
  background: #fef2f2;
}

.pillar-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 14px;
  border-radius: 22px;
  font-size: 1.7rem;
}

.pillar-card h3,
.feature-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html[dir="rtl"] .pillar-card h3,
html[dir="rtl"] .feature-card h3 {
  letter-spacing: 0;
}

.pillar-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

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

.feature-card {
  grid-column: span 2;
  padding: 24px 22px 26px;
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:nth-child(4),
.feature-card:nth-child(5) {
  grid-column: span 3;
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  border-radius: 18px;
  font-size: 1.35rem;
}

.feature-card h3 {
  font-size: 1.12rem;
}

.feature-card p {
  font-size: 0.98rem;
}

/* Screenshots */

.shot-wrap {
  position: relative;
  max-width: 100%;
  padding-inline: 8px;
}

.shot-track {
  display: flex;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  padding: 12px 4px 28px;
  scrollbar-color: rgba(198, 40, 40, 0.55) transparent;
}

.shot {
  flex: 0 0 min(250px, 72vw);
  margin: 0;
  scroll-snap-align: center;
}

.shot img {
  width: 100%;
  height: auto;
  background: #fff;
}

.shot-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.shot-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.shot-btn svg {
  width: 20px;
  height: 20px;
}

.shot-btn.prev {
  inset-inline-start: 0;
}

.shot-btn.next {
  inset-inline-end: 0;
}

html[dir="rtl"] .shot-btn svg {
  transform: scaleX(-1);
}

/* Footer */

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0 32px;
  color: #f8fafc;
  background:
    radial-gradient(820px 280px at 0% 0%, rgba(198, 40, 40, 0.28), transparent 58%),
    radial-gradient(640px 260px at 100% 100%, rgba(198, 40, 40, 0.14), transparent 62%),
    linear-gradient(180deg, #1b1e26 0%, #101217 100%);
  box-shadow: 0 -28px 70px rgba(17, 24, 39, 0.12);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(198, 40, 40, 0.15) 14%, #ef5350 50%, rgba(198, 40, 40, 0.15) 86%, transparent 100%);
}

.site-footer::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset-block-start: -80px;
  inset-inline-start: 8%;
  width: 280px;
  height: 160px;
  border-radius: 50%;
  background: rgba(198, 40, 40, 0.22);
  filter: blur(48px);
  pointer-events: none;
}

.footer-grid,
.footer-bottom {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.72fr 0.68fr 1.15fr;
  gap: 56px 40px;
  align-items: start;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.site-footer .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.site-footer .brand-name {
  color: #fff;
  font-size: 1.28rem;
}

.footer-brand p {
  margin: 0;
  max-width: 36ch;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.98rem;
  line-height: 1.85;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.social {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    color 0.28s ease;
}

.social:hover {
  color: #fff;
  background: var(--red);
  border-color: transparent;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 14px 28px rgba(198, 40, 40, 0.42);
}

.social svg {
  width: 18px;
  height: 18px;
}

.site-footer h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer h2::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--red), rgba(198, 40, 40, 0));
}

html[dir="rtl"] .site-footer h2 {
  letter-spacing: 0;
  text-transform: none;
  font-size: 1.08rem;
}

html[dir="rtl"] .site-footer h2::after {
  background: linear-gradient(to left, var(--red), rgba(198, 40, 40, 0));
}

.footer-links,
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a,
.contact-list a {
  color: rgba(248, 250, 252, 0.74);
}

.footer-links a {
  position: relative;
  display: inline-flex;
  padding: 7px 0;
  font-weight: 500;
  transition: color 0.22s ease;
}

.footer-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 4px;
  width: 0;
  height: 1.5px;
  border-radius: 999px;
  background: var(--red);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-links a:hover,
.contact-list a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-links a:hover::after {
  width: 100%;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-list li + li {
  margin-top: 16px;
}

.contact-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: rgba(198, 40, 40, 0.18);
  border: 1px solid rgba(239, 83, 80, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contact-icon i {
  font-size: 0.92rem;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 1px;
}

.contact-label {
  display: block;
  margin-bottom: 1px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.46);
}

html[dir="rtl"] .contact-label {
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.82rem;
}

.contact-list a {
  font-weight: 600;
  color: #fff;
  overflow-wrap: anywhere;
  transition: color 0.22s ease;
}

.contact-list a:hover {
  color: #ffcdd2;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 250, 252, 0.5);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

/* Legal pages */

.legal-card {
  margin-top: 8px;
  padding: clamp(20px, 4vw, 48px);
  border-radius: 24px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.legal-card h1,
.legal-card h2,
.legal-card h3,
.legal-card h4 {
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.3;
}

.legal-card p,
.legal-card li {
  line-height: 1.75;
}

.legal-card a {
  color: var(--red);
  text-decoration: underline;
}

.legal-card ul,
.legal-card ol {
  padding-inline-start: 1.25em;
}

@media (max-width: 980px) {
  .feature-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card,
  .feature-card:nth-child(4),
  .feature-card:nth-child(5) {
    grid-column: auto;
  }

  .feature-card:last-child {
    grid-column: 1 / -1;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer {
    padding: 64px 0 26px;
  }

  .footer-bottom {
    margin-top: 40px;
  }
}

@media (max-width: 1040px) {
  .nav-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 8px;
    width: 100%;
  }

  .nav-end {
    display: contents;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .nav-end .lang-switch {
    display: none;
  }

  .lang-switch-menu {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 8px;
  }

  .nav-bar {
    gap: 8px;
  }

  .brand {
    min-width: 0;
  }

  .btn-red {
    flex: 0 1 auto;
    min-width: 0;
  }

  .nav-panel {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
  }

  .site-header.is-open .nav-panel {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    padding: 12px 8px;
  }

  .hero-grid,
  .pillar-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-title {
    max-width: none;
  }

  .hero-visual {
    order: 2;
  }

  .hero {
    padding: 36px 0 80px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1120px, calc(100% - 32px));
  }

  .hero {
    padding: 28px 0 72px;
  }

  .hero-title-main {
    font-size: 1.85rem;
  }

  .hero-title-accent {
    font-size: 1.15rem;
  }

  html[dir="rtl"] .hero-title-main {
    font-size: 1.7rem;
  }

  html[dir="rtl"] .hero-title-accent {
    font-size: 1.12rem;
  }

  .pillars,
  .features,
  .screens,
  .legal {
    padding: 80px 0;
  }

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

  .feature-card:last-child {
    grid-column: auto;
  }

  .site-footer {
    padding: 52px 0 22px;
  }

  .footer-grid {
    gap: 32px;
  }

  .footer-bottom {
    margin-top: 32px;
  }

  .brand-name {
    display: none;
  }

  .site-footer .brand-name {
    display: inline;
  }

  .btn-red {
    padding-inline: 12px;
    font-size: 0.92rem;
  }

  .store-row {
    flex-direction: column;
  }

  .store-badge {
    flex-basis: auto;
    width: 100%;
  }

  .shot-wrap {
    padding-bottom: 58px;
  }

  .shot-btn {
    top: auto;
    bottom: 0;
  }

  .shot-btn.prev {
    inset-inline-start: 28%;
  }

  .shot-btn.next {
    inset-inline-end: 28%;
  }
}

@media (max-width: 420px) {
  .lang-switch a {
    min-width: 32px;
    padding-inline: 6px;
  }

  .nav-end {
    gap: 6px;
  }

  .nav-end .btn-red {
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .store-badge {
    flex-basis: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .feature-card:hover,
  .pillar-card:hover,
  .btn-red:hover,
  .store-badge:hover,
  .social:hover {
    transform: none;
  }
}
