/* OrrivaBot — design system */
:root,
[data-theme="dark"] {
    color-scheme: dark;
    --bg: #09090b;
    --bg-elevated: #111113;
    --bg-muted: #18181b;
    --surface: rgba(24, 24, 27, 0.72);
    --surface-solid: #18181b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --heading: #ffffff;
    --accent: #8b5cf6;
    --accent-hover: #a78bfa;
    --accent-muted: rgba(139, 92, 246, 0.12);
    --accent-blue: #3b82f6;
    --accent-blue-muted: rgba(59, 130, 246, 0.12);
    --success: #22c55e;
    --danger: #ef4444;
    --warn: #eab308;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
    --nav-bg: rgba(9, 9, 11, 0.82);
    --hero-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(139, 92, 246, 0.18), transparent 70%);
    --gradient-text: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "SF Mono", "Fira Code", ui-monospace, monospace;
    --glass-bg: var(--surface);
    --glass-border: var(--border);
    --glass-card: var(--bg-muted);
    --text-main: var(--text);
    --text-dim: var(--text-secondary);
    --accent-purple: var(--accent);
    --bg-color: var(--bg);
    --buy-btn-fg: #09090b;
    --table-row-border: rgba(255, 255, 255, 0.05);
    --table-head-bg: rgba(255, 255, 255, 0.03);
    --pricing-pro-bg: var(--bg-elevated);
    --pricing-go-bg: var(--bg-elevated);
    --footer-bg: #050506;
}

[data-theme="light"] {
    color-scheme: light;
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --bg-muted: #f4f4f5;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-solid: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.12);
    --text: #18181b;
    --text-secondary: #52525b;
    --text-tertiary: #71717a;
    --heading: #09090b;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --accent-muted: rgba(124, 58, 237, 0.1);
    --accent-blue: #2563eb;
    --accent-blue-muted: rgba(37, 99, 235, 0.1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(250, 250, 250, 0.88);
    --hero-glow: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.1), transparent 70%);
    --gradient-text: linear-gradient(180deg, #09090b 0%, #52525b 100%);
    --buy-btn-fg: #ffffff;
    --table-row-border: rgba(0, 0, 0, 0.06);
    --table-head-bg: rgba(0, 0, 0, 0.03);
    --footer-bg: #f4f4f5;
}

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    margin: 0;
    padding-top: 72px;
    background: var(--bg);
    font-family: var(--font);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    line-height: 1.65;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* —— Nav —— */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: var(--nav-bg);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    padding: 0 max(5%, 20px);
    gap: 16px;
}

.nav-logo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--heading);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.nav-logo img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 6px;
}

.footer-brand .nav-logo img { width: 32px; height: 32px; }

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-links a:hover { color: var(--heading); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switcher-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.lang-switcher-label {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
    cursor: pointer;
}

.lang-switcher {
    appearance: none;
    background: var(--bg-muted);
    color: var(--heading);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 28px 6px 10px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    max-width: 9.5rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.lang-switcher:hover,
.lang-switcher:focus {
    border-color: var(--border-strong);
    outline: none;
}

.lang-switcher-wrap--mobile {
    width: 100%;
    margin-bottom: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
}

.lang-switcher-wrap--mobile .lang-switcher {
    max-width: none;
    width: 100%;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.theme-toggle:hover {
    border-color: var(--border-strong);
    color: var(--heading);
}

.theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }
[data-theme="light"] .theme-toggle .fa-sun { display: block; }

.nav-cta {
    background: var(--heading) !important;
    color: var(--bg) !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: opacity 0.15s, transform 0.15s !important;
}

.nav-cta:hover {
    transform: none !important;
    opacity: 0.88;
}

.mobile-nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    color: var(--heading);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 20px max(5%, 20px) 24px;
    z-index: 999;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-md);
}

.mobile-nav-panel.open { display: flex; }

.mobile-nav-panel a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.mobile-nav-panel .nav-cta-mobile {
    margin-top: 12px;
    text-align: center;
    padding: 14px !important;
    border-radius: var(--radius-sm) !important;
    border: none !important;
}

#theme-toggle-mobile .fa-sun { display: none; }
[data-theme="light"] #theme-toggle-mobile .fa-moon { display: none; }
[data-theme="light"] #theme-toggle-mobile .fa-sun { display: inline; }

