:root {
  --bg: #05070a;
  --bg-2: #0a1016;
  --surface: rgba(10, 18, 26, 0.78);
  --surface-solid: #0c151c;
  --line: rgba(3, 174, 225, 0.18);
  --line-strong: rgba(3, 174, 225, 0.38);
  --text: #f4f7fa;
  --muted: #93a4b3;
  --faint: #6b7c8c;
  --accent: #03aee1;
  --accent-2: #ff2a2a;
  --accent-dim: rgba(3, 174, 225, 0.12);
  --warn: #ffb020;
  --ok: #3ddc97;
  --danger: #ff2a2a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --nav-h: 76px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 8px;
  z-index: 100;
  background: var(--accent);
  color: #041016;
  padding: 8px 12px;
  border-radius: 8px;
}

.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 40% at 18% 12%, rgba(3, 174, 225, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 38% at 86% 78%, rgba(255, 42, 42, 0.07), transparent 55%);
}

.bg-fx canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  position: relative;
  z-index: 1;
  padding: 36px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

main#conteudo,
main#conteudo p:not(.kicker):not(.lead),
main#conteudo li {
  font-size: 16px;
}

main#conteudo h1,
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  font-weight: 650;
}

main#conteudo h2,
.section h2,
.hero h2 {
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 8px;
}

main#conteudo h3,
.section h3 {
  font-size: 1.15rem;
}

main#conteudo .lead,
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
}

.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.center .kicker {
  margin-left: auto;
  margin-right: auto;
}

.center .lead {
  margin-inline: auto;
  text-align: center;
}

.compare-bar {
  position: relative;
  z-index: 60;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: #000;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.compare-bar a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.compare-bar a:hover,
.compare-bar a.active {
  color: var(--accent);
  border-color: var(--line-strong);
}

/* NAV */
header.ps-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(5, 7, 10, 0.78);
  border-bottom: 1px solid transparent;
}

header.ps-nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: 0.04em;
}

.brand img {
  height: 42px;
  width: auto;
  max-width: min(240px, 48vw);
  display: block;
}

.nav-drawer {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-shrink: 0;
  margin-left: auto;
  justify-content: flex-end;
}

.lang {
  display: flex;
  background: #0a141c;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.lang.drawer-lang {
  display: none;
}

.lang button,
.lang a {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  text-decoration: none;
}

.lang button.active,
.lang a.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.account-menu {
  position: relative;
}

.account-btn {
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  white-space: nowrap;
}

.account-btn svg {
  display: block;
  flex-shrink: 0;
}

.account-menu.open .account-btn {
  border-color: var(--accent);
  color: var(--accent);
}

.account-menu.open .account-btn svg {
  transform: rotate(180deg);
}

.account-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  background: #0c151c;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.account-drop[hidden] {
  display: none;
}

.account-drop a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.account-drop a:hover,
.account-drop a:focus-visible {
  background: var(--accent-dim);
  color: var(--text);
}

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
}

/* BUTTONS — scoped so WHMCS .btn-xs keep their size */
header .btn,
.hero .btn,
.plan .btn,
.btn-row .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

