/* ============================================================
   Powerjett — design tokens
   ============================================================ */
:root {
  --bg: #0b0d10;
  --bg-panel: #14171b;
  --bg-panel-alt: #191d22;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink: #f3f1ea;
  --ink-muted: #9ba3ac;
  --ink-faint: #6b7278;

  --cyan: #2fe4c8;
  --cyan-dim: rgba(47, 228, 200, 0.14);
  --ember: #ff6a39;
  --ember-dim: rgba(255, 106, 57, 0.14);
  --metal: #c7ccd1;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1160px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --radius: 2px;
}

/* ============================================================
   Reset
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--cyan);
  color: #06110f;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ============================================================
   Type helpers
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  max-width: 22ch;
}

.section-lead {
  margin-top: 1.1rem;
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.hl-cyan { color: var(--cyan); }
.hl-ember { color: var(--ember); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--cyan);
  color: #06120f;
}
.btn-primary:hover { background: #4beeda; }

.btn-outline {
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }

.btn-icon { gap: 0.6rem; }
.btn-icon .icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  display: inline-block;
  vertical-align: -0.15em;
}

.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-muted);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn:first-of-type:hover { color: #3fe08a; border-color: #3fe08a; }
.icon-btn:last-of-type:hover { color: var(--ember); border-color: var(--ember); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 16, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-badge { border-radius: 50%; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 1.9rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.nav a:hover { color: var(--ink); }

.header-cta { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin-inline: 8px;
  background: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 9vh, 5.5rem);
  background: radial-gradient(ellipse 900px 600px at 78% 32%, rgba(47,228,200,0.10), transparent 60%),
              radial-gradient(ellipse 700px 500px at 95% 70%, rgba(255,106,57,0.08), transparent 60%),
              var(--bg);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  opacity: 0.5;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin-bottom: 1.3rem;
  max-width: 16ch;
}

.hero-sub {
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 560px;
  padding: 1.25rem 1.5rem;
  background: rgba(20, 23, 27, 0.6);
  border: 1px solid var(--line);
}
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.35rem;
}
.hero-stats dd {
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.hero-stats strong { color: var(--cyan); font-weight: 700; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-svg { width: 100%; max-width: 520px; height: auto; }

.hv-ring { fill: none; stroke: var(--line-strong); }
.hv-ring-outer { stroke-dasharray: 2 8; }
.hv-ring-inner { stroke: var(--line); }

.hv-lines line {
  stroke: var(--ink-faint);
  stroke-width: 3;
  stroke-dasharray: 10 8;
  animation: chaos-drift 3.4s linear infinite;
}
.hv-lines line:nth-child(2) { animation-duration: 3.9s; }
.hv-lines line:nth-child(3) { animation-duration: 3.1s; }
.hv-lines line:nth-child(4) { animation-duration: 4.4s; }

@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 360px; margin-inline: auto; }
  .hero-title, .hero-sub { max-width: none; }
}

/* ============================================================
   Sections (shared rhythm)
   ============================================================ */
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-bottom: 1px solid var(--line);
}
.section-alt { background: var(--bg-panel); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Flow diagram (signature element)
   ============================================================ */
.flow-diagram {
  margin-top: 2.75rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem clamp(0.75rem, 3vw, 2.5rem);
}
.flow-svg { width: 100%; height: auto; display: block; }

.rotor-ring {
  fill: none;
  stroke: var(--metal);
  stroke-width: 2;
  stroke-dasharray: 4 5;
}
.rotor-blades path { fill: var(--metal); opacity: 0.9; }
.rotor-hub { fill: var(--bg-panel); stroke: var(--metal); stroke-width: 2; }

.flow-lines line {
  stroke-dasharray: 10 8;
  animation: chaos-drift 2.6s linear infinite;
}
.flow-lines line:nth-child(2) { animation-duration: 3s; }
.flow-lines line:nth-child(3) { animation-duration: 2.2s; }
.flow-lines line:nth-child(4) { animation-duration: 3.3s; }

.coil-dotted {
  fill: none;
  stroke: var(--metal);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 0.1 9;
  opacity: 0.9;
  animation: chaos-drift 3.2s linear infinite;
}

.path-cyan { stroke: var(--cyan); stroke-width: 3; stroke-dasharray: 10 7; animation: flow-run 5s linear infinite; }
.path-ember { stroke: var(--ember); stroke-width: 3; stroke-dasharray: 10 7; animation: flow-run 5s linear infinite; animation-delay: 0.35s; }

.flow-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; }
.label-cyan { fill: var(--cyan); }
.label-ember { fill: var(--ember); }
.label-muted { fill: var(--ink-faint); }

