/* =========================================================
   BitGuard — Grid Protocol Theme
   ========================================================= */

:root {
    /* Brand — BitGuard Purple */
    --brand-500: #7C3AED;
    --brand-400: #A855F7;
    --brand-600: #6D28D9;
    --brand-700: #5B21B6;
    --brand-300: #C4B5FD;
    --brand-glow: rgba(124, 58, 237, 0.42);
    --brand-glow-soft: rgba(124, 58, 237, 0.18);

    --accent-pink: #EC4899;
    --accent-blue: #3B82F6;
    --accent-cyan: #06B6D4;

    /* Semantic */
    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Surfaces */
    --bg-0: #05040C;
    --bg-1: #080713;
    --bg-2: #0D0C1C;
    --bg-3: #121126;
    --bg-elev: #18162E;
    --surface: rgba(9, 8, 22, 0.92);
    --surface-2: rgba(16, 14, 34, 0.90);
    --glass: rgba(124, 58, 237, 0.04);
    --glass-hover: rgba(124, 58, 237, 0.08);

    --border: rgba(124, 58, 237, 0.2);
    --border-strong: rgba(167, 139, 250, 0.32);

    /* Text */
    --text: #F1F0FA;
    --text-dim: #A8A4C8;
    --text-muted: #6B669A;
    --text-faint: #3D3968;

    /* Radius — angular */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-full: 999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.6);
    --shadow-brand: 0 8px 32px -8px var(--brand-glow), 0 0 0 1px rgba(167, 139, 250, 0.22) inset;

    /* Layout */
    --container: 1240px;
    --container-wide: 1400px;
    --header-h: 72px;

    --font: "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-display: "Plus Jakarta Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Reset ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-1);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* Ambient background glows */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 85% -5%, rgba(124, 58, 237, 0.14), transparent 65%),
        radial-gradient(ellipse 700px 500px at -8% 38%, rgba(109, 40, 217, 0.10), transparent 65%),
        radial-gradient(ellipse 500px 400px at 48% 108%, rgba(236, 72, 153, 0.07), transparent 65%);
    z-index: -2;
    pointer-events: none;
}

/* Dot-grid ambient texture */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(167, 139, 250, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(167, 139, 250, 0.5); }

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

ul,
ol {
    list-style: none;
}

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

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

input,
select,
textarea {
    font-family: inherit;
    color: inherit;
}

::selection {
    background: var(--brand-600);
    color: #fff;
}

