/* ==========================================================================
   Future AI — Master Stylesheet
   ========================================================================== */

:root {
  --bg-0: #05070f;
  --bg-1: #0a0e1c;
  --bg-2: #0d1326;
  --surface: #111832;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text-0: #f4f6fb;
  --text-1: #c7cde0;
  --text-2: #8b93ad;

  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --accent: #2dd4bf;
  --accent-2: #a78bfa;

  --grad-indigo: linear-gradient(135deg, #6366f1, #8b5cf6);
  --grad-teal: linear-gradient(135deg, #0d9488, #22d3ee);
  --grad-pink: linear-gradient(135deg, #d946ef, #ec4899);

  --gradient-brand: linear-gradient(120deg, var(--accent) 0%, var(--primary) 55%, var(--accent-2) 100%);
  --gradient-text: linear-gradient(90deg, #2dd4bf 0%, #818cf8 55%, #a78bfa 100%);
  --gradient-surface: linear-gradient(160deg, rgba(99, 102, 241, 0.12), rgba(45, 212, 191, 0.05));

  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 40px rgba(6, 10, 25, 0.45);
  --shadow-glow: 0 0 0 1px rgba(123, 92, 255, 0.15), 0 20px 60px rgba(79, 107, 255, 0.15);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-full: 999px;

  --container: 1180px;
  --header-h: 84px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------- */
/* Reset                                                                       */
/* -------------------------------------------------------------------------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection { background: var(--primary); color: #fff; }

/* Background ambience */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
}
body::before {
  top: -180px;
  inset-inline-start: -160px;
  background: var(--primary);
}
body::after {
  bottom: -220px;
  inset-inline-end: -180px;
  background: var(--accent);
  opacity: 0.16;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 110px 0; }
section.tight { padding: 72px 0; }

.bg-alt { background: var(--bg-2); }

/* -------------------------------------------------------------------------- */
/* Typography helpers                                                          */
/* -------------------------------------------------------------------------- */
h1, h2, h3, h4 { color: var(--text-0); font-weight: 800; line-height: 1.3; }
h1 { font-size: clamp(2.4rem, 4.5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { color: var(--text-1); }

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  background: rgba(23, 216, 201, 0.08);
  border: 1px solid rgba(23, 216, 201, 0.25);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(23, 216, 201, 0.2);
}

.section-head { max-width: 700px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-top: 16px; }

/* -------------------------------------------------------------------------- */
/* Buttons                                                                     */
/* -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }

.btn-primary {
  background: var(--gradient-brand);
  color: #05070f;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 45px rgba(123, 92, 255, 0.32); }
.btn-primary:hover svg { transform: translateX(-3px); }
html[dir="ltr"] .btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  background: var(--surface-soft);
  color: var(--text-0);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); transform: translateY(-3px); }

.btn-lg { padding: 18px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------------- */
/* Header                                                                      */
/* -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}
.header.scrolled {
  background: rgba(8, 11, 22, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--text-0); }
.logo-mark { width: 40px; height: 40px; }
.logo-text .accent { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  position: relative;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--text-1);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav-link:hover { color: var(--text-0); background: var(--surface-soft); }
.nav-link.active { color: var(--text-0); background: var(--surface-soft); }
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  inset-inline: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-strong);
  color: var(--text-1);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lang-switch:hover { background: var(--surface-soft); color: var(--text-0); border-color: rgba(255,255,255,0.3); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  border: 1px solid var(--border);
}
.menu-toggle span { width: 20px; height: 2px; margin-inline: auto; background: var(--text-0); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------------------------------------------------- */
/* Hero                                                                        */
/* -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(var(--header-h) + 90px);
  padding-bottom: 100px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-bottom: 24px; }
.hero-lead { font-size: 1.18rem; max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats .stat-num { font-size: 1.8rem; font-weight: 800; color: var(--text-0); }
.hero-stats .stat-num span { color: var(--accent); }
.hero-stats .stat-label { font-size: 0.88rem; color: var(--text-2); margin-top: 4px; }

.hero-pills { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-pill { padding: 9px 20px; border-radius: var(--radius-full); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.03em; border: 1px solid; background: rgba(255,255,255,0.03); }
.hero-pill:nth-child(3n+1) { color: var(--accent); border-color: rgba(45,212,191,0.35); }
.hero-pill:nth-child(3n+2) { color: #a5b4fc; border-color: rgba(99,102,241,0.4); }
.hero-pill:nth-child(3n) { color: var(--accent-2); border-color: rgba(167,139,250,0.4); }

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-brand);
  opacity: 0.35;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.hero-orb {
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(123,92,255,0.5), rgba(23,216,201,0.15) 60%, transparent 75%);
  filter: blur(2px);
  animation: float 7s ease-in-out infinite;
}
.hero-card {
  position: absolute;
  background: rgba(13, 19, 38, 0.85);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}
.hero-card .ico {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-indigo); color: #fff; flex: none;
}
.hero-card.c1 .ico { background: var(--grad-indigo); }
.hero-card.c2 .ico { background: var(--grad-teal); }
.hero-card.c3 .ico { background: var(--grad-pink); }
.hero-card .ico svg { width: 20px; height: 20px; }
.hero-card strong { display: block; color: var(--text-0); font-size: 0.95rem; }
.hero-card small { color: var(--text-2); font-size: 0.78rem; }
.hero-card.c1 { top: 6%; inset-inline-start: -6%; animation: float 6s ease-in-out infinite; }
.hero-card.c2 { bottom: 10%; inset-inline-end: -8%; animation: float 8s ease-in-out infinite 1s; }
.hero-card.c3 { bottom: -4%; inset-inline-start: 12%; animation: float 7.5s ease-in-out infinite 0.5s; }

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

.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 30px 0; overflow: hidden; }
.marquee-label { text-align: center; color: var(--text-2); font-size: 0.85rem; margin-bottom: 22px; letter-spacing: 0.04em; }
.marquee { display: flex; gap: 60px; white-space: nowrap; animation: scroll-x 26s linear infinite; width: max-content; }
.marquee span { font-weight: 700; color: var(--text-2); font-size: 1.05rem; opacity: 0.7; }
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* -------------------------------------------------------------------------- */
/* Cards / Grids                                                               */
/* -------------------------------------------------------------------------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gradient-surface);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.card:hover { transform: translateY(-8px); border-color: var(--border-strong); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-ico {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-indigo);
  color: #fff;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}
/* Cycle icon-tile color across repeating card grids to match brand system */
.grid .card:nth-of-type(3n+1) .card-ico { background: var(--grad-indigo); }
.grid .card:nth-of-type(3n+2) .card-ico { background: var(--grad-teal); }
.grid .card:nth-of-type(3n) .card-ico { background: var(--grad-pink); }
.card-ico svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.97rem; }

.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; color: var(--accent); font-size: 0.9rem; }
.card-link svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.card:hover .card-link svg { transform: translateX(-4px); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-full); background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-2); }

/* -------------------------------------------------------------------------- */
/* Vision 2030 section                                                         */
/* -------------------------------------------------------------------------- */
.vision-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(79,107,255,0.10), rgba(13,19,38,0.4) 55%);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.vision-badge {
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #05070f; font-weight: 800; font-size: 1.5rem; text-align: center; line-height: 1.2;
  box-shadow: var(--shadow-glow);
  margin-bottom: 26px;
}
.vision-list { display: grid; gap: 18px; }
.vision-item { display: flex; gap: 14px; align-items: flex-start; }
.vision-item .dot {
  width: 30px; height: 30px; border-radius: 9px; flex: none; margin-top: 2px;
  background: var(--surface-soft); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.vision-item .dot svg { width: 15px; height: 15px; }
.vision-item strong { color: var(--text-0); display: block; margin-bottom: 3px; }
.vision-item span { font-size: 0.92rem; color: var(--text-2); }

/* -------------------------------------------------------------------------- */
/* Process / Timeline                                                          */
/* -------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.process::before {
  content: "";
  position: absolute; top: 27px; inset-inline: 6%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong) 15%, var(--border-strong) 85%, transparent);
  z-index: 0;
}
.process-step { position: relative; z-index: 1; text-align: center; }
.process-num {
  width: 56px; height: 56px; margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--accent); font-size: 1.1rem;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.87rem; }
.process-step.is-current .process-num { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(45,212,191,0.12); }

/* -------------------------------------------------------------------------- */
/* Phase cards (engagement roadmap)                                           */
/* -------------------------------------------------------------------------- */
.phase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 32px 28px; height: 100%; display: flex; flex-direction: column; }
.phase-top { display: flex; align-items: baseline; gap: 16px; margin-bottom: 6px; }
.phase-num { font-size: 2.3rem; font-weight: 800; line-height: 1; }
.grid-3 .phase-card:nth-of-type(3n+1) .phase-num { color: var(--accent); }
.grid-3 .phase-card:nth-of-type(3n+2) .phase-num { color: var(--primary); }
.grid-3 .phase-card:nth-of-type(3n) .phase-num { color: var(--accent-2); }
.phase-meta { display: flex; flex-direction: column; }
.phase-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.phase-title { font-size: 1.15rem; font-weight: 800; color: var(--text-0); }
.phase-card ul { margin-top: 18px; display: grid; gap: 12px; }
.phase-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-1); }
.phase-card li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }
.phase-note { margin-top: auto; padding-top: 20px; font-size: 0.85rem; color: var(--text-2); font-style: italic; }