@keyframes chaos-drift { to { stroke-dashoffset: -80; } }
@keyframes flow-run { to { stroke-dashoffset: -340; } }
@keyframes coil-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .flow-lines line, .hv-lines line, .path-cyan, .path-ember, .coil-dotted { animation: none; }
}

/* ============================================================
   HUD frame (corner brackets — echoes the product video's own
   callout style)
   ============================================================ */
.hud-frame { position: relative; }
.hud-frame::before,
.hud-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--cyan);
  opacity: 0.55;
  pointer-events: none;
}
.hud-frame::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.hud-frame::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.flow-caption {
  margin-top: 1.25rem;
  color: var(--ink-muted);
  max-width: 60ch;
  font-size: 0.95rem;
}

/* ============================================================
   Sin ___ triptych
   ============================================================ */
.sin-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sin-card {
  background: var(--bg);
  padding: 2.25rem 1.75rem;
}
.sin-tag {
  font-family: var(--font-mono);
  color: var(--ember);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.sin-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.sin-card p { color: var(--ink-muted); font-size: 0.95rem; }

/* ============================================================
   Spec grid (beneficios)
   ============================================================ */
.spec-grid {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.spec-card {
  background: var(--bg-panel);
  padding: 1.9rem 1.6rem;
}
.spec-mono {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  background: var(--cyan-dim);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius);
  margin-bottom: 0.9rem;
}
.spec-card:nth-child(3n-1) .spec-mono,
.spec-card:nth-child(3n) .spec-mono {
  color: var(--ember);
  border-color: var(--ember-dim);
  background: var(--ember-dim);
}
.spec-card p { color: var(--ink-muted); font-size: 0.95rem; }

/* ============================================================
   Compatibilidad
   ============================================================ */
.compat-row {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
.compat-group h3 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.75rem;
}
.compat-group li {
  font-family: var(--font-display);
  font-size: 1.4rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--line);
}

/* ============================================================
   Savings
   ============================================================ */
.savings { background: linear-gradient(160deg, var(--bg-panel) 0%, var(--bg) 65%); }
.savings-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--gap);
  align-items: center;
}
.savings-number { display: flex; flex-direction: column; gap: 0.75rem; }
.savings-figure {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 8rem);
  line-height: 0.9;
  color: var(--cyan);
}
.savings-figure .pct { font-size: 0.45em; vertical-align: super; }
.savings-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-muted);
  max-width: 26ch;
}
.savings-text { color: var(--ink-muted); font-size: 1.05rem; max-width: 48ch; }

/* ============================================================
   Video
   ============================================================ */
.video-frame {
  margin-top: 2.75rem;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  padding: 0.6rem;
  max-width: 760px;
}
.video-frame video { width: 100%; display: block; }

/* ============================================================
   CTA final
   ============================================================ */
.cta-final { background: var(--bg-panel); text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }

.cta-badge-wrap {
  position: relative;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-badge-wrap::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, var(--cyan-dim) 0%, transparent 70%);
  z-index: 0;
}
.cta-badge { position: relative; z-index: 1; border-radius: 50%; }

.cta-final .section-title { max-width: 30ch; margin-inline: auto; }
.cta-final .section-lead { margin-inline: auto; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { padding-block: 2.25rem; }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.brand-footer .brand-word { font-size: 0.9rem; }
.footer-icons { display: flex; gap: 0.6rem; }
.footer-icons .icon-btn { width: 36px; height: 36px; }
.footer-copy { width: 100%; order: 3; font-size: 0.8rem; color: var(--ink-faint); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--line);
    gap: 1rem;
  }

  .sin-grid, .spec-grid { grid-template-columns: 1fr; }
  .compat-row { grid-template-columns: 1fr; }
  .savings-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div:last-child { grid-column: 1 / -1; }
}
