@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-color: #09090b;
  --surface: rgba(20, 20, 25, 0.7);
  --surface-hover: rgba(35, 35, 45, 0.8);
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.2);
  
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  
  --brand-cyan: #00f0ff;
  --brand-purple: #8b5cf6;
  
  --glass-blur: blur(20px);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background Glowing Orbs (Estilo Original) */
.bg-glow {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.25;
  animation: float 20s ease-in-out infinite alternate;
}
.glow-orb-1 {
  width: 600px; height: 600px;
  background: var(--brand-purple);
  top: -200px; left: -200px;
}
.glow-orb-2 {
  width: 500px; height: 500px;
  background: var(--brand-cyan);
  bottom: -200px; right: -200px;
  animation-delay: -5s;
}

/* Background Tech Grid */
.tech-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 90px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 90px 100%;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
  z-index: 0;
  animation: gridScroll 10s linear infinite;
}
@keyframes gridScroll {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 0 90px, 0 0; }
}

/* Feature Rows (ZRCTL Style) */
.feat-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 160px;
}
.feat-row.rev {
  grid-template-columns: 1.2fr 1fr;
}
.feat-row.rev .feat-text {
  order: 2;
}
.feat-row.rev .feat-img {
  order: 1;
}
@media (max-width: 900px) {
  .feat-row, .feat-row.rev {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 100px;
  }
  .feat-row.rev .feat-text {
    order: 1;
  }
  .feat-row.rev .feat-img {
    order: 2;
  }
}
.feat-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.feat-text p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
}
.feat-img {
  position: relative;
  perspective: 1200px;
}
.feat-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
  animation: float3d 6s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes float3d {
  0% { transform: translateY(0px) rotateX(0deg) rotateY(0deg) scale(1); }
  50% { transform: translateY(-20px) rotateX(4deg) rotateY(-4deg) scale(1.02); }
  100% { transform: translateY(0px) rotateX(0deg) rotateY(0deg) scale(1); }
}
.feat-img-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: var(--brand-purple);
  filter: blur(120px);
  opacity: 0.2;
  z-index: -1;
  border-radius: 50%;
}
.feat-row.rev .feat-img-glow {
  background: var(--brand-cyan);
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Navigation */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: rgba(5, 5, 5, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-img {
  height: 48px;
  width: auto;
}

/* Hero Section con Fotografía + Orbes (El Mix) */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 60px;
  text-align: center;
  overflow: hidden;
}

/* Imagen de fondo sutil detrás del hero */
.hero-bg-image {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: -1;
  opacity: 0.15; /* Muy sutil para no chocar con los orbes */
}
.hero-bg-image img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 65%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 99px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-purple);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-purple);
  box-shadow: 0 0 10px var(--brand-purple);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

.hero h1 {
  font-size: clamp(48px, 8vw, 90px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 1000px;
  text-transform: uppercase;
  z-index: 2;
}
.hero h1 .highlight {
  color: var(--brand-cyan);
}
.underline-purple {
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  z-index: 1;
}
.underline-purple::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0%;
  height: 12px;
  background-color: var(--brand-purple);
  z-index: -1;
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s; /* animates width after text reveals */
}
.reveal.active .underline-purple::after,
.underline-purple.active::after {
  width: 100%;
}
.hero p {
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 48px;
  font-weight: 400;
  z-index: 2;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #363090 0%, #8b5cf6 100%);
  color: #fff;
  padding: 16px 40px;
  border-radius: 99px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px rgba(139,92,246,0.4);
}

/* App Showcase (Monitor Mockup) */
.app-showcase {
  padding: 0 24px 100px;
  max-width: 1200px;
  margin: -40px auto 0;
  position: relative;
  z-index: 10;
}
.mac-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(139,92,246,0.15);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.mac-header {
  background: rgba(0,0,0,0.5);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.mac-buttons {
  display: flex;
  gap: 8px;
}
.mac-btn {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.mac-btn.close { background: #ff5f56; }
.mac-btn.min { background: #ffbd2e; }
.mac-btn.max { background: #27c93f; }
.mac-title {
  flex-grow: 1;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-right: 60px; /* To center the title accounting for the buttons */
}
.mac-body {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  position: relative;
  overflow: hidden;
}
.carousel-container {
  display: flex;
  width: 300%;
  height: 100%;
  animation: slide 15s infinite ease-in-out;
}
.app-screenshot {
  width: 33.3333%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
@keyframes slide {
  0%, 25% { transform: translateX(0); }
  33.33%, 58.33% { transform: translateX(-33.3333%); }
  66.66%, 91.66% { transform: translateX(-66.6666%); }
  100% { transform: translateX(0); }
}

/* Bento Grid Section (Glassmorphism + Photography) */
.bento-section {
  padding: 100px 24px 160px;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-header {
  text-align: center;
  margin-bottom: 60px;
}
.bento-header h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 16px;
}
.bento-header p {
  font-size: 20px;
  color: var(--text-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  grid-auto-flow: dense;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-large { grid-column: span 2; grid-row: span 2; }
  .card-medium { grid-column: span 2; }
  .card-tall { grid-row: span 2; }
}

.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
}

.bento-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 40px rgba(139,92,246,0.05);
}

/* La imagen de fondo sutil dentro de la tarjeta de cristal */
.card-bg-img {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  opacity: 0.3; /* Semitransparente para que sea el "Mix" con el fondo glass oscuro */
  mix-blend-mode: luminosity; /* Da un efecto más metálico/oscuro */
}
.card-bg-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease;
}
.bento-card:hover .card-bg-img img {
  transform: scale(1.05);
  opacity: 0.5;
}
/* Gradiente para que el texto siempre sea legible */
.card-bg-gradient {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10,10,15,1) 0%, rgba(10,10,15,0.1) 100%);
  z-index: 1;
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 40px;
}

.bento-icon {
  font-size: 32px;
  margin-bottom: 20px;
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.bento-card h3 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.bento-card p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1.6;
}

.bento-card ul {
  list-style: none;
  margin-top: 16px;
}
.bento-card ul li {
  color: rgba(255,255,255,0.8);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bento-card ul li::before {
  content: '✓';
  color: var(--brand-cyan);
  font-weight: bold;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px;
  text-align: center;
  background: #000; /* Solid black for footer */
}
.footer-logo {
  height: 40px;
  margin-bottom: 24px;
}
.footer p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Utilities */
.inline-block {
  display: inline-block;
}
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
