:root {
  --red: #E31E24;
  --red-dark: #b01218;
  --red-glow: rgba(227, 30, 36, 0.35);
  --red-subtle: rgba(227, 30, 36, 0.08);
  --bg: #0a0a0a;
  --bg-card: rgba(255,255,255,0.03);
  --white: #ffffff;
  --white-dim: rgba(255,255,255,0.55);
  --white-faint: rgba(255,255,255,0.07);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-arabic: 'Noto Kufi Arabic', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--white);
  font-family: var(--font-body); min-height: 100vh;
  overflow-x: hidden; display: flex;
  align-items: center; justify-content: center; position: relative;
}
body.rtl { direction: rtl; font-family: var(--font-arabic); }

#particleCanvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.noise-overlay {
  position: fixed; inset: 0; z-index: 1; opacity: 0.04; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.glow { position: fixed; border-radius: 50%; pointer-events: none; z-index: 1; filter: blur(100px); animation: glowPulse 4s ease-in-out infinite alternate; }
.glow-top { width: 500px; height: 300px; top: -100px; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(227,30,36,0.18) 0%, transparent 70%); }
.glow-bottom { width: 400px; height: 200px; bottom: -80px; right: 10%; background: radial-gradient(ellipse, rgba(227,30,36,0.1) 0%, transparent 70%); animation-delay: 2s; }
@keyframes glowPulse { from { opacity: 0.5; } to { opacity: 1; } }

.red-line { position: fixed; width: 1px; top: 0; bottom: 0; z-index: 2; pointer-events: none; opacity: 0; animation: lineReveal 1.5s var(--ease-out) 1.5s forwards; }
.red-line-left { left: 80px; background: linear-gradient(to bottom, transparent, var(--red-glow) 40%, var(--red-glow) 60%, transparent); animation-delay: 1.8s; }
.red-line-right { right: 80px; background: linear-gradient(to bottom, transparent, var(--red-glow) 40%, var(--red-glow) 60%, transparent); animation-delay: 2s; }
@keyframes lineReveal { to { opacity: 1; } }

.bg-text { position: fixed; top: 0; left: 0; right: 0; z-index: 2; pointer-events: none; display: flex; flex-direction: column; line-height: 0.88; overflow: hidden; }
.bg-word { font-family: var(--font-display); font-size: clamp(80px, 18vw, 200px); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.04); letter-spacing: -0.02em; white-space: nowrap; display: block; }
.bg-word:nth-child(2) { margin-left: -10px; }

.lang-toggle {
  position: fixed; top: 28px; right: 28px; z-index: 100;
  background: var(--white-faint); border: 1px solid rgba(255,255,255,0.1);
  color: var(--white-dim); font-family: var(--font-arabic); font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 20px;
  cursor: pointer; border-radius: 2px; transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(10px); opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 2.5s forwards;
}
.lang-toggle:hover { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 0 20px var(--red-glow); }

.corner { position: fixed; width: 20px; height: 20px; z-index: 10; pointer-events: none; opacity: 0; animation: fadeIn 0.8s ease 2s forwards; }
.corner::before, .corner::after { content: ''; position: absolute; background: rgba(227,30,36,0.6); }
.corner::before { width: 1px; height: 100%; }
.corner::after { width: 100%; height: 1px; }
.corner-tl { top: 24px; left: 24px; } .corner-tl::before { top: 0; left: 0; } .corner-tl::after { top: 0; left: 0; }
.corner-tr { top: 24px; right: 24px; } .corner-tr::before { top: 0; right: 0; } .corner-tr::after { top: 0; right: 0; }
.corner-bl { bottom: 24px; left: 24px; } .corner-bl::before { bottom: 0; left: 0; } .corner-bl::after { bottom: 0; left: 0; }
.corner-br { bottom: 24px; right: 24px; } .corner-br::before { bottom: 0; right: 0; } .corner-br::after { bottom: 0; right: 0; }
@keyframes fadeIn { to { opacity: 1; } }

