/* DIGIFACT — Coming Soon | Production CSS (vanilla, no framework) */

:root {
  --bg: #070b19;
  --bg-soft: #0e162b;
  --card: rgba(15, 23, 42, 0.65);
  --card-solid: #0e162b;
  --border: rgba(255, 255, 255, 0.08);
  --border-soft: rgba(255, 255, 255, 0.05);
  --border-faint: rgba(255, 255, 255, 0.04);
  --text: #e2e8f0;
  --white: #ffffff;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --accent: #f97316;
  --accent-soft: #ff8a50;
  --email: #fba772;
  --email-hover: #ff9252;
  --cta-bg: #c7d7fe;
  --cta-text: #0f172a;
  --cta-text-2: #0c1322;
  --blue: #3b82f6;
  --sky: #38bdf8;
  --blue-soft: #60a5fa;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-arabic: 'Cairo', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max-header: 1280px;
  --max-hero: 896px;
  --max-features: 1024px;
  --max-cta: 768px;
}

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

* { margin: 0; }

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

html[dir="rtl"] body { font-family: var(--font-arabic); }
html[dir="rtl"] .font-display { font-family: var(--font-arabic); font-weight: 700; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #2563eb; color: #fff; }

/* Skip link */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

/* Focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Background layers */
.bg-layers { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(30, 58, 138, 0.35) 0%, rgba(15, 23, 42, 0) 70%);
}
.constellation-overlay {
  position: absolute; inset: 0; opacity: 0.6;
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.15), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 150px 120px, rgba(255,255,255,0.12), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 280px 70px, rgba(255,255,255,0.2), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 420px 240px, rgba(255,255,255,0.1), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 500px 350px;
}
.network-svg {
  position: absolute; top: 80px; left: 0; right: 0; height: 480px;
  overflow: hidden; opacity: 0.4;
}
.network-svg svg { width: 100%; height: 100%; display: block; }

.page { position: relative; z-index: 10; display: flex; flex-direction: column; min-height: 100vh; }