/* -------------------------------------------------------------------------- */
/* Engagement model badges                                                    */
/* -------------------------------------------------------------------------- */
.engagement-badge { display: inline-block; margin-top: 18px; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }

/* -------------------------------------------------------------------------- */
/* Stats bar                                                                   */
/* -------------------------------------------------------------------------- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-box { text-align: center; padding: 30px 20px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.stat-box .num { font-size: 2.4rem; font-weight: 800; color: var(--text-0); }
.stat-box .num span { color: var(--accent); }
.stat-box .lbl { color: var(--text-2); font-size: 0.9rem; margin-top: 8px; }

/* -------------------------------------------------------------------------- */
/* CTA band                                                                    */
/* -------------------------------------------------------------------------- */
.cta-band {
  border-radius: var(--radius-lg);
  background: var(--gradient-brand);
  padding: 70px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #05070f;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #05070f; margin-bottom: 10px; }
.cta-band p { color: rgba(5,7,15,0.75); font-size: 1.05rem; max-width: 480px; }
.cta-band .btn-ghost { background: rgba(5,7,15,0.12); border-color: rgba(5,7,15,0.25); color: #05070f; }
.cta-band .btn-ghost:hover { background: rgba(5,7,15,0.2); }
.cta-band .btn-dark { background: #05070f; color: #fff; }
.cta-band .btn-dark:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,0.35); }

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.footer { background: var(--bg-0); border-top: 1px solid var(--border); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; margin: 18px 0 22px; }
.footer h4 { color: var(--text-0); font-size: 1rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.92rem; color: var(--text-2); transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); margin-bottom: 14px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.social-row { display: flex; gap: 10px; margin-top: 20px; }
.social-row a { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-soft); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: background 0.25s var(--ease), border-color 0.25s var(--ease); }
.social-row a:hover { background: rgba(255,255,255,0.08); border-color: var(--border-strong); }
.social-row svg { width: 17px; height: 17px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: var(--text-2);
}
.footer-bottom a { color: var(--text-2); }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom-links { display: flex; gap: 20px; }