/* ========== Typography ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--text);
}

h1 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
}

h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.1rem;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border-strong);
    background: var(--glass);
    border-radius: var(--r-sm);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-300);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: var(--font-mono);
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    background: var(--brand-400);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand-400);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--brand-400); }
    50%       { opacity: 0.5; box-shadow: 0 0 3px var(--brand-400); }
}

.text-gradient {
    background: linear-gradient(135deg, #A855F7 0%, #C4B5FD 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-purple {
    color: var(--brand-400);
}

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

.text-center {
    text-align: center;
}

/* ========== Layout ========== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-wide {
    max-width: var(--container-wide);
}

.section {
    padding: 6rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3.5rem;
}

.section-head h2 {
    margin-bottom: 1rem;
}

.section-head p {
    font-size: 1.1rem;
}

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

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

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

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

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--r-md);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
    font-family: var(--font);
    letter-spacing: 0.01em;
}

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

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--brand-500);
    color: #fff;
    box-shadow: 0 8px 28px -8px var(--brand-glow);
}

.btn-primary:hover {
    background: var(--brand-400);
    box-shadow: 0 12px 40px -8px var(--brand-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    background: var(--glass);
    border-color: var(--brand-400);
    color: var(--brand-300);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--glass);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
}

.btn-discord:hover {
    background: #4752C4;
    box-shadow: 0 10px 30px -12px rgba(88, 101, 242, 0.7);
}

.btn-lg {
    padding: 1rem 1.9rem;
    font-size: 1.05rem;
    border-radius: var(--r-md);
}

.btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
}

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    background: rgba(7, 7, 19, 0.82);
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s var(--ease);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: -0.01em;
    font-family: var(--font-display);
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: var(--brand-500);
    color: #fff;
    box-shadow: 0 0 20px var(--brand-glow);
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-logo {
    width: 120px;
    height: 50px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 12px var(--brand-glow-soft));
}

.nav-links {
    display: flex;
    gap: 0.4rem;
}

.nav-links a {
    padding: 0.55rem 0.95rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-radius: var(--r-sm);
    transition: all 0.2s var(--ease);
    position: relative;
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--glass);
}

.nav-links a.active {
    color: var(--brand-300);
    background: var(--glass);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--brand-400);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--brand-400);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    color: var(--text);
    background: var(--glass);
    border: 1px solid var(--border);
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn svg {
    width: 22px;
    height: 22px;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

/* Subtle grid overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 30%, transparent 100%);
}


.hero-bg {
    position: absolute;
    inset: -20% -10% auto auto;
    width: 80%;
    height: 90%;
    background:
        radial-gradient(closest-side, rgba(124, 58, 237, 0.22) 0%, transparent 70%),
        radial-gradient(closest-side, rgba(109, 40, 217, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.65;
    z-index: -1;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content .eyebrow {
    animation: fadeInUp 0.5s var(--ease) both;
    animation-delay: 0.1s;
}

.hero-content h1 {
    margin: 1rem 0 1.5rem;
    animation: fadeInUp 0.5s var(--ease) both;
    animation-delay: 0.2s;
}

.hero-content p.lead {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 560px;
    margin-bottom: 2rem;
    line-height: 1.7;
    animation: fadeInUp 0.5s var(--ease) both;
    animation-delay: 0.3s;
}

.hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.5s var(--ease) both;
    animation-delay: 0.4s;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: fadeInUp 0.5s var(--ease) both;
    animation-delay: 0.5s;
}

.hero-visual {
    position: relative;
    perspective: 1500px;
    z-index: 1;
    animation: fadeInUp 0.6s var(--ease) both;
    animation-delay: 0.25s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.avatar-stack {
    display: flex;
}

.avatar-stack .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-1);
    margin-left: -8px;
    background-size: cover;
}

.avatar-stack .avatar:first-child {
    margin-left: 0;
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--warning);
}

.stars svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Dashboard preview mock */
.dash-preview {
    background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 58, 237, 0.1) inset;
    overflow: hidden;
    transform: perspective(1500px) rotateY(-8deg) rotateX(4deg);
    transition: transform 0.5s var(--ease);
}

.dash-preview .window-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.dash-preview .window-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.dash-preview .window-bar span:first-child  { background: #ff5f56; }
.dash-preview .window-bar span:nth-child(2) { background: #ffbd2e; }
.dash-preview .window-bar span:nth-child(3) { background: #27c93f; }

.dash-preview-body {
    display: grid;
    grid-template-columns: 70px 1fr;
    min-height: 360px;
}

.dash-preview-side {
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid var(--border);
    padding: 1rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.dash-preview-side .side-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.04);
    display: grid;
    place-items: center;
    color: var(--text-muted);
}

.dash-preview-side .side-icon.active {
    background: var(--brand-500);
    color: #fff;
    box-shadow: 0 0 16px var(--brand-glow);
}

.dash-preview-side .side-icon svg {
    width: 18px;
    height: 18px;
}

.dash-preview-main {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dp-h {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dp-h-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.dp-h-btn {
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 4px;
    background: var(--brand-500);
    color: #fff;
    font-weight: 700;
}

.dp-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.dp-stat {
    background: rgba(124, 58, 237, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 0.7rem;
}

.dp-stat-label {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

.dp-stat-val {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--brand-400);
}

.dp-stat-trend {
    font-size: 0.7rem;
    color: var(--success);
    margin-top: 0.1rem;
}

.dp-chart {
    height: 120px;
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.1) 0%, transparent 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    position: relative;
    overflow: hidden;
}

.dp-chart::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, transparent 0, transparent 60%, var(--brand-500) 60%, var(--brand-500) 60.5%, transparent 60.5%, transparent 72%, var(--brand-500) 72%, var(--brand-500) 72.5%, transparent 72.5%);
    opacity: 0.18;
}

.dp-chart::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 60%;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 100' preserveAspectRatio='none'><path d='M0 80 Q 30 60 60 70 T 120 50 T 180 40 T 240 20 T 300 30 L 300 100 L 0 100 Z' fill='%23A855F7' opacity='0.22'/><path d='M0 80 Q 30 60 60 70 T 120 50 T 180 40 T 240 20 T 300 30' stroke='%23A855F7' stroke-width='2' fill='none'/></svg>") center/100% 100% no-repeat;
}

.dp-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dp-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.7rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.8rem;
}

