/* ==========================================================================
   WibuGate — Sakura Dark design system
   Single stylesheet for the whole static site.
   Contents:
     01. Tokens (CSS custom properties)
     02. Reset & base
     03. Typography & prose
     04. Layout utilities
     05. Buttons
     06. Badges & chips
     07. Cards
     08. Navbar (fixed, glass blur)
     09. Hero + sakura petals
     10. Page hero (subpages)
     11. Stats row
     12. Feature cards
     13. Ecosystem cards
     14. Suitability split
     15. Commands preview grid
     16. Pricing cards + comparison table + billing
     17. FAQ accordion
     18. Contact section
     19. Footer
     20. Docs layout (sticky side nav) + command list
     21. Status page
     22. Legal pages (ToS / Privacy)
     23. 404 page
     24. Reveal animation
     25. Responsive
     26. Reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces */
  --bg: #0F0A14;
  --bg-surface: #171021;
  --bg-elevated: #1D1529;

  /* Brand */
  --pink: #FF4F87;
  --pink-deep: #C22E63;
  --pink-soft: #FFB6D1;
  --grad: linear-gradient(135deg, #FF7AB2, #FF4F87 45%, #B02458);

  /* Text */
  --text: #F5EEF6;
  --text-muted: #B9AFC6;

  /* Signals */
  --success: #57F287;
  --error: #ED4245;

  /* Components */
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-glow: 0 10px 40px -12px rgba(255, 79, 135, 0.45);
  --shadow-soft: 0 14px 40px -18px rgba(0, 0, 0, 0.65);

  /* Geometry */
  --nav-height: 72px;
  --container: 1140px;

  /* Font */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   02. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient plum glow behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 32rem at 85% -10%, rgba(255, 79, 135, 0.14), transparent 60%),
    radial-gradient(48rem 30rem at -10% 20%, rgba(194, 46, 99, 0.12), transparent 60%),
    radial-gradient(40rem 28rem at 50% 110%, rgba(255, 122, 178, 0.08), transparent 65%),
    var(--bg);
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--pink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--pink);
}

