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

:root {
  --bg:      #06080f;
  --bg2:     #0a0d18;
  --surface: #0f1320;
  --surface2:#141828;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --accent:  #6366f1;
  --accent2: #8b5cf6;
  --accent3: #60a5fa;
  --text:    #f0f4ff;
  --muted:   #8896b3;
  --muted2:  #6b7a99;
  --r:       14px;
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ─── NAV ─── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 24px;
  transition: background 0.3s, border-color 0.3s;
}
#nav.scrolled {
  background: rgba(6,8,15,0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1140px; margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 40px; }
.logo { font-size: 1.15rem; font-weight: 800; color: var(--text); text-decoration: none; letter-spacing: -0.5px; flex-shrink: 0; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; flex: 1; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-btn { background: var(--surface2); border: 1px solid var(--border2); color: var(--text); padding: 5px 13px; border-radius: 8px; font-size: 0.78rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit; letter-spacing: 0.5px; }
.lang-btn:hover { border-color: var(--accent); }
.btn-nav { background: var(--accent); color: #fff; padding: 8px 18px; border-radius: 9px; text-decoration: none; font-size: 0.875rem; font-weight: 600; transition: opacity 0.2s; }
.btn-nav:hover { opacity: 0.85; }

/* ─── HERO ─── */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.45; }
.orb1 { width: 500px; height: 500px; background: radial-gradient(circle, #6366f1, transparent 70%); top: -100px; left: 50%; transform: translateX(-60%); }
.orb2 { width: 350px; height: 350px; background: radial-gradient(circle, #8b5cf6, transparent 70%); bottom: 0; right: 5%; }
.orb3 { width: 280px; height: 280px; background: radial-gradient(circle, #3b82f6, transparent 70%); bottom: 10%; left: 5%; opacity: 0.25; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-inner { position: relative; z-index: 1; max-width: 820px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.25); color: #a5b4fc; font-size: 0.78rem; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin-bottom: 32px; letter-spacing: 0.3px; }
.badge-dot { width: 6px; height: 6px; background: #6366f1; border-radius: 50%; box-shadow: 0 0 8px #6366f1; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.4; } }

h1 { font-size: clamp(2.6rem, 6.5vw, 4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -2px; margin-bottom: 24px; }
h1 em { font-style: normal; background: linear-gradient(135deg, #6366f1 0%, #a78bfa 50%, #60a5fa 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 580px; margin: 0 auto 40px; font-weight: 400; line-height: 1.75; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.btn-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; padding: 14px 28px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 0.95rem; display: inline-block; transition: opacity 0.2s, transform 0.2s; box-shadow: 0 0 30px rgba(99,102,241,0.3); }
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-ghost { color: var(--muted); padding: 14px 24px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.btn-ghost:hover { color: var(--text); }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hstat strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; background: linear-gradient(135deg, #e0e7ff, #c7d2fe); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hstat span { font-size: 0.78rem; color: var(--muted2); font-weight: 500; }
.hsep { width: 1px; height: 36px; background: var(--border2); }

/* ─── SECTIONS ─── */
.section { padding: 100px 24px; }
.section-dark { background: var(--bg2); }
.container { max-width: 1140px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 64px; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ─── SERVICES ─── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.scard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 36px 30px; position: relative; transition: border-color 0.3s, transform 0.3s; }
.scard:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); }
.scard-featured { border-color: rgba(99,102,241,0.25); background: linear-gradient(145deg, rgba(99,102,241,0.07), rgba(139,92,246,0.04)); }
.scard-featured::before { content:''; position:absolute; inset:0; border-radius:var(--r); background: linear-gradient(135deg, rgba(99,102,241,0.1), transparent); pointer-events:none; }
.scard-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; color: var(--accent); margin-bottom: 16px; }
.scard-icon { width: 46px; height: 46px; border-radius: 11px; background: rgba(99,102,241,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: #a5b4fc; }
.scard-icon svg { width: 22px; height: 22px; }
.scard h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.3px; }
.scard p { color: var(--muted); font-size: 0.88rem; line-height: 1.75; margin-bottom: 24px; }
.scard-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.scard-list li { color: var(--muted2); font-size: 0.83rem; display: flex; align-items: center; gap: 8px; }
.scard-list li::before { content: '→'; color: var(--accent); font-size: 0.75rem; flex-shrink: 0; }

/* ─── STACK ─── */
.stack-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.stack-cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; }
.stack-cat h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--surface2); border: 1px solid var(--border2); color: var(--muted); font-size: 0.78rem; font-weight: 500; padding: 5px 12px; border-radius: 100px; transition: all 0.2s; }
.tag:hover { border-color: rgba(99,102,241,0.4); color: var(--text); }
.tag-accent { background: rgba(99,102,241,0.08); border-color: rgba(99,102,241,0.2); color: #a5b4fc; }
.tag-accent:hover { background: rgba(99,102,241,0.15); border-color: rgba(99,102,241,0.4); }

/* ─── CASOS ─── */
.casos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.caso { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 30px; transition: border-color 0.3s, transform 0.3s; }
.caso:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); }
.caso-tag { display: inline-block; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); color: #a5b4fc; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; margin-bottom: 14px; letter-spacing: 0.3px; }
.caso h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.2px; }
.caso p { color: var(--muted); font-size: 0.85rem; line-height: 1.75; }

/* ─── CONTACT ─── */
.contact-section { padding: 80px 24px 100px; }
.contact-box { background: var(--surface); border: 1px solid rgba(99,102,241,0.2); border-radius: 20px; padding: 72px 48px; text-align: center; max-width: 680px; margin: 0 auto; position: relative; overflow: hidden; }
.contact-glow { position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,0.12), transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none; }
.contact-box .eyebrow { margin-bottom: 10px; }
.contact-box h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.contact-box .section-sub { margin-bottom: 36px; }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: 12px; }
.contact-note { margin-top: 20px; font-size: 0.82rem; color: var(--muted2); }

/* ─── FOOTER ─── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 28px 24px; }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-copy { color: var(--muted2); font-size: 0.82rem; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 100px 20px 60px; }
  .contact-box { padding: 48px 28px; }
  .footer-inner { justify-content: center; text-align: center; }
  h1 { letter-spacing: -1px; }
}