.dp-row .dp-av {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-blue));
}

.dp-row .dp-text {
    flex: 1;
    color: var(--text-dim);
}

.dp-row .dp-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 230, 118, 0.12);
    color: var(--success);
}

/* Floating pills around dash-preview */
.hero-visual .float-pill {
    position: absolute;
    background: var(--bg-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    padding: 0.6rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md), 0 0 20px var(--brand-glow-soft);
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
}

.hero-visual .float-pill .icon-box {
    width: 28px;
    height: 28px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    color: #04040B;
}

.hero-visual .float-pill.pill-1 {
    top: 10%;
    left: -8%;
    animation-delay: 0s;
}

.hero-visual .float-pill.pill-1 .icon-box {
    background: var(--success);
}

.hero-visual .float-pill.pill-2 {
    bottom: 15%;
    right: -4%;
    animation-delay: 2s;
}

.hero-visual .float-pill.pill-2 .icon-box {
    background: var(--accent-pink);
    color: #fff;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

/* ========== Trust Strip ========== */
.trust-strip {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(124, 58, 237, 0.02);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.trust-item .num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--brand-400), var(--brand-300));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.trust-item .label {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ========== Feature Cards ========== */
.feature-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem;
    transition: all 0.3s var(--ease);
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), transparent 55%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: var(--surface-2);
    border-color: var(--border-strong);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.08), var(--shadow-md);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    margin-bottom: 1.25rem;
    background: var(--brand-500);
    color: #fff;
    box-shadow: 0 8px 24px -10px var(--brand-glow);
}

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

.feature-card h3 {
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Colored icon variants */
.feature-icon.ic-green {
    background: var(--success);
    color: #04040B;
    box-shadow: 0 8px 24px -10px rgba(0, 230, 118, 0.5);
}

.feature-icon.ic-blue {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 8px 24px -10px rgba(41, 121, 255, 0.5);
}

.feature-icon.ic-pink {
    background: var(--accent-pink);
    color: #fff;
    box-shadow: 0 8px 24px -10px rgba(255, 64, 64, 0.5);
}

.feature-icon.ic-amber {
    background: var(--warning);
    color: #04040B;
    box-shadow: 0 8px 24px -10px rgba(255, 210, 0, 0.5);
}

.feature-icon.ic-cyan {
    background: var(--brand-500);
    color: #fff;
    box-shadow: 0 8px 24px -10px var(--brand-glow);
}

/* ========== Deep Dive ========== */
.deep-dive {
    padding: 5rem 0;
}

.deep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.deep-grid:has(.deep-visual-img) {
    grid-template-columns: 1fr 1.3fr;
}

.deep-dive:nth-of-type(even) .deep-grid {
    direction: rtl;
}

.deep-dive:nth-of-type(even) .deep-grid > * {
    direction: ltr;
}

.deep-content h2 {
    margin-bottom: 1rem;
}

.deep-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.deep-content ul {
    margin: 1.25rem 0;
    display: grid;
    gap: 0.7rem;
}

.deep-content li {
    display: flex;
    align-items: start;
    gap: 0.6rem;
    color: var(--text-dim);
}

.deep-content li svg {
    flex-shrink: 0;
    color: var(--brand-500);
    margin-top: 2px;
}

.deep-visual {
    position: relative;
    background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    min-height: 340px;
    padding: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.deep-visual::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: radial-gradient(closest-side, var(--brand-glow-soft), transparent 60%);
    filter: blur(40px);
}

.deep-visual--image,
.deep-visual:has(.deep-visual-img) {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-height: 0;
    overflow: visible;
}

.deep-visual--image::before,
.deep-visual:has(.deep-visual-img)::before {
    display: none;
}

.deep-visual .placeholder {
    position: relative;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.deep-visual-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 30px var(--brand-glow-soft));
}

