/* ENLAXOS — index.css — Styles exclusive to index.html */

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes spin { to { transform: rotate(360deg); } }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 120px clamp(24px, 8vw, 160px) 48px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.5s 0s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--white);
  max-width: 900px;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.5s 0.1s ease forwards;
}

.hero-title .rotator {
  display: inline-grid;
  vertical-align: bottom;
  text-align: left;
}

.rotator-word {
  grid-area: 1 / 1;
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(0,229,255,0.35);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rotator-word.is-active { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .rotator-word { transition: none; }
}

.hero-sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 32px;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.5s 0.15s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.5s 0.25s ease forwards;
}

.hero-orb {
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 65%);
  pointer-events: none;
  will-change: opacity;
  animation: pulse 4s ease-in-out infinite;
  overflow: hidden;
}

.hero-caption {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 1s ease forwards;
}

/* STATS BAND */
.stats-band {
  margin: 0 clamp(24px, 8vw, 160px);
  padding: 56px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 8px 24px;
}

.stat-item + .stat-item { border-left: 1px solid var(--border); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1;
}

.stat-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

/* AI SECTION */
.ai-section {
  padding: 100px clamp(24px, 8vw, 160px) 60px;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.ai-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,229,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
}

.ai-network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.ai-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 94px; height: 94px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.16) 0%, rgba(2,6,12,0.97) 65%);
  border: 1px solid rgba(0,229,255,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 2;
  animation: pulse 3s ease-in-out infinite;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.5), 0 0 32px rgba(0,229,255,0.12), 0 0 64px rgba(0,229,255,0.06), inset 0 0 24px rgba(0,229,255,0.06);
}

.ai-center::before {
  content: '';
  position: absolute;
  inset: -17px;
  border-radius: 50%;
  border: 1px dashed rgba(0,229,255,0.22);
  animation: spin 12s linear infinite;
}

.ai-center::after {
  content: '';
  position: absolute;
  inset: -32px;
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.07);
}

.ai-center-label {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 1px;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.6));
}

.ai-center > svg {
  width: 22px; height: 22px;
  color: var(--cyan);
  filter: drop-shadow(0 0 8px rgba(0,229,255,0.7));
}

.ai-cap {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(2,7,14,0.92);
  border: 1px solid rgba(0,229,255,0.22);
  border-radius: 10px;
  padding: 8px 13px;
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  white-space: nowrap;
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 4px 20px rgba(0,0,0,0.55), 0 0 18px rgba(0,229,255,0.05);
  z-index: 2;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ai-cap:hover {
  border-color: rgba(0,229,255,0.45);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 4px 24px rgba(0,0,0,0.55), 0 0 28px rgba(0,229,255,0.12);
}

.ai-cap svg { width: 13px; height: 13px; color: var(--cyan); flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(0,229,255,0.5)); }
.ai-cap:nth-child(3) { animation: pulse 3s 0.0s ease-in-out infinite; }
.ai-cap:nth-child(4) { animation: pulse 3s 0.5s ease-in-out infinite; }
.ai-cap:nth-child(5) { animation: pulse 3s 1.0s ease-in-out infinite; }
.ai-cap:nth-child(6) { animation: pulse 3s 1.5s ease-in-out infinite; }
.ai-cap:nth-child(7) { animation: pulse 3s 2.0s ease-in-out infinite; }
.ai-cap:nth-child(8) { animation: pulse 3s 2.5s ease-in-out infinite; }

.ai-content .section-label { margin-bottom: 20px; }

.ai-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 20px;
}

.ai-headline .accent { color: var(--cyan); text-shadow: 0 0 30px rgba(0,229,255,0.3); }

.ai-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  font-weight: 300;
  margin-bottom: 24px;
  max-width: 500px;
}

.ai-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.ai-features li {
  font-family: var(--font-mono);
  background: rgba(0,229,255,0.06);
  border: 1px solid rgba(0,229,255,0.15);
  padding: 8px 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border-radius: var(--radius-pill);
}

/* SERVICES */
.services {
  padding: 60px clamp(24px, 8vw, 160px) 120px;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 16px;
  max-width: 720px;
}

