/* Obsidia Launcher: vidrio volcánico con luz en el filo.
   Una base oscura con tinte violeta, texto en hueso y una línea de luz
   (violeta, agua, brasa) que solo aparece en bordes y trazos. */

:root {
  --bg: #0d0b16;
  --surface: #12101e;
  --surface-2: #171426;
  --line: #2b2842;
  --line-soft: #1e1b30;
  --text: #eeebf5;
  --muted: #a8a4be;
  --faint: #8e8aa8;
  --portal: #9a5bff;
  --agua: #4fd1c5;
  --brasa: #ff7a45;
  --edge: linear-gradient(135deg, rgba(154, 91, 255, 0.95), rgba(79, 209, 197, 0.35) 48%, rgba(255, 122, 69, 0.7));
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px), 5vw);
  --gutter-r: max(20px, env(safe-area-inset-right, 0px), 5vw);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--muted); text-decoration: none; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--portal);
  outline-offset: 4px;
  border-radius: 6px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }

.wrap {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 999px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-main { background: var(--text); color: var(--bg); padding: 14px 30px; font-size: 16px; }
.btn-main:hover { background: #fff; color: var(--bg); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); padding: 13px 28px; font-size: 16px; font-weight: 500; }
.btn-ghost:hover { border-color: var(--portal); color: var(--text); }
.btn-sm { padding: 10px 22px; font-size: 15px; }

/* Navegación */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(13, 11, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(154, 91, 255, 0), rgba(154, 91, 255, 0.9) 30%, rgba(79, 209, 197, 0.55) 60%, rgba(255, 122, 69, 0.6) 85%, rgba(255, 122, 69, 0));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.site-header.is-scrolled::after { opacity: 1; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { width: 30px; height: auto; }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 36px; font-size: 15px; font-weight: 500; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* Marco de vidrio: la ventana del launcher y las capturas */
.glass {
  padding: 1px;
  border-radius: 16px;
  background: var(--edge);
  box-shadow: 0 50px 110px -30px rgba(154, 91, 255, 0.4), 0 18px 36px -18px rgba(0, 0, 0, 0.8);
}
.glass-in { position: relative; background: var(--surface); border-radius: 15px; overflow: hidden; }
.glass-in::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(460px circle at var(--mx, 75%) var(--my, 8%), rgba(255, 255, 255, 0.075), transparent 62%);
}
.win-bar { display: flex; gap: 8px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.shot-body { display: grid; place-items: center; padding: 24px; min-height: 300px; }
.shot-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 250px;
  padding: 0 16px;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  border: 1px dashed #3a3658;
  border-radius: 10px;
}
.shot { display: block; width: 100%; height: auto; }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(900px 600px at 78% 40%, rgba(154, 91, 255, 0.14), rgba(13, 11, 22, 0) 70%); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 24px 40px;
  padding-block: 40px 96px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; max-width: 560px; }
.hero h1 { font-size: clamp(42px, 5.4vw, 78px); line-height: 1.02; letter-spacing: -0.035em; }
.hero-lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: 14px; color: var(--faint); }