/* Discord-style chat mock */
.chat-mock {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 380px;
    background: #1A1A2E;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    padding: 1rem;
    box-shadow: var(--shadow-md);
}

.chat-row {
    display: flex;
    gap: 0.7rem;
    align-items: start;
    margin-bottom: 0.8rem;
}

.chat-row:last-child {
    margin-bottom: 0;
}

.chat-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-blue));
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}

.chat-av.bot {
    background: var(--success);
    color: #04040B;
}

.chat-body {
    flex: 1;
}

.chat-name {
    font-family: var(--font-display);
    font-weight: 700;
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.chat-name .bot-tag {
    background: var(--brand-500);
    color: #fff;
    font-size: 0.6rem;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 800;
}

.chat-time {
    color: var(--text-faint);
    font-size: 0.7rem;
    font-weight: 400;
}

.chat-text {
    font-size: 0.85rem;
    color: #DCDDDE;
    margin-top: 0.2rem;
    line-height: 1.4;
}

.chat-embed {
    margin-top: 0.5rem;
    border-left: 3px solid var(--brand-400);
    background: rgba(0, 0, 0, 0.25);
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.chat-embed .embed-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

/* ========== Commands List ========== */
.commands-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.commands-search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0.8rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: border-color 0.2s var(--ease);
}

.commands-search:focus-within {
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.commands-search svg {
    color: var(--text-muted);
}

.commands-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text);
}

.commands-search input::placeholder {
    color: var(--text-faint);
}

.cmd-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.cmd-tab {
    font-family: var(--font-mono);
    padding: 0.5rem 1rem;
    border-radius: var(--r-sm);
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s var(--ease);
    letter-spacing: 0.03em;
}

.cmd-tab:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.cmd-tab.active {
    background: var(--brand-500);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px -6px var(--brand-glow);
}

.cmd-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.cmd-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: all 0.2s var(--ease);
}

.cmd-item:hover {
    background: var(--surface-2);
    border-color: var(--brand-400);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.1);
}

.cmd-item .cmd-ico {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.1);
    color: var(--brand-400);
    flex-shrink: 0;
}

.cmd-item .cmd-name {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.cmd-item .cmd-name code {
    color: var(--brand-300);
}

.cmd-item .cmd-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ========== Pricing ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.25rem 1.75rem;
    transition: all 0.3s var(--ease);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.1), transparent 60%), var(--surface);
    border-color: var(--brand-400);
    box-shadow: var(--shadow-brand);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 1rem;
    background: var(--brand-500);
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    box-shadow: 0 4px 16px -4px var(--brand-glow);
    font-family: var(--font-mono);
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.3rem;
}

.pricing-card .plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 1.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.pricing-price .num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}

.pricing-price .suffix {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.pricing-features li {
    display: flex;
    align-items: start;
    gap: 0.6rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.pricing-features li svg {
    flex-shrink: 0;
    color: var(--brand-400);
    margin-top: 3px;
}

/* ========== FAQ ========== */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 0.75rem;
}

.faq {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
}

.faq.open {
    border-color: var(--border-strong);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.1rem 1.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    text-align: left;
    font-size: 1rem;
}

.faq-q:hover {
    background: var(--glass);
}

.faq-q .faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--glass);
    transition: transform 0.2s var(--ease), background 0.2s var(--ease);
    flex-shrink: 0;
    color: var(--brand-300);
}

.faq.open .faq-q .faq-icon {
    transform: rotate(45deg);
    background: rgba(124, 58, 237, 0.15);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
    padding: 0 1.4rem;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.faq.open .faq-a {
    max-height: 400px;
    padding: 0 1.4rem 1.2rem;
}

/* ========== CTA Banner ========== */
.cta-banner {
    position: relative;
    padding: 4rem 2.5rem;
    border-radius: var(--r-xl);
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--border-strong);
    background:
        radial-gradient(600px 300px at 20% 30%, rgba(124, 58, 237, 0.14), transparent 65%),
        radial-gradient(500px 300px at 80% 80%, rgba(109, 40, 217, 0.10), transparent 60%),
        linear-gradient(135deg, var(--bg-3), var(--bg-2));
}

