/* ------------------------------------------------------------------
   HighBuilds SEO Analyzer — landing
   Paleta y tipografías alineadas con highbuilds.com
------------------------------------------------------------------ */

:root {
  --ink: #1f1f1e;
  --ink-2: #2a2a28;
  --ink-3: #34342f;
  --paper: #ece7dc;
  --paper-2: #f4f1e9;
  --white: #fdfcf9;
  --mute: #6a6a62;
  --mute-2: #8c8c84;
  --violet: #8a6bff;
  --violet-2: #b89dff;
  --rust: #c97b5b;
  --moss: #9aa37a;
  --amber: #e7c98c;
  --hi: #f2c200;          /* amarillo obra, tomado de las ilustraciones */
  --hi-dark: #c79f00;
  --line: rgba(31, 31, 30, .10);
  --line-strong: rgba(31, 31, 30, .22);
  --line-dark: rgba(236, 231, 220, .12);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --hand: "Caveat", cursive;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --pad-x: clamp(20px, 4vw, 56px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

::selection { background: var(--hi); color: var(--ink); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 0 0 var(--r) 0;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------ tipografía */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 5.4vw, 74px); }
h2 { font-size: clamp(32px, 4.4vw, 56px); }
h3 { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.15; }
em { font-style: italic; }
.serif-i { font-family: var(--serif); font-style: italic; }

.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mute); display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--hi); border-radius: 2px;
}
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--mute); max-width: 62ch; }
.hand { font-family: var(--hand); font-size: 22px; color: var(--violet); }

/* ------------------------------------------------------------------ botones */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-3); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(31, 31, 30, .06); }
.btn-hi { background: var(--hi); color: var(--ink); }
.btn-hi:hover { background: #ffd21f; }
.btn-on-dark { background: var(--paper); color: var(--ink); }
.btn-on-dark:hover { background: #fff; }
.btn-ghost-dark { border-color: var(--line-dark); color: var(--paper); }
.btn-ghost-dark:hover { background: rgba(236, 231, 220, .08); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------------ navbar */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              border-color .3s var(--ease), background .3s var(--ease), backdrop-filter .3s var(--ease);
}
/* arriba del todo la barra no se ve; aparece al hacer scroll (o al tabular hacia ella) */
.nav:not(.scrolled):not(.open):not(:focus-within) {
  opacity: 0; pointer-events: none; transform: translateY(-10px);
}
.nav.scrolled, .nav.open, .nav:focus-within {
  opacity: 1; pointer-events: auto; transform: none;
}
.nav.scrolled, .nav.open {
  background: rgba(236, 231, 220, .94);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--line);
}

/* sobre el hero (antes de hacer scroll) el texto de la barra va en claro */
.nav:not(.scrolled):not(.open) .brand-txt b,
.nav:not(.scrolled):not(.open) .nav-links a { color: var(--paper); }
.nav:not(.scrolled):not(.open) .brand-txt span { color: rgba(236, 231, 220, .6); }
.nav:not(.scrolled):not(.open) .nav-links a:hover { background: rgba(236, 231, 220, .12); }
.nav:not(.scrolled):not(.open) .burger { border-color: rgba(236, 231, 220, .35); }
.nav:not(.scrolled):not(.open) .burger span { background: var(--paper); box-shadow: 0 -5px 0 var(--paper), 0 5px 0 var(--paper); }
.nav-in {
  height: 76px; display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; margin: -6px 0; }
.brand-txt { display: none; line-height: 1.1; }
.brand-txt b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.brand-txt span { font-size: 11px; color: var(--mute); }
@media (min-width: 900px) { .brand-txt { display: block; } }

.nav-links { display: none; margin-left: auto; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--ink);
  opacity: .78; transition: background .2s var(--ease), opacity .2s var(--ease);
}
.nav-links a:hover { background: rgba(31, 31, 30, .06); opacity: 1; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 960px) { .nav-links { display: flex; } .nav-cta { margin-left: 14px; } }
.nav-cta .btn { padding: 11px 18px; font-size: 14px; }
.btn-nav { background: var(--ink); color: var(--paper); }
.btn-nav:hover { background: var(--ink-3); }
.nav:not(.scrolled):not(.open) .btn-nav { background: var(--paper); color: var(--ink); }
.nav:not(.scrolled):not(.open) .btn-nav:hover { background: #fff; }

@media (max-width: 660px) {
  .nav-cta .btn { display: none; }
  .brand img { height: 44px; }
}

.burger { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); }
.burger span { display: block; width: 16px; height: 1.5px; background: var(--ink); box-shadow: 0 -5px 0 var(--ink), 0 5px 0 var(--ink); }
@media (min-width: 960px) { .burger { display: none; } }

