/* =========================================================
   Integrator Host — Landing page VPS
   ========================================================= */
:root {
  --bg: #0a0d12;
  --bg-2: #10151d;
  --surface: #141a24;
  --surface-2: #1a2230;
  --line: #243044;
  --text: #e8eef6;
  --muted: #8b98ab;
  --accent: #2ef2a0;       /* verde terminal */
  --accent-2: #18c6ff;     /* ciano */
  --accent-ink: #04130c;
  --danger: #ff6b6b;
  --radius: 14px;
  --font: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 2.5rem); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.4rem; border-radius: 10px; font-weight: 600; font-size: .98rem;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .6rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 rgba(46, 242, 160, .4); }
.btn--primary:hover { box-shadow: 0 8px 30px -6px rgba(46, 242, 160, .55); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark:hover { background: #000; transform: translateY(-2px); }
.btn--outline-dark { border: 2px solid var(--bg); color: var(--bg); }
.btn--outline-dark:hover { background: rgba(0,0,0,.08); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(10, 13, 18, .82); backdrop-filter: blur(12px); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }

.logo { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; letter-spacing: -.02em; }
.logo__mark { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.logo__mark svg { width: 20px; height: 20px; fill: none; stroke: var(--accent-ink); stroke-width: 2.4; }
.logo__mark svg circle { fill: var(--accent-ink); stroke: none; }
.logo__text b { color: var(--accent); font-weight: 700; }

.nav { display: flex; gap: 1.8rem; margin-left: auto; font-size: .95rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav__login { color: var(--text); }
.burger { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; margin-left: auto; }
.burger span { height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 60px; overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(24, 198, 255, .18), transparent 60%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3.5rem; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem;
  border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: .78rem; color: var(--muted); background: var(--bg-2);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(46, 242, 160, .7); animation: pulse 2s infinite; display: inline-block; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(46, 242, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 242, 160, 0); } }

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.05; letter-spacing: -.035em; margin: 1.3rem 0 1.2rem; font-weight: 700; }
.hl { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { color: var(--muted); font-size: 1.12rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.6rem; }
.hero__checks { list-style: none; display: flex; flex-wrap: wrap; gap: 1.3rem; font-size: .9rem; color: var(--muted); }
.hero__checks li::before { content: "✓"; color: var(--accent); margin-right: .4rem; font-weight: 700; }

.terminal { background: #07090d; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.terminal__bar { display: flex; align-items: center; gap: 7px; padding: .75rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.terminal__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.terminal__bar span:nth-child(2) { background: #febc2e; }
.terminal__bar span:nth-child(3) { background: #28c840; }
.terminal__bar em { margin-left: .8rem; font-style: normal; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.terminal__body { font-family: var(--mono); font-size: .86rem; line-height: 1.75; padding: 1.2rem 1.3rem; min-height: 330px; color: #c9d4e3; white-space: pre-wrap; }
.terminal__body .p { color: var(--accent); }
.terminal__body .ok { color: var(--accent); }
.terminal__body .c { color: var(--accent-2); }
.terminal__body .m { color: var(--muted); }
.cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.stat { padding: 1.5rem 1.6rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat strong { display: block; font-family: var(--mono); font-size: 1.9rem; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.stat span { font-size: .88rem; color: var(--muted); }

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.eyebrow { font-family: var(--mono); font-size: .82rem; color: var(--accent); }
.section__head h2, .os__copy h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); letter-spacing: -.03em; line-height: 1.12; margin: .6rem 0 .8rem; }
.section__head p { color: var(--muted); }

/* ---------- Billing toggle ---------- */
.billing { position: relative; display: flex; width: fit-content; margin: 0 auto 2.8rem; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.billing__opt { position: relative; z-index: 1; padding: .6rem 1.2rem; border-radius: 8px; font-weight: 500; font-size: .92rem; color: var(--muted); transition: color .25s; }
.billing__opt.is-active { color: var(--accent-ink); }
.billing__opt small { font-family: var(--mono); font-size: .72rem; margin-left: .25rem; color: var(--accent); }
.billing__opt.is-active small { color: var(--accent-ink); }
.billing__thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 8px; background: var(--accent); transition: transform .35s cubic-bezier(.4, 1.3, .5, 1), width .35s; }

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 1.8rem 1.5rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .25s, border-color .25s;
}
.plan:hover { transform: translateY(-5px); border-color: #34445e; }
.plan.is-featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(46, 242, 160, .07), var(--surface) 45%); }
.plan__tag { position: absolute; top: -12px; left: 1.5rem; padding: .2rem .7rem; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: .72rem; font-weight: 700; }
.plan__name { font-family: var(--mono); font-size: .9rem; color: var(--muted); }
.plan__desc { font-size: .88rem; color: var(--muted); margin: .3rem 0 1.2rem; min-height: 2.8em; }
.plan__price { display: flex; align-items: baseline; gap: .25rem; }
.plan__price small { font-size: .95rem; color: var(--muted); }
.plan__price strong { font-size: 2.5rem; letter-spacing: -.04em; font-weight: 700; transition: opacity .2s; }
.plan__price span { color: var(--muted); font-size: .9rem; }
.plan__old { font-size: .8rem; color: var(--muted); text-decoration: line-through; min-height: 1.3em; }
.plan__specs { list-style: none; margin: 1.4rem 0; padding-top: 1.4rem; border-top: 1px dashed var(--line); display: grid; gap: .65rem; font-size: .92rem; flex: 1; }
.plan__specs li { display: flex; justify-content: space-between; }
.plan__specs li span { color: var(--muted); }
.plan__specs li b { font-family: var(--mono); font-weight: 500; }
.plans__note { text-align: center; margin-top: 1.6rem; font-size: .8rem; color: var(--muted); }

/* ---------- Configurador ---------- */
.builder { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }
.builder__controls { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.8rem; }
.range__top { display: flex; justify-content: space-between; margin-bottom: .7rem; font-weight: 500; }
.range__top output { font-family: var(--mono); color: var(--accent); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--fill, 0%), var(--line) var(--fill, 0%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); cursor: grab; transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); cursor: grab; }

.builder__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .88rem; color: var(--muted); }
.field input, .field select {
  width: 100%; padding: .8rem .9rem; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--text); font: inherit; font-size: .95rem; outline: none; transition: border-color .2s;
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field input.is-invalid { border-color: var(--danger); }

.toggles { display: grid; gap: .9rem; }
.switch { display: flex; align-items: center; gap: .8rem; cursor: pointer; font-size: .95rem; }
.switch em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.switch input { position: absolute; opacity: 0; }
.switch__ui { width: 40px; height: 22px; flex-shrink: 0; border-radius: 99px; background: var(--line); position: relative; transition: background .2s; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .25s; }
.switch input:checked + .switch__ui { background: var(--accent); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); background: var(--accent-ink); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.summary { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 1.8rem; }
.summary h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.summary__list { list-style: none; display: grid; gap: .55rem; font-size: .9rem; }
.summary__list li { display: flex; justify-content: space-between; gap: 1rem; }
.summary__list li span:first-child { color: var(--muted); }
.summary__list li span:last-child { font-family: var(--mono); }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 1.3rem 0; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.summary__total strong { font-size: 1.9rem; letter-spacing: -.03em; color: var(--accent); }
.summary__hint { display: block; text-align: center; margin-top: .8rem; color: var(--muted); font-size: .8rem; }

/* ---------- Recursos ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--bg); padding: 2.2rem 2rem; transition: background .25s; }
.feature:hover { background: var(--surface); }
.feature__icon { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; background: rgba(46, 242, 160, .1); margin-bottom: 1.2rem; }
.feature__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.15rem; margin-bottom: .45rem; }
.feature p { color: var(--muted); font-size: .94rem; }

/* ---------- Sistemas ---------- */
.os { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.os__copy p { color: var(--muted); }
.apps { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.apps span { padding: .4rem .8rem; border-radius: 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: .8rem; background: var(--bg); }
.os__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.os__list li { padding: 1.2rem 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, transform .2s; }
.os__list li:hover { border-color: var(--accent-2); transform: translateY(-3px); }
.os__list b { display: block; font-size: 1.02rem; }
.os__list span { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .7rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: #34445e; }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.4rem; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-size: 1.3rem; color: var(--accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(110deg, var(--accent), var(--accent-2)); color: var(--accent-ink); padding: 70px 0; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.15; }
.cta__actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 70px 0 30px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer__about { color: var(--muted); font-size: .92rem; margin-top: 1rem; max-width: 300px; }
.footer h4 { font-size: .85rem; font-family: var(--mono); color: var(--muted); font-weight: 500; margin-bottom: 1rem; }
.footer__grid > div > a:not(.logo) { display: block; font-size: .92rem; margin-bottom: .55rem; color: #c3cedc; }
.footer__grid > div > a:not(.logo):hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.footer__status { display: flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .78rem; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3, 5, 8, .75); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: min(460px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); transform: translateY(20px) scale(.98); transition: transform .3s; }
.modal.is-open .modal__box { transform: none; }
.modal__close { position: absolute; top: .8rem; right: 1rem; font-size: 1.6rem; color: var(--muted); }
.modal__close:hover { color: var(--text); }
.modal__box h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.modal__order { padding: 1rem; border-radius: 10px; background: var(--bg-2); border: 1px dashed var(--line); font-size: .88rem; margin-bottom: 1.4rem; }
.modal__order b { color: var(--accent); }
#checkout-form { display: grid; gap: 1rem; }
.pay { display: flex; gap: .5rem; }
.pay label { flex: 1; display: flex; align-items: center; gap: .4rem; justify-content: center; padding: .7rem; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; color: var(--text); font-size: .9rem; }
.pay label:has(input:checked) { border-color: var(--accent); background: rgba(46, 242, 160, .07); }
.pay input { width: auto; accent-color: var(--accent); }
.form__error { color: var(--danger); font-size: .85rem; min-height: 1.2em; }
.modal__success { text-align: center; }
.modal__success p { color: var(--muted); margin: .4rem 0 1.4rem; }
.check { width: 64px; height: 64px; margin: .5rem auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--accent); color: var(--accent-ink); animation: pop .4s cubic-bezier(.4, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(0); } }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 120; transform: translate(-50%, 120px); padding: .85rem 1.3rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--accent); font-size: .92rem; visibility: hidden; transition: transform .35s cubic-bezier(.4, 1.3, .5, 1), visibility .35s; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .os, .builder { grid-template-columns: 1fr; }
  .summary { position: static; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 1rem 1.25rem 1.5rem;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    transform: translateY(-110%); transition: transform .35s; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .burger { display: flex; }
  .header__cta { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .plans, .features, .builder__row, .os__list { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .billing__opt { padding: .55rem .75rem; font-size: .85rem; }
  .terminal__body { font-size: .76rem; min-height: 280px; }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
