/* Pulla — landing styles
   Brand: Discord blurple (la plataforma) + oro de victoria (Elo/LoL) + coral "roast" (la pulla). */

:root {
  --bg: #0b0e14;
  --bg-2: #0e121b;
  --surface: #141925;
  --surface-2: #1a2030;
  --border: #232a3b;
  --text: #e6e9f0;
  --muted: #9aa4bf;
  --faint: #6b7596;

  --blurple: #5865f2;
  --blurple-bright: #7984ff;
  --gold: #f4c04e;
  --coral: #ff5c7a;
  --win: #2dc58a;
  --loss: #ed4c5c;

  --grad: linear-gradient(105deg, var(--blurple) 0%, var(--coral) 100%);
  --radius: 16px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
  --maxw: 1120px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

/* ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(88, 101, 242, 0.18), transparent 60%),
    radial-gradient(700px 500px at 95% 0%, rgba(255, 92, 122, 0.14), transparent 60%);
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blurple);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(88, 101, 242, 0.7);
}
.btn-primary:hover { background: var(--blurple-bright); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--blurple); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 14, 20, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { color: var(--muted); font-size: 0.94rem; font-weight: 500; transition: color 0.15s; }
.nav-links a.link:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero p.lede { font-size: 1.18rem; color: var(--muted); max-width: 32ch; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 0.88rem; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 10px var(--win); }

/* ---------- Discord embed mock ---------- */
.discord {
  background: #313338;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 18px 22px;
  font-size: 0.92rem;
  position: relative;
  transform: rotate(0.6deg);
  transition: transform 0.3s ease;
}
.discord:hover { transform: rotate(0deg); }
.dc-msg { display: flex; gap: 14px; }
.dc-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dc-avatar img { width: 26px; height: 26px; }
.dc-body { flex: 1; min-width: 0; }
.dc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.dc-name { font-weight: 600; color: #f2f3f5; }
.dc-bot { background: var(--blurple); color: #fff; font-size: 0.62rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.dc-time { color: #949ba4; font-size: 0.74rem; }

.embed {
  border-left: 4px solid var(--gold);
  background: #2b2d31;
  border-radius: 5px;
  padding: 13px 16px 15px;
}
.embed-title { font-weight: 700; color: #f2f3f5; margin-bottom: 12px; font-size: 1rem; }
.embed-title span { color: var(--gold); }

.player-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}
.player-line:last-of-type { border-bottom: none; }
.pl-name { font-weight: 600; color: #dbdee1; }
.pl-score { font-variant-numeric: tabular-nums; font-weight: 700; }
.pl-score .w { color: var(--win); }
.pl-score .l { color: var(--loss); }
.pl-meta { color: #b5bac1; font-size: 0.84rem; }
.tag {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.tag.star { color: var(--gold); border-color: rgba(244, 192, 78, 0.4); background: rgba(244, 192, 78, 0.08); }
.tag.up { color: var(--win); border-color: rgba(45, 197, 138, 0.4); background: rgba(45, 197, 138, 0.08); }
.tag.down { color: var(--loss); border-color: rgba(237, 76, 92, 0.4); background: rgba(237, 76, 92, 0.08); }

.awards { margin-top: 13px; display: flex; flex-direction: column; gap: 5px; }
.award { font-size: 0.86rem; color: #dbdee1; display: flex; align-items: center; gap: 8px; }
.award b { color: #f2f3f5; }

/* ---------- Section ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.step-num {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(88, 101, 242, 0.12); color: var(--blurple-bright);
  border: 1px solid rgba(88, 101, 242, 0.3);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.18rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 0.96rem; }
.step code { background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; color: var(--gold); font-size: 0.86em; }

/* features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--blurple); }
.card .ic {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 92, 122, 0.1);
  margin-bottom: 18px; font-size: 1.5rem;
}
.card h3 { font-size: 1.16rem; margin-bottom: 9px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* awards highlight */
.awards-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.award-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.award-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  background: var(--surface);
}
.award-card .emoji { font-size: 2.6rem; margin-bottom: 14px; }
.award-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.award-card p { color: var(--muted); font-size: 0.94rem; }
.award-card.tryhard { border-top: 3px solid var(--gold); }
.award-card.pelele { border-top: 3px solid var(--loss); }
.award-card.fire { border-top: 3px solid var(--coral); }

/* commands */
.cmd-table {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.cmd-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.cmd-row:last-child { border-bottom: none; }
.cmd-row:hover { background: var(--surface-2); }
.cmd code {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9rem;
  color: var(--blurple-bright);
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.22);
  padding: 4px 10px;
  border-radius: 7px;
  white-space: nowrap;
}
.cmd-row .desc { color: var(--muted); font-size: 0.95rem; }

/* waitlist form */
.waitlist { margin: 28px 0 22px; max-width: 480px; }
.wl-row { display: flex; gap: 10px; }
.wl-input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.wl-input::placeholder { color: var(--faint); }
.wl-input:focus {
  outline: none;
  border-color: var(--blurple);
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.25);
}
.wl-submit { flex-shrink: 0; }
/* honeypot: oculto a humanos, visible para bots */
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-msg { min-height: 1.4em; margin-top: 12px; font-size: 0.92rem; font-weight: 500; }
.wl-msg.is-ok { color: var(--win); }
.wl-msg.is-err { color: var(--loss); }

/* variante sobre el fondo claro del CTA final */
.waitlist-light { margin: 28px auto 0; }
.waitlist-light .wl-input {
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  color: #0b0e14;
}
.waitlist-light .wl-input::placeholder { color: #6b7596; }
.waitlist-light .wl-input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45); }
.waitlist-light .wl-msg.is-ok { color: #eafff5; }
.waitlist-light .wl-msg.is-err { color: #fff0f2; }

/* final CTA */
.cta-final { text-align: center; }
.cta-box {
  background: var(--grad);
  border-radius: 28px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -0.02em; margin-bottom: 14px; color: #fff; }
.cta-box p { color: rgba(255, 255, 255, 0.9); font-size: 1.12rem; margin-bottom: 30px; max-width: 46ch; margin-inline: auto; }
.cta-box .btn-primary { background: #fff; color: var(--blurple); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.5); }
.cta-box .btn-primary:hover { background: #f0f1ff; }

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 56px;
}
.foot-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.foot-brand img { width: 26px; height: 26px; }
.foot-links { display: flex; gap: 26px; }
.foot-links a { color: var(--muted); font-size: 0.92rem; transition: color 0.15s; }
.foot-links a:hover { color: var(--text); }
.foot-fine { color: var(--faint); font-size: 0.82rem; margin-top: 18px; text-align: center; }
.foot-fine a { color: var(--muted); text-decoration: underline; }

/* ---------- Legal / prose (terms, privacy) ---------- */
.legal { padding: 56px 0 84px; }
.legal-head { max-width: 760px; margin: 0 auto 44px; }
.legal-head h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: 12px;
}
.legal-head .updated { color: var(--faint); font-size: 0.9rem; }
.legal-head .lede { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; font-weight: 700; margin: 24px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { color: var(--muted); margin: 0 0 16px 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--blurple-bright); text-decoration: underline; }
.prose a:hover { color: var(--text); }
.prose strong { color: var(--text); }
.prose code {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--gold);
  font-size: 0.86em;
}
.callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--muted);
}
.callout strong { color: var(--text); }
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 28px;
  transition: color 0.15s;
}
.legal-back:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero p.lede { max-width: none; }
  .steps, .features, .award-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cmd-row { grid-template-columns: 1fr; gap: 8px; }
  .discord { transform: none; }
  .wl-row { flex-direction: column; }
  .wl-submit { width: 100%; justify-content: center; }
  section { padding: 60px 0; }
  .hero { padding: 48px 0; }
}
@media (min-width: 881px) and (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