ul[class],
ol[class] {
  list-style: none;
  padding: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

code,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

::selection {
  background: rgba(255, 79, 135, 0.4);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Anchored sections clear the fixed navbar */
[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

/* --------------------------------------------------------------------------
   03. Typography & prose
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.18rem; }

p {
  color: var(--text-muted);
}

.lead {
  font-size: 1.12rem;
  max-width: 46rem;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.75rem;
}

.inline-code,
code.cmd {
  display: inline-block;
  font-size: 0.86em;
  background: rgba(255, 79, 135, 0.12);
  border: 1px solid rgba(255, 79, 135, 0.25);
  color: var(--pink-soft);
  border-radius: 7px;
  padding: 0.1em 0.5em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   04. Layout utilities
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(23, 16, 33, 0.85) 18%, rgba(23, 16, 33, 0.85) 82%, transparent);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 3rem;
}

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

.section-head p {
  margin-top: 0.9rem;
}

.grid {
  display: grid;
  gap: 1.4rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.divider {
  border: 0;
  border-top: 1px solid var(--card-border);
}

/* --------------------------------------------------------------------------
   05. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(255, 79, 135, 0.65);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 182, 209, 0.35);
  color: var(--pink-soft);
}

.btn-ghost:hover {
  border-color: var(--pink);
  color: #fff;
  background: rgba(255, 79, 135, 0.1);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.62rem 1.15rem;
  font-size: 0.88rem;
}

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

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   06. Badges & chips
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.badge-free {
  color: var(--success);
  background: rgba(87, 242, 135, 0.1);
  border-color: rgba(87, 242, 135, 0.3);
}

.badge-premium {
  color: var(--pink-soft);
  background: rgba(255, 79, 135, 0.14);
  border-color: rgba(255, 79, 135, 0.4);
}

.badge-neutral {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--card-border);
}

.badge-owner {
  color: #FFC98A;
  background: rgba(255, 170, 80, 0.1);
  border-color: rgba(255, 170, 80, 0.35);
}

.badge-trusted {
  color: #9DB8FF;
  background: rgba(120, 150, 255, 0.1);
  border-color: rgba(120, 150, 255, 0.35);
}

/* --------------------------------------------------------------------------
   07. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.22s ease, box-shadow 0.3s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 79, 135, 0.35);
  box-shadow: var(--shadow-glow);
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.96rem;
}

.card .card-tag {
  margin-top: 1.1rem;
}

/* --------------------------------------------------------------------------
   08. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(15, 10, 20, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.navbar.is-scrolled {
  background: rgba(15, 10, 20, 0.9);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.7);
}

.nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand:hover { color: #fff; }

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav-menu a:not(.btn) {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-menu a:not(.btn):hover,
.nav-menu a[aria-current="page"]:not(.btn) {
  color: var(--text);
}

.nav-cta-wrap { margin-left: 0.35rem; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   09. Hero + sakura petals
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 90px) 0 110px;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.hero-logo {
  width: 148px;
  height: 148px;
  border-radius: 28px;
  filter: drop-shadow(0 18px 42px rgba(255, 79, 135, 0.45));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pink-soft);
  background: rgba(255, 79, 135, 0.1);
  border: 1px solid rgba(255, 79, 135, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
}

.hero h1 {
  max-width: 18ch;
}

.hero-sub {
  max-width: 40rem;
  font-size: 1.15rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.4rem;
}

/* Sakura petals (CSS only, decorative) */
.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.petal {
  position: absolute;
  top: -5%;
  left: var(--left, 50%);
  width: calc(14px * var(--scale, 1));
  height: calc(14px * var(--scale, 1));
  background: linear-gradient(135deg, var(--pink-soft), var(--pink));
  border-radius: 100% 0 100% 0;
  opacity: 0;
  animation: petal-fall var(--dur, 13s) linear var(--delay, 0s) infinite;
}

.petal:nth-child(1) { --left: 6%;  --dur: 13s; --delay: 0s;    --scale: 1.1; --o: 0.55; }
.petal:nth-child(2) { --left: 17%; --dur: 17s; --delay: 3.2s;  --scale: 0.8; --o: 0.4;  }
.petal:nth-child(3) { --left: 28%; --dur: 12s; --delay: 6.4s;  --scale: 1.25;--o: 0.6;  }
.petal:nth-child(4) { --left: 43%; --dur: 18s; --delay: 1.4s;  --scale: 0.7; --o: 0.35; }
.petal:nth-child(5) { --left: 58%; --dur: 14s; --delay: 8.1s;  --scale: 1;   --o: 0.5;  }
.petal:nth-child(6) { --left: 71%; --dur: 16s; --delay: 4.6s;  --scale: 0.9; --o: 0.45; }
.petal:nth-child(7) { --left: 84%; --dur: 12.5s; --delay: 9.5s;--scale: 1.15;--o: 0.55; }
.petal:nth-child(8) { --left: 94%; --dur: 19s; --delay: 2.3s;  --scale: 0.75;--o: 0.35; }

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -4vh, 0) rotate(0deg) scale(var(--scale, 1));
    opacity: 0;
  }
  10% { opacity: var(--o, 0.5); }
  50% {
    transform: translate3d(6vw, 52vh, 0) rotate(220deg) scale(var(--scale, 1));
  }
  90% { opacity: var(--o, 0.5); }
  100% {
    transform: translate3d(-4vw, 108vh, 0) rotate(430deg) scale(var(--scale, 1));
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   10. Page hero (subpages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding: calc(var(--nav-height) + 72px) 0 64px;
  text-align: center;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 0.8rem;
}

.page-hero .lead {
  margin-inline: auto;
}

.page-hero .hero-badge { margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------------
   11. Stats row
   -------------------------------------------------------------------------- */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 0;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero-stats li {
  display: flex;
  align-items: center;
}

.hero-stats li + li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--pink);
  margin: 0 1rem;
  opacity: 0.8;
}

.hero-stats strong {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   12. Feature cards
   -------------------------------------------------------------------------- */
.feature-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 79, 135, 0.12);
  border: 1px solid rgba(255, 79, 135, 0.28);
  color: var(--pink-soft);
  margin-bottom: 1.1rem;
}