.mobile-menu {
  display: grid; gap: 2px; padding: 0 var(--pad-x) 18px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mobile-menu a:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: -76px; padding: 76px 0 clamp(36px, 5.5vh, 76px);
  display: flex; align-items: flex-end;
  color: var(--paper);
}
/* la sección adopta la proporción de la ilustración: no se recorta por abajo */
@media (min-width: 1000px) {
  .hero { aspect-ratio: 2688 / 1520; min-height: 540px; }
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
/* velo mínimo: sólo lo justo para leer el texto de abajo y la barra de arriba */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(14, 14, 13, .95) 0%, rgba(14, 14, 13, .88) 16%, rgba(14, 14, 13, .68) 28%, rgba(14, 14, 13, .38) 40%, rgba(14, 14, 13, .14) 52%, rgba(14, 14, 13, 0) 64%),
    linear-gradient(to bottom, rgba(14, 14, 13, .58) 0%, rgba(14, 14, 13, .18) 12%, rgba(14, 14, 13, 0) 24%);
}

.hero-copy { max-width: 700px; margin: 0 auto; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.08;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 18px rgba(0, 0, 0, .7), 0 0 44px rgba(0, 0, 0, .45);
  text-wrap: balance;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.hero h1 .keys { white-space: nowrap; }
.hero h1 kbd { font-size: .46em; vertical-align: .18em; padding: .25em .5em; letter-spacing: .01em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }

kbd {
  display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 12px;
  background: var(--white); border: 1px solid var(--line-strong); box-shadow: 0 1px 0 var(--line-strong);
}
.hero kbd, kbd.on-dark {
  background: rgba(236, 231, 220, .14); border-color: rgba(236, 231, 220, .34);
  color: inherit; box-shadow: none;
}

@media (max-width: 999px) {
  .hero { padding: calc(76px + 56px) 0 46px; min-height: 78vh; }
  .hero-bg img { object-position: 76% 72%; }
  .hero::after {
    background:
      linear-gradient(to top, rgba(14, 14, 13, .95) 0%, rgba(14, 14, 13, .88) 24%, rgba(14, 14, 13, .62) 40%, rgba(14, 14, 13, .28) 56%, rgba(14, 14, 13, .06) 72%),
      linear-gradient(to bottom, rgba(14, 14, 13, .55) 0%, rgba(14, 14, 13, .10) 16%, rgba(14, 14, 13, 0) 28%);
  }
}

/* ------------------------------------------------------------------ marquesina de datos */
.stats { background: var(--ink); color: var(--paper); border: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 30px 8px 30px 0; }
.stat + .stat { border-left: 1px solid var(--line-dark); padding-left: 24px; }
@media (max-width: 859px) {
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid var(--line-dark); }
}
.stat b { display: block; font-family: var(--serif); font-size: clamp(32px, 3.6vw, 46px); line-height: 1; }
.stat span { font-size: 13px; color: rgba(236, 231, 220, .6); }
.stat kbd {
  background: rgba(236, 231, 220, .12); border-color: rgba(236, 231, 220, .3);
  color: inherit; box-shadow: none;
}

/* ------------------------------------------------------------------ secciones */
section { scroll-margin-top: 90px; }
.sec { padding: clamp(64px, 8vw, 120px) 0; }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head h2 { margin: 16px 0 16px; }
.sec-dark { background: var(--ink); color: var(--paper); }
.sec-dark .lead, .sec-dark .eyebrow { color: rgba(236, 231, 220, .62); }
.sec-dark .eyebrow::before { background: var(--violet-2); }

/* -------------------------------------------------- tarjetas de categorías */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 24px 50px -36px rgba(31, 31, 30, .6); }
.card-top { display: flex; align-items: center; gap: 10px; }
.card-ico {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--paper); font-size: 18px; flex-shrink: 0;
}
.card h3 { font-family: var(--font); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.weight { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--mute-2); }
.card ul { list-style: none; display: grid; gap: 7px; font-size: 13.5px; color: var(--mute); }
.card li { display: flex; gap: 8px; align-items: flex-start; }
.card li::before { content: "—"; color: var(--line-strong); flex-shrink: 0; }
.card li.pro::before { content: "★"; color: var(--violet); }
.card li.pro { color: var(--ink); }