/* —— Hero —— */
.hero-wrap {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.intro-grid { width: 90%; max-width: 1100px; margin-left: auto; margin-right: auto; }

.hero-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--hero-glow);
    z-index: 0;
    pointer-events: none;
}

[data-theme="light"] .hero-wrap::before {
    animation: hero-glow-breathe 16s ease-in-out infinite;
}

/* Stripe-style right wave (light theme only) */
[data-theme="light"] .hero-wrap::after {
    content: "";
    position: absolute;
    top: -190px;
    right: -260px;
    width: min(92vw, 1220px);
    height: min(125vh, 1080px);
    z-index: 0;
    pointer-events: none;
    border-radius: 66% 24% 30% 60% / 58% 20% 32% 54%;
    background:
        radial-gradient(74% 82% at 14% 44%, rgba(99, 102, 241, 0.24) 0%, rgba(99, 102, 241, 0) 70%),
        radial-gradient(68% 78% at 26% 62%, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0) 72%),
        repeating-radial-gradient(
            126% 100% at 14% 50%,
            rgba(99, 102, 241, 0) 0 13px,
            rgba(99, 102, 241, 0.18) 13px 15px,
            rgba(99, 102, 241, 0) 15px 26px
        ),
        repeating-radial-gradient(
            94% 72% at 20% 58%,
            rgba(236, 72, 153, 0) 0 11px,
            rgba(236, 72, 153, 0.14) 11px 13px,
            rgba(236, 72, 153, 0) 13px 22px
        ),
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.62) 0%,
            rgba(255, 255, 255, 0.18) 44%,
            rgba(255, 255, 255, 0) 72%
        );
    filter: saturate(1.08) blur(0.35px);
    opacity: 0.72;
    transform: rotate(-5deg);
    transform-origin: 50% 50%;
    clip-path: ellipse(64% 74% at 60% 50%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.88) 24%, #000 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 34px 0 120px rgba(255, 255, 255, 0.16);
    background-size: 100% 100%, 100% 100%, 140% 130%, 120% 110%, 100% 100%;
    background-position: 0% 0%, 0% 0%, 20% 50%, 28% 58%, 0% 0%;
    will-change: transform, background-position, filter;
    animation:
        stripe-wave-float 24s ease-in-out infinite,
        stripe-wave-shimmer 26s ease-in-out infinite alternate;
}

@keyframes stripe-wave-float {
    0% {
        transform: rotate(-5deg) translate3d(0, 0, 0) scale(1);
    }
    35% {
        transform: rotate(-4.4deg) translate3d(-8px, 6px, 0) scale(1.008);
    }
    70% {
        transform: rotate(-5.6deg) translate3d(6px, -5px, 0) scale(1.008);
    }
    100% {
        transform: rotate(-5deg) translate3d(0, 0, 0) scale(1);
    }
}

@keyframes stripe-wave-shimmer {
    0% {
        background-position: 0% 0%, 0% 0%, 14% 50%, 24% 58%, 0% 0%;
        filter: saturate(1.08) hue-rotate(0deg) blur(0.35px);
    }
    50% {
        background-position: 0% 0%, 0% 0%, 38% 48%, 44% 54%, 0% 0%;
        filter: saturate(1.12) hue-rotate(2deg) blur(0.28px);
    }
    100% {
        background-position: 0% 0%, 0% 0%, 64% 52%, 62% 60%, 0% 0%;
        filter: saturate(1.08) hue-rotate(-1deg) blur(0.35px);
    }
}

@keyframes hero-glow-breathe {
    0% { opacity: 0.72; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.72; transform: scale(1); }
}

header.hero {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 90%;
    margin: 48px auto 72px;
    text-align: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.hero-eyebrow i { color: var(--accent); font-size: 0.7rem; }

header.hero h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
    margin: 0 0 20px;
    color: var(--heading);
}

header.hero h1 .gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s, border-color 0.15s;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--heading);
    color: var(--bg);
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
    background: transparent;
    color: var(--heading);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--text-tertiary);
    background: var(--bg-muted);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 28px;
    padding-top: 8px;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.trust-item i {
    color: var(--accent);
    font-size: 0.75rem;
}

.glow-container { display: none; }

/* —— Layout —— */
section {
    max-width: 1100px;
    width: 90%;
    margin-bottom: 120px;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-bottom: 48px;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: var(--heading);
}