.feature-card .icon svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   13. Ecosystem cards
   -------------------------------------------------------------------------- */
.eco-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.eco-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% -30%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(255, 79, 135, 0.16), transparent);
  pointer-events: none;
}

.eco-card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 79, 135, 0.12);
  border: 1px solid rgba(255, 79, 135, 0.28);
  color: var(--pink-soft);
  margin-bottom: 1.2rem;
}

.eco-card .icon svg {
  width: 28px;
  height: 28px;
}

.eco-card p {
  margin-top: 0.5rem;
}

.eco-card .card-tag {
  margin-top: auto;
  padding-top: 1.3rem;
}

.eco-card ul {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.eco-card ul li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.eco-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 8px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: var(--grad);
}

/* --------------------------------------------------------------------------
   14. Suitability split
   -------------------------------------------------------------------------- */
.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  padding: 0;
}

.split-card > div {
  padding: 2.2rem;
}

.split-card > div + div {
  border-left: 1px solid var(--card-border);
}

.split-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.split-card ul {
  display: grid;
  gap: 0.7rem;
}

.split-card li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.split-card li svg {
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 17px;
  height: 17px;
  color: var(--pink);
}

.split-card .split-a { background: rgba(255, 79, 135, 0.05); }

/* --------------------------------------------------------------------------
   15. Commands preview grid
   -------------------------------------------------------------------------- */
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.cmd-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.cmd-row:hover {
  border-color: rgba(255, 79, 135, 0.35);
  background: rgba(255, 255, 255, 0.055);
  transform: translateY(-2px);
}

.cmd-row code.cmd {
  font-size: 0.9rem;
}

.cmd-row .cmd-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.cmd-row .badge { flex: none; margin-top: 0.1rem; }

.cmd-more {
  margin-top: 2rem;
  text-align: center;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. Pricing cards, comparison table, billing
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 460px));
  justify-content: center;
  gap: 1.6rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 2.2rem;
  position: relative;
}

.price-card.premium {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-surface), var(--bg-surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 18px 60px -22px rgba(255, 79, 135, 0.5);
}

.price-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pink-soft);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.6rem 0 0.2rem;
}