/* -------------------------------------------------- cómo funciona */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step {
  border: 1px solid var(--line-dark); border-radius: var(--r-lg); padding: 24px;
  background: rgba(236, 231, 220, .04);
}
.step b {
  font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--violet-2);
  display: block; margin-bottom: 12px;
}
.step h3 { font-family: var(--font); font-size: 15.5px; font-weight: 600; margin-bottom: 7px; }
.step p { font-size: 13.5px; color: rgba(236, 231, 220, .64); }

.flow {
  margin-top: 34px; border: 1px solid var(--line-dark); border-radius: var(--r-lg);
  background: rgba(0, 0, 0, .25); padding: 22px; overflow-x: auto;
}
.flow pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px; line-height: 1.75; color: rgba(236, 231, 220, .82); white-space: pre;
}
.flow .k { color: var(--hi); }
.flow .v { color: var(--violet-2); }

/* -------------------------------------------------- privacidad */
.privacy-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .privacy-grid { grid-template-columns: 1.1fr .9fr; } }
.perm-list { list-style: none; display: grid; gap: 2px; }
.perm-list li { display: grid; gap: 5px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.perm-list .keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mute-2); }
.perm-list code {
  font-size: 12.5px; background: rgba(31, 31, 30, .06); padding: 3px 9px; border-radius: 6px;
  font-weight: 600; color: var(--ink);
}
.perm-list span { font-size: 13.5px; color: var(--mute); }

.no-send {
  border: 1px dashed var(--line-strong); border-radius: var(--r-xl); padding: 28px;
  background: rgba(253, 252, 249, .65); display: grid; gap: 14px;
}
.no-send h3 { font-family: var(--font); font-size: 16px; font-weight: 600; }
.no-send p { font-size: 14px; color: var(--mute); }
.no-send .row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.no-send .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); flex-shrink: 0; }

/* -------------------------------------------------- instalación */
.install-grid { display: grid; gap: 34px; }
@media (min-width: 940px) { .install-grid { grid-template-columns: 1fr 1fr; } }
.ol { list-style: none; counter-reset: s; display: grid; gap: 14px; }
.ol li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.ol li::before {
  content: counter(s, decimal-leading-zero);
  font-family: var(--serif); font-size: 18px; color: var(--violet);
  border: 1px solid var(--line); border-radius: 10px; width: 34px; height: 34px;
  display: grid; place-items: center;
}
.ol p { font-size: 14.5px; }
.ol small { display: block; font-size: 13px; color: var(--mute); margin-top: 2px; }

.code {
  background: var(--ink); color: rgba(236, 231, 220, .9); border-radius: var(--r-lg);
  padding: 18px 20px; overflow-x: auto; font-size: 13px; line-height: 1.8;
}
.code .c { color: var(--mute-2); }
.code .p { color: var(--violet-2); }
.code + .code { margin-top: 12px; }
.code-label { font-size: 12px; color: var(--mute); margin: 0 0 8px 2px; }

/* -------------------------------------------------- faq */
.faq { display: grid; gap: 2px; max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-size: 16.5px; font-weight: 500; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--mute); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 40px 22px 0; font-size: 14.5px; color: var(--mute); max-width: 72ch; }

/* -------------------------------------------------- cta final */
.cta { background: var(--ink); color: var(--paper); border-radius: var(--r-xl); overflow: hidden; }
.cta-grid { display: grid; align-items: center; }
@media (min-width: 880px) { .cta-grid { grid-template-columns: 1.05fr .95fr; } }
.cta-txt { padding: clamp(32px, 5vw, 56px); }
.cta-txt h2 { margin-bottom: 16px; }
.cta-txt p { color: rgba(236, 231, 220, .66); margin-bottom: 26px; max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-art { position: relative; align-self: end; padding: 34px clamp(20px, 4vw, 40px) 0; }
.cta-art::before {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(138, 107, 255, .32) 0%, rgba(138, 107, 255, 0) 68%);
}
.cta-art img {
  position: relative; width: 100%; max-width: 300px; margin: 0 auto;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, .45));
}
@media (max-width: 879px) { .cta-art img { max-width: 250px; } }

/* -------------------------------------------------- footer */
.foot { padding: 54px 0 40px; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); }
.foot-brand b { display: block; font-size: 14px; font-weight: 600; }
.foot-brand span { font-size: 12.5px; color: var(--mute); }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--mute); }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
.foot-legal {
  width: 100%; font-size: 12.5px; color: var(--mute-2); padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between;
}
.made-by {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 12.5px; color: var(--ink);
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.made-by b { font-weight: 600; }
.made-by:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-1px); }
.made-by .arrow { transition: transform .2s var(--ease); }
.made-by:hover .arrow { transform: translate(2px, -2px); }

/* -------------------------------------------------- animación de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
