/*
  MineStreamCraft Landing Page
  - Tema oscuro moderno (inspiración Minecraft + streaming)
  - Sin frameworks, responsive puro CSS
*/

:root {
  --bg: #090c14;
  --surface: #101626;
  --surface-2: #141d33;
  --text: #eaf0ff;
  --muted: #a8b6d9;
  --emerald: #23d18b;
  --cyan: #2ed8ff;
  --blue: #3d6cff;
  --purple: #9a5cff;
  --border: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(46, 216, 255, 0.16), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(154, 92, 255, 0.18), transparent 40%),
    linear-gradient(180deg, #080b13 0%, #090c14 100%);
  line-height: 1.5;
}

.container { width: min(1100px, 92%); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.alt { background: rgba(16, 22, 38, 0.5); border-block: 1px solid var(--border); }

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(9, 12, 20, 0.75);
  border-bottom: 1px solid var(--border);
  z-index: 20;
}

.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 0; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; }
.main-nav { display: flex; gap: 1rem; }
.main-nav a { color: var(--muted); text-decoration: none; }
.main-nav a:hover { color: var(--text); }
.menu-toggle { display: none; }

.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.kicker { color: var(--cyan); font-weight: 600; margin-bottom: 0.5rem; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 1rem; }
.subtitle { max-width: 58ch; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--emerald), var(--cyan)); color: #04131b; }
.btn-secondary { border-color: var(--border); color: var(--text); }
.btn-ghost { background: transparent; border-color: var(--blue); color: var(--cyan); width: 100%; margin-top: 0.6rem; }

.hero-panel { display: grid; gap: 0.9rem; }
.app-card, .card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.app-card h2, .card h3 { margin-top: 0; }
.app-card input {
  width: 100%;
  background: #0b1222;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  padding: 0.55rem;
}

.grid.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.tags span {
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(61, 108, 255, 0.15);
}

.code-list { display: grid; gap: 0.65rem; margin-top: 1rem; }
code {
  display: block;
  padding: 0.7rem;
  border-radius: 0.5rem;
  background: #0a1020;
  border: 1px solid rgba(46, 216, 255, 0.25);
}

.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: 0.45rem; }

details {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.8rem;
  background: #0d1425;
  margin-bottom: 0.8rem;
}
summary { cursor: pointer; font-weight: 600; }

.site-footer { border-top: 1px solid var(--border); padding: 1.5rem 0; color: var(--muted); }
.footer-wrap { display: flex; justify-content: center; text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

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

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 0.5rem;
    padding: 0.45rem 0.7rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.8rem 4%;
    background: rgba(9, 12, 20, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
  }

  .main-nav.open { display: flex; }
}
