/* ==========================================================================
   Green Falcons — site styles
   ========================================================================== */
:root {
  --bg: #040b08;
  --bg-2: #08140f;
  --panel: rgba(12, 30, 20, .72);
  --panel-solid: #0c1d15;
  --line: rgba(110, 230, 150, .16);
  --line-strong: rgba(110, 235, 155, .38);
  --text: #e9f5ee;
  --muted: #93ab9d;
  --steel: #cfe0d6;
  --blue: #1fbf5a;
  --blue-2: #0f8a3c;
  --cyan: #6cf2a2;
  --amber: #ffb547;
  --radius: 14px;
  --font-display: "Oxanium", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 68px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip {
  position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; background: var(--blue); padding: 8px 14px; border-radius: 8px;
  clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap;
}
.skip:focus { clip-path: none; width: auto; height: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Type ---------- */
.kicker, .eyebrow {
  font: 600 .78rem/1 var(--font-display);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 14px;
}
.kicker::before { content: ""; display: inline-block; width: 26px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 12px; }
.h2 {
  font: 700 clamp(1.9rem, 4.2vw, 3rem)/1.1 var(--font-display);
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.accent { background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font: 600 .62rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); border: 1px solid rgba(255, 181, 71, .45); padding: 4px 6px; border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px;
  font: 700 .95rem/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase;
  border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  white-space: nowrap;
}
.btn--sm { --h: 38px; padding: 0 16px; font-size: .78rem; clip-path: none; }
.btn--lg { --h: 56px; padding: 0 30px; font-size: 1rem; }
.btn--xl { --h: 66px; padding: 0 40px; font-size: 1.12rem; }
.btn--primary {
  background: linear-gradient(180deg, #2fd36a 0%, var(--blue-2) 100%);
  box-shadow: 0 0 0 1px rgba(150, 255, 190, .35) inset, 0 10px 30px -8px rgba(31, 191, 90, .7);
  color: #fff;
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(180, 255, 210, .6) inset, 0 16px 40px -8px rgba(31, 191, 90, .95); }
.btn--ghost { background: rgba(255, 255, 255, .04); border-color: var(--line-strong); color: var(--steel); }
.btn--ghost:hover { background: rgba(108, 242, 162, .08); border-color: var(--cyan); color: #fff; }
.btn.is-disabled { filter: grayscale(.7) brightness(.8); cursor: default; }
.btn.is-disabled:hover { transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgba(4, 11, 8, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.nav__brand { margin-inline-end: auto; }
.lang {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px; cursor: pointer;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line-strong); border-radius: 8px; color: var(--steel);
  font: 600 .9rem/1 "Cairo", var(--font-display); transition: .2s;
}
.lang[lang="en"] { font-family: var(--font-display); letter-spacing: .06em; }
.lang:hover { color: #fff; border-color: var(--cyan); background: rgba(108, 242, 162, .08); }
.nav__brand img { width: auto; height: 50px; opacity: 0; transform: translateY(-6px); transition: .35s; }
.nav.is-scrolled .nav__brand img { opacity: 1; transform: none; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a:not(.btn) {
  font: 600 .82rem/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--cyan); transition: right .25s; }
.nav__links > a:not(.btn):hover { color: #fff; }
.nav__links > a:not(.btn):hover::after { right: 0; }
.nav__toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; padding: 0; }
.nav__toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--steel); transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--nav-h) + 30px) 0 90px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 70% at 50% 110%, #0b3a22 0%, transparent 60%),
    linear-gradient(180deg, #020604 0%, #061910 55%, #0a2a19 100%);
}
.hero__sky { position: absolute; inset: 0; z-index: -1; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(90, 220, 140, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 220, 140, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; left: 50%; top: 42%; width: min(1100px, 140vw); aspect-ratio: 2 / 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(31, 191, 90, .38), rgba(31, 191, 90, .08) 60%, transparent);
  filter: blur(10px);
}
.hero__reticle {
  position: absolute; right: 6%; top: 18%; width: clamp(140px, 18vw, 260px); opacity: .22;
  fill: none; stroke: var(--cyan); stroke-width: 1.2; animation: spin 40s linear infinite;
}
.contrail {
  position: absolute; height: 2px; width: 40vw; left: -45vw; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(210, 255, 225, .55));
  animation: fly 9s linear infinite; transform: rotate(-14deg);
}
.contrail::after { content: ""; position: absolute; right: -3px; top: -2px; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px var(--cyan); }
.c1 { top: 72%; animation-delay: 0s; }
.c2 { top: 86%; animation-delay: 3.2s; animation-duration: 11s; opacity: .6; }
.c3 { top: 58%; animation-delay: 6.5s; animation-duration: 13s; opacity: .4; }
@keyframes fly { to { left: 120vw; translate: 0 -34vh; } }
@keyframes spin { to { rotate: 360deg; } }

.hero__inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(8, 22, 14, .5); color: var(--steel); letter-spacing: .2em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3dff8a; box-shadow: 0 0 10px #3dff8a; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hero__logo { width: min(600px, 84vw); margin: 18px 0 6px; filter: drop-shadow(0 20px 60px rgba(20, 190, 90, .45)); animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
.hero__tag { font: 500 clamp(1.05rem, 2.2vw, 1.4rem)/1.4 var(--font-display); color: var(--steel); letter-spacing: .04em; margin: 0 0 30px; }
.hero__tag strong { color: #fff; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__scroll { position: absolute; bottom: 22px; left: 50%; translate: -50%; width: 26px; height: 42px; border: 2px solid var(--line-strong); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s infinite; }
@keyframes wheel { to { transform: translateY(14px); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section__head { margin-bottom: 44px; }
.frame {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--panel-solid);
}
.frame::before, .frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--cyan); pointer-events: none; z-index: 2;
}
.frame::before { top: -6px; left: -6px; border-right: 0; border-bottom: 0; border-top-left-radius: 6px; }
.frame::after { bottom: -6px; right: -6px; border-left: 0; border-top: 0; border-bottom-right-radius: 6px; }

/* About */
.about { background: linear-gradient(180deg, #0a2a19 0%, var(--bg) 30%); }
.about__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.about__copy p { margin: 0 0 18px; color: var(--muted); font-size: 1.06rem; }
.about__copy strong { color: var(--text); }

/* Features */
.features { background: radial-gradient(70% 50% at 80% 0%, rgba(31, 191, 90, .08), transparent 70%), var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; padding: 30px 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 40, 28, .8), rgba(8, 20, 14, .8));
  border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); opacity: 0; transition: .3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
.card__ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 20px; color: var(--cyan); background: rgba(31, 191, 90, .12); border: 1px solid rgba(108, 242, 162, .25); }
.card__ico svg { width: 26px; height: 26px; }
.card h3 { font: 700 1.15rem/1.3 var(--font-display); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Trailer */
.trailer { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.video { aspect-ratio: 16 / 9; overflow: hidden; }
.video iframe, .video__poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
.video__poster { cursor: pointer; padding: 0; background: #000 center / cover no-repeat; display: grid; place-items: center; }
.video__poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 30%, rgba(0, 0, 0, .55)); }
.play {
  position: relative; width: clamp(72px, 10vw, 104px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: rgba(31, 191, 90, .88); box-shadow: 0 0 0 10px rgba(31, 191, 90, .22), 0 0 50px rgba(31, 191, 90, .7); transition: transform .25s;
}
.play svg { width: 44%; height: 44%; margin-left: 6%; color: #fff; }
.video__poster:hover .play { transform: scale(1.08); }
.video__empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted);
  background: repeating-linear-gradient(135deg, rgba(90, 220, 140, .04) 0 14px, transparent 14px 28px), radial-gradient(circle, #0f2e1e, #06110b 70%); }
.video__empty svg { width: 64px; height: 64px; color: var(--line-strong); }
.video__empty p { margin: 0; font: 600 .9rem/1 var(--font-display); letter-spacing: .24em; text-transform: uppercase; }

/* Gallery */
.gallery { background: var(--bg-2); }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.shot {
  position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; padding: 0;
  border: 1px solid var(--line); background: #0a1a12; cursor: zoom-in;
}
.shot:first-child { grid-column: span 2; grid-row: span 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .3s; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption, .shot__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; text-align: left;
  font: 600 .78rem/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}
.shot--empty { cursor: default; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted);
  background: radial-gradient(circle at 50% 40%, #113322, #07130d 75%); }
.shot--empty svg { width: 36%; max-width: 90px; color: rgba(108, 242, 162, .28); }
.shot--empty span { font: 600 .72rem/1 var(--font-display); letter-spacing: .22em; text-transform: uppercase; }

/* Download */
.download { background: radial-gradient(60% 80% at 50% 100%, rgba(31, 191, 90, .22), transparent 70%), var(--bg); }
.download__panel {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(30px, 6vw, 64px);
  background: linear-gradient(135deg, rgba(14, 48, 30, .9), rgba(6, 16, 11, .95));
}
.download__note { color: var(--muted); margin: 14px 0 28px; }
.download__meta { margin: 16px 0 0; font-size: .85rem; color: var(--muted); letter-spacing: .05em; }
.specs { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 18px; background: rgba(4, 12, 8, .45); }
.specs div + div { border-top: 1px solid var(--line); }
.specs dt { font: 600 .74rem/1.9 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.specs dd { margin: 0; color: var(--steel); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 36px 0; background: #020604; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__inner img { width: auto; height: 64px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); transition: .2s; }
.footer__social a:hover { color: #fff; border-color: var(--cyan); }
.footer__social svg { width: 18px; height: 18px; }
.footer__copy { margin: 0; color: var(--muted); font-size: .85rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(2, 6, 4, .94); padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; max-width: min(1400px, calc(100vw - 40px)); width: auto; margin: auto; border-radius: 10px; border: 1px solid var(--line-strong); }
.lightbox figcaption { text-align: center; margin-top: 12px; color: var(--steel); font: 600 .85rem/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; }
.lightbox button { position: absolute; background: rgba(16, 40, 28, .8); border: 1px solid var(--line-strong); border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { border-color: var(--cyan); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 18px; top: 50%; translate: 0 -50%; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Arabic / right-to-left ---------- */
html[lang="ar"] {
  --font-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
/* Arabic letters must join, so no letter-spacing; keep Latin snippets in their own font */
html[lang="ar"] body :not([lang="en"]) { letter-spacing: 0; }
html[lang="ar"] [lang="en"]:not(.lang) { font-family: "Inter", "Segoe UI", sans-serif; }
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] .h2 { line-height: 1.35; }
html[lang="ar"] .about__copy p { font-size: 1.1rem; }
.kicker::before { margin-right: 0; margin-inline-end: 12px; }
.nav__links > a:not(.btn)::after { left: 0; right: auto; width: 0; transition: width .25s; inset-inline-start: 0; }
.nav__links > a:not(.btn):hover::after { width: 100%; }
.shot__cap { text-align: start; }
html[dir="rtl"] .contrail { transform: rotate(14deg) scaleX(-1); left: auto; right: -45vw; animation-name: fly-rtl; }
@keyframes fly-rtl { to { right: 120vw; translate: 0 -34vh; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about__grid, .download__panel { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 16px 22px; background: rgba(4, 11, 8, .97); border-bottom: 1px solid var(--line);
    transform: translateY(-110%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav__links > a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: .9rem; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 16px; --h: 50px; }
  .nav.is-open { background: rgba(4, 11, 8, .97); }
  .nav.is-open .nav__brand img { opacity: 1; transform: none; }
  .nav.is-open .nav__links { transform: none; visibility: visible; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .hero__reticle { display: none; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .nav__inner { gap: 10px; }
  .cards, .shots { grid-template-columns: 1fr; }
  .shot:first-child { grid-column: auto; grid-row: auto; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn, .download .btn { width: 100%; }
  .btn--xl { --h: 60px; padding: 0 20px; font-size: 1rem; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 18px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