.price-amount .currency {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.price-amount .amount {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-amount .period {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.price-per {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.price-list {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.8rem;
}

.price-list li {
  position: relative;
  padding-left: 1.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.price-list li strong { color: var(--text); font-weight: 700; }

.price-list li svg {
  position: absolute;
  left: 0;
  top: 0.26em;
  width: 17px;
  height: 17px;
}

.price-list li.is-yes svg { color: var(--success); }
.price-list li.is-no { opacity: 0.62; }
.price-list li.is-no svg { color: var(--error); }

.price-card .btn { margin-top: auto; }

.price-note {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.9rem;
}

/* Comparison table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 1rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.compare thead th {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.compare tbody th {
  font-weight: 600;
  color: var(--text);
  width: 34%;
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}

.compare td .yes { color: var(--success); font-weight: 700; }
.compare td .no { color: var(--error); font-weight: 700; }
.compare td small { display: block; color: var(--text-muted); font-size: 0.82rem; margin-top: 0.15rem; }

.compare .col-premium {
  background: rgba(255, 79, 135, 0.06);
  border-left: 1px solid rgba(255, 79, 135, 0.25);
  border-right: 1px solid rgba(255, 79, 135, 0.25);
}

.compare thead .col-premium {
  color: var(--pink-soft);
}

/* Billing cards */
.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  counter-reset: billing;
}

.billing-card { counter-increment: billing; }

.billing-card::before {
  content: counter(billing, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--pink);
  display: block;
  margin-bottom: 0.8rem;
}

/* --------------------------------------------------------------------------
   17. FAQ accordion
   -------------------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 0.9rem;
  max-width: 50rem;
  margin-inline: auto;
}

.faq-list details {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-list details[open] {
  border-color: rgba(255, 79, 135, 0.4);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 182, 209, 0.4);
  color: var(--pink-soft);
  font-weight: 600;
  transition: transform 0.22s ease, background 0.2s ease;
}

.faq-list details[open] summary::after {
  content: "\2013"; /* en dash */
  background: rgba(255, 79, 135, 0.15);
}

.faq-list details p {
  padding: 0 1.3rem 1.2rem;
  font-size: 0.96rem;
}

/* --------------------------------------------------------------------------
   18. Contact section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 2.2rem;
}

.contact-card .icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 79, 135, 0.12);
  border: 1px solid rgba(255, 79, 135, 0.28);
  color: var(--pink-soft);
}

.contact-card .icon svg { width: 24px; height: 24px; }

.contact-mail {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--pink-soft);
  word-break: break-all;
}

.contact-mail:hover { color: #fff; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--card-border);
  background: rgba(23, 16, 33, 0.6);
  padding: 64px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.4rem;
  margin-bottom: 2.6rem;
}

.footer-brand p {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  max-width: 30rem;
}

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.footer-links a:hover { color: var(--pink-soft); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--card-border);
  font-size: 0.86rem;
  color: var(--text-muted);
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.socials a:hover {
  color: var(--pink-soft);
  border-color: rgba(255, 79, 135, 0.4);
  transform: translateY(-2px);
}

.socials svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   20. Docs layout + command list
   -------------------------------------------------------------------------- */
.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
  padding-bottom: 96px;
}

.docs-side {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
  padding-right: 0.4rem;
}

.docs-side h4 {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.docs-side ul {
  display: grid;
  gap: 0.2rem;
  border-left: 1px solid var(--card-border);
}

.docs-side a {
  display: block;
  padding: 0.45rem 0.9rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  border-left: 2px solid transparent;
  margin-left: -1.5px;
  border-radius: 0 8px 8px 0;
}

.docs-side a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.docs-side a.sub {
  padding-left: 1.9rem;
  font-weight: 500;
  font-size: 0.88rem;
}

.docs-main { min-width: 0; }

.docs-section {
  padding-bottom: 3.2rem;
  margin-bottom: 3.2rem;
  border-bottom: 1px solid var(--card-border);
}

.docs-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.docs-section > h2 {
  margin-bottom: 1.2rem;
}

.docs-section h3 {
  margin: 2rem 0 0.7rem;
  font-size: 1.08rem;
}

.docs-section p {
  margin-bottom: 0.9rem;
}

.docs-section ul:not(.cmd-list) {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.4rem;
}

.docs-section ul:not(.cmd-list) li::marker {
  color: var(--pink);
}

.step-list {
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin: 0 0 1rem !important;
  padding-left: 0 !important;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 3.2rem !important;
  list-style: none;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
}

.step-list li strong { color: var(--text); }

/* Command list blocks */
.cmd-group { margin-bottom: 2rem; }

.cmd-group h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0 !important;
}

.cmd-list {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.cmd-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.8rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
}

.cmd-item .cmd-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--pink-soft);
}

.cmd-item .cmd-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex: 1 1 16rem;
}

.cmd-item .badge { font-size: 0.64rem; }

/* Nickname example chip */
.nickname-example {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 79, 135, 0.3);
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  margin-top: 0.6rem;
}

.nickname-example .nid {
  color: var(--pink-soft);
}

/* --------------------------------------------------------------------------
   21. Status page
   -------------------------------------------------------------------------- */
.status-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 34rem;
  margin: 0 auto 3rem;
  padding: 1rem 1.6rem;
  border-radius: var(--radius);
  background: rgba(87, 242, 135, 0.08);
  border: 1px solid rgba(87, 242, 135, 0.35);
  color: var(--success);
  font-weight: 700;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.6);
  animation: status-pulse 2.2s ease-out infinite;
  flex: none;
}

@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(87, 242, 135, 0); }
  100% { box-shadow: 0 0 0 0 rgba(87, 242, 135, 0); }
}

.status-list {
  max-width: 52rem;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.4rem 1.7rem;
}

