/* =========================================================
   PluginXpert — light theme, studio-rack aesthetic
   ========================================================= */

:root {
  /* palette */
  --bg:         #F5F6FB;
  --surface:    #FFFFFF;
  --panel:      #EEF0F9;
  --panel-deep: #E4E7F4;
  --ink:        #14162E;
  --ink-soft:   #565B80;
  --ink-faint:  #8A8FB0;
  --line:       rgba(20,22,46,.09);
  --line-soft:  rgba(20,22,46,.05);

  --brand:      #4F66E3;
  --brand-deep: #3548C4;
  --brand-tint: rgba(79,102,227,.10);
  --mint:       #1FBF95;
  --amber:      #FF8A3D;

  /* spectrum gradient (signature only) */
  --spectrum: linear-gradient(90deg,#4F66E3 0%,#7A5CF0 45%,#2FB6E8 100%);

  --radius:     16px;
  --radius-sm:  11px;
  --shadow:     0 1px 2px rgba(20,22,46,.05), 0 12px 30px -14px rgba(20,22,46,.18);
  --shadow-lg:  0 2px 4px rgba(20,22,46,.06), 0 30px 60px -24px rgba(20,22,46,.30);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, sans-serif;
  --font-mono:    "Space Mono", ui-monospace, monospace;

  --wrap: 1180px;
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.65rem); }
h3 { font-size: 1.18rem; letter-spacing: -.01em; }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 18px;
}

/* ---------- buttons ---------- */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { --pad-y: 15px; --pad-x: 26px; font-size: 1rem; }
.block { width: 100%; }

.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(79,102,227,.7); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(79,102,227,.75); }

.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: var(--panel); }

.wa-ico { width: 19px; height: 19px; fill: currentColor; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245,246,251,.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.brand-text b { font-weight: 700; }
.brand-mark { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 22px; }
.brand-mark .bar { width: 3.5px; border-radius: 3px; background: var(--brand); }
.brand-mark .bar:nth-child(1){ height: 40%; }
.brand-mark .bar:nth-child(2){ height: 90%; background: #7A5CF0; }
.brand-mark .bar:nth-child(3){ height: 60%; }
.brand-mark .bar:nth-child(4){ height: 100%; background: #2FB6E8; }

.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { font-size: .92rem; color: var(--ink-soft); font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--ink); }

.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; transition: .25s; }

/* =========================================================
   HERO
   ========================================================= */
.hero { padding-top: clamp(40px, 6vw, 74px); padding-bottom: 30px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(122,92,240,.14), transparent 60%),
    radial-gradient(50% 50% at 10% 20%, rgba(47,182,232,.12), transparent 55%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }

.hero-copy h1 { margin-bottom: 20px; }
.hl { color: var(--brand); }
.lead { font-size: 1.14rem; color: var(--ink-soft); max-width: 40ch; margin-bottom: 30px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }

.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-family: var(--font-display); font-size: 1.35rem; }
.hero-stats span { font-size: .82rem; color: var(--ink-faint); }