.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    border-radius: inherit;
}

.cta-banner h2 {
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    position: relative;
}

.cta-banner p {
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 2rem;
    position: relative;
}

.cta-banner .hero-cta {
    justify-content: center;
    margin-bottom: 0;
    position: relative;
}

/* ========== Footer ========== */
.site-footer {
    background: var(--bg-0);
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-dim);
    transition: all 0.2s var(--ease);
}

.footer-socials a:hover {
    color: #fff;
    background: var(--brand-500);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--brand-glow);
}

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

.footer-col ul {
    display: grid;
    gap: 0.6rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color 0.2s var(--ease);
}

.footer-col a:hover {
    color: var(--brand-300);
}

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-faint);
    font-size: 0.82rem;
    font-family: var(--font-mono);
}

/* ========== Generic Page Header ========== */
.page-header {
    position: relative;
    padding: 5rem 0 3.5rem;
    text-align: center;
    overflow: hidden;
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(closest-side at 50% 0%, rgba(124, 58, 237, 0.25), transparent 60%);
    opacity: 0.5;
    z-index: -1;
    filter: blur(60px);
}

.page-header h1 {
    margin: 1rem 0 1rem;
}

.page-header p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ========== Docs Layout ========== */
.docs-layout {
    display: grid;
    grid-template-columns: 296px 1fr;
    gap: 3rem;
    padding: 3rem 0;
}

.docs-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.25rem;
}

.docs-sidebar h4 {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.docs-sidebar a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.docs-sidebar a:hover {
    background: var(--glass);
    color: var(--text);
}

.docs-sidebar a.active {
    background: var(--brand-glow-soft);
    color: var(--brand-300);
    font-weight: 600;
}

.docs-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.75rem;
    line-height: 1.7;
}

.docs-content h1 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--brand-400) 0%, #fff 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-content h2 {
    font-size: 1.55rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.docs-content h2::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--brand-400), var(--accent-blue));
    flex-shrink: 0;
}

.docs-content h3 {
    font-size: 1.12rem;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    color: var(--brand-300);
}

.docs-content p {
    margin-bottom: 1.1rem;
    color: var(--text-dim);
}

.docs-content p.lead {
    font-size: 1.1rem;
    color: var(--text);
    background: linear-gradient(135deg, var(--brand-glow-soft), transparent 70%);
    border-left: 3px solid var(--brand-400);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    padding: 1.2rem 1.4rem;
    margin: 0 0 2rem;
    line-height: 1.6;
}

.docs-content ul,
.docs-content ol {
    display: grid;
    gap: 0.55rem;
    margin: 0 0 1.4rem;
    padding-left: 0;
    list-style: none;
}

.docs-content ul li,
.docs-content ol li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.docs-content ul:not(.chips):not(.doc-cards):not(.steps) li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-400);
    box-shadow: 0 0 8px var(--brand-glow-soft);
}

.docs-content ol {
    counter-reset: doc-counter;
}

.docs-content ol li {
    counter-increment: doc-counter;
    padding-left: 2.3rem;
    min-height: 1.8rem;
}

.docs-content ol li::before {
    content: counter(doc-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-500), var(--accent-blue));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50%;
    box-shadow: 0 4px 12px -4px var(--brand-glow);
}

.docs-content strong {
    color: var(--text);
    font-weight: 700;
}

.docs-content em {
    color: var(--text);
    font-style: normal;
    font-weight: 600;
}

.docs-content code {
    font-family: var(--font-mono);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.88em;
    color: var(--brand-300);
    border: 1px solid rgba(124, 58, 237, 0.2);
    white-space: nowrap;
}

.docs-content a {
    color: var(--brand-300);
    border-bottom: 1px dashed rgba(167, 139, 250, 0.4);
    transition: all 0.2s var(--ease);
}

.docs-content a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.docs-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* ===== Callout boxes ===== */
.docs-content .callout {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1.1rem 1.3rem;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-3);
    margin: 1.5rem 0;
}

.docs-content .callout .cb-ico {
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
    margin-top: 2px;
}

.docs-content .callout .cb-ico svg {
    width: 16px;
    height: 16px;
}

