/**
 * WealthOS Beta Landing — Design System
 * Tokens alineados con la app principal (violeta/índigo)
 */

:root {
  /* Colores - HSL */
  --background: 0 0% 98.5%;
  --background-subtle: 250 20% 98%;
  --foreground: 222 47% 11%;
  --primary: 262 83% 58%;
  --primary-foreground: 0 0% 100%;
  --accent: 263 70% 92%;
  --accent-foreground: 262 83% 45%;
  --muted: 220 14% 96%;
  --muted-foreground: 220 9% 46%;
  --card: 0 0% 100%;
  --border: 214 32% 91%;
  --radius: 1rem;
  --shadow-card: 0 20px 40px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 25px 50px rgba(139, 92, 246, 0.12);
  --wealth-green: #00E676;
}

/* Tipografía */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  margin: 0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

/* Noise overlay sutil */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 1000;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  background: hsl(var(--background) / 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
  overflow: visible;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: hsl(var(--foreground));
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  overflow: visible;
}

.logo-icon {
  flex-shrink: 0;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: block;
}

.logo-os {
  font-weight: 400;
  opacity: 0.85;
}

/* Animación breathe: solo en el rect, centrado (el g mantiene el centrado correcto) */
.logo-inner-rect {
  transform-origin: 10px 10px;
  animation: logo-breathe 3.5s ease-in-out 2.2s infinite alternate;
}

@keyframes logo-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: hsl(var(--primary));
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: hsl(262 83% 58% / 0.25);
  top: -10%;
  left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: hsl(263 70% 65% / 0.2);
  bottom: 10%;
  right: -5%;
  animation-delay: -4s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: hsl(160 84% 39% / 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.98); }
}

/* Intro: WealthOS primero */
.hero-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 2;
  opacity: 1;
  transition: opacity 0.6s ease-out;
}

.hero-intro.hero-intro--out {
  opacity: 0;
  pointer-events: none;
}

.hero-intro-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(2.5rem, 8vw, 4rem);
}

.hero-intro-logo {
  flex-shrink: 0;
}

.hero-intro-logo svg {
  width: 1em;
  height: 1em;
  display: block;
}

.hero-intro-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: hsl(var(--foreground));
  line-height: 1;
}

.hero-intro-title .logo-os {
  font-weight: 400;
  opacity: 0.85;
}

/* Contenido principal: oculto al inicio */
.hero-content {
  position: relative;
  text-align: center;
  max-width: 640px;
  z-index: 1;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease-out 0.2s, transform 0.7s ease-out 0.2s;
}

.hero-content.hero-content--visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content--hidden {
  pointer-events: none;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, hsl(var(--primary)), var(--wealth-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: hsl(var(--muted-foreground));
  margin: 0 0 2rem;
  line-height: 1.7;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  background: hsl(var(--primary));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px hsl(var(--primary) / 0.4);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: hsl(var(--muted-foreground));
  margin: 0 0 3rem;
}

/* Glass card */
.glass-card {
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card, 0 0% 100%) / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.glass-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: hsl(var(--primary) / 0.2);
}

/* Download cards */
.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.download-card {
  padding: 2rem;
}

.download-icon {
  width: 56px;
  height: 56px;
  background: hsl(var(--accent));
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.download-icon svg {
  width: 28px;
  height: 28px;
  color: hsl(var(--primary));
}

.download-icon.mobile svg {
  color: var(--wealth-green);
}

.download-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.download-card p {
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.requisitos-inline {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.25rem !important;
  padding: 0.6rem 0;
}

.requisitos-inline strong {
  color: hsl(var(--primary));
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: hsl(var(--primary));
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: transform 0.2s, opacity 0.2s;
}

.btn-download svg {
  width: 18px;
  height: 18px;
}

.btn-download:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.download-note {
  margin-top: 1rem !important;
  font-size: 0.8rem !important;
  opacity: 0.8;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.5;
}

/* Video */
.video-wrapper {
  max-width: 800px;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsl(var(--accent)), hsl(var(--muted)));
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-content {
  text-align: center;
  color: hsl(var(--muted-foreground));
}

.video-placeholder-content svg {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.video-placeholder-content p {
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0 0 0.25rem;
}

.video-placeholder-content span {
  font-size: 0.9rem;
}

/* CTA Section */
.cta-card {
  text-align: center;
  padding: 3rem 2rem;
}

.cta-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
}

.cta-card p {
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.5rem;
}

.cta-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: none;
  border: 2px solid hsl(var(--primary));
  border-radius: 0.5rem;
  transition: background 0.2s, color 0.2s;
}

.cta-secondary:hover {
  background: hsl(var(--primary));
  color: white;
}

/* Footer */
.footer {
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--border));
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.logo-small {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.footer p {
  margin: 0;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

/* Responsive */
@media (max-width: 640px) {
  .nav {
    gap: 1rem;
  }
  .hero {
    min-height: 75vh;
    padding: 6rem 1rem 3rem;
  }
  .section {
    padding: 3rem 0;
  }
}