.hero-art { display: grid; align-items: center; min-width: 0; }
.shard { grid-area: 1 / 1; justify-self: end; width: 82%; height: auto; aspect-ratio: 640 / 720; overflow: visible; }
.hero-window { grid-area: 1 / 1; justify-self: start; width: 100%; position: relative; z-index: 2; }
.hero-window .glass { transform: perspective(1600px) rotateY(-4deg) rotateX(1.5deg); }
.hero-reflect {
  height: 70px;
  margin: 10px 8% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154, 91, 255, 0.28), rgba(154, 91, 255, 0));
  filter: blur(10px);
}
.mock { display: flex; min-height: 360px; }
.mock-side { width: 28%; padding: 20px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.mock-side span { height: 12px; border-radius: 6px; background: var(--line-soft); }
.mock-side span:first-child { width: 70%; background: var(--line); }
.mock-side span:nth-child(2) { width: 55%; }
.mock-side span:nth-child(3) { width: 62%; }
.mock-side span:nth-child(4) { width: 48%; }
.mock-main { flex: 1; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.mock-main .shot-placeholder { min-height: 120px; height: 120px; }
.mock-cards { display: flex; gap: 12px; }
.mock-cards span { flex: 1; height: 56px; border-radius: 10px; background: #1a1730; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 24px 72px; }
  .hero-copy { max-width: none; }
  .hero-window { width: 92%; }
  .shard { width: 86%; }
  .mock { min-height: 300px; }
}

/* Animación de carga: la esquirla se dibuja y la ventana emerge */
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.edge { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
.edge-late { animation-delay: 0.7s; }
.hero-window { opacity: 0; animation: rise 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) 1.5s forwards; }
.hero-copy { opacity: 0; animation: rise 1s ease 0.1s forwards; }
@media (prefers-reduced-motion: reduce) {
  .edge { animation: none; stroke-dashoffset: 0; }
  .hero-window, .hero-copy { animation: none; opacity: 1; }
}

/* Secciones */
.section { padding-block: clamp(64px, 9vw, 120px); scroll-margin-top: 64px; }
.section-head { display: flex; flex-direction: column; gap: 20px; max-width: 680px; }
.section h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.05; letter-spacing: -0.03em; }
.section-lead { font-size: 18px; color: var(--muted); max-width: 52ch; }

/* Funciones */
.features { display: flex; flex-direction: column; gap: clamp(64px, 8vw, 112px); margin-top: clamp(56px, 7vw, 96px); }
.feature { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; gap: 32px clamp(32px, 6vw, 88px); }
.feature--flip { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.feature--flip .feature-shot { order: -1; }
.feature-text { display: flex; flex-direction: column; gap: 22px; }
.feature h3 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.feature p { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 50ch; }
.feature-list { margin-top: 4px; }
.feature-list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--text); line-height: 1.5; }
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 860px) {
  .feature, .feature--flip { grid-template-columns: minmax(0, 1fr); }
  .feature--flip .feature-shot { order: 0; }
}

/* Estado del proyecto */
.estado { background: radial-gradient(700px 420px at 12% 50%, rgba(154, 91, 255, 0.1), rgba(13, 11, 22, 0) 70%); }
.estado-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(40px, 7vw, 100px); align-items: start; }
.estado-copy { display: flex; flex-direction: column; gap: 22px; }
.estado-copy .section-lead { max-width: 44ch; }
.estado-stack { font-size: 15px; color: var(--faint); }
.steps { position: relative; display: flex; flex-direction: column; }
.steps::before {
  content: "";
  position: absolute;
  left: 6px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--portal), rgba(154, 91, 255, 0.15));
}
.step { position: relative; display: flex; gap: 28px; padding-bottom: 44px; }
.step:last-child { padding-bottom: 0; }
.step-dot { flex: none; width: 13px; height: 13px; margin-top: 8px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--portal); }
.step--now .step-dot { background: var(--portal); box-shadow: 0 0 0 5px rgba(154, 91, 255, 0.18), 0 0 24px rgba(154, 91, 255, 0.7); }
.step--next .step-dot { border: 1.5px dashed #6b5a9e; }
.step h3 { font-size: 22px; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { color: var(--muted); max-width: 52ch; }
@media (max-width: 860px) { .estado-grid { grid-template-columns: minmax(0, 1fr); } }

/* Cierre y pie */
.cierre { background: radial-gradient(800px 400px at 50% 0%, rgba(154, 91, 255, 0.16), rgba(13, 11, 22, 0) 70%); padding-block: clamp(64px, 8vw, 110px) 36px; }
.cierre-copy { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.cierre h2 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.04; letter-spacing: -0.035em; }
.cierre-copy p { font-size: 18px; color: var(--muted); max-width: 46ch; }
.site-footer { margin-top: clamp(56px, 8vw, 96px); padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.footer-brand img { width: 24px; height: auto; }
.footer-brand strong { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.footer-brand span, .footer-links span { font-size: 14px; color: var(--faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; align-items: center; }
.legal { font-size: 13px; line-height: 1.6; color: var(--faint); max-width: 80ch; padding-bottom: max(0px, env(safe-area-inset-bottom, 0px)); }