header .btn-primary,
.hero .btn-primary,
.plan .btn-primary,
.btn-row .btn-primary {
  background: linear-gradient(180deg, #2bc4ee, #0090b8);
  color: #031018;
  box-shadow: 0 0 0 1px rgba(3, 174, 225, 0.3), 0 10px 30px rgba(3, 174, 225, 0.2);
}

header .btn-primary:hover,
.hero .btn-primary:hover,
.plan .btn-primary:hover,
.btn-row .btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

header .btn-ghost:hover,
.hero .btn-ghost:hover,
.plan .btn-ghost:hover,
.btn-row .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* HERO */
.hero {
  padding: 28px 0 8px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.chip {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 16, 24, 0.7);
}

aside.panel,
article.panel {
  background: linear-gradient(180deg, rgba(16, 32, 44, 0.9), rgba(8, 16, 24, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  display: block;
}

.dots i:nth-child(1) { background: #f87171; }
.dots i:nth-child(2) { background: #fbbf24; }
.dots i:nth-child(3) { background: #34d399; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-frame iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  transform: translate(-50%, -50%) scale(1.22);
  transform-origin: center center;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.video-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-fallback span {
  position: absolute;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #041016;
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 999px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 24px;
}

.stats .stat {
  background: var(--bg-2);
  padding: 22px 20px;
}

.stats .stat b {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.stats .stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ARCHITECTURE */
.arch {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.arch-layers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.arch-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
}

.arch-card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.arch-card li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.arch-card li strong {
  color: var(--text);
  font-weight: 600;
}

.arch-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 36px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.arch-link svg {
  width: 22px;
  height: 22px;
}

.arch-control ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.layer {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 8px;
}

.layer.kernel {
  color: #fff;
  background: #ff2a2a;
}

.layer.user {
  color: var(--accent);
  border: 1px solid rgba(3, 174, 225, 0.45);
}

.flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 110px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flow-line {
  width: 2px;
  height: 42px;
  background: linear-gradient(var(--accent), transparent);
}

.flow svg {
  width: 42px;
  opacity: 0.85;
}

/* GRID CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-height: 0;
}

.card:hover {
  border-color: var(--line-strong);
}

.card.kernel-feat {
  grid-column: 1 / -1;
  padding: 12px 16px;
  border-color: rgba(255, 42, 42, 0.55);
  background: linear-gradient(90deg, rgba(255, 42, 42, 0.1), rgba(3, 174, 225, 0.06) 42%, var(--surface));
}

.card.kernel-feat .card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.card.kernel-feat .ico {
  width: 32px;
  height: 32px;
  margin-bottom: 0;
  color: #ff4d4d;
  background: rgba(255, 42, 42, 0.12);
  border-color: rgba(255, 42, 42, 0.35);
}

.card.kernel-feat h3 {
  margin: 0;
  font-size: 1.02rem;
}

.card.kernel-feat p {
  font-size: 0.9rem;
}

.ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.ico svg {
  width: 18px;
  height: 18px;
}

.card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}

/* PRODUCTS */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.product {
  padding: 28px;
}

.price-tag {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 10px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.checklist li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}

.marquee-wrap {
  overflow: hidden;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: slide 28s linear infinite;
  padding: 12px 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes slide {
  to { transform: translateX(-50%); }
}

/* PRICING */
.plans {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.plan {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(3, 174, 225, 0.22), 0 20px 50px rgba(3, 174, 225, 0.1);
  background: linear-gradient(180deg, rgba(3, 174, 225, 0.1), rgba(10, 18, 26, 0.92));
}

.plan .period {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan .value {
  font-family: var(--display);
  font-size: 2rem;
  margin: 10px 0 4px;
  letter-spacing: -0.04em;
}

.plan .sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan .badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #031018;
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  margin: 0;
}

.plan .btn {
  margin-top: auto;
  width: 100%;
}

/* BUSINESS */
.biz {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stack-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.stack-item span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

/* FAQ */
.faq {
  max-width: 820px;
  margin: 22px auto 0;
}

details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 0 18px;
  margin-bottom: 10px;
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 650;
  font-family: var(--display);
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  color: var(--muted);
  margin: 0 0 16px;
}

/* CTA */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 28px;
  background:
    radial-gradient(600px 180px at 50% 0%, rgba(3, 174, 225, 0.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.cta .kicker {
  margin-left: auto;
  margin-right: auto;
}

.cta h2,
.cta .lead {
  text-align: center;
}

.cta .lead {
  margin-inline: auto;
}

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

/* FOOTER */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot a:hover {
  color: var(--accent);
}

.whmcs-main {
  position: relative;
  z-index: 1;
  padding: 28px 0 64px;
}

.whmcs-wrap {
  background: rgba(10, 18, 26, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.whmcs-layout.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
}

.whmcs-sidebar {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .biz,
  .arch-layers,
  .arch-control ul,
  .whmcs-layout.has-sidebar {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .plans,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .nav-inner {
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    height: 38px;
    max-width: min(180px, 46vw);
  }

  .header-lang {
    display: none;
  }

  .nav-drawer {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

  .nav-cta {
    display: none;
  }

  .nav-actions {
    gap: 6px;
  }

  .account-btn {
    padding: 7px 12px;
    font-size: 13px;
  }

  header.ps-nav.open .nav-drawer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #071018;
    border-bottom: 1px solid var(--line);
    padding: 16px 20px 22px;
  }

  header.ps-nav.open .lang.drawer-lang {
    display: flex;
  }

  header.ps-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    align-items: flex-start;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .cards,
  .plans,
  .stats,
  .stack {
    grid-template-columns: 1fr;
  }

  .card.kernel-feat .card-head {
    align-items: center;
  }

  .brand img {
    height: 36px;
    max-width: min(168px, 44vw);
  }

  .account-btn svg {
    display: none;
  }

  .lang {
    padding: 2px;
  }

  .lang button,
  .lang a {
    padding: 5px 7px;
    font-size: 10px;
  }

  .account-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .menu-btn {
    width: 36px;
    height: 36px;
  }

  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .section {
    padding: 32px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee, .cursor { animation: none; }
}