.docs-content .callout .cb-body {
    flex: 1;
    min-width: 0;
}

.docs-content .callout .cb-body > *:last-child {
    margin-bottom: 0;
}

.docs-content .callout .cb-title {
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

.docs-content .callout p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.94rem;
}

.docs-content .callout.info {
    background: linear-gradient(135deg, rgba(41, 121, 255, 0.1), transparent 70%);
    border-color: rgba(41, 121, 255, 0.3);
}

.docs-content .callout.info .cb-ico {
    background: linear-gradient(135deg, #2979FF, #00B0FF);
}

.docs-content .callout.tip {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), transparent 70%);
    border-color: rgba(124, 58, 237, 0.3);
}

.docs-content .callout.tip .cb-ico {
    background: var(--brand-500);
    color: #fff;
}

.docs-content .callout.success {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), transparent 70%);
    border-color: rgba(0, 230, 118, 0.3);
}

.docs-content .callout.success .cb-ico {
    background: linear-gradient(135deg, #00E676, #00C853);
    color: #04040B;
}

.docs-content .callout.warning {
    background: linear-gradient(135deg, rgba(255, 210, 0, 0.08), transparent 70%);
    border-color: rgba(255, 210, 0, 0.3);
}

.docs-content .callout.warning .cb-ico {
    background: linear-gradient(135deg, #FFD200, #FF9100);
    color: #04040B;
}

.docs-content .callout.danger {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.1), transparent 70%);
    border-color: rgba(255, 23, 68, 0.3);
}

.docs-content .callout.danger .cb-ico {
    background: linear-gradient(135deg, #FF1744, #D50000);
}

/* ===== Steps (custom numbered) ===== */
.docs-content ol.steps {
    counter-reset: step-counter;
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
}

.docs-content ol.steps li {
    counter-increment: step-counter;
    padding: 1.15rem 1.3rem 1.15rem 3.75rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    min-height: 0;
    color: var(--text-dim);
}

.docs-content ol.steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1.05rem;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: var(--brand-500);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: var(--r-sm);
    box-shadow: 0 4px 16px -4px var(--brand-glow);
}

.docs-content ol.steps li strong:first-child {
    display: block;
    color: var(--text);
    font-size: 1.02rem;
    margin-bottom: 0.2rem;
}

/* ===== Permission / Feature Chips ===== */
.docs-content ul.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.5rem;
}

.docs-content ul.chips li {
    padding: 0.4rem 0.9rem 0.4rem 0.7rem;
    background: var(--glass);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-full);
    font-size: 0.82rem;
    color: var(--text);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}

.docs-content ul.chips li::before {
    content: "";
    position: static;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-400);
    box-shadow: 0 0 8px var(--brand-glow-soft);
    top: auto;
    left: auto;
}

.docs-content ul.chips.success li::before {
    background: var(--success);
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.4);
}

.docs-content ul.chips.warning li::before {
    background: var(--warning);
    box-shadow: 0 0 8px rgba(255, 210, 0, 0.4);
}

/* ===== Module / Feature Cards (in docs) ===== */
.docs-content ul.doc-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0 2rem;
}

.docs-content ul.doc-cards li {
    padding: 1rem 1.1rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-dim);
    font-size: 0.92rem;
    transition: all 0.2s var(--ease);
}

.docs-content ul.doc-cards li:hover {
    border-color: var(--brand-400);
    transform: translateY(-2px);
}

.docs-content ul.doc-cards li strong:first-child {
    display: block;
    color: var(--text);
    font-size: 0.98rem;
    margin-bottom: 0.25rem;
}

/* ===== Keyboard keys ===== */
.docs-content kbd {
    font-family: var(--font-mono);
    font-size: 0.78em;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--border-strong);
    border-bottom-width: 2px;
    border-radius: var(--r-sm);
    color: var(--text);
    font-weight: 600;
    display: inline-block;
    line-height: 1.2;
    margin: 0 0.15rem;
}

/* ===== Next-Up navigation buttons ===== */
.docs-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2.5rem;
}

.docs-nav a {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.2rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    border-bottom: none !important;
    color: var(--text);
    transition: all 0.2s var(--ease);
}

