* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #050608;
  --bg-2: #0a0c10;
  --surface: rgba(255,255,255,0.03);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --text: #e5e7eb;
  --text-dim: #9ca3af;
  --text-mute: #6b7280;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --grad: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  --radius: 16px;
  --maxw: 1280px;
}

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

/* FONDO */
.bg-gradient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(59,130,246,0.15), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(139,92,246,0.12), transparent 60%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(59,130,246,0.08), transparent 60%);
  z-index: -2;
  animation: floatBg 20s ease-in-out infinite;
}
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: -1;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 80%);
}
@keyframes floatBg {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-2%, 1%) scale(1.05); }
}

h1,h2,h3,h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; letter-spacing: -0.02em; line-height: 1.1; }
a { color: inherit; text-decoration: none; transition: color .2s; }
img { max-width: 100%; display: block; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.eyebrow {
  display: inline-block;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  z-index: 100;
  backdrop-filter: blur(20px);
  background: rgba(5,6,8,0.6);
  border-bottom: 1px solid var(--border);
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk'; font-weight: 600; font-size: 20px; }
.logo-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 32px rgba(59,130,246,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(139,92,246,0.4); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); }
.btn-large { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* HERO */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 160px 48px 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  min-height: 90vh;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 12px #22c55e;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: .5; }
}
.hero-title {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  max-width: 540px;
  margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 64px; flex-wrap: wrap; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 520px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num { font-family: 'Space Grotesk'; font-size: 36px; font-weight: 700; }
.stat-label { color: var(--text-mute); font-size: 13px; }

/* HERO VISUAL */
.hero-visual {
  position: relative;
  height: 480px;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .6;
}
.orb-1 { width: 300px; height: 300px; background: var(--blue); top: 10%; left: 10%; animation: float 8s ease-in-out infinite; }
.orb-2 { width: 250px; height: 250px; background: var(--purple); top: 40%; right: 5%; animation: float 10s ease-in-out infinite reverse; }
.orb-3 { width: 200px; height: 200px; background: #6366f1; bottom: 5%; left: 30%; animation: float 12s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(30px, -40px); }
}
.floating-card {
  position: absolute;
  background: rgba(20,22,28,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  animation: floatY 6s ease-in-out infinite;
}
.card-icon { font-size: 24px; }
.card-title { font-weight: 600; font-size: 14px; }
.card-meta { font-size: 12px; color: var(--text-mute); }
.card-1 { top: 8%; right: 0; }
.card-2 { top: 45%; left: 0; animation-delay: -2s; }
.card-3 { bottom: 10%; right: 15%; animation-delay: -4s; }
@keyframes floatY {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* MARQUEE */
.marquee-section { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.marquee-label { text-align: center; color: var(--text-mute); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 24px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; animation: scroll 30s linear infinite; white-space: nowrap; }
.marquee-track span { color: var(--text-dim); font-family: 'Space Grotesk'; font-size: 28px; font-weight: 600; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* SECTIONS */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 48px;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 72px; }
.section-head h2 { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  transition: transform .3s, border-color .3s, background .3s;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,0.4); background: var(--surface-2); }
.service-num { font-family: 'Space Grotesk'; font-size: 14px; color: var(--text-mute); margin-bottom: 24px; font-weight: 600; }
.service-card h3 { font-size: 26px; margin-bottom: 14px; }
.service-card p { color: var(--text-dim); margin-bottom: 20px; }
.service-card ul { list-style: none; }
.service-card li { color: var(--text-dim); font-size: 14px; padding: 6px 0; padding-left: 18px; position: relative; }
.service-card li::before { content: '→'; position: absolute; left: 0; color: var(--purple); }

/* WORK */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.4); }
.work-thumb { height: 260px; }
.thumb-1 { background: linear-gradient(135deg, #1e3a8a 0%, #6d28d9 100%); }
.thumb-2 { background: linear-gradient(135deg, #0f766e 0%, #1e40af 100%); }
.thumb-3 { background: linear-gradient(135deg, #be185d 0%, #6d28d9 100%); }
.thumb-4 { background: linear-gradient(135deg, #b45309 0%, #1e3a8a 100%); }
.work-info { padding: 24px 28px; }
.work-info h3 { font-size: 22px; margin-bottom: 6px; }
.work-info p { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }
.work-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139,92,246,0.15);
  color: #c4b5fd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

/* PROCESS */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step {
  padding: 32px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
}
.process-num {
  font-family: 'Space Grotesk';
  font-size: 48px;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  line-height: 1;
}
.process-step h3 { font-size: 20px; margin-bottom: 10px; }
.process-step p { color: var(--text-dim); font-size: 14px; }

/* CTA */
.cta-section { padding: 100px 48px; }
.cta-inner {
  max-width: 1000px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.2), transparent 70%);
  z-index: 0;
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.cta-inner p { color: var(--text-dim); margin-bottom: 32px; font-size: 17px; }

/* CONTACT */
.contact-section { padding-top: 60px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-info h2 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.contact-info > p { color: var(--text-dim); margin-bottom: 40px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: center; }
.contact-icon {
  width: 48px; height: 48px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--purple);
}
.contact-label { color: var(--text-mute); font-size: 13px; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--text); font-weight: 500; }
.contact-item a:hover { color: var(--purple); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: rgba(139,92,246,0.05);
}
.field textarea { resize: vertical; min-height: 100px; }
.form-msg { color: #22c55e; font-size: 14px; text-align: center; min-height: 20px; }

/* FOOTER */
.footer { padding: 80px 48px 40px; border-top: 1px solid var(--border); background: rgba(0,0,0,0.3); }
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-cols h4 { font-size: 14px; margin-bottom: 16px; }
.footer-cols a { display: block; color: var(--text-dim); font-size: 14px; padding: 4px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  color: var(--text-mute);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 130px 24px 60px; min-height: auto; }
  .hero-visual { height: 360px; }
  .section { padding: 80px 24px; }
  .services-grid, .work-grid, .process-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .marquee-track span { font-size: 20px; }
  .cta-inner { padding: 60px 24px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hero-title { font-size: 38px; }
  .hero-stats { grid-template-columns: 1fr; }
  .floating-card { min-width: 160px; padding: 12px 16px; }
  .card-icon { font-size: 18px; }
}
