:root {
  --primary: #99cc33;
  --primary-token: #8cc63f;
  --primary-dark: #4e7500;
  --primary-light: #e7ffb7;
  --primary-deep: #064e3b;
  --secondary: #1a1a2e;
  --ink: #0f1018;
  --text: #f4f7ef;
  --muted: rgba(244, 247, 239, 0.72);
  --muted-dark: #6b7280;
  --line: rgba(153, 204, 51, 0.22);
  --line-dark: rgba(26, 26, 46, 0.1);
  --canvas: #f8f9fa;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4.25rem;
  --page-pad: clamp(1rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 0.95rem + 0.2vw, 1.05rem);
  line-height: 1.6;
  color: var(--secondary);
  background:
    radial-gradient(900px 480px at 100% -5%, rgba(153, 204, 51, 0.18), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, var(--canvas) 55%, #eef3e6 100%);
  overflow-x: hidden;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  padding-top: env(safe-area-inset-top);
  background: linear-gradient(180deg, rgba(15, 16, 24, 0.92), rgba(15, 16, 24, 0.5) 70%, transparent);
  backdrop-filter: blur(8px);
  color: var(--text);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(15, 16, 24, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  letter-spacing: -0.03em;
}

.brand img,
.brand-logo {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
  object-position: center;
  border-radius: 0.45rem;
  flex-shrink: 0;
}

.site-footer .brand-logo {
  width: 1.85rem;
  height: 1.85rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:not(.nav-cta):hover::after,
.nav a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 1rem;
  background: var(--primary);
  color: var(--ink) !important;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
  background: var(--primary-token);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(153, 204, 51, 0.35);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

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

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding:
    calc(var(--header-h) + env(safe-area-inset-top) + 1.5rem)
    var(--page-pad)
    clamp(2.5rem, 7vw, 5rem);
  isolation: isolate;
  color: var(--text);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transform: scale(1.04);
  animation: hero-zoom 18s var(--ease) infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 16, 24, 0.55) 0%, rgba(15, 16, 24, 0.35) 40%, rgba(15, 16, 24, 0.94) 100%),
    linear-gradient(90deg, rgba(15, 16, 24, 0.82) 0%, rgba(15, 16, 24, 0.3) 58%, transparent 100%);
}

.hero-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.hero-content {
  max-width: 38rem;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.85s var(--ease) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.14s; }
.hero-content > *:nth-child(3) { animation-delay: 0.22s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }
.hero-content > *:nth-child(5) { animation-delay: 0.38s; }

.brand-hero {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--primary);
  text-shadow: 0 0 40px rgba(153, 204, 51, 0.28);
  animation-name: brand-glow-in !important;
}

.arabic-tagline {
  margin: 0.55rem 0 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: var(--primary-light);
  direction: rtl;
}

.arabic-tagline.dark {
  color: var(--primary-dark);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 22ch;
  color: #fff;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  max-width: 42ch;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-phone {
  justify-self: end;
  opacity: 0;
  animation: phone-enter 1s var(--ease) 0.28s forwards;
  will-change: transform;
}

.hero-phone .device {
  animation: phone-float 5.5s var(--ease) 1.2s infinite;
}

/* Premium device mockup */
.device {
  --device-w: 230px;
  width: var(--device-w);
  position: relative;
  transition: transform 0.4s var(--ease);
}

.device.is-lifted {
  transform: translateY(-8px) scale(1.02);
}

.device-sm {
  --device-w: 180px;
}

.device-hero {
  --device-w: min(250px, 58vw);
}

.device-feature {
  --device-w: min(260px, 70vw);
  margin-inline: auto;
}

.device-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 430 / 932;
  padding: 10px;
  border-radius: 2rem;
  background: linear-gradient(160deg, #2a2a32 0%, #0d0d10 45%, #1a1a22 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 -1px 0 rgba(0, 0, 0, 0.5) inset,
    0 28px 50px rgba(0, 0, 0, 0.35),
    0 8px 16px rgba(0, 0, 0, 0.2);
}

.device-shell::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 2;
}

.device-island {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 3;
  width: 28%;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0a0a0c;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 1.45rem;
  background: #fff;
}