.main { position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 80px 40px; max-width: 900px; width: 100%; gap: 0; }

.logo-wrap { margin-bottom: 56px; opacity: 0; transform: translateY(30px) scale(0.95); animation: logoReveal 1.2s var(--ease-out) 0.3s forwards; }
@keyframes logoReveal { to { opacity: 1; transform: translateY(0) scale(1); } }
.logo-img { width: clamp(200px, 40vw, 340px); height: auto; display: block; filter: drop-shadow(0 0 30px rgba(227,30,36,0.35)); transition: filter 0.3s ease; }
.logo-img:hover { filter: drop-shadow(0 0 45px rgba(227,30,36,0.55)); }

.headline-wrap { margin-bottom: 32px; min-height: 90px; display: flex; align-items: center; justify-content: center; }
.headline { font-family: var(--font-display); font-size: clamp(36px, 7vw, 72px); font-weight: 400; letter-spacing: 0.04em; color: var(--white); line-height: 1.1; max-width: 700px; text-transform: uppercase; }
body.rtl .headline { font-family: var(--font-arabic); font-weight: 700; font-size: clamp(28px, 5vw, 56px); letter-spacing: 0; }
.type-cursor { display: inline-block; width: 3px; height: 0.85em; background: var(--red); margin-left: 6px; vertical-align: middle; animation: blink 0.8s step-end infinite; box-shadow: 0 0 8px var(--red-glow); }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.divider { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 2s forwards; }
.divider-line { display: block; width: 80px; height: 1px; background: linear-gradient(to right, transparent, rgba(255,255,255,0.2)); }
.divider-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red-glow), 0 0 20px var(--red-glow); animation: dotGlow 2s ease-in-out infinite alternate; }
@keyframes dotGlow { from { box-shadow: 0 0 6px var(--red-glow); } to { box-shadow: 0 0 18px var(--red-glow), 0 0 35px rgba(227,30,36,0.2); } }

.description { font-size: clamp(14px, 1.8vw, 17px); color: var(--white-dim); line-height: 1.85; max-width: 520px; font-weight: 300; margin-bottom: 40px; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 2.1s forwards; letter-spacing: 0.01em; }
body.rtl .description { font-family: var(--font-arabic); line-height: 2.2; font-size: clamp(14px, 1.6vw, 16px); }

.company-name { font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--red); font-weight: 500; margin-bottom: 48px; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 2.2s forwards; position: relative; padding-bottom: 14px; }
.company-name::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 1px; background: var(--red); animation: lineExpand 0.8s var(--ease-out) 2.8s forwards; box-shadow: 0 0 8px var(--red-glow); }
@keyframes lineExpand { to { width: 80px; } }
body.rtl .company-name { font-family: var(--font-arabic); letter-spacing: 0.05em; }

.social-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fadeUp 0.8s var(--ease-out) 2.3s forwards; }
.social-link { display: flex; align-items: center; gap: 8px; color: var(--white-dim); text-decoration: none; font-size: 12px; letter-spacing: 0.06em; padding: 10px 16px; border: 1px solid rgba(255,255,255,0.07); border-radius: 2px; transition: all 0.35s var(--ease-out); position: relative; overflow: hidden; background: var(--bg-card); backdrop-filter: blur(8px); }
.social-link::before { content: ''; position: absolute; inset: 0; background: var(--red); transform: translateY(100%); transition: transform 0.35s var(--ease-out); z-index: 0; }
.social-link:hover::before { transform: translateY(0); }
.social-link:hover { color: var(--white); border-color: var(--red); box-shadow: 0 0 20px var(--red-glow); }
.social-link > * { position: relative; z-index: 1; }
.social-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.social-link span { display: none; }
@media (min-width: 640px) { .social-link span { display: block; } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) { .red-line { display: none; } .main { padding: 60px 24px; } .logo-wrap { margin-bottom: 40px; } .lang-toggle { top: 16px; right: 16px; } }