/* -------------------------------------------------------------------------- */
/* Page hero (inner pages)                                                     */
/* -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + 80px);
  padding-bottom: 70px;
  text-align: center;
}
.page-hero .section-head { margin-inline: auto; }
.breadcrumbs { display: flex; justify-content: center; gap: 8px; font-size: 0.88rem; color: var(--text-2); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--accent); }

/* -------------------------------------------------------------------------- */
/* About page                                                                  */
/* -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse { direction: ltr; }
.split.reverse > * { direction: rtl; }

.value-list { display: grid; gap: 22px; margin-top: 30px; }
.value-item { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--border); background: var(--surface); }
.value-item .num { font-weight: 800; font-size: 1.4rem; color: var(--accent); flex: none; width: 44px; }
.value-item strong { display: block; color: var(--text-0); margin-bottom: 6px; }
.value-item p { font-size: 0.92rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.team-card { text-align: center; }
.team-avatar {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius-md);
  background: var(--gradient-surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  color: var(--accent);
}
.team-avatar svg { width: 46px; height: 46px; }
.team-card strong { display: block; color: var(--text-0); font-size: 1rem; }
.team-card span { font-size: 0.85rem; color: var(--text-2); }

.timeline { display: grid; gap: 4px; }
.timeline-item { display: grid; grid-template-columns: 110px 1fr; gap: 26px; padding: 26px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-year { font-weight: 800; font-size: 1.3rem; color: var(--accent); }
.timeline-item h3 { margin-bottom: 8px; font-size: 1.1rem; }
.timeline-item p { font-size: 0.92rem; }

/* -------------------------------------------------------------------------- */
/* Services page                                                               */
/* -------------------------------------------------------------------------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-of-type { border-bottom: none; }
.service-detail.reverse .service-copy { order: 2; }
.service-index { font-size: 4rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--border-strong); line-height: 1; margin-bottom: 18px; }
.service-copy .feature-list { display: grid; gap: 12px; margin-top: 24px; }
.feature-list li { display: flex; gap: 10px; align-items: center; font-size: 0.95rem; color: var(--text-1); }
.feature-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.service-visual {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.service-visual .glow { position: absolute; width: 260px; height: 260px; background: var(--gradient-brand); filter: blur(90px); opacity: 0.35; }
.service-visual svg { width: 34%; color: var(--accent); position: relative; z-index: 1; }

.faq-list { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); overflow: hidden; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 26px; font-weight: 700; color: var(--text-0); text-align: start; }
.faq-q svg { width: 20px; height: 20px; color: var(--accent); flex: none; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a-inner { padding: 0 26px 24px; font-size: 0.94rem; color: var(--text-2); }
.faq-item.open .faq-a { max-height: 300px; }

/* -------------------------------------------------------------------------- */
/* Contact page                                                                */
/* -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: flex-start; }
.contact-info-list { display: grid; gap: 20px; margin-top: 34px; }
.contact-info-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.contact-info-item .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-indigo); display: flex; align-items: center; justify-content: center; color: #fff; flex: none; }
.contact-info-list .contact-info-item:nth-of-type(3n+1) .ico { background: var(--grad-indigo); }
.contact-info-list .contact-info-item:nth-of-type(3n+2) .ico { background: var(--grad-teal); }
.contact-info-list .contact-info-item:nth-of-type(3n) .ico { background: var(--grad-pink); }
.contact-info-item .ico svg { width: 22px; height: 22px; }
.contact-info-item strong { display: block; color: var(--text-0); margin-bottom: 4px; }
.contact-info-item span, .contact-info-item a { font-size: 0.92rem; color: var(--text-2); }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--text-1); margin-bottom: 9px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-0); font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary); background: rgba(79,107,255,0.06);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.8rem; color: var(--text-2); margin-top: 14px; text-align: center; }
.form-error { color: #ff6b6b; font-size: 0.8rem; margin-top: 6px; display: none; }
.form-group.invalid input, .form-group.invalid textarea, .form-group.invalid select { border-color: #ff6b6b; }
.form-group.invalid .form-error { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 50px 20px;
}
.form-success.show { display: block; }
.form-success .ico-wrap {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; color: #05070f;
}
.form-success .ico-wrap svg { width: 34px; height: 34px; }
.form-success h3 { margin-bottom: 10px; }

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21/8;
  margin-top: 20px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

.hours-list { display: grid; gap: 10px; }
.hours-item { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.hours-item span:last-child { color: var(--text-0); font-weight: 600; }

/* -------------------------------------------------------------------------- */
/* Reveal animation                                                            */
/* -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* Back to top */
.back-to-top {
  position: fixed;
  inset-inline-end: 26px;
  bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #05070f;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 900;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid, .vision-panel { grid-template-columns: 1fr; }
  .split.reverse .split-visual, .service-detail.reverse .service-copy { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process::before { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .service-detail { grid-template-columns: 1fr; padding: 40px 0; }
  .service-detail.reverse .service-copy { order: 0; }
  .timeline-item { grid-template-columns: 80px 1fr; }
}

@media (max-width: 860px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--header-h); inset-inline: 0;
    background: rgba(8,11,22,0.97); backdrop-filter: blur(16px);
    padding: 20px 24px 30px; border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav.open .nav-link { width: 100%; padding: 14px 16px; }
  .header-actions .btn-primary { display: none; }
  .cta-band { flex-direction: column; text-align: center; padding: 50px 30px; }
  .cta-band > div:last-child { display: flex; justify-content: center; }
}

@media (max-width: 640px) {
  section { padding: 70px 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .vision-panel { padding: 34px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-card { position: static; margin-top: 14px; }
  .hero-visual { display: flex; flex-wrap: wrap; gap: 14px; padding: 20px; align-content: center; }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
