@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=Cairo:wght@400;600;700;900&display=swap');

:root {
  --background: 224 50% 4%;
  --foreground: 210 40% 98%;
  --card-border: 224 30% 15%;
  --primary: 190 90% 50%;
  --primary-foreground: 224 50% 4%;
  --secondary: 224 80% 20%;
  --muted-foreground: 215 20% 65%;
  --border: 224 30% 15%;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.lang-ar { font-family: 'Cairo', 'Inter', sans-serif; }

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.01em; margin: 0; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4 { font-family: 'Cairo', sans-serif; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: hsla(var(--primary), 0.3); color: #fff; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* language visibility */
body.lang-en [data-lang="ar"] { display: none !important; }
body.lang-ar [data-lang="en"] { display: none !important; }

.text-primary { color: hsl(var(--primary)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.border-t { border-top: 1px solid hsl(var(--border)); }
.border-y { border-top: 1px solid hsl(var(--border)); border-bottom: 1px solid hsl(var(--border)); }

.glass-panel {
  background: rgba(10, 15, 30, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.text-gradient {
  background: linear-gradient(to right, #ffffff, #88ccff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navbar */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px 0;
  transition: all .3s ease;
  background: transparent;
}
.navbar.scrolled { padding: 12px 0; border-bottom: 1px solid hsl(var(--border)); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 8px; }
.logo-badge {
  width: 32px; height: 32px; border-radius: 6px;
  background: hsla(var(--primary), 0.2); border: 1px solid hsla(var(--primary), 0.5);
  display: flex; align-items: center; justify-content: center;
}
.logo-name { font-weight: 700; font-size: 18px; letter-spacing: 0.02em; color: #fff; }

.nav-links { display: none; gap: 24px; font-size: 14px; font-weight: 500; color: hsl(var(--muted-foreground)); }
.nav-links a:hover { color: #fff; }
.nav-right { display: none; align-items: center; gap: 12px; }
.mobile-controls { display: flex; align-items: center; gap: 8px; }
@media (min-width: 768px) {
  .nav-links, .nav-right { display: flex; }
  .mobile-controls { display: none; }
}

.btn-lang {
  padding: 6px 12px; border-radius: 4px; border: 1px solid hsla(var(--primary), 0.4);
  background: hsla(var(--primary), 0.1); color: hsl(var(--primary));
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; background-clip: padding-box;
}
.btn-lang:hover { background: hsla(var(--primary), 0.2); }

.btn-engage {
  padding: 10px 20px; border-radius: 4px; font-size: 14px; font-weight: 600;
  background: #fff; color: hsl(var(--background));
  display: inline-flex; align-items: center; gap: 6px; border: none;
}
.btn-engage:hover { background: hsl(var(--primary)); }

.icon-btn { background: none; border: none; color: #fff; padding: 8px; display: flex; }

.mobile-menu {
  display: none;
  flex-direction: column; gap: 16px;
  padding: 16px 20px 20px;
  border-top: 1px solid hsl(var(--border));
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 14px; font-weight: 500; color: hsl(var(--muted-foreground)); padding: 4px 0; }
.mobile-menu .btn-engage { margin-top: 8px; justify-content: center; }
@media (min-width: 768px) { .mobile-menu { display: none !important; } }

/* Hero */
.hero {
  position: relative; min-height: 600px; height: 100vh;
  display: flex; align-items: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay-1 { position: absolute; inset: 0; background: hsla(var(--background), 0.8); mix-blend-mode: multiply; z-index: 1; }
.hero-overlay-2 { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--background)) 0%, hsla(var(--background), 0.5) 50%, transparent 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; padding-top: 96px; }
.hero-content .container { max-width: 900px; margin: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid hsla(var(--primary), 0.3);
  background: hsla(var(--primary), 0.1); color: hsl(var(--primary));
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 24px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--primary)); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.hero h1 { font-size: clamp(2.2rem, 6vw, 5.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 24px; }
.hero p { font-size: clamp(1rem, 1.4vw, 1.25rem); color: hsl(var(--muted-foreground)); max-width: 640px; margin-bottom: 40px; font-weight: 300; line-height: 1.6; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }

.btn-primary {
  padding: 16px 28px; border-radius: 4px; background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none;
}
.btn-primary:hover { background: #fff; }
.btn-outline {
  padding: 16px 28px; border-radius: 4px; border: 1px solid hsl(var(--border));
  background: hsla(var(--background), 0.5); color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-outline:hover { background: hsl(var(--secondary)); }

/* Sections generic */
section { position: relative; }
.section-pad { padding: 96px 0; }
@media (min-width: 768px) { .section-pad { padding: 128px 0; } }
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 700; margin-bottom: 20px; }
.section-head p { color: hsl(var(--muted-foreground)); font-size: clamp(1rem, 1.2vw, 1.125rem); max-width: 640px; }

/* Solutions grid */
.solutions-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .solutions-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.solution-card {
  padding: 28px; border-radius: 4px;
  transition: background .2s ease;
}
@media (min-width: 768px) { .solution-card { padding: 48px; } }
.solution-card:hover { background: hsla(var(--secondary), 0.4); }
.solution-icon {
  width: 48px; height: 48px; border-radius: 4px; background: hsl(var(--background));
  border: 1px solid hsl(var(--border)); display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.solution-card h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; margin-bottom: 12px; }
.solution-card p { color: hsl(var(--muted-foreground)); line-height: 1.6; font-size: 0.95rem; margin: 0; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Vision */
.vision-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .vision-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.vision-grid h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 28px; }
.vision-text p { color: hsl(var(--muted-foreground)); font-size: clamp(1rem, 1.2vw, 1.125rem); font-weight: 300; margin-bottom: 20px; line-height: 1.7; }
.vision-stats { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 32px; }
.vision-stats .value { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: #fff; margin-bottom: 8px; }
.vision-stats .label { font-size: 12px; color: hsl(var(--primary)); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.vision-image { position: relative; height: 320px; border-radius: 2px; overflow: hidden; }
@media (min-width: 640px) { .vision-image { height: 420px; } }
@media (min-width: 1024px) { .vision-image { height: 550px; } }
.vision-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vision-image .grad { position: absolute; inset: 0; background: linear-gradient(to top, hsl(var(--background)), transparent 60%); }

/* Infrastructure */
.infra-section { padding: 112px 0; text-align: center; overflow: hidden; }
@media (min-width: 768px) { .infra-section { padding: 160px 0; } }
.infra-bg { position: absolute; inset: 0; z-index: 0; }
.infra-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: grayscale(1); }
.infra-bg .overlay { position: absolute; inset: 0; background: hsla(var(--background), 0.8); }
.infra-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 20px; }
.infra-content h2 { font-size: clamp(2rem, 5vw, 3.75rem); margin-bottom: 28px; color: #fff; }
.infra-content p { color: hsl(var(--muted-foreground)); font-size: clamp(1rem, 1.4vw, 1.25rem); margin-bottom: 40px; }
.btn-ghost {
  padding: 16px 28px; border-radius: 4px; background: transparent; border: 1px solid hsl(var(--primary));
  color: hsl(var(--primary)); font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* CTA */
.cta-panel { padding: 32px 20px; border-radius: 8px; text-align: center; max-width: 800px; margin: 0 auto; border: 1px solid hsla(var(--primary), 0.2); }
@media (min-width: 640px) { .cta-panel { padding: 48px; } }
@media (min-width: 768px) { .cta-panel { padding: 80px; } }
.cta-panel h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 20px; }
.cta-panel p { color: hsl(var(--muted-foreground)); margin-bottom: 32px; max-width: 560px; margin-inline: auto; }
.cta-form { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
@media (min-width: 640px) { .cta-form { flex-direction: row; } }
.cta-form input {
  padding: 16px 20px; background: hsl(var(--background)); border: 1px solid hsl(var(--border)); border-radius: 4px;
  color: #fff; font-size: 14px; width: 100%;
}
@media (min-width: 640px) { .cta-form input { width: 320px; } }
.cta-form input:focus { outline: none; border-color: hsl(var(--primary)); }
.btn-white { padding: 16px 28px; background: #fff; color: hsl(var(--background)); font-weight: 700; border-radius: 4px; border: none; white-space: nowrap; font-size: 14px; }
.btn-white:hover { background: hsl(var(--primary)); }
.form-status { margin-top: 16px; font-size: 14px; min-height: 20px; }
.form-status.success { color: hsl(var(--primary)); }
.form-status.error { color: #ff6b6b; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Footer */
.footer { padding: 40px 0; }
.footer-top { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 20px; text-align: center; }
@media (min-width: 768px) { .footer-top { flex-direction: row; text-align: start; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-size: 14px; color: hsl(var(--muted-foreground)); }
.footer-contact {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  font-size: 14px; color: hsl(var(--muted-foreground)); padding-top: 24px; margin-top: 8px;
}
@media (min-width: 640px) { .footer-contact { flex-direction: row; gap: 32px; } }
.footer-contact span, .footer-contact a { display: flex; align-items: center; gap: 8px; }
.footer-contact a:hover { color: hsl(var(--primary)); }
.footer-copy { font-size: 12px; color: hsl(var(--muted-foreground)); text-align: center; }

svg.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
