:root {
  --bg: #050508;
  --bg2: #0d0d14;
  --bg3: #111120;
  --blue: #3B82F6;
  --blue-light: #60A5FA;
  --blue-dim: #1d4ed8;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: rgba(59,130,246,0.15);
  --glow: 0 0 30px rgba(59,130,246,0.25);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Particle canvas */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(5,5,8,0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

nav .nav-links {
  justify-self: center;
}

nav .lang-toggle {
  justify-self: end;
}

.nav-logo img { height: 56px; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--blue-light); }

.nav-cta {
  background: var(--blue);
  color: white !important;
  padding: 0.5rem 1.4rem;
  border-radius: 6px;
  font-weight: 600;
  transition: box-shadow 0.2s, background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-light) !important;
  box-shadow: var(--glow) !important;
  color: white !important;
}

/* ─── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  z-index: 1;
}

.hero-orb {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--blue-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge span { width:6px; height:6px; background:var(--blue); border-radius:50%; animation: pulse 2s infinite; }

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--blue);
  color: white;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  box-shadow: 0 0 0 rgba(59,130,246,0);
}

.btn-primary:hover {
  background: var(--blue-light);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-light);
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-light);
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── SECTIONS ─────────────────────────────────── */
section { position: relative; z-index: 1; padding: 6rem 2rem; }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 540px;
}

/* ─── SERVICES ─────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: rgba(59,130,246,0.4);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ─── HOW IT WORKS ─────────────────────────────── */
.how-section { background: var(--bg2); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--blue-dim), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 20px rgba(59,130,246,0.3);
}

.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ─── WHY US ────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.why-points { display: flex; flex-direction: column; gap: 1.5rem; }

.why-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.why-icon {
  width: 36px;
  height: 36px;
  background: rgba(59,130,246,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-point h4 { font-weight: 700; margin-bottom: 0.25rem; }
.why-point p { color: var(--text-muted); font-size: 0.9rem; }

.why-visual {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.code-block {
  background: var(--bg3);
  border-radius: 10px;
  padding: 1.5rem;
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
}

.code-block .kw { color: var(--blue-light); }
.code-block .fn { color: #a78bfa; }
.code-block .str { color: #34d399; }
.code-block .cm { color: #475569; }

/* ─── CONTACT ────────────────────────────────────── */
.contact-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.contact-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem 3rem;
  max-width: 640px;
  margin: 3rem auto 0;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.1), transparent);
  border-radius: 50%;
}

.contact-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo img { height: 44px; }

footer p { color: var(--text-muted); font-size: 0.85rem; }

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--blue-light); }

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

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

.fade-up { animation: fadeUp 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  #bg-canvas { display: none; }
  .nav-links { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .hero-stats { gap: 2rem; }
  .contact-card { padding: 2.5rem 1.5rem; }
  footer { flex-direction: column; text-align: center; }
}

/* ─── LANG TOGGLE ─────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(59,130,246,0.08);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.25rem 0.35rem;
}

.lang-toggle a {
  color: var(--text-muted) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.lang-toggle a.active {
  background: var(--blue);
  color: white !important;
}

.lang-toggle a:hover:not(.active) {
  color: var(--blue-light) !important;
}