.section-subtitle {
    text-align: center;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.intro-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    letter-spacing: -0.035em;
    line-height: 1.15;
    font-weight: 700;
    color: var(--heading);
}

.intro-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 16px;
}

.feature-tag {
    background: var(--accent-muted);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.terminal-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    font-family: var(--mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.terminal-card .line-ok { color: var(--success); }
.terminal-card .line-warn { color: var(--warn); }
.terminal-card .line-accent { color: var(--accent-blue); }
.terminal-card .line-head { color: var(--heading); margin-top: 12px; }

/* —— Demo —— */
.showcase-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}

.demo-section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 12px;
    color: var(--heading);
}

.demo-section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.demo-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 8px 14px;
    background: var(--accent-blue-muted);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--accent-blue);
    font-weight: 500;
}

.demo-shell {
    width: 100%;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, var(--border-strong), var(--border));
    box-shadow: var(--shadow-md);
}

.demo-shell-inner {
    background: var(--bg-elevated);
    border-radius: calc(var(--radius-lg) - 1px);
    padding: 16px;
}

.demo-workspace {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 16px;
    width: 100%;
}

/* Discord mock — always dark */
.discord-mock {
    background: #313338;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid #1e1f22;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    user-select: none;
}

.discord-toolbar {
    height: 44px;
    background: #2b2d31;
    border-bottom: 1px solid #1e1f22;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.discord-toolbar .hash { color: #949ba4; }
.discord-toolbar .channel-name { color: #f2f3f5; }
.discord-toolbar .demo-pill {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(139, 92, 246, 0.35);
    color: #e9d5ff;
    padding: 3px 8px;
    border-radius: 100px;
}

.discord-messages {
    flex: 1;
    padding: 14px 10px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.discord-msg {
    display: flex;
    gap: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: context-menu;
    position: relative;
}

.discord-msg:hover { background: rgba(4, 4, 5, 0.07); }
.discord-msg.selected { background: rgba(88, 101, 242, 0.15); outline: 1px solid rgba(88, 101, 242, 0.35); }

.discord-msg.reportable-hint::after {
    content: "Right-click or long-press";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.62rem;
    color: #5865f2;
    background: rgba(88, 101, 242, 0.15);
    padding: 3px 7px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.discord-msg.reportable-hint:hover::after { opacity: 1; }

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}

.msg-author { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.msg-author .name { font-weight: 600; font-size: 0.9rem; }
.msg-author .time { font-size: 0.68rem; color: #949ba4; }
.msg-text { color: #dbdee1; font-size: 0.875rem; line-height: 1.4; word-break: break-word; }
.msg-text.flagged { color: #f23f43; }

.discord-ctx-menu {
    position: fixed;
    z-index: 2000;
    min-width: 200px;
    background: #111214;
    border-radius: 6px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border: 1px solid #1e1f22;
    display: none;
}

.discord-ctx-menu.visible { display: block; animation: ctxIn 0.12s ease; }

@keyframes ctxIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.ctx-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #b5bac1;
    cursor: pointer;
}

.ctx-item:hover { background: #5865f2; color: #fff; }
.ctx-item.report-item { color: #f23f43; font-weight: 600; }
.ctx-item.report-item:hover { background: #f23f43; color: #fff; }
.ctx-divider { height: 1px; background: #1e1f22; margin: 4px 6px; }

.report-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.report-modal-backdrop.visible { display: flex; }

.report-modal {
    background: #2b2d31;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 400px;
    border: 1px solid #1e1f22;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.report-modal-header {
    padding: 16px 18px;
    border-bottom: 1px solid #1e1f22;
    display: flex;
    align-items: center;
    gap: 10px;
}

.report-modal-header i { color: #f23f43; }
.report-modal-header h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #f2f3f5; }

.report-modal-body { padding: 18px; }
.report-modal-body label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #949ba4;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.report-modal-body select {
    width: 100%;
    padding: 12px 14px;
    background: #1e1f22;
    border: 1px solid #3f4147;
    border-radius: var(--radius-sm);
    color: #f2f3f5;
    font-size: 0.9rem;
    margin-bottom: 14px;
    cursor: pointer;
    font-family: inherit;
}

.report-preview-snippet {
    background: #1e1f22;
    border-radius: var(--radius-sm);
    padding: 12px;
    font-size: 0.85rem;
    color: #b5bac1;
    border-left: 3px solid #5865f2;
    margin-bottom: 16px;
}

.report-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.report-btn {
    padding: 10px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.report-btn.cancel { background: transparent; color: #b5bac1; }
.report-btn.submit { background: #5865f2; color: #fff; }
.report-btn.submit:disabled { opacity: 0.5; cursor: not-allowed; }

.demo-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    z-index: 2200;
    background: #15803d;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}

.demo-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mod-action-panel {
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    font-family: var(--mono);
    font-size: 0.78rem;
}

.mod-panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font);
    font-size: 0.8125rem;
}

.mod-log { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.mod-log-line {
    color: var(--text-tertiary);
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.mod-log-line.active { opacity: 1; color: var(--text); }
.mod-log-line.success { color: var(--success); }
.mod-log-line.warn { color: var(--warn); }
.mod-log-line.purple { color: var(--accent); }

.mod-verdict-card {
    margin-top: auto;
    background: var(--accent-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s, transform 0.4s;
}

.mod-verdict-card.visible { opacity: 1; transform: translateY(0); }

.mod-verdict-card h4 {
    margin: 0 0 6px;
    font-size: 0.8rem;
    color: var(--accent);
    font-family: var(--font);
}

.mod-verdict-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
    font-family: var(--font);
}

.penalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
    padding: 5px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* —— Video —— */
.demo-video-section {
    max-width: 1100px;
    width: 90%;
    margin: 0 auto 120px;
}

.demo-video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.demo-video-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.demo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.demo-overlay i { font-size: 3.5rem; color: #fff; }
.demo-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 100px;
}

.demo-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* —— Cards —— */
.glass-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.glass-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-sm);
    transform: none;
}

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
    color: var(--heading);
    font-weight: 600;
}

.feature-card p { color: var(--text-secondary); font-size: 0.9375rem; margin: 0; }
.feature-icon { font-size: 1.25rem; margin-bottom: 16px; color: var(--accent); }

.deep-dive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48%, 1fr));
    gap: 20px;
}

.dive-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: var(--radius-lg);
}

.dive-card i { font-size: 1.25rem; color: var(--accent); margin-bottom: 14px; }
.dive-card h3 { margin: 0 0 10px; font-size: 1.125rem; color: var(--heading); font-weight: 600; }
.dive-card p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: 16px; }

.use-case {
    background: var(--bg-muted);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    border-left: 2px solid var(--accent);
    color: var(--text);
}

.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.flow-card {
    text-align: center;
    padding: 24px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.flow-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-muted);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin: 0 auto 16px;
    color: var(--heading);
    border: 1px solid var(--border);
}

.flow-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--heading); font-weight: 600; }
.flow-card p { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }

.quota-notice {
    text-align: center;
    margin-top: 24px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.comparison-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: -12px;
    padding-bottom: 16px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

th:first-child { border-top-left-radius: var(--radius-lg); }
th:last-child { border-top-right-radius: var(--radius-lg); }
tr:last-child td:first-child { border-bottom-left-radius: var(--radius-lg); }
tr:last-child td:last-child { border-bottom-right-radius: var(--radius-lg); }

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--table-row-border);
}

th {
    background: var(--table-head-bg);
    font-weight: 600;
    color: var(--heading);
    font-size: 0.9rem;
}

td { color: var(--text-secondary); font-size: 0.9rem; }
td:first-child { font-weight: 600; color: var(--heading); }
.check { color: var(--success); font-weight: 600; }
.cross { color: var(--danger); opacity: 0.75; }
.highlight-cell { color: var(--heading); font-weight: 600; }

/* —— Pricing —— */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pricing-card:hover { border-color: var(--border-strong); }

.pricing-card.pro {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent-muted);
    background: var(--pricing-pro-bg);
    position: relative;
}