/* signature panel */
.hero-visual { position: relative; }
.rack-screen {
  background: linear-gradient(180deg,#181A33,#101228);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.rack-top, .rack-bottom { display: flex; align-items: center; gap: 10px; }
.rack-top { margin-bottom: 12px; }
.rack-label { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; color: #9AA0D4; text-transform: uppercase; }
.rack-label.tiny { font-size: .6rem; margin-left: auto; }
.rack-dot { width: 8px; height: 8px; border-radius: 50%; background: #3a3f66; margin-left: auto; }
.rack-dot.on { background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

.spectrum { display: flex; align-items: flex-end; gap: 3px; height: 168px; padding: 8px 4px; }
.spectrum .col {
  flex: 1; border-radius: 3px 3px 1px 1px;
  background: var(--spectrum);
  background-size: 700% 100%;
  min-height: 6px;
  transition: height .12s ease;
  opacity: .92;
}

.rack-bottom { margin-top: 14px; }
.knob { width: 34px; height: 34px; border-radius: 50%; background: #22254a; border: 1px solid rgba(255,255,255,.08); position: relative; }
.knob span { position: absolute; top: 4px; left: 50%; width: 2px; height: 9px; background: var(--brand); transform: translateX(-50%) rotate(28deg); transform-origin: bottom; border-radius: 2px; }
.knob:nth-child(2) span { transform: translateX(-50%) rotate(-34deg); background: #2FB6E8; }
.fader { flex: 1; height: 6px; background: #22254a; border-radius: 6px; position: relative; }
.fader i { position: absolute; top: 50%; left: 62%; width: 14px; height: 20px; background: linear-gradient(180deg,#6E7BE8,#4F66E3); border-radius: 4px; transform: translate(-50%,-50%); box-shadow: 0 2px 6px rgba(0,0,0,.4); }

.float-chip {
  position: absolute; background: var(--surface); color: var(--ink-soft);
  font-size: .68rem; letter-spacing: .06em; padding: 8px 12px; border-radius: 100px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.chip-1 { top: -14px; left: -18px; }
.chip-2 { bottom: -16px; right: -10px; }

/* ticker */
.ticker-wrap { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.ticker-note { text-align: center; font-size: .8rem; color: var(--ink-faint); margin-bottom: 14px; }
.ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; }
.ticker span { font-size: .82rem; letter-spacing: .08em; color: var(--ink-faint); }

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }

.section-head { max-width: 620px; margin: 0 auto clamp(34px,5vw,52px); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; margin-top: 14px; }

/* ---------- rack grid (categories) ---------- */
.rack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rack-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  overflow: hidden;
}
.rack-card::before { /* rack top strip w/ screws */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 34px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.rack-card .screw { position: absolute; top: 13px; width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--panel-deep)); box-shadow: inset 0 0 0 1px var(--line); }
.rack-card .screw.l { left: 14px; } .rack-card .screw.r { right: 14px; }
.rack-card .code { position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; color: var(--ink-faint); }
.rack-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(79,102,227,.35); }

.rack-card .cat-name { margin-top: 26px; font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; }
.rack-card .cat-tag { color: var(--brand); font-size: .82rem; font-weight: 600; margin-top: 3px; }
.rack-card .cat-desc { color: var(--ink-soft); font-size: .93rem; margin-top: 12px; }
.rack-card .cat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.rack-card .cat-count { font-family: var(--font-mono); font-size: .74rem; color: var(--ink-faint); }
.rack-card .cat-go { font-size: .85rem; font-weight: 600; color: var(--brand); }
.rack-card:hover .cat-go { text-decoration: underline; }

/* ---------- filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-bottom: 30px; }
.chip {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .04em;
  padding: 8px 16px; border-radius: 100px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  transition: .16s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .p-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.product-card .p-cat { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; color: var(--ink-faint);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; text-transform: uppercase; }
.product-card .p-badge { font-size: .68rem; font-weight: 700; color: var(--brand); background: var(--brand-tint); padding: 3px 9px; border-radius: 100px; }
.product-card h3 { font-size: 1.06rem; margin-top: 4px; }
.product-card .p-meta { font-size: .84rem; color: var(--ink-soft); }
.product-card .p-note { font-size: .8rem; color: var(--ink-faint); }
.product-card .p-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.product-card .p-price { font-family: var(--font-mono); font-weight: 700; font-size: 1.18rem; }
.product-card .p-price .cur { font-size: .82rem; color: var(--ink-soft); margin-right: 1px; }
.product-card .p-buy { font-size: .82rem; font-weight: 700; color: var(--brand); font-family: var(--font-display); }
.product-card .p-buy:hover { text-decoration: underline; }

/* =========================================================
   PRICING
   ========================================================= */
.price-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items: stretch; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; padding: 30px 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; white-space: nowrap; }
.price-kicker { font-size: .68rem; letter-spacing: .14em; color: var(--ink-faint); }
.price-head h3 { font-size: 1.28rem; margin-top: 6px; }
.price-tag { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 20px; }
.price-tag .cur { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink-soft); }
.price-tag .amt { font-family: var(--font-display); font-size: 2.9rem; font-weight: 700; letter-spacing: -.03em; }
.price-tag .per { font-size: .9rem; color: var(--ink-faint); margin-left: 2px; }

.price-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.price-list li { position: relative; padding-left: 26px; font-size: .93rem; color: var(--ink-soft); }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F66E3' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/9px no-repeat;
}
.price-list li.muted { color: var(--ink-faint); font-family: var(--font-mono); font-size: .8rem; }
.price-list li.muted::before { background: none; content: "•"; color: var(--ink-faint); left: 6px; top: 0; width: auto; height: auto; }

.price-foot { text-align: center; margin-top: 26px; color: var(--ink-faint); font-size: .84rem; }
.price-foot a { color: var(--brand); font-weight: 700; }

/* =========================================================
   STEPS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-no { display: inline-block; font-size: 1.05rem; font-weight: 700; color: var(--brand);
  background: var(--brand-tint); width: 44px; height: 44px; line-height: 44px; text-align: center; border-radius: 12px; margin-bottom: 16px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: .95rem; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-wrap { max-width: 780px; margin-inline: auto; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.4rem; color: var(--brand); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 20px; color: var(--ink-soft); font-size: .95rem; }

/* =========================================================
   CTA BAND + FOOTER
   ========================================================= */
.cta-band { background: linear-gradient(120deg,#3548C4,#4F66E3 55%,#6E5CF0); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: clamp(44px,6vw,68px) 22px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; }
.cta-inner p { color: rgba(255,255,255,.85); margin-top: 8px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.cta-band .btn-primary:hover { background: #f2f3ff; }

.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 34px; padding-bottom: 40px; }
.footer-brand p { color: var(--ink-soft); font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: .92rem; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 20px 22px; border-top: 1px solid var(--line-soft); font-size: .76rem; color: var(--ink-faint); flex-wrap: wrap; }

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.6);
  transition: transform .18s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float:hover { transform: scale(1.08); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 460px; }
  .rack-grid, .product-grid, .price-row, .steps { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; }

  .site-header.open .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 14px 22px 20px; box-shadow: var(--shadow);
  }
  .site-header.open .nav a { padding: 10px 0; font-size: 1rem; }
  .site-header.open .header-cta { display: flex; position: absolute; top: 250px; left: 0; right: 0; padding: 0 22px 18px; background: var(--surface); }
  .site-header.open .header-cta .btn { flex: 1; }

  .rack-grid, .product-grid, .price-row, .steps { grid-template-columns: 1fr; }
  .price-card.featured { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 22px; }
}

/* accessibility */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}