.section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted);
  margin-bottom: 56px;
  max-width: 560px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.service-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.service-card:hover {
  background: #0e0e1a;
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.service-card.featured-service {
  background: linear-gradient(135deg, rgba(0,229,255,0.06) 0%, var(--surface-2) 60%);
  border-color: rgba(0,229,255,0.25);
}

.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 24px;
}

.service-icon {
  width: 36px; height: 36px;
  margin-bottom: 20px;
  display: block;
  color: var(--cyan);
}

.service-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.2;
}

.service-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.service-badge {
  display: inline-block;
  font-family: var(--font-mono);
  background: rgba(0,229,255,0.1);
  border: 1px solid rgba(0,229,255,0.2);
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-pill);
}


/* TECHNOLOGIES MARQUEE */
.tech-section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.tech-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.tech-marquee {
  display: block;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tech-marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 55s linear infinite;
  flex-shrink: 0;
  width: max-content;
  min-width: 200%;
  will-change: transform;
  backface-visibility: hidden;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.tech-marquee-track--reverse {
  animation-name: marquee-reverse;
  animation-duration: 65s;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 36px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.tech-item:hover { color: var(--cyan); }

.tech-item img {
  width: 20px; height: 20px;
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.tech-item:hover img {
  opacity: 0.9;
}
.tech-item img.icon-invert {
  filter: brightness(0) invert(1);
}

/* ABOUT */
.about {
  padding: 120px clamp(24px, 8vw, 160px);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: border-color 0.3s;
}

.about-card:hover { border-color: var(--border-hover); }

.about-card-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* PROCESS */
.process {
  padding: 120px clamp(24px, 8vw, 160px);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.step {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  transition: border-color 0.3s;
}

.step:hover { border-color: var(--border-hover); }

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13px;
  color: var(--text);
  line-height: 1.6;
}

/* CTA */
.cta-section {
  margin: 0 clamp(24px, 8vw, 160px) 120px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 90px clamp(24px, 8vw, 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,229,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
  max-width: 640px;
  position: relative;
}

.cta-title span { color: var(--cyan); }

.cta-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
}

.cta-note {
  font-size: 12px;
  color: var(--text);
  letter-spacing: 0.5px;
}

.wa-icon {
  display: inline-block;
  width: 20px; height: 20px;
  vertical-align: middle;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 100px 24px 60px; }
  .hero-title { font-size: clamp(28px, 9vw, 44px); }
  .hero-title .rotator { display: grid; }
  .rotator-word { white-space: nowrap; }
  .hero-title br { display: none; }
  .hero-badge { font-size: 9px; padding: 6px 12px; margin-bottom: 16px; }
  .hero-actions { flex-wrap: wrap; }
  .stats-band { margin: 0 24px; padding: 8px 0; grid-template-columns: 1fr; }
  .stat-item { padding: 24px; }
  .stat-item + .stat-item { border-left: none; border-top: 1px solid var(--border); }
  .ai-section { padding: 80px 24px 48px; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-visual { height: 260px; }
  .services { padding: 48px 24px 80px; }
  .services-grid { grid-template-columns: 1fr; }
  .about { padding: 80px 24px; }
  .about-grid { grid-template-columns: 1fr; }
  .process { padding: 80px 24px; }
  .process-steps { grid-template-columns: 1fr; gap: 16px; }
  .cta-section { margin: 0 24px 80px; padding: 56px 28px; }
  .ai-node { animation: none; }
  .hero-orb { display: none; }
  .tech-item { padding: 12px 24px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(26px, 9vw, 40px); }
  .services-grid { gap: 12px; }
  .about-grid { gap: 12px; }
  .process-steps { gap: 12px; }
  .cta-title { font-size: clamp(22px, 6vw, 32px); }
}

@media (max-width: 360px) {
  .hero { padding: 90px 16px 48px; }
  .hero-badge { white-space: normal; font-size: 8px; letter-spacing: 0.08em; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .cta-section { margin: 0 12px 60px; padding: 40px 20px; }
  .stats-band { margin: 0 16px; }
}