.pricing-card.go {
    border-color: var(--accent-blue);
    background: var(--pricing-go-bg);
}

.popular-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-row { margin-bottom: 20px; }
.tier-label { font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; letter-spacing: 0.06em; color: var(--text-tertiary); }
.price-main { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--heading); letter-spacing: -0.03em; }
.price-sub { font-size: 0.875rem; color: var(--text-tertiary); margin-top: 4px; }
.pricing-desc { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 16px; line-height: 1.5; min-height: 42px; }

.buy-btn {
    display: block;
    text-align: center;
    padding: 11px 16px;
    border-radius: var(--radius-sm);
    background: var(--heading);
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
    font-family: inherit;
}

.buy-btn:hover { opacity: 0.9; transform: none; box-shadow: none; }

.pro .buy-btn:not(.secondary) {
    background: var(--accent);
    color: #fff;
}

.free .buy-btn {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--heading);
}

.go .buy-btn {
    background: var(--accent-blue);
    color: #fff;
    border: none;
}

.quota-card {
    border-color: var(--accent) !important;
    background: var(--accent-muted) !important;
}

.quota-card .price-main { color: var(--accent); }

.priority-box {
    margin-top: 40px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.priority-box h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--heading);
    font-weight: 600;
}

.priority-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.priority-item {
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    padding: 20px;
    flex: 1;
    min-width: 180px;
    border: 1px solid var(--border);
}

