/* ==========================================================================
   Woven IQ — Modern Theme v2
   Loaded AFTER Tailwind so overrides apply on every page.
   ========================================================================== */

:root {
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #d4a017;
  --gold-600: #b8860b;
  --gold-700: #92650a;
  --gold-glow: rgba(212, 160, 23, 0.4);

  --ink-950: #0a0908;
  --ink-900: #0c0a09;
  --ink-800: #1c1917;
  --ink-700: #292524;
  --ink-600: #44403c;
  --ink-500: #57534e;
  --ink-400: #78716c;

  --surface-glass: rgba(255, 255, 255, 0.82);
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-muted: #f5f2ec;
  --surface-dark: #14110e;
  --border-soft: rgba(212, 160, 23, 0.14);
  --border-gold: rgba(212, 160, 23, 0.32);

  --radius-sm: 0.625rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;

  --shadow-soft: 0 4px 24px rgba(12, 10, 9, 0.07);
  --shadow-card: 0 16px 48px rgba(12, 10, 9, 0.1);
  --shadow-glow: 0 20px 60px var(--gold-glow);
  --shadow-header: 0 1px 0 rgba(255, 255, 255, 0.12), 0 12px 40px rgba(0, 0, 0, 0.08);

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif !important;
  color: var(--ink-700) !important;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  background-color: var(--surface-muted) !important;
  background-image:
    radial-gradient(ellipse 90% 70% at 0% -20%, rgba(212, 160, 23, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(251, 191, 36, 0.12), transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(184, 134, 11, 0.1), transparent 55%),
    linear-gradient(180deg, #faf8f4 0%, #f0ebe3 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 160, 23, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 160, 23, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

body > header,
body > div,
body > main,
body > footer { position: relative; z-index: 1; }

h1, h2, h3, h4 { letter-spacing: -0.025em; }

/* ---- Brand classes ---- */

.metallic-gold {
  background: linear-gradient(135deg, #c9941a 0%, #f5d061 45%, #d4a017 70%, #b8860b 100%) !important;
  background-size: 200% 200% !important;
  animation: gradient-shift 8s ease infinite;
}

.metallic-gold-text {
  background: linear-gradient(135deg, #92650a 0%, #d4a017 40%, #b8860b 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

/* SVG icons must NOT use metallic-gold-text (makes stroke transparent) */
.icon-gold {
  color: #b8860b !important;
  stroke: #b8860b !important;
  -webkit-text-fill-color: #b8860b !important;
  flex-shrink: 0;
}

.icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98) 0%, rgba(254, 243, 199, 0.88) 100%);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.metallic-gold-light {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98) 0%, rgba(254, 243, 199, 0.88) 100%) !important;
  border: 1px solid var(--border-gold) !important;
}

.metallic-gold-dark {
  background: linear-gradient(135deg, #0f0d0a 0%, #1f1810 30%, #2d2214 55%, #1a140d 100%) !important;
  background-size: 300% 300% !important;
  animation: gradient-shift 14s ease infinite;
  position: relative;
  overflow: hidden;
}

.metallic-gold-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 40%, rgba(212, 160, 23, 0.3) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(251, 191, 36, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 55% 90%, rgba(184, 134, 11, 0.15) 0%, transparent 45%);
  pointer-events: none;
}

.metallic-gold-dark > * { position: relative; z-index: 1; }

.metallic-gold-button {
  background: linear-gradient(135deg, #d4a017 0%, #f0c040 45%, #b8860b 100%) !important;
  background-size: 200% auto !important;
  color: #fff !important;
  box-shadow: 0 6px 24px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border: none !important;
  border-radius: 0.875rem !important;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background-position 0.4s ease !important;
}

.metallic-gold-button:hover {
  transform: translateY(-3px) scale(1.03) !important;
  box-shadow: 0 12px 40px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  background-position: right center !important;
}

/* ---- Header ---- */

.site-header {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-bottom: 1px solid var(--border-gold) !important;
  box-shadow: var(--shadow-header) !important;
  position: sticky !important;
  top: 0;
  z-index: 100;
  animation: header-slide-down 0.7s var(--ease-out-expo) both;
  max-width: 100%;
  overflow-x: clip;
}

.site-header .container {
  max-width: 100%;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-400), var(--gold-600), transparent);
  opacity: 0.6;
}

.site-header .nav-link {
  color: var(--ink-500);
  font-weight: 600;
  font-size: 0.9375rem;
  position: relative;
  text-decoration: none;
}

.site-header .nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out-expo);
  border-radius: 2px;
}

.site-header .nav-link:hover { color: var(--ink-900); }
.site-header .nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.site-header .breadcrumb-link {
  color: var(--ink-400);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-header .breadcrumb-link:hover { color: var(--gold-600); }

.site-header .docs-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-soft);
}

/* ---- Docs layout shell ---- */

