/* Spire Falcon — site styles */
:root {
  --c-acc1: #FFC24A;
  --c-acc2: #FF5C2B;
  --c-violet: #6C4DF6;
  --c-cyan: #2BE0C8;
  --c-bg: #120D26;
  --c-bg2: #181030;
  --c-card: #1B1338;
  --c-line: #2C2154;
  --c-ink: #F4F1FF;
  --c-muted: #9D93C8;
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Space Grotesk', 'Cairo', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--font-ar);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 13, 38, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-ink); }
.brand svg { width: 40px; height: 40px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: 0.02em; line-height: 1.15; }
.brand-name small { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.32em; color: var(--c-acc1); }
.nav-links { display: flex; gap: 8px; margin-inline-start: auto; }
.nav-links a {
  color: var(--c-muted); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--c-ink); background: rgba(108, 77, 246, 0.18); }
.lang-toggle {
  display: flex; border: 1px solid var(--c-line); border-radius: 999px; overflow: hidden;
  background: var(--c-card);
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--c-muted); font-family: inherit;
  font-weight: 700; font-size: 13px; padding: 7px 16px; cursor: pointer; transition: all .2s;
}
.lang-toggle button.active { background: linear-gradient(135deg, var(--c-acc1), var(--c-acc2)); color: #1A0E05; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 16px; border-radius: 14px;
  padding: 13px 28px; border: 0; transition: transform .18s, box-shadow .18s, filter .18s;
}
.btn-primary { background: linear-gradient(135deg, var(--c-acc1), var(--c-acc2)); color: #1A0E05; }
.btn-ghost { background: transparent; color: var(--c-ink); border: 1.5px solid var(--c-line); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
body.glow .btn-primary:hover { box-shadow: 0 8px 32px color-mix(in oklab, var(--c-acc2) 55%, transparent); }
.btn-nav { padding: 9px 20px; font-size: 14px; border-radius: 11px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; pointer-events: none; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18, 13, 38, 0.86) 0%, rgba(18, 13, 38, 0.92) 55%, #120D26 88%, #120D26 100%);
}
.hero .container, .hero .facet { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--c-cyan); font-weight: 700; font-size: 14px; letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 26px; height: 3px; background: var(--c-cyan); border-radius: 2px; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 64px); line-height: 1.18; margin: 0 0 20px; font-weight: 800;
  text-wrap: balance;
}
.hero h1 .hl { color: transparent; background: linear-gradient(110deg, var(--c-acc1), var(--c-acc2)); -webkit-background-clip: text; background-clip: text; }
.hero p { color: var(--c-muted); font-size: 19px; max-width: 34em; margin: 0 0 34px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-mark { position: relative; display: flex; justify-content: center; }
.hero-mark svg { width: min(360px, 80%); height: auto; }
body.glow .hero-mark svg { filter: drop-shadow(0 0 64px rgba(255, 110, 45, 0.38)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-mark svg { animation: sf-float 5.5s ease-in-out infinite; }
  @keyframes sf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
}
.facet { clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: 0.5; pointer-events: none; }
.facet { position: absolute; }
.f1 { width: 90px; height: 80px; background: var(--c-violet); top: 10%; inset-inline-end: 6%; opacity: .25; transform: rotate(18deg); }
.f2 { width: 46px; height: 40px; background: var(--c-cyan); bottom: 14%; inset-inline-end: 38%; opacity: .3; transform: rotate(-24deg); }
.f3 { width: 60px; height: 52px; background: var(--c-acc2); top: 18%; inset-inline-start: 42%; opacity: .2; transform: rotate(40deg); }

.stats { display: flex; gap: 16px; margin-top: 64px; flex-wrap: wrap; }
.stat {
  flex: 1 1 200px; background: var(--c-card); border: 1px solid var(--c-line);
  border-radius: 18px; padding: 22px 26px;
}
.stat b { display: block; font-size: 34px; font-weight: 800; line-height: 1.2; color: var(--c-acc1); }
.stat span { color: var(--c-muted); font-size: 15px; font-weight: 600; }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.sec-alt { background: var(--c-bg2); }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; line-height: 1.25; margin: 0 0 14px; }
.sec-head p { color: var(--c-muted); font-size: 18px; margin: 0; text-wrap: pretty; }

/* About */
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.loc-card {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: 20px;
  padding: 30px; position: relative; overflow: hidden;
}
.loc-card::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--c-acc1), var(--c-acc2));
}
.loc-card.alt::before { background: linear-gradient(var(--c-cyan), var(--c-violet)); }
.loc-card h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.loc-card p { margin: 0; color: var(--c-muted); }
.loc-flag { font-size: 13px; font-weight: 700; color: var(--c-cyan); letter-spacing: 0.06em; margin-bottom: 10px; display: block; }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card { display: flex; flex-direction: column; gap: 14px; }
.work-card image-slot { width: 100%; aspect-ratio: 16 / 10; display: block; }
.work-meta { display: flex; align-items: center; gap: 10px; }
.chip {
  font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px;
  background: rgba(43, 224, 200, 0.12); color: var(--c-cyan);
}
.chip.v { background: rgba(108, 77, 246, 0.16); color: #A78FFF; }
.chip.a { background: rgba(255, 138, 43, 0.14); color: var(--c-acc1); }
.work-title { font-weight: 700; font-size: 16px; color: var(--c-ink); }

.work-more { margin-top: 22px; }
.work-more[hidden] { display: none; }
.work-more-wrap { display: flex; justify-content: center; margin-top: 44px; }

/* Careers */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.role-card {
  background: var(--c-card); border: 1px solid var(--c-line); border-radius: 20px;
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.role-card:hover { transform: translateY(-5px); border-color: var(--c-violet); }
body.glow .role-card:hover { box-shadow: 0 14px 44px rgba(108, 77, 246, 0.28); }
.role-icon { width: 46px; height: 46px; }
.role-card h3 { margin: 0; font-size: 21px; font-weight: 800; }
.role-card p { margin: 0; color: var(--c-muted); font-size: 15.5px; flex: 1; }
.role-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.role-apply {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--c-acc1); font-weight: 800; font-size: 15px;
}
.role-apply .arr { transition: transform .2s; display: inline-block; }
.role-card:hover .arr { transform: translateX(4px); }
html[dir="rtl"] .role-card:hover .arr { transform: translateX(-4px); }

/* Contact */
.contact-card {
  background: linear-gradient(135deg, rgba(255, 138, 43, 0.12), rgba(108, 77, 246, 0.14));
  border: 1px solid var(--c-line); border-radius: 24px; padding: 56px 40px; text-align: center;
}
.contact-card h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; font-weight: 800; }
.contact-card p { color: var(--c-muted); margin: 0 auto 30px; max-width: 36em; }
.email-link {
  display: inline-block; font-weight: 800; font-size: clamp(19px, 2.6vw, 26px);
  color: var(--c-cyan); text-decoration: none; border-bottom: 2px solid var(--c-cyan);
  padding-bottom: 2px; direction: ltr;
}
.contact-locs { display: flex; justify-content: center; gap: 28px; margin-top: 30px; flex-wrap: wrap; color: var(--c-muted); font-size: 14.5px; font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--c-line); padding: 30px 0; }
.foot-inner { display: flex; align-items: center; gap: 14px; color: var(--c-muted); font-size: 14px; }
.foot-inner svg { width: 26px; height: 26px; }
.foot-inner .sp { margin-inline-start: auto; }

/* Responsive */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { order: -1; }
  .hero-mark svg { width: 200px; }
  .work-grid, .roles { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .work-grid, .roles, .about-grid { grid-template-columns: 1fr; }
}
