/* ============================================================
   Motions · home.css — Variant A (Terminal)
   Drop-in replacement. All selectors preserved.
   Font: Inter throughout.
   ============================================================ */

:root {
  --bg-0:        #0b0c0e;
  --bg-1:        #101216;
  --bg-2:        #161920;
  --bg-3:        #1c2029;
  --border:      #242832;
  --border-2:    #333845;
  --text:        #e9ecf1;
  --text-dim:    #7a808d;
  --text-mid:    #b3b9c4;

  /* Variant A accent */
  --cyan:        #6de0c9;   /* acid lime — primary accent */
  --cyan-dim:    #445a13;
  --green:       #6de0c9;
  --violet:      #c9a6ff;
  --red:         #ff5e5e;

  --gradient-start: #6de0c9;
  --gradient-end:   #6de0c9;

  --ui: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--ui);
  background: var(--bg-0);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Subtle scanline texture, barely visible */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 999;
  background:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,0.012) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 12, 14, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  width: 100%;
  padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  height: 48px; width: auto;
  background: transparent;
}
.logo-text {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--text);
}
.logo-tagline {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-left: 10px;
  font-weight: 500;
}

.btn-connect {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 9px 22px;
  border-radius: 0;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 120ms ease;
}
.btn-connect:hover {
  background: var(--cyan);
  color: var(--bg-0);
  box-shadow: 0 0 22px rgba(109,224,201, 0.4);
}

/* Navigation */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
}
.nav-link {
  color: var(--text-mid);
  text-decoration: none;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 120ms ease;
  position: relative;
}
.nav-link::before {
  content: '';
  position: absolute;
  left: -14px; top: 50%;
  width: 4px; height: 4px;
  background: var(--cyan);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 120ms ease;
}
.nav-link:hover { color: var(--cyan); }
.nav-link:hover::before { opacity: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Static aurora backdrop + grid (animations removed — were causing
   continuous repaints that pinned CPU on slower machines). */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(109,224,201, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 75% 25%, rgba(109, 224, 201, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 60% 45% at 20% 30%, rgba(201, 166, 255, 0.08) 0%, transparent 55%);
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 25%, transparent 75%);
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--bg-0), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  text-align: center;
}

.hero h1 {
  font-family: var(--ui);
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: var(--text);
  text-wrap: balance;
}

.highlight {
  color: var(--cyan);
  font-style: normal;
  position: relative;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto 44px;
  line-height: 1.7;
  text-wrap: pretty;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  text-decoration: none;
  padding: 14px 40px;
  border-radius: 0;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all 140ms ease;
  position: relative;
}
.btn-primary::after {
  content: '→';
  transition: transform 140ms ease;
}
.btn-primary:hover {
  background: var(--cyan);
  color: var(--bg-0);
  box-shadow: 0 0 28px rgba(109,224,201, 0.45);
}
.btn-primary:hover::after { transform: translateX(4px); }

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 120px 24px;
  background: var(--bg-1);
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.5;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.features h2,
.how-inner h2,
.pricing-inner h2 {
  font-family: var(--ui);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 64px;
  color: var(--text);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  background: var(--border);
}

.feature-card {
  background: var(--bg-1);
  border-radius: 0;
  padding: 36px 32px;
  transition: all 220ms ease;
  position: relative;
}
.feature-card:hover {
  background: var(--bg-2);
  transform: none;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 260ms ease;
}
.feature-card:hover::before { width: 100%; }

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--cyan);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--cyan-dim);
  background: rgba(109,224,201, 0.06);
  padding: 8px;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-family: var(--ui);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 120px 24px;
  background: var(--bg-0);
  position: relative;
}
.how-inner { max-width: 960px; margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  background: var(--border);
}
.step {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-0);
  position: relative;
  transition: background 180ms ease;
}
.step:hover { background: var(--bg-1); }

.step-number {
  width: 52px; height: 52px;
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ui);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 auto 26px;
  position: relative;
  box-shadow: 0 0 22px rgba(109,224,201, 0.18);
}
/* corner-tick pseudo-elements removed — they were sized for the original 52x52
   step-number box, but the number is now a small pill so the ticks floated in
   space and lined up across cards, reading as faint connecting lines. */