.docs-layout {
  display: flex;
  min-height: calc(100vh - 4.5rem);
}

.site-sidebar {
  width: 20rem;
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.97) 0%, rgba(28, 22, 16, 0.98) 100%) !important;
  border-right: 1px solid rgba(212, 160, 23, 0.2) !important;
  box-shadow: 8px 0 40px rgba(0, 0, 0, 0.15) !important;
  overflow-y: auto;
  position: relative;
}

.site-sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-600), var(--gold-400));
}

.site-sidebar .sidebar-title {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.site-sidebar .sidebar-section-title {
  color: var(--gold-400) !important;
  font-size: 0.625rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.sidebar-link {
  display: block;
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.125rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none !important;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.25s var(--ease-out-expo);
  line-height: 1.4;
  position: relative;
}

.sidebar-link:hover {
  background: rgba(212, 160, 23, 0.12) !important;
  color: var(--gold-200) !important;
  border-color: rgba(212, 160, 23, 0.2);
  transform: translateX(4px);
}

.sidebar-link.active {
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.22) 0%, rgba(184, 134, 11, 0.12) 100%) !important;
  color: var(--gold-200) !important;
  border-color: rgba(212, 160, 23, 0.35) !important;
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--gold-400);
}

.docs-content {
  flex: 1;
  padding: 2rem 1.5rem 3rem;
  animation: fade-in 0.6s var(--ease-out-expo) 0.15s both;
}

.docs-shell {
  max-width: 52rem;
  margin: 0 auto;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.docs-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600), var(--gold-400));
}

.site-main { animation: fade-in 0.5s var(--ease-out-expo) 0.1s both; }

/* ---- Prose ---- */

.prose {
  max-width: none !important;
  color: var(--ink-600);
  line-height: 1.8;
}

.prose h1, .prose h2, .prose h3 {
  color: var(--ink-800);
  font-weight: 700;
}

.prose code {
  background: rgba(212, 160, 23, 0.1) !important;
  color: var(--gold-700) !important;
  border: 1px solid var(--border-gold) !important;
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
}

/* ---- Global cards (ALL pages) ---- */

.bg-white.rounded-lg.shadow-sm.border,
.bg-white.rounded-lg.border,
.bg-white.p-8.rounded-xl.shadow-sm.border,
.bg-white.p-8.rounded-xl.border {
  background: var(--surface-card) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.bg-white.rounded-lg.shadow-sm.border:hover,
.bg-white.p-8.rounded-xl.shadow-sm.border:hover,
.bg-white.p-8.rounded-xl.border:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--border-gold) !important;
}

.bg-gray-50.rounded-lg,
section.bg-gray-50 {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 251, 235, 0.25) 100%) !important;
}

.bg-gray-50.p-8.rounded-xl,
.bg-gray-50.p-6.rounded-lg {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-lg) !important;
}

/* Doc page intro */
.docs-shell > .mb-8:first-child,
.docs-content > .docs-shell > .mb-8:first-child {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 2rem !important;
}

.docs-content [style*="color: #2b1f11"],
.docs-content [style*="color:#2b1f11"],
.site-main [style*="color: #2b1f11"],
.site-main [style*="color:#2b1f11"] {
  color: var(--ink-600) !important;
}

/* Tables */
table {
  border-radius: var(--radius-md);
  overflow: hidden;
}

table thead.metallic-gold-light {
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100)) !important;
}

table tbody tr { transition: background-color 0.2s ease; }
table tbody tr:hover { background-color: rgba(212, 160, 23, 0.05) !important; }

/* Secondary buttons */
a.bg-gray-600 {
  background: var(--ink-800) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease !important;
}

a.bg-gray-600:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  background: var(--ink-900) !important;
}

/* ---- Footer ---- */

.site-footer {
  background: linear-gradient(180deg, var(--surface-dark) 0%, #0a0908 100%) !important;
  border-top: 1px solid rgba(212, 160, 23, 0.2) !important;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0 !important;
}

.site-footer h4 { color: #fff !important; font-weight: 700; }
.site-footer p { color: rgba(255, 255, 255, 0.55) !important; }
.site-footer a { color: rgba(255, 255, 255, 0.55) !important; text-decoration: none; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold-300) !important; }
.site-footer .footer-divider { border-color: rgba(212, 160, 23, 0.15) !important; }

/* ---- Home page components ---- */

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: var(--gold-200);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.1s both;
}

.home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  animation: fade-in-up 0.8s var(--ease-out-expo) 0.6s both;
}

@media (min-width: 640px) {
  .home-stat-grid { grid-template-columns: repeat(4, 1fr); }
}

.home-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.home-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-200);
  line-height: 1;
}

.home-stat-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.375rem;
}

.feature-card {
  background: var(--surface-card) !important;
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease !important;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out-expo);
}

.feature-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: var(--shadow-card), var(--shadow-glow) !important;
}

.feature-card:hover::before { transform: scaleX(1); }