/* Header */
.site-header { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.04); }
.header-inner {
  max-width: var(--max-header);
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.brand-group { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: var(--white);
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.logo:hover { color: var(--cta-bg); }
.header-badge {
  display: none;
  align-items: center; gap: 6px;
  padding: 2px 10px;
  border-radius: 9999px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px; color: var(--slate-300); font-weight: 500;
  white-space: nowrap;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.dot.pulse { animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.lang-switch {
  display: flex; align-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 4px;
  backdrop-filter: blur(4px);
}
.lang-btn {
  border: 0; cursor: pointer;
  padding: 4px 10px;
  font-size: 12px; font-weight: 600;
  border-radius: var(--radius-sm);
  background: transparent; color: var(--slate-400);
  transition: background 0.2s, color 0.2s;
  line-height: 1.4;
  font-family: inherit;
}
.lang-btn[lang="ar"], .lang-btn.font-arabic { font-family: var(--font-arabic); }
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--cta-bg); color: var(--cta-text); box-shadow: 0 1px 2px rgba(0,0,0,0.2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600;
  border-radius: var(--radius-md);
  transition: background 0.2s, transform 0.2s, color 0.2s;
  cursor: pointer; border: 0;
  font-family: inherit;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-header {
  padding: 8px 16px;
  background: var(--cta-bg); color: var(--cta-text);
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(59, 130, 246, 0.1);
  white-space: nowrap;
}
.btn-header:hover { background: var(--white); }
.btn-hero {
  padding: 10px 24px;
  background: var(--cta-bg); color: var(--cta-text-2);
  font-size: 14px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.btn-hero:hover { background: var(--white); transform: scale(1.02); }
.btn-hero:active { transform: scale(0.98); }

/* Main */
main { flex-grow: 1; }

/* Hero */
.hero { padding: 64px 24px 80px; text-align: center; }
.hero-inner { max-width: var(--max-hero); margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 12px; color: var(--slate-300);
  margin-bottom: 32px;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.chip-tag { font-weight: 600; letter-spacing: 0.05em; color: var(--slate-200); }
.chip-sep { color: var(--slate-500); }
.chip-sub { color: var(--muted); }

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  font-size: 36px;
  line-height: 1.25;
  margin-bottom: 24px;
  text-wrap: balance;
}
.hero-desc { max-width: 672px; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.hero-desc-1 { font-size: 16px; font-weight: 500; color: var(--slate-200); line-height: 1.6; }
.hero-desc-2 { font-size: 14px; color: var(--muted); line-height: 1.6; }
.hero-cta { margin-bottom: 20px; }
.hero-microcopy { font-size: 12px; color: var(--muted); margin-bottom: 56px; max-width: 560px; }
.hero-microcopy a {
  color: var(--slate-300);
  text-underline-offset: 4px;
  text-decoration-color: #475569;
}
.hero-microcopy a:hover { color: var(--white); }

/* Pillars */
.pillars {
  width: 100%; max-width: var(--max-hero);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  text-align: left;
}
html[dir="rtl"] .pillars { text-align: right; }
.pillar {
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-soft);
  backdrop-filter: blur(4px);
  position: relative;
  min-width: 0;
}
.pillar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pillar-cat { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.pillar-title { font-size: 14px; font-weight: 600; color: var(--white); }
.pillar-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Features */
.features { padding: 64px 24px; border-top: 1px solid var(--border-faint); }
.features-inner { max-width: var(--max-features); margin: 0 auto; }
.features-head { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--sky); font-weight: 500; display: block; margin-bottom: 8px;
}
.features-title {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 700; color: var(--white);
  letter-spacing: -0.01em; line-height: 1.3;
  text-wrap: balance;
}
.features-desc { font-size: 12px; color: var(--muted); max-width: 384px; line-height: 1.6; }
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card {
  border-radius: var(--radius-xl);
  background: rgba(14, 22, 43, 0.8);
  border: 1px solid rgba(255,255,255,0.07);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.3s;
}
.card:hover { border-color: rgba(255,255,255,0.2); }
.card-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-soft);
  margin-bottom: 24px;
}
.card-icon svg { width: 20px; height: 20px; }
.card-num { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.card-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.card-desc { font-size: 14px; color: var(--slate-300); line-height: 1.6; }
.card-foot { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--border-faint); }
.card-tag { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* CTA */
.cta-section { padding: 56px 24px; }
.cta-box {
  max-width: var(--max-cta);
  margin: 0 auto;
  border-radius: var(--radius-2xl);
  background: linear-gradient(to bottom, rgba(15,23,42,0.9), rgba(12,19,34,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  padding: 32px;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 25px 50px rgba(0,0,0,0.35);
}
.cta-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-xl);
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(255,255,255,0.1);
  margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  color: #93c5fd;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.cta-icon svg { width: 24px; height: 24px; }
.cta-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.cta-desc { font-size: 14px; color: var(--slate-300); max-width: 576px; margin: 0 auto 24px; line-height: 1.6; }
.cta-email-wrap { margin: 24px 0; }
.cta-email {
  font-family: var(--font-mono);
  font-size: 20px; font-weight: 600;
  color: var(--email);
  letter-spacing: 0.02em;
  text-underline-offset: 8px;
  text-decoration-color: rgba(251, 146, 60, 0.4);
  word-break: break-all;
}
.cta-email:hover { color: var(--email-hover); }
.cta-note { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Footer */
.site-footer { width: 100%; border-top: 1px solid rgba(255,255,255,0.06); padding: 32px 0; font-size: 12px; color: var(--slate-500); }
.footer-inner {
  max-width: var(--max-header);
  margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.footer-logo { font-family: var(--font-display); font-weight: 800; color: var(--white); letter-spacing: -0.01em; text-transform: uppercase; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; }
.footer-meta .sep { color: #334155; }
.footer-meta strong { color: var(--slate-300); font-weight: 500; }
.footer-meta a { color: var(--muted); text-decoration: none; }
.footer-meta a:hover { color: var(--slate-200); }

/* Responsive */
@media (min-width: 640px) {
  .header-inner { padding: 0 32px; }
  .header-badge { display: inline-flex; }
  .logo { font-size: 24px; }
  .header-actions { gap: 16px; }
  .hero { padding-left: 32px; padding-right: 32px; }
  .hero-title { font-size: 48px; }
  .hero-desc-1 { font-size: 18px; }
  .hero-desc-2 { font-size: 16px; }
  .hero-microcopy { font-size: 14px; }
  .features { padding-left: 32px; padding-right: 32px; }
  .features-title { font-size: 30px; }
  .features-desc { font-size: 14px; }
  .cta-section { padding-left: 32px; padding-right: 32px; }
  .cta-box { padding: 48px; }
  .cta-title { font-size: 30px; }
  .cta-desc { font-size: 16px; }
  .cta-email { font-size: 24px; }
  .footer-inner { padding: 0 32px; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 60px; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

@media (min-width: 1024px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-brand, .footer-meta { justify-content: flex-start; }
}

/* Small phones: keep header compact, no overflow */
@media (max-width: 400px) {
  .header-inner { padding: 0 16px; height: 72px; }
  .logo { font-size: 18px; }
  .btn-header { padding: 8px 12px; font-size: 13px; }
  .lang-btn { padding: 4px 8px; }
  .hero { padding: 48px 16px 64px; }
  .hero-title { font-size: 32px; }
  .chip { font-size: 11px; }
  .cta-email { font-size: 17px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .dot.pulse { animation: none; }
}