.step h3 {
  font-family: var(--ui);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
}
.step p {
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.6;
  text-wrap: pretty;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 120px 24px;
  background: var(--bg-1);
  border-top: 1px solid var(--border);
}
.pricing-inner { max-width: 640px; margin: 0 auto; text-align: center; }

.pricing-card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 52px 44px;
  margin-bottom: 40px;
  position: relative;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px; right: 24px;
  height: 1px;
  background: var(--cyan);
}

.price {
  font-family: var(--ui);
  font-size: 56px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 32px;
  letter-spacing: -0.03em;
  text-shadow: 0 0 32px rgba(109,224,201, 0.35);
  font-variant-numeric: tabular-nums;
}

.pricing-features {
  list-style: none;
  text-align: left;
}
.pricing-features li {
  padding: 13px 0;
  padding-left: 30px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  font-size: 14px;
  position: relative;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 600;
  font-family: var(--ui);
}

.promo-section { margin-top: 40px; }
.promo-section p { color: var(--text-dim); margin-bottom: 16px; font-size: 13px; letter-spacing: 0.04em; }

.promo-input {
  display: flex;
  gap: 10px;
  max-width: 340px;
  margin: 0 auto 24px;
}
.promo-input input {
  flex: 1;
  background: var(--bg-0);
  border: 1px solid var(--border-2);
  border-radius: 0;
  padding: 11px 14px;
  color: var(--text);
  font-family: var(--ui);
  font-size: 13px;
}
.promo-input input::placeholder { color: var(--text-dim); letter-spacing: 0.04em; }
.promo-input input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(109,224,201, 0.14);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 11px 20px;
  border-radius: 0;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 120ms ease;
}
.btn-secondary:hover {
  background: var(--cyan);
  color: var(--bg-0);
  box-shadow: 0 0 18px rgba(109,224,201, 0.35);
}

.or-divider {
  color: var(--text-dim);
  margin: 24px 0;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  position: relative;
}
.or-divider::before,
.or-divider::after {
  content: '';
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--border-2);
  vertical-align: middle;
  margin: 0 12px;
}

.disclaimer {
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--ui);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 56px 24px;
  background: var(--bg-0);
  border-top: 1px solid var(--border);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0.4;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-email {
  color: var(--text-mid);
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo-img {
  height: 44px; width: auto; background: transparent;
}
.footer-logo .logo-text { font-size: 16px; }
.footer-logo .logo-tagline { font-size: 8px; }

.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-dim);
  transition: all 140ms ease;
}
.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(109,224,201, 0.06);
  box-shadow: 0 0 12px rgba(109,224,201, 0.25);
}
.social-link svg { width: 16px; height: 16px; }

/* ============================================================
   RESPONSIVE (core)
   ============================================================ */
