/*
  LokiHub — Glass + Parallax Landing 
*/

:root {
  --max-width: 1100px;

  --bg: #0b0b0b;
  --text: #e7e7ea;
  --text-muted: #9aa3ad;

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);

  --radius: 20px;
}

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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---------- Utilidades ---------- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- NAV ---------- */

.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
}

.nav-container {
  width: calc(100% - 24px);
  max-width: var(--max-width);
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;

  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0);
}

.nav.nav--compact .nav-container {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-color: var(--glass-border);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.logo .fa-cat {
  filter: drop-shadow(0 8px 20px rgba(255,255,255,.12));
}

.logo-text {
  opacity: .9;
  letter-spacing: .2px;
}

.nav-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-button {
  padding: 8px 14px;
  border-radius: 12px;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  text-decoration: none;
}

.nav-button:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.08);
}

.nav-button.primary {
  background: #fff;
  color: #111;
}

.nav-button.primary:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
}

/* Hamburguesa */

.hamburger {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, top .25s, opacity .2s;
}

.hamburger span:nth-child(1) { top: 12px; }
.hamburger span:nth-child(2) { top: 19px; }
.hamburger span:nth-child(3) { top: 26px; }

.hamburger.active span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ---------- BACKDROP ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}

.blob-1 {
  background: radial-gradient(closest-side, #6a5acd, transparent 70%);
  top: -10vmax;
  left: -10vmax;
}

.blob-2 {
  background: radial-gradient(closest-side, #8a2be2, transparent 70%);
  bottom: -15vmax;
  right: -10vmax;
}

.grid-lines {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(50% 50% at 50% 50%, black 40%, transparent 80%);
}

.noise {
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="1" stitchTiles="stitch"/></filter><rect width="100" height="100" filter="url(%23n)" opacity="0.03"/></svg>');
  mix-blend-mode: overlay;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: 0;
  display: block;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
  text-align: center;
}

.hero-inner {
  width: 100%;
}

.icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(to bottom, #0f0f10, #1a1b1f);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 0 24px rgba(255,255,255,.08);
}

.main-title {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #bbb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--text-muted);
  margin-top: 10px;
  font-size: clamp(16px, 2.2vw, 20px);
}

.hero-buttons {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: all .25s;
}

.primary-button {
  background: #fff;
  color: #111;
  border-color: transparent;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,255,255,.18);
}

.secondary-button:hover {
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}

/* Pills */

.applications-section {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.applications-container {
  padding: 28px 18px;
}

.app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
}

.app-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: 110px;
  height: 110px;
  border-radius: 22px;

  background: rgba(56,55,55,0.2);
  border: 1px solid rgba(81,81,81,0.35);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;

  transition: transform .25s, background .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}

.app-pill:hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255,255,255,0.22);
  box-shadow: 0 8px 30px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.15);
}

.app-icon {
  font-size: 32px;
}

.app-pill .soon {
  position: absolute;
  top: 8px;
  right: 8px;

  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;

  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
}

.app-pill.coming-soon {
  opacity: .35;
}

.app-pill.coming-soon:hover {
  opacity: .8;
}

/* Code card */

.hero-showcase {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  perspective: 900px;
}

.showcase-card {
  width: min(900px, 92vw);
  border-radius: 18px;
  overflow: hidden;
}

.showcase-header {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
}

.showcase-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28c840; }

.showcase-body {
  padding: 22px;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  color: #d1d5db;
}

.code-lines span {
  display: block;
  opacity: .9;
}

/* ---------- SECCIONES ---------- */

.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 28px;
}

.feature-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-desc {
  margin-top: 8px;
  color: var(--text-muted);
}

/* Proyectos */

.projects-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  padding: 48px 20px 20px;  
  border-radius: 16px;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin-bottom: 8px;
  letter-spacing: .2px;
}

.card p {
  color: var(--text-muted);
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;

  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;

  background: rgba(46,204,113,.18);
  border: 1px solid rgba(46,204,113,.4);
  color: #b5f5cc;
}

.card-badge.soon {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.24);
  color: #eee;
}

.soon-card {
  opacity: .35;
  pointer-events: none;
}

/* Roadmap */

.timeline {
  list-style: none;
  position: relative;
  margin: 0 auto;
  max-width: 900px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,.08);
}

.tl-item {
  position: relative;
  padding-left: 48px;
  margin: 22px 0;
}

.tl-dot {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.12);
}

.tl-card {
  padding: 16px;
  border-radius: 14px;
}

.faded {
  opacity: .45;
}

/* About */

.about-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr .8fr;
}

.about-copy {
  padding: 24px;
}

.about-copy h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.checks {
  list-style: none;
  display: grid;
  gap: 8px;
}

.checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-visual {
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.stat {
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
}

.stat-label,
.hint {
  color: var(--text-muted);
  font-size: 13px;
}

/* Footer */

.footer {
  padding: 80px 16px 40px;
  display: flex;
  justify-content: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 480px;
}

.loki-cat-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.speech-bubble {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 10px 16px;
}

.speech-bubble:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--glass-bg);
}

.bubble-text {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.loki-cat img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,.1);
}

.created-by {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 14px;
}

.social-icons a {
  color: var(--text);
  font-size: 18px;
  transition: opacity .2s;
  text-decoration: none;
}

.social-icons a:hover {
  opacity: .8;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }


  .hero-showcase {
    perspective: none;
  }
}

@media (max-width: 768px) {
  .nav-buttons {
    position: absolute;
    top: 64px;
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
  }

  .nav.nav--compact .nav-buttons {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
  }

  .hamburger {
    display: block;
  }

 
  .section-head {
    margin-bottom: 20px;
  }

  .timeline {
    max-width: 680px;
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .app-pill {
    width: 100px;
    height: 100px;
  }


  .hero-showcase {
    display: none;
  }


  .timeline:before {
    left: 12px;
  }

  .tl-item {
    padding-left: 44px;
  }
}