.priority-item h4 { font-size: 1rem; margin-bottom: 8px; font-weight: 600; }
.priority-item.free h4 { color: var(--text-secondary); }
.priority-item.paid h4 { color: var(--accent); }

.badge-speed {
    display: inline-block;
    background: var(--accent-muted);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 10px;
    color: var(--accent);
}

.badge-speed.fast { background: rgba(34, 197, 94, 0.12); color: var(--success); }
.badge-speed.medium { background: rgba(234, 179, 8, 0.12); color: var(--warn); }

.checkout-note {
    text-align: center;
    margin-top: 32px;
    color: var(--text-tertiary);
    font-size: 0.875rem;
}

.cta-banner {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto 120px;
    padding: 40px 32px;
    text-align: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}

.cta-banner h2 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--heading);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
}

.cta-banner p {
    color: var(--text-secondary);
    margin: 0 0 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.faq-accordion { grid-template-columns: 1fr; max-width: 880px; margin: 0 auto; }

.faq-item--accordion { padding: 0; overflow: hidden; }

.faq-item--accordion h3 {
    cursor: pointer;
    padding: 18px 20px;
    margin: 0;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: background 0.15s ease;
}

.faq-item--accordion h3::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-top: 4px;
}

.faq-item--accordion.is-open h3::after { transform: rotate(180deg); }

.faq-item--accordion h3:hover { background: rgba(139, 92, 246, 0.06); }

.faq-item--accordion .faq-panel {
    padding: 0 20px 18px 20px;
    border-top: 1px solid var(--border);
}

.faq-item--accordion .faq-panel p { padding-top: 12px; }

.demo-mode-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto 20px;
    max-width: 520px;
}

.demo-mode-tab {
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.demo-mode-tab:hover { border-color: var(--border-strong); color: var(--text); }

.demo-mode-tab.is-active {
    background: var(--accent-muted);
    border-color: var(--accent);
    color: var(--heading);
}

.demo-disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    max-width: 640px;
    margin: 16px auto 0;
    line-height: 1.5;
}

.demo-scenario { display: none; }
.demo-scenario.is-active { display: block; }

.msg-attachment {
    margin-top: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
    max-width: 280px;
    background: var(--bg-muted);
}

.msg-attachment-thumb {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 100%);
}