.status-item .status-name {
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.status-item .status-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.36rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-ok {
  color: var(--success);
  background: rgba(87, 242, 135, 0.1);
  border: 1px solid rgba(87, 242, 135, 0.35);
}

.pill-ok::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.status-meta {
  max-width: 52rem;
  margin: 2.2rem auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.status-meta time { color: var(--text); font-weight: 600; }

/* --------------------------------------------------------------------------
   22. Legal pages (ToS / Privacy)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 47rem;
  margin-inline: auto;
  padding-bottom: 96px;
}

.prose .effective {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pink-soft);
  background: rgba(255, 79, 135, 0.1);
  border: 1px solid rgba(255, 79, 135, 0.3);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  margin-bottom: 2.2rem;
}

.prose h2 {
  font-size: 1.35rem;
  margin: 2.6rem 0 0.8rem;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.prose h2:first-of-type { margin-top: 0; }

.prose p,
.prose li {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.prose p { margin-bottom: 1rem; }

.prose ul {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.45rem;
}

.prose ul li::marker { color: var(--pink); }

.prose a { font-weight: 600; }

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.4rem;
}

.legal-toc a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
}

.legal-toc a:hover {
  color: var(--pink-soft);
  border-color: rgba(255, 79, 135, 0.4);
}

/* --------------------------------------------------------------------------
   23. 404 page
   -------------------------------------------------------------------------- */
.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 0 60px;
}

.notfound-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.notfound-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  filter: drop-shadow(0 14px 34px rgba(255, 79, 135, 0.4));
}

.notfound h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

/* --------------------------------------------------------------------------
   24. Reveal animation
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .billing-grid { grid-template-columns: 1fr; }
  .docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 4% 1.4rem;
    background: rgba(15, 10, 20, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--card-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-menu a:not(.btn) {
    display: block;
    padding: 0.75rem 0.4rem;
    font-size: 1.02rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-cta-wrap { margin: 0.9rem 0 0; }
  .nav-cta-wrap .btn { width: 100%; }

  .grid-2 { grid-template-columns: 1fr; }
  .split-card { grid-template-columns: 1fr; }
  .split-card > div + div { border-left: 0; border-top: 1px solid var(--card-border); }
  .cmd-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: minmax(0, 480px); }
  .contact-grid { grid-template-columns: 1fr; }

  .docs-layout { grid-template-columns: 1fr; gap: 1.6rem; }

  .docs-side {
    position: static;
    max-height: none;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
  }

  .docs-side ul { border-left: 0; gap: 0.1rem; }
  .docs-side a { border-left: 0; margin-left: 0; border-radius: 8px; }
  .docs-side a.sub { padding-left: 0.9rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}

@media (max-width: 600px) {
  .section { padding: 68px 0; }
  .hero { padding: calc(var(--nav-height) + 56px) 0 80px; }
  .hero-logo { width: 116px; height: 116px; }
  .hero-stats { flex-direction: column; gap: 0.45rem; }
  .hero-stats li + li::before { display: none; }
  .hero-cta .btn { width: 100%; }
  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 1.4rem; }
  .price-card { padding: 1.8rem 1.4rem; }
  .split-card > div { padding: 1.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .status-item { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}

/* --------------------------------------------------------------------------
   26. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .petal { animation: none; opacity: 0; }
  .status-dot { animation: none; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ==========================================================================
   Language switcher (navbar) + back-home link + RTL support
   ========================================================================== */
.lang-switch {
  display: flex;
  align-items: center;
}

.lang-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-label svg { width: 15px; height: 15px; opacity: 0.8; }

.lang-label select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.32rem 1.6rem 0.32rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  max-width: 140px;
}

.lang-label select:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 79, 135, 0.25);
}

.lang-label option { background: #171021; color: var(--text); }

/* Back-to-home link in page heroes */
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 1.2rem;
  padding: 0.45rem 1.05rem 0.45rem 0.85rem;
  background: rgba(255, 79, 135, 0.1);
  border: 1px solid rgba(255, 79, 135, 0.28);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.back-home:hover {
  background: rgba(255, 79, 135, 0.2);
  border-color: var(--primary);
  transform: translateX(-2px);
}

.back-home::before {
  content: "←";
  font-size: 1.05em;
  line-height: 1;
}

/* RTL pages (Arabic, Jawi) */
html[dir="rtl"] .back-home::before { content: "→"; }
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .nav-menu { direction: rtl; }

@media (max-width: 1024px) {
  .lang-switch { order: 5; }
}

@media (max-width: 600px) {
  .lang-label select { max-width: 130px; font-size: 0.8rem; }
}