.docs-nav a:hover {
    border-color: var(--brand-400);
    transform: translateY(-2px);
    color: var(--text) !important;
}

.docs-nav a .nav-hint {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

.docs-nav a .nav-title {
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.docs-nav a.next {
    text-align: right;
    align-items: flex-end;
}

.docs-nav .empty {
    visibility: hidden;
}

/* ========== Status Page ========== */
.status-overall {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.12), transparent);
    border: 1px solid rgba(0, 230, 118, 0.35);
    border-radius: var(--r-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.status-overall .bubble {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--success);
    color: #04040B;
    position: relative;
}

.status-overall .bubble::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--success);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0%   { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}

.status-overall h3 {
    margin-bottom: 0.25rem;
}

.status-overall p {
    margin: 0;
    font-size: 0.95rem;
}

.status-list {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
}

.status-row:last-child {
    border-bottom: none;
}

.status-row .name {
    font-weight: 600;
}

.status-state {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

.status-state .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px currentColor;
}

/* ========== Status Page – Extended ========== */
.status-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.25rem 1rem;
    text-align: center;
}

.status-stat-box .stat-value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.35rem;
    font-variant-numeric: tabular-nums;
}

.status-stat-box .stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.status-category-header {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 2rem 0 0.65rem;
}

.status-row-expanded {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border);
}

.status-row-expanded:last-child {
    border-bottom: none;
}

.status-row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.status-svc-info .name {
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.status-svc-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.status-svc-meta .meta-sep {
    opacity: 0.35;
}

.status-row-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    margin-left: 1rem;
}

.status-response-badge {
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: var(--r-full);
    background: rgba(124, 58, 237, 0.1);
    color: var(--brand-400);
    border: 1px solid rgba(124, 58, 237, 0.2);
    white-space: nowrap;
}

.status-history-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.status-history {
    display: grid;
    grid-template-columns: repeat(30, 1fr);
    gap: 2px;
    flex: 1;
    min-width: 0;
    height: 28px;
}

.status-bar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    cursor: default;
    transition: filter 0.15s, transform 0.15s;
}

.status-bar:hover {
    filter: brightness(1.3);
    transform: scaleY(1.1);
}

.status-bar.ok       { background: var(--success); opacity: 0.85; }
.status-bar.degraded { background: var(--warning); }
.status-bar.outage   { background: var(--danger); }

.status-history-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.incident-section {
    margin-top: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.incident-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.incident-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    flex: 1;
}

.incident-period {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-faint);
}

.incident-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 2.5rem 1rem;
    color: var(--success);
}

.incident-empty p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========== Legal Pages ========== */
.prose {
    max-width: 820px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 3rem;
}

.prose h1 {
    font-size: 2.1rem;
    margin-bottom: 1.5rem;
}

.prose h2 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.prose p {
    margin-bottom: 1rem;
    color: var(--text-dim);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

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

@media (max-width: 900px) {

    .hero .container,
    .deep-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
    }

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

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .cmd-list {
        grid-template-columns: 1fr;
    }

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

    .docs-sidebar {
        position: static;
    }

    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg-2);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s var(--ease);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        padding: 0.9rem;
        border-radius: var(--r-sm);
    }

    .nav-links a.active::after {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .status-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .status-row-top {
        flex-direction: column;
        gap: 0.5rem;
    }

    .status-row-right {
        margin-left: 0;
    }

    .status-bar {
        height: 18px;
    }
}

@media (max-width: 600px) {

    .grid-4,
    .grid-2 {
        grid-template-columns: 1fr;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .section {
        padding: 4rem 0;
    }

    .cta-banner {
        padding: 3rem 1.25rem;
    }

    .prose,
    .docs-content {
        padding: 1.5rem 1.25rem;
    }

    .docs-content ul.doc-cards {
        grid-template-columns: 1fr;
    }

    .docs-content ol.steps li {
        padding-left: 3.5rem;
    }

    .docs-nav {
        grid-template-columns: 1fr;
    }

    .header-actions .btn-ghost {
        display: none;
    }
}

/* ========== Utilities ========== */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.hide-mobile {}

@media (max-width: 900px) {
    .hide-mobile {
        display: none !important;
    }
}

/* ========== Interactive Bot Demo ========== */
.bot-demo-section {
    background: rgba(124, 58, 237, 0.015);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.bot-demo {
    display: grid;
    grid-template-columns: 252px 1fr;
    gap: 1.5rem;
    max-width: 1060px;
    margin: 0 auto;
}

.demo-scenarios {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-btn {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    border-radius: var(--r-md);
    text-align: left;
    transition: all 0.2s var(--ease);
    cursor: pointer;
    width: 100%;
}

.demo-btn:hover {
    background: var(--surface-2);
    border-color: var(--border-strong);
    border-left-color: var(--brand-400);
}

.demo-btn.active {
    background: var(--glass);
    border-color: var(--border-strong);
    border-left-color: var(--brand-400);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.08);
}

.demo-btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease);
}