.highlight-card {
  background: var(--surface-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
  height: 100%;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--border-gold);
}

.highlight-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-200));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.command-card {
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft) !important;
  border-radius: var(--radius-xl) !important;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s ease !important;
  display: flex;
  flex-direction: column;
}

.command-card-desc {
  min-height: 5.25rem;
  line-height: 1.625;
}

.command-card:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-card) !important;
}

.command-card:hover .command-card-image {
  transform: scale(1.03);
}

.command-card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  transition: transform 0.5s var(--ease-out-expo);
}

.step-pill {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: transform 0.35s var(--ease-spring);
}

.step-pill:hover { transform: scale(1.12) rotate(-5deg); }

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--gold-700);
  background: var(--gold-50);
  border: 1px solid var(--border-gold);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.btn-outline-light {
  border: 2px solid #fff !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: transparent !important;
  backdrop-filter: blur(8px);
  border-radius: 0.875rem !important;
  transition: all 0.3s var(--ease-out-expo) !important;
}

.btn-outline-light:hover {
  background: #fff !important;
  color: var(--gold-700) !important;
  -webkit-text-fill-color: var(--gold-700) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.highlight-card .icon-circle {
  width: 3rem;
  height: 3rem;
  margin: 0 0 1rem 0;
}

.highlight-card .icon-circle svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* Hero animations */
.metallic-gold-dark h1 { animation: fade-in-up 0.9s var(--ease-out-expo) 0.15s both; }
.metallic-gold-dark > .container > div > p { animation: fade-in-up 0.9s var(--ease-out-expo) 0.3s both; }
.metallic-gold-dark .flex { animation: fade-in-up 0.9s var(--ease-out-expo) 0.45s both; }

a.border-2.border-white {
  backdrop-filter: blur(8px);
  border-radius: 0.875rem !important;
  transition: all 0.3s var(--ease-out-expo) !important;
}

a.border-2.border-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

a.border-2.border-white.btn-outline-light:hover {
  transform: translateY(-3px);
}

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease-out-expo), transform 0.75s var(--ease-out-expo);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-main .grid > .animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.site-main .grid > .animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.site-main .grid > .animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.site-main .grid > .animate-on-scroll:nth-child(5) { transition-delay: 0.15s; }
.site-main .grid > .animate-on-scroll:nth-child(6) { transition-delay: 0.25s; }

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes header-slide-down {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile menu toggle (icon only) */
.header-desktop-nav {
  display: none;
}

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--gold-700);
  background: linear-gradient(135deg, var(--gold-50), var(--gold-100));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: linear-gradient(135deg, var(--gold-100), var(--gold-200));
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(10, 8, 6, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.mobile-nav-open {
  overflow: hidden;
}

.mobile-nav-panel {
  position: fixed;
  top: 4.75rem;
  right: 0;
  bottom: 0;
  width: min(16rem, 88vw);
  z-index: 90;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.98) 0%, rgba(28, 22, 16, 0.99) 100%);
  border-left: 1px solid rgba(212, 160, 23, 0.25);
  box-shadow: -12px 0 48px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-out-expo), visibility 0.32s ease;
  visibility: hidden;
  pointer-events: none;
}

.mobile-nav-panel[hidden] {
  display: none !important;
}

.mobile-nav-panel.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gold-100) !important;
  text-decoration: none !important;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 160, 23, 0.28);
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  background: rgba(212, 160, 23, 0.18);
  color: #fff !important;
  border-color: rgba(212, 160, 23, 0.45);
}

.mobile-nav-cta {
  display: block;
  margin-top: 0.25rem;
  padding: 0.875rem 1rem !important;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 700;
  border-radius: var(--radius-sm) !important;
  text-decoration: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border: 1px solid rgba(212, 160, 23, 0.5) !important;
  box-shadow: 0 8px 24px rgba(184, 134, 11, 0.35);
}

@media (min-width: 1024px) {
  .header-desktop-nav {
    display: flex !important;
  }

  .mobile-menu-toggle,
  .mobile-nav-backdrop,
  .mobile-nav-panel {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .docs-layout {
    flex-direction: column;
  }

  .site-sidebar {
    position: fixed;
    top: 4.75rem;
    left: 0;
    bottom: 0;
    width: min(20rem, 88vw);
    max-height: none;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform 0.32s var(--ease-out-expo), visibility 0.32s ease;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 12px 0 48px rgba(0, 0, 0, 0.35) !important;
  }

  .site-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .docs-content {
    padding: 1rem 0.75rem 2rem;
    width: 100%;
  }

  .docs-shell {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }

  .bg-white.rounded-lg.shadow-sm.border:hover {
    transform: none;
  }
}

@media (min-width: 1024px) {
  .mobile-nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .site-sidebar { width: min(20rem, 88vw); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .animate-on-scroll { opacity: 1; transform: none; }
}