.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.showcase-stage {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(0.75rem, 2vw, 1.25rem);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  background:
    radial-gradient(600px 280px at 50% 20%, rgba(153, 204, 51, 0.18), transparent 70%),
    linear-gradient(180deg, #11131a 0%, #1a1a2e 100%);
  overflow: hidden;
}

.showcase-stage .phone-gallery {
  margin-bottom: 0;
  align-items: end;
}

.showcase-stage .phone-card figcaption {
  color: rgba(244, 247, 239, 0.88);
}

.showcase-stage .phone-card span {
  color: rgba(244, 247, 239, 0.62);
}

.phone-card-featured {
  transform: translateY(-18px);
}

.phone-card-featured .device {
  --device-w: 250px;
}

.phone-frame {
  width: min(240px, 58vw);
  border-radius: 1.6rem;
  overflow: hidden;
  border: 3px solid rgba(244, 247, 239, 0.35);
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.phone-frame.tall {
  width: min(260px, 70vw);
  margin-inline: auto;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--ink);
  box-shadow: 0 0 0 0 rgba(153, 204, 51, 0.45);
  animation: cta-pulse 2.8s var(--ease) infinite;
}

.btn-primary:hover {
  background: var(--primary-token);
  animation: none;
  box-shadow: 0 10px 28px rgba(153, 204, 51, 0.4);
}

.btn-ghost {
  border-color: rgba(244, 247, 239, 0.35);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Sections */
.section {
  padding: clamp(3.25rem, 8vw, 6.5rem) var(--page-pad);
  max-width: 1100px;
  margin: 0 auto;
}

.section-intro {
  max-width: 40rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.section-intro .lang-switch {
  margin-top: 1.25rem;
}

.lang-switch {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(26, 26, 46, 0.06);
  border: 1px solid var(--line-dark);
}

.lang-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 2.4rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--muted-dark);
  background: transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.lang-btn:hover {
  color: var(--secondary);
}

.lang-btn.is-active {
  background: var(--primary);
  color: var(--ink);
  box-shadow: 0 6px 16px rgba(153, 204, 51, 0.3);
}

.lang-panel[hidden] {
  display: none !important;
}

.lang-badge {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

.showcase-stage .lang-badge {
  text-align: center;
}

.section-intro h2,
.feature-copy h2,
.cta-panel h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4.5vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--secondary);
}

.section-intro p,
.cta-panel > p:not(.brand-hero):not(.arabic-tagline) {
  margin: 0;
  color: var(--muted-dark);
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.75rem;
}

.about-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.about-item p {
  margin: 0;
  color: var(--muted-dark);
  font-weight: 600;
}

/* Screenshots */
.screens {
  max-width: 1140px;
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  align-items: start;
  justify-items: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.secondary-gallery {
  margin-bottom: 0;
}

.secondary-gallery .device {
  --device-w: min(200px, 56vw);
}

.app-flow {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.app-flow h3 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.flow-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.75rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.flow-strip .device {
  scroll-snap-align: start;
}

.phone-card {
  margin: 0;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
  width: 100%;
}

.phone-card .phone-frame {
  width: min(220px, 100%);
}

.phone-card figcaption,
.shot-card figcaption {
  display: grid;
  gap: 0.25rem;
}

.phone-card strong,
.shot-card strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.phone-card span,
.shot-card figcaption {
  color: var(--muted-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.shot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.shot-card {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.35rem;
}

.inline-link {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.figma-board {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 0.85rem;
}

.figma-board img {
  width: 100%;
  max-height: min(72vh, 900px);
  object-fit: contain;
  object-position: top center;
  background: #f3f4f6;
  border-radius: 0.45rem;
  border: 1px solid var(--line-dark);
}

.figma-board figcaption {
  display: grid;
  gap: 0.2rem;
}

.figma-board strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.figma-board span {
  color: var(--muted-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

/* AI vision gallery */
.vision {
  max-width: 1140px;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.vision-hero {
  grid-row: 1 / span 2;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.vision-card {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.vision-hero img,
.vision-card img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
  border-radius: 0.4rem;
}

.vision-hero img {
  min-height: 28rem;
  aspect-ratio: 4 / 5;
}

.vision-card img {
  aspect-ratio: 16 / 10;
}

.vision-hero figcaption,
.vision-card figcaption {
  display: grid;
  gap: 0.2rem;
}

.vision-hero strong,
.vision-card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.vision-hero span,
.vision-card span {
  color: var(--muted-dark);
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-banner {
  margin: 0 0 1.75rem;
  overflow: hidden;
  border-radius: 0.4rem;
}

.admin-banner img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.feature-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 22rem;
  padding: 1.5rem 0;
  border-radius: 1.25rem;
  background:
    radial-gradient(420px 220px at 50% 40%, rgba(153, 204, 51, 0.16), transparent 70%),
    linear-gradient(180deg, #f4f7ef 0%, #e8efe0 100%);
}

.feature-image {
  width: min(100%, 340px);
  overflow: hidden;
  border-radius: 0.45rem;
}

.feature-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.feature-phone {
  position: absolute;
  right: 4%;
  bottom: -0.5rem;
  width: min(160px, 38%) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.platform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

.platform-block h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.55rem);
  letter-spacing: -0.03em;
}

.platform-block > p {
  margin: 0 0 1.1rem;
  color: var(--muted-dark);
  font-weight: 600;
}

.platform-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-block li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.2rem;
  border-top: 1px solid var(--line-dark);
  font-weight: 700;
  color: var(--secondary);
}

.platform-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--primary);
}

.role-list,
.admin-list {
  border-top: 1px solid var(--line-dark);
}

.role-row,
.admin-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.32fr) 1fr;
  gap: 1rem 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.role-row h3,
.admin-row h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.role-row p,
.admin-row p {
  margin: 0;
  color: var(--muted-dark);
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.75rem, 4vw, 3.25rem);
  align-items: center;
  max-width: 1100px;
}

.steps {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  column-gap: 0.85rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line-dark);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.steps strong {
  display: block;
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.steps span {
  grid-column: 2;
  color: var(--muted-dark);
  font-weight: 600;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 1.75rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.75rem;
}

.cap-item h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.cap-item p {
  margin: 0;
  color: var(--muted-dark);
  font-weight: 600;
  font-size: 0.96rem;
}

.club-strip {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
}

.club-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.club-row img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 999px;
  border: 2px solid rgba(153, 204, 51, 0.35);
  background: #fff;
}

.flow-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
  border-top: 1px solid var(--line-dark);
}

.flow-steps li {
  counter-increment: flow;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.flow-steps li::before {
  content: counter(flow, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.flow-steps strong {
  display: block;
  grid-column: 2;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.flow-steps span {
  grid-column: 2;
  color: var(--muted-dark);
  font-weight: 600;
}

.cta-section {
  max-width: 860px;
}

.cta-panel {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.cta-brand {
  font-size: clamp(2.2rem, 7vw, 4rem) !important;
  color: var(--primary-dark) !important;
  text-shadow: none !important;
}

.cta-panel h2 {
  max-width: 16ch;
}

.cta-panel > p:not(.brand-hero):not(.arabic-tagline) {
  max-width: 38ch;
  margin: 0 0 1.5rem;
}

.site-footer {
  padding: 2.25rem var(--page-pad) calc(2.5rem + env(safe-area-inset-bottom));
  display: grid;
  gap: 0.4rem;
  background: var(--secondary);
  color: var(--text);
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.fineprint {
  font-size: 0.78rem !important;
  opacity: 0.75;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease),
    filter 0.85s var(--ease);
  filter: blur(4px);
  transition-delay: var(--stagger, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

.reveal-stagger {
  transition-delay: var(--stagger, 0s);
}

.reveal-delay {
  --stagger: 0.1s;
}

.reveal-delay-2 {
  --stagger: 0.18s;
}

.phone-card .phone-frame img,
.feature-image img,
.admin-banner img,
.shot-card img {
  transition: transform 0.7s var(--ease);
}

.phone-card:hover .phone-frame img,
.feature-image:hover img,
.shot-card:hover img {
  transform: scale(1.04);
}

.about-item,
.cap-item,
.platform-block {
  transition: transform 0.35s var(--ease);
}

.about-item:hover,
.cap-item:hover,
.platform-block:hover {
  transform: translateY(-4px);
}

.flow-strip {
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.role-row,
.admin-row,
.flow-steps li,
.steps li {
  transition: background 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.role-row:hover,
.admin-row:hover,
.flow-steps li:hover,
.steps li:hover {
  background: rgba(153, 204, 51, 0.08);
}

.cta-panel .btn-primary {
  animation: cta-pulse 2.4s var(--ease) infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes brand-glow-in {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes phone-enter {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.92) rotate(2deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes cta-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(153, 204, 51, 0.35);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(153, 204, 51, 0);
  }
}

/* Tablet */
@media (max-width: 960px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top));
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem var(--page-pad) 1.1rem;
    background: rgba(15, 16, 24, 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .nav.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 0.65rem;
    text-align: center;
  }

  .hero-layout,
  .platform-grid,
  .features,
  .about-grid,
  .cap-grid,
  .shot-strip,
  .vision-grid {
    grid-template-columns: 1fr;
  }

  .vision-hero {
    grid-row: auto;
  }

  .vision-hero img {
    min-height: 16rem;
    aspect-ratio: 16 / 10;
  }

  .admin-banner img {
    aspect-ratio: 16 / 9;
  }

  .feature-visual {
    min-height: 18rem;
    margin-bottom: 1rem;
  }

  .feature-phone {
    right: 8%;
    width: min(140px, 42%) !important;
  }

  .phone-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-phone {
    justify-self: center;
    order: -1;
    margin-bottom: 0.5rem;
  }

  .hero-phone .phone-frame {
    width: min(180px, 46vw);
  }

  .hero {
    align-items: center;
  }

  .hero h1 {
    max-width: none;
  }

  .role-row,
  .admin-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .phone-gallery {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .phone-card-featured {
    transform: none;
  }

  .phone-card-featured .device,
  .showcase-stage .device,
  .secondary-gallery .device {
    --device-w: min(250px, 68vw);
  }

  .flow-strip .device {
    --device-w: min(200px, 62vw);
  }

  .hero-phone .device {
    --device-w: min(200px, 50vw);
  }

  .feature-visual {
    min-height: auto;
    padding: 1.75rem 1rem;
  }

  .shot-strip {
    grid-auto-flow: column;
    grid-auto-columns: minmax(72%, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.85rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }

  .shot-card {
    scroll-snap-align: start;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .club-row img {
    width: 3rem;
    height: 3rem;
  }
}

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

  .hero-media img,
  .hero-content,
  .hero-content > *,
  .hero-phone,
  .hero-phone .phone-frame,
  .btn-primary,
  .reveal,
  .phone-frame,
  .phone-card .phone-frame img,
  .feature-image img,
  .shot-card img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