@media (max-width: 768px) {
  .header-inner { padding: 12px 16px; }
  .nav-menu { gap: 16px; margin-right: 14px; }
  .nav-link { font-size: 11px; }
  .logo-tagline { display: none; }

  .hero { padding: 100px 16px 60px; }
  .hero-desc { font-size: 15px; }

  .features, .how-it-works, .pricing { padding: 72px 16px; }
  .features h2, .how-inner h2, .pricing-inner h2 { font-size: 26px; margin-bottom: 40px; }

  .feature-card { padding: 26px 22px; }
  .pricing-card { padding: 36px 26px; }
  .price { font-size: 40px; }

  .footer-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 0;
  padding: 13px 22px;
  color: var(--text);
  font-family: var(--ui);
  font-size: 13px;
  letter-spacing: 0.02em;
  z-index: 1000;
  opacity: 0;
  transition: transform 280ms ease, opacity 220ms ease;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.success {
  border-color: var(--cyan);
  background: rgba(109,224,201, 0.08);
  color: var(--cyan);
}
.toast.error {
  border-color: var(--red);
  background: rgba(255, 94, 94, 0.08);
  color: var(--red);
}
.toast.info {
  border-color: var(--cyan);
  background: rgba(109,224,201, 0.06);
  color: var(--cyan);
}

/* ============================================================
   PAYMENT MODAL
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
}
.modal.show { opacity: 1; visibility: visible; }

.modal-content {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: 0;
  padding: 36px 34px;
  max-width: 420px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92);
  transition: transform 280ms ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6),
              0 0 0 1px rgba(109,224,201, 0.08);
}
.modal-content::before {
  content: '';
  position: absolute;
  top: -1px; left: 24px; right: 24px;
  height: 1px;
  background: var(--cyan);
}
.modal.show .modal-content { transform: scale(1); }

.modal-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 120ms ease;
}
.modal-close:hover { color: var(--red); }

.modal-content h3 {
  font-family: var(--ui);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.modal-desc {
  color: var(--text-mid);
  margin-bottom: 24px;
  font-size: 13px;
}

.chain-options {
  display: flex; flex-direction: column; gap: 8px;
}
.chain-option {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 15px 18px;
  cursor: pointer;
  transition: all 140ms ease;
  font-family: var(--ui);
}
.chain-option:hover {
  border-color: var(--cyan);
  background: rgba(109,224,201, 0.06);
}
.chain-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chain-amount {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.modal-note {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 20px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Connected button state */
.btn-connect.connected {
  background: rgba(109,224,201, 0.06);
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-connect.connected:hover {
  background: rgba(109,224,201, 0.14);
  box-shadow: 0 0 14px rgba(109,224,201, 0.2);
}

/* Price "or" */
.price-or {
  font-size: 20px;
  font-weight: 400;
  color: var(--text-dim);
  margin: 0 10px;
  font-family: var(--ui);
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-hero {
  position: relative;
  padding: 140px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.pricing-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(109,224,201, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 72% 22%, rgba(109, 224, 201, 0.10) 0%, transparent 55%);
}
.pricing-hero-content { position: relative; z-index: 1; }
.pricing-hero h1 {
  font-family: var(--ui);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}
.pricing-hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.pricing-card.featured {
  background: var(--bg-0);
  border: 1px solid var(--cyan);
  position: relative;
  padding-top: 68px;
  box-shadow: 0 0 0 1px rgba(109,224,201, 0.06),
              0 16px 48px rgba(0, 0, 0, 0.45);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--cyan);
}

.pricing-badge {
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--bg-0);
  padding: 7px 22px;
  border-radius: 0;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.features-list { text-align: left; margin: 32px 0; }
.features-list h4 {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.features-list h4::before { content: '// '; color: var(--cyan); opacity: 0.6; }

.feature-group { margin-bottom: 26px; }
.feature-group:last-child { margin-bottom: 0; }
.feature-group h5 {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.feature-group .pricing-features { margin-left: 0; }
.feature-group .pricing-features li {
  padding: 7px 0;
  padding-left: 28px;
  border-bottom: none;
  font-size: 13px;
}

.btn-purchase {
  width: 100%;
  padding: 16px;
  font-size: 13px;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .pricing-hero { padding: 120px 16px 40px; }
  .pricing-hero h1 { font-size: 28px; }
  .pricing-hero-desc { font-size: 15px; }
}

/* ============================================================
   DOCS PAGE
   ============================================================ */
.docs-hero {
  position: relative;
  padding: 140px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.docs-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(109,224,201, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 30% 22%, rgba(201, 166, 255, 0.09) 0%, transparent 55%);
}
.docs-hero-content { position: relative; z-index: 1; }
.docs-hero h1 {
  font-family: var(--ui);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}
.docs-hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}

.docs-content {
  padding: 60px 24px 100px;
  background: var(--bg-0);
}
.docs-inner { max-width: 820px; margin: 0 auto; }

/* docs-item that spans the entire grid row (used for OBU summary card) */
.docs-item.docs-item-full { grid-column: 1 / -1; }

/* 2-column docs layout when sidebar is active */
.docs-with-sidebar {
  max-width: 1140px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: start;
}
.docs-with-sidebar .docs-main { min-width: 0; }

.docs-sidebar { position: sticky; top: 96px; align-self: start; }

.docs-search {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
  outline: none;
  margin-bottom: 16px;
  font-family: inherit;
  box-sizing: border-box;
}
.docs-search:focus { border-color: var(--cyan); }
.docs-search::placeholder { color: rgba(255,255,255,0.4); }

.docs-toc { display: flex; flex-direction: column; gap: 2px; }
.docs-toc a {
  display: block;
  padding: 7px 12px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  border-left: 2px solid transparent;
  transition: color 80ms ease, border-color 80ms ease, background 80ms ease;
  border-radius: 0 4px 4px 0;
}
.docs-toc a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.docs-toc a.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(255,255,255,0.04);
}

@media (max-width: 880px) {
  .docs-with-sidebar { grid-template-columns: 1fr; gap: 24px; }
  .docs-sidebar { position: static; }
}

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

.docs-section h2 {
  font-family: var(--ui);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--cyan);
  letter-spacing: -0.01em;
}
.docs-section h2::before {
  content: '> ';
  color: var(--cyan);
  font-family: var(--ui);
  font-weight: 400;
  opacity: 0.7;
}

.docs-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 24px 28px;
  margin-bottom: 12px;
  transition: border-color 160ms ease;
}
.docs-card:hover { border-color: var(--cyan-dim); }
.docs-card:last-child { margin-bottom: 0; }