.msg-attachment-label {
    display: block;
    padding: 6px 10px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.footer-compare-list a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.perm-screenshot {
    width: 100%;
    max-width: 420px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin: 20px 0;
    display: block;
}

.use-case-grid {
    display: grid;
    gap: 24px;
}

.use-case-card {
    scroll-margin-top: 100px;
    padding: 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.use-case-card h2 {
    font-size: 1.35rem;
    color: var(--heading);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.use-case-card h2 i { color: var(--accent); }

.docs-cmd-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.9rem;
}

.docs-cmd-table th,
.docs-cmd-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.docs-cmd-table th {
    color: var(--heading);
    font-weight: 600;
    background: var(--table-head-bg);
}

.docs-cmd-table code {
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--accent);
}

.faq-item {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.faq-item h3 {
    margin-top: 0;
    font-size: 1rem;
    color: var(--heading);
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
}

.faq-item h3 i { color: var(--accent); margin-top: 2px; }
.faq-item p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }
.faq-link { color: var(--accent-blue); text-decoration: none; font-weight: 500; }
.faq-link:hover { text-decoration: underline; }

.bottom-bar {
    position: relative;
    width: 100%;
    background: var(--footer-bg);
    border-top: 1px solid var(--border);
    padding: 64px 5% 32px;
    margin-top: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-watermark {
    position: absolute;
    left: 50%;
    bottom: -0.08em;
    transform: translateX(-50%);
    font-size: clamp(7rem, 16vw, 13rem);
    font-weight: 800;
    letter-spacing: 0.28em;
    line-height: 1;
    color: var(--heading);
    opacity: 0.045;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    white-space: nowrap;
}

[data-theme="light"] .footer-watermark {
    opacity: 0.07;
}

.footer-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(220px, 1.55fr) repeat(4, minmax(0, 1fr));
    gap: 40px 28px;
    align-items: start;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom .copyright {
    margin: 0;
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.footer-brand { max-width: 300px; }

.social-links { display: flex; gap: 10px; margin-top: 20px; }

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border);
    transition: color 0.15s, border-color 0.15s;
}

.social-icon:hover {
    color: var(--heading);
    border-color: var(--border-strong);
    transform: none;
}

.footer-group h4 {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.footer-list a:hover { color: var(--heading); }

.copyright {
    color: var(--text-tertiary);
    font-size: 0.8125rem;
}

.compare-mee6-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--heading);
    text-decoration: none;
    font-size: 0.875rem;
    transition: border-color 0.15s, background 0.15s;
}

.compare-mee6-btn:hover {
    background: var(--accent-muted);
    border-color: var(--accent);
    transform: none;
    box-shadow: none;
}

code {
    background: var(--bg-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--heading);
}

.price-main .unit { font-size: 1rem; font-weight: 500; color: var(--text-tertiary); }

.plan-features {
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.plan-features > div {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.plan-features .ok { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.plan-features .no { color: var(--danger); opacity: 0.8; flex-shrink: 0; margin-top: 2px; }

.pro .tier-label.pro-label { color: var(--accent); }
.pro .plan-features .ok { color: var(--accent); }

.quota-wrap {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.quota-wrap .quota-card {
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.quota-wrap .buy-btn {
    background: var(--accent);
    color: #fff;
}

.priority-item p.note {
    font-size: 0.8125rem;
    margin-top: 12px;
    color: var(--text-tertiary);
}

.priority-foot {
    margin-top: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-icon.accent { color: var(--accent); }
.feature-icon.warn { color: var(--warn); }

.footer-brand .nav-logo { font-size: 1.15rem; }
.footer-brand > p { color: var(--text-secondary); margin: 12px 0 0; font-size: 0.9rem; line-height: 1.6; }

@media (max-width: 1100px) {
    .pricing-container { grid-template-columns: repeat(2, 1fr); max-width: 700px; }
}

@media (max-width: 1000px) {
    .nav-links, .nav-actions .nav-cta { display: none; }
    .mobile-nav-toggle { display: flex; }
    .intro-grid, .flow-grid, .features-grid, .deep-dive-grid, .faq-grid { grid-template-columns: 1fr; }
    .demo-workspace { grid-template-columns: 1fr; }
    .bottom-bar {
        padding-left: 6%;
        padding-right: 6%;
    }

    .footer-watermark {
        font-size: clamp(4.5rem, 22vw, 7rem);
        letter-spacing: 0.18em;
        bottom: 0;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
        justify-items: center;
    }

    .footer-group {
        width: 100%;
        max-width: 360px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-brand { max-width: 100%; }
    .footer-brand .nav-logo { justify-content: center; }
    .footer-brand p { margin-left: auto; margin-right: auto; }
    .social-links { justify-content: center; width: 100%; }
    .footer-list { padding: 0; }
    .priority-grid { flex-direction: column; align-items: stretch; }
    .discord-msg.reportable-hint::after { display: none; }
    [data-theme="light"] .hero-wrap::after {
        width: min(92vw, 860px);
        height: min(96vh, 800px);
        top: -120px;
        right: -470px;
        opacity: 0.58;
    }
}

@media (max-width: 700px) {
    .pricing-container { grid-template-columns: 1fr; }
    section { margin-bottom: 88px; }
    [data-theme="light"] .hero-wrap::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    [data-theme="light"] .hero-wrap::before,
    [data-theme="light"] .hero-wrap::after {
        animation: none;
    }
}