.demo-btn.active .demo-btn-icon {
    transform: scale(1.08);
}

.demo-btn-icon svg {
    width: 20px;
    height: 20px;
}

.demo-btn-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.2;
}

.demo-btn-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Chat window */
.demo-window {
    background: #0D0D1C;
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.demo-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.1rem;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.demo-channel-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
}

.demo-channel-name svg {
    color: var(--text-muted);
}

.demo-live-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--success);
    letter-spacing: 0.1em;
    padding: 0.2rem 0.6rem;
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: var(--r-sm);
    background: rgba(0, 230, 118, 0.07);
    animation: live-pulse 2.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}

.demo-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    min-height: 280px;
    max-height: 320px;
    scroll-behavior: smooth;
}

.demo-messages::-webkit-scrollbar { width: 4px; }
.demo-messages::-webkit-scrollbar-track { background: transparent; }
.demo-messages::-webkit-scrollbar-thumb { background: rgba(124, 58, 237, 0.25); border-radius: 4px; }

.demo-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.demo-input-field {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.45rem 0.8rem;
    font-size: 0.82rem;
    color: var(--text-faint);
    user-select: none;
}

.demo-input svg {
    color: var(--brand-400);
    flex-shrink: 0;
    opacity: 0.7;
}

/* Message base */
.demo-msg {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    animation: msg-in 0.28s var(--ease) both;
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* System message */
.demo-msg--system {
    justify-content: center;
}

.demo-msg--system span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0.22rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 999px;
}

/* Avatar */
.demo-msg-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: #fff;
}

.demo-msg-av--bot {
    background: var(--brand-500);
    color: #fff;
    border-radius: var(--r-sm);
    font-size: 0.7rem;
    letter-spacing: 0.01em;
}

.demo-msg-body {
    flex: 1;
    min-width: 0;
}

.demo-msg-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.2rem;
    flex-wrap: wrap;
}

.demo-msg-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
}

.demo-msg-time {
    font-size: 0.68rem;
    color: var(--text-faint);
}

.demo-bot-tag {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 800;
    background: var(--brand-500);
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    letter-spacing: 0.06em;
    vertical-align: middle;
}

.demo-msg-text {
    font-size: 0.88rem;
    color: #C8CAD4;
    line-height: 1.5;
}

/* Bot embed */
.demo-embed {
    margin-top: 0.4rem;
    border-left: 4px solid var(--ec, var(--brand-400));
    background: rgba(0, 0, 0, 0.28);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 0.65rem 0.85rem;
    max-width: 420px;
}

.demo-embed-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--ec, var(--brand-400));
    margin-bottom: 0.3rem;
}

.demo-embed-desc {
    font-size: 0.8rem;
    color: #C8CAD4;
    line-height: 1.6;
}

.demo-embed-desc strong {
    color: #fff;
    font-weight: 700;
}

/* Typing indicator */
.demo-msg--typing .demo-msg-body {
    display: flex;
    align-items: center;
    padding-top: 6px;
}

.demo-typing-dots {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 0 10px 10px 10px;
}

.demo-typing-dots span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing-bounce 1.3s ease-in-out infinite;
}

.demo-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0);    opacity: 0.45; }
    30%            { transform: translateY(-5px); opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
    .bot-demo {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 500px) {
    .demo-scenarios {
        grid-template-columns: 1fr;
    }

    .demo-messages {
        min-height: 240px;
        max-height: 260px;
    }
}