.docs-card h3 {
  font-family: var(--ui);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.docs-card h4 {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.docs-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

.docs-list { list-style: none; padding: 0; margin: 0; }
.docs-list li {
  padding: 7px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.65;
}
.docs-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 0;
  box-shadow: 0 0 6px rgba(109,224,201, 0.45);
}

ol.docs-list { counter-reset: docs-counter; }
ol.docs-list li { counter-increment: docs-counter; }
ol.docs-list li::before {
  content: counter(docs-counter, decimal-leading-zero);
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-dim);
  width: 22px; height: 20px;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  top: 8px;
  box-shadow: none;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.docs-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 16px 18px;
}
.docs-item h4 { margin-bottom: 8px; }
.docs-item p { font-size: 12px; }
.pattern-chart {
  display: block;
  width: 100%;
  height: 70px;
  margin: 4px 0 12px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 0;
}

.docs-note {
  font-style: normal;
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.docs-note::before { content: '// '; color: var(--cyan); opacity: 0.7; }

@media (max-width: 768px) {
  .docs-hero { padding: 120px 16px 40px; }
  .docs-hero h1 { font-size: 28px; }
  .docs-content { padding: 40px 16px 60px; }
  .docs-section h2 { font-size: 22px; }
  .docs-card { padding: 20px; }
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-hero {
  position: relative;
  padding: 140px 24px 60px;
  text-align: center;
  overflow: hidden;
}
.faq-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(109,224,201, 0.16) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 72% 22%, rgba(109, 224, 201, 0.10) 0%, transparent 55%);
}
.faq-hero-content { position: relative; z-index: 1; }
.faq-hero h1 {
  font-family: var(--ui);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--text);
}
.faq-hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.6;
}

.faq-content { padding: 60px 24px 100px; background: var(--bg-0); }
.faq-inner { max-width: 820px; margin: 0 auto; }

.faq-category { margin-bottom: 48px; }
.faq-category:last-child { margin-bottom: 0; }
.faq-category h2 {
  font-family: var(--ui);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--cyan);
  letter-spacing: -0.01em;
}
.faq-category h2::before { content: '> '; color: var(--cyan); opacity: 0.7; font-weight: 400; }

.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color 140ms ease;
}
.faq-item:last-child { margin-bottom: 0; }
.faq-item:hover, .faq-item.open { border-color: var(--cyan-dim); }
.faq-item.open { border-color: var(--cyan); }

.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 120ms ease;
  letter-spacing: -0.005em;
}
.faq-question:hover { color: var(--cyan); }
.faq-question svg {
  width: 18px; height: 18px;
  color: var(--text-dim);
  transition: transform 280ms ease, color 140ms ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-question svg {
  transform: rotate(180deg);
  color: var(--cyan);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease-out;
}
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p {
  padding: 0 22px 18px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .faq-hero { padding: 120px 16px 40px; }
  .faq-hero h1 { font-size: 28px; }
  .faq-content { padding: 40px 16px 60px; }
  .faq-category h2 { font-size: 18px; }
  .faq-question { padding: 16px 18px; font-size: 14px; }
  .faq-answer p { padding: 0 18px 14px; font-size: 13px; }
}

::selection {
  background: rgba(109,224,201, 0.3);
  color: var(--text);
}
