/* ===============================
   AtlasCyberShield — Global Theme
   =============================== */

:root {
  --bg-0: #0a0a10;
  --bg-1: #0c121a;
  --bg-2: #101a24;
  --text: #e9f0f4;
  --muted: #9aa6b2;
  --cyan: #00e0ff;
  --cyan-2: #5eeaff;
  --ring: rgba(0, 224, 255, 0.35);
  --card: #0f1722;
  --shadow: 0 8px 24px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.02) inset;
  --radius: 16px;
  --radius-sm: 12px;
  --grid-gap: 20px;
  --maxw: 1100px;
}

/* ===============================
   Base
   =============================== */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: radial-gradient(1000px 600px at 10% -10%, #132235 0%, transparent 60%),
              radial-gradient(800px 400px at 90% 0%, #0d2630 0%, transparent 60%), var(--bg-0);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: Orbitron, Inter, sans-serif;
  letter-spacing: 0.03em;
  color: #eaf8ff;
}
p { color: #d1d9e0; }

/* Links */
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-2); }

/* ===============================
   Language Switch
   =============================== */

.lang-switch {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(180deg, rgba(10,10,16,0.9), rgba(10,10,16,0.65) 60%, transparent);
  backdrop-filter: blur(6px);
  z-index: 100;
}
.lang-switch button {
  background: none;
  border: none;
  color: var(--muted);
  font-weight: 700;
  padding: 0.35rem 0.7rem;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lang-switch button.active {
  color: var(--cyan);
  border-color: var(--cyan);
}
.lang-switch button:hover {
  color: #cfe7f2;
  transform: translateY(-1px);
}

/* ===============================
   Container and Layout
   =============================== */

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.logo img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.45);
}
.brand {
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.25rem;
}
.sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

/* ===============================
   Navigation Bar
   =============================== */

.main-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 0.75rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.main-nav a {
  color: var(--muted);
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}
.main-nav a:hover {
  color: var(--cyan);
  background: rgba(0,224,255,0.08);
}
.main-nav a.active {
  color: var(--cyan);
}

/* ===============================
   Hero Section
   =============================== */

.hero {
  background: linear-gradient(180deg, var(--bg-2), #0c131c);
  border-radius: var(--radius);
  padding: 4rem 1.5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(1000px 300px at 50% -10%, rgba(0,224,255,0.25), transparent 70%),
              radial-gradient(700px 250px at 80% 20%, rgba(0,224,255,0.12), transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  margin: 0 0 0.75rem;
}
.hero p {
  max-width: 900px;
  margin: 0 auto 1.5rem;
  color: #d6dee6;
}
.cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  background: var(--cyan);
  color: #001017;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  box-shadow: 0 8px 24px rgba(0,224,255,0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,224,255,0.35);
}
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.12);
}
.btn.outline:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ===============================
   Sections
   =============================== */

.section {
  background: linear-gradient(180deg, #0e1620, #0a121a);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.25rem;
  margin: 2rem 0 0;
}
.h2 {
  font-family: Orbitron, Inter, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #eaf8ff;
  margin-bottom: 1rem;
}
.h2::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.5;
  border-radius: 2px;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card, .step, .kpi {
  background: linear-gradient(180deg, #111a26, #0a121a);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.05);
}
.card h3 {
  margin-top: 0.25rem;
}
.step .badge {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: rgba(0,224,255,0.15);
  border: 1px solid rgba(0,224,255,0.35);
  border-radius: 10px;
  color: var(--cyan);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

/* ===============================
   KPI Grid
   =============================== */

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--grid-gap);
}
.kpi .n {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--cyan-2);
  margin-bottom: 0.35rem;
}

/* ===============================
   Forms
   =============================== */

.form {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}
.input {
  background: #0b121a;
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: #92a0ad; }
.input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ===============================
   Footer
   =============================== */

footer {
  color: #9fb0bf;
  text-align: center;
  margin: 2rem 0 0.5rem;
  font-size: 0.95rem;
}

/* ===============================
   Logo Marquee (Animated Row)
   =============================== */

.logo-marquee {
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
}
.logo-marquee .track {
  display: flex;
  gap: 2rem;
  animation: scroll 30s linear infinite;
}
.logo-marquee img {
  height: 40px;
  filter: brightness(0.9);
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.logo-marquee img:hover {
  transform: scale(1.05);
  opacity: 1;
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===============================
   Fade-in Animation
   =============================== */

.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ===============================
   Responsive Design
   =============================== */

@media (max-width: 980px) {
  .hero { padding: 3.5rem 1rem 2.5rem; }
  .main-nav { flex-wrap: wrap; gap: 0.5rem; }
}
@media (max-width: 600px) {
  .cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .header { gap: 0.75rem; }
  .logo img { width: 46px; height: 46px; }
}

/* ===============================
   RTL Support
   =============================== */

html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .h2::after { transform: scaleX(-1); }
