/* ─────────────────────────────────────────────────────────────
   sec — Landing Page Stylesheet
   Apple-grade design inspired by CopyCat & Notch Buddy
   ───────────────────────────────────────────────────────────── */

:root {
    --bg: #faf9f6;
    --bg-alt: #f4f2ed;
    --card: #ffffff;
    --card-hover: #ffffff;
    --card-subtle: #f5f5f7;
    --text: #121316;
    --text-muted: #5e626e;
    --text-faint: #8a8f9d;
    --border: rgba(0, 0, 0, 0.07);
    --border-strong: rgba(0, 0, 0, 0.12);
    
    /* Apple & Security Accents */
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-subtle: rgba(0, 113, 227, 0.08);
    --emerald: #10b981;
    --emerald-dark: #059669;
    --amber: #f59e0b;
    --navy-dark: #0f172a;
    
    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 999px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 32px rgba(18, 19, 22, 0.06);
    --shadow-lg: 0 24px 60px rgba(18, 19, 22, 0.09);
}

[data-theme="dark"] {
    --bg: #090a0f;
    --bg-alt: #10121a;
    --card: #151824;
    --card-hover: #1a1e2d;
    --card-subtle: #131622;
    --text: #f0f3f8;
    --text-muted: #9ba3b5;
    --text-faint: #62697b;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.15);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* ── Container & Typography ─────────────────────────────────── */
.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

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

h1, h2, h3, h4 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    color: var(--text);
    letter-spacing: -0.025em;
    font-weight: 600;
}

h1 {
    font-size: clamp(34px, 5.5vw, 58px);
    line-height: 1.08;
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(26px, 3.8vw, 40px);
    line-height: 1.15;
    margin-bottom: 12px;
}

h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
}

p.sub {
    font-size: clamp(16px, 2.2vw, 19px);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto 32px;
    line-height: 1.55;
}

.section-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.eyebrow {
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(250, 249, 246, 0.82);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease;
}

[data-theme="dark"] nav {
    background: rgba(9, 10, 15, 0.82);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-brand img {
    width: 28px;
    height: 28px;
    border-radius: 0;
}

.nav-version {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--accent-subtle);
    color: var(--accent);
    border: 1px solid rgba(0, 113, 227, 0.2);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.nav-links a {
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
    white-space: nowrap;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    background: var(--card-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s;
}

.btn-github:hover {
    border-color: var(--border-strong);
    background: var(--card);
}

.btn-nav-install {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff !important;
    background: var(--accent);
    border-radius: var(--radius-full);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
}

.btn-nav-install:hover {
    background: var(--accent-hover);
    transform: translateY(-0.5px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--card-subtle);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    border-color: var(--border-strong);
    color: var(--text);
    background: var(--card);
    transform: scale(1.05);
}

.theme-toggle-btn svg {
    display: block;
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

/* Light mode (default): show moon icon to switch to dark */
.theme-toggle-btn .icon-sun {
    display: none;
}
.theme-toggle-btn .icon-moon {
    display: block;
}

/* Dark mode: show sun icon to switch to light */
[data-theme="dark"] .theme-toggle-btn .icon-sun {
    display: block;
    color: #fbbf24;
}
[data-theme="dark"] .theme-toggle-btn .icon-moon {
    display: none;
}

/* ── Mobile Menu & Drawer ───────────────────────────────────── */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--card-subtle);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    border-color: var(--border-strong);
    background: var(--card);
}

.mobile-menu-btn .icon-close {
    display: none;
}

.mobile-menu-btn.active .icon-menu {
    display: none;
}

.mobile-menu-btn.active .icon-close {
    display: block;
}

.mobile-drawer {
    display: none;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-strong);
    padding: 14px 20px 20px;
}

[data-theme="dark"] .mobile-drawer {
    background: rgba(9, 10, 15, 0.98);
}

.mobile-drawer.open {
    display: block;
    animation: drawerSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.mobile-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-drawer-links a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}

.mobile-drawer-links a:hover {
    background: var(--accent-subtle);
    color: var(--accent);
}

.mobile-drawer-actions {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-mobile-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: var(--accent);
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.28);
}

.btn-mobile-github {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    background: var(--card-subtle);
    border: 1px solid var(--border);
    color: var(--text) !important;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-md);
    text-decoration: none;
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .btn-github { display: none; }
    .mobile-menu-btn { display: inline-flex; }
    .btn-nav-install { padding: 6px 12px; font-size: 12.5px; }
}

@media (max-width: 480px) {
    .nav-inner { padding: 0 14px; }
    .nav-brand span:first-of-type { font-size: 15px; }
    .nav-version { display: none; }
    .btn-nav-install { font-size: 11.5px; padding: 5px 9px; }
}

/* ── Hero Section ───────────────────────────────────────────── */
.hero {
    padding: 80px 24px 48px;
    text-align: center;
    position: relative;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(0, 113, 227, 0.12) 0%, rgba(250, 249, 246, 0) 70%),
        radial-gradient(60% 40% at 50% 20%, rgba(16, 185, 129, 0.08) 0%, rgba(250, 249, 246, 0) 60%);
}

[data-theme="dark"] .hero {
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(0, 113, 227, 0.2) 0%, rgba(9, 10, 15, 0) 70%),
        radial-gradient(60% 40% at 50% 20%, rgba(16, 185, 129, 0.12) 0%, rgba(9, 10, 15, 0) 60%);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: var(--card);
    border: 1px solid var(--border-strong);
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.desktop-br {
    display: inline;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-icon-wrap {
    margin-bottom: 24px;
}

.hero-icon {
    width: 104px;
    height: 104px;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-icon:hover {
    transform: scale(1.04) rotate(-1deg);
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-width: 520px;
    margin: 0 auto;
}

.hero-cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14.5px;
    font-weight: 600;
    color: #ffffff !important;
    background: var(--accent);
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.28);
    transition: all 0.2s ease;
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 113, 227, 0.38);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text) !important;
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
    border-color: var(--text-muted);
    background: var(--card-hover);
    transform: translateY(-1px);
}

/* Hero Install Method Switcher & Command Pills */
.hero-install-switcher {
    width: 100%;
    max-width: 540px;
    margin: 4px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.install-tabs {
    display: inline-flex;
    align-items: center;
    background: var(--card-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 3px;
}

[data-theme="dark"] .install-tabs {
    background: #0f1422;
    border-color: rgba(255, 255, 255, 0.08);
}

.install-tab-btn {
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    padding: 5px 13px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.install-tab-btn:hover {
    color: var(--text);
}

.install-tab-btn.active {
    background: var(--card);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

[data-theme="dark"] .install-tab-btn.active {
    background: #1e293b;
    color: #f1f5f9;
}

.install-tab-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

[data-theme="dark"] .install-tab-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.install-tab-pane {
    width: 100%;
}

.install-helper-text {
    font-size: 12px;
    color: var(--text-faint);
    margin-top: 6px;
    text-align: center;
}

.install-helper-text code {
    font-family: "SF Mono", monospace;
    font-size: 11px;
    background: var(--card-subtle);
    padding: 1px 5px;
    border-radius: 4px;
    color: var(--text-muted);
}

/* 1-Click Install Command Pill */
.install-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 6px 8px 6px 18px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.install-pill:hover {
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: 0 12px 36px rgba(14, 165, 233, 0.2);
}

.install-pill code {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 13px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: all;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}

.install-pill code::-webkit-scrollbar {
    display: none;
}

.install-pill .prefix {
    color: #38bdf8;
    font-weight: 600;
    flex-shrink: 0;
}

.copy-btn {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #334155;
    color: #ffffff;
}

.copy-btn.copied {
    background: var(--emerald-dark);
    color: #ffffff;
    border-color: var(--emerald);
}

.hero-meta {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 18px;
    font-size: 13px;
    color: var(--text-faint);
}

.hero-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ── Hero Showcase Container ────────────────────────────────── */
.hero-showcase {
    max-width: 900px;
    margin: 40px auto 0;
    padding: 0 12px;
}

/* ── Sections ───────────────────────────────────────────────── */
section {
    padding: 84px 0;
}

section.tinted {
    background-color: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ── Threat Model Section ───────────────────────────────────── */
.threat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-top: 36px;
}

.threat-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: left;
}

.threat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-subtle);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 20px;
}

.card-icon.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.card-icon.amber { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.card-icon.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.threat-card h3 {
    margin-bottom: 10px;
}

.threat-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── How It Works (3 Steps Grid) ────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 20px;
    margin-top: 40px;
    text-align: left;
}

.step-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 34px 28px;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.step-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-number {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-subtle);
    border-radius: 999px;
    padding: 4px 12px;
    display: inline-block;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-snippet {
    margin-top: 18px;
    background: #0f172a;
    border-radius: 8px;
    padding: 10px 14px;
    font-family: "SF Mono", monospace;
    font-size: 12.5px;
    color: #e2e8f0;
}

/* ── Before vs. After Matrix ────────────────────────────────── */
.table-scroll-hint {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin: 18px 0 10px;
}

.table-scroll-hint svg {
    color: var(--accent);
}

.comparison-wrap {
    margin-top: 36px;
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, 
.comparison-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}

.comparison-table th {
    font-weight: 600;
    background: var(--card-subtle);
    font-size: 13.5px;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.col-threat { font-weight: 600; color: var(--text); width: 28%; }
.col-without { color: #dc2626; width: 36%; background: rgba(239, 68, 68, 0.02); }
.col-with { color: #059669; width: 36%; font-weight: 500; background: rgba(16, 185, 129, 0.03); }

/* Mobile Comparison Cards */
.comparison-mobile-cards {
    display: none;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.cmp-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    text-align: left;
}

.cmp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--card-subtle);
    border-bottom: 1px solid var(--border);
}

.cmp-icon,
.cmp-threat-icon {
    font-size: 16px;
    line-height: 1;
}

.cmp-header h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
}

.cmp-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cmp-row {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.cmp-row p {
    margin: 6px 0 0 0;
}

.cmp-row code {
    font-family: "SF Mono", monospace;
    font-size: 11.5px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.08);
}
[data-theme="dark"] .cmp-row code {
    background: rgba(255, 255, 255, 0.1);
}

.cmp-row.without {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--text);
}

.cmp-row.with {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--text);
}

.cmp-badge-bad {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cmp-badge-good {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ── Features 3x3 Grid ──────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 18px;
    margin-top: 40px;
    text-align: left;
}

.feature-box {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.feature-box:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-box i, .feature-box svg {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--accent);
    display: block;
}

.feature-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Tech Stacks Marquee Strip ──────────────────────────────── */
.stacks-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.stack-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

/* ── Finder Spotlight Banner ────────────────────────────────── */
.finder-banner {
    background: var(--card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 48px 40px;
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

@media (max-width: 800px) {
    .finder-banner {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }
}

.finder-banner-text { text-align: left; }
.finder-banner-text h2 { margin-bottom: 14px; }
.finder-banner-text p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }

.finder-checklist {
    list-style: none;
    margin-bottom: 24px;
}

.finder-checklist li {
    font-size: 14.5px;
    color: var(--text);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.finder-checklist li:last-child { border-bottom: none; }
.finder-checklist li::before {
    content: "✓";
    color: var(--accent);
    font-weight: 700;
}

/* ── Interactive CLI Cheatsheet ─────────────────────────────── */
.cheatsheet-wrap {
    margin-top: 36px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.cheat-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.cheat-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 16px;
    font-family: "SF Mono", monospace;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.cheat-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.cheat-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.cheat-display {
    background: #0d1117;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 24px;
    text-align: left;
    font-family: "SF Mono", monospace;
    font-size: 13.5px;
    line-height: 1.65;
    color: #c9d1d9;
    box-shadow: var(--shadow-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.cheat-panel { display: none; }
.cheat-panel.active { display: block; }

/* ── Section: Pricing ───────────────────────────────────────── */
.pricing-wrap {
    max-width: 760px;
    margin: 40px auto 0;
}

.pricing-card {
    background: var(--card);
    border-radius: 24px;
    border: 1px solid var(--border-strong);
    padding: 44px 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .pricing-card:hover {
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

.pricing-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, #0071e3, #10b981);
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: var(--accent-subtle);
    color: var(--accent);
    margin-bottom: 20px;
    border: 1px solid rgba(0, 113, 227, 0.2);
}

.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.pricing-plan-info h3 {
    font-size: 26px;
    margin-bottom: 6px;
}

.pricing-plan-info p {
    font-size: 14.5px;
    color: var(--text-muted);
    max-width: 360px;
}

.pricing-price-wrap {
    text-align: right;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 4px;
}

.pricing-currency {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
}

.pricing-num {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1;
}

.pricing-term {
    font-size: 13px;
    font-weight: 600;
    color: var(--emerald-dark);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[data-theme="dark"] .pricing-term {
    color: var(--emerald);
}

.pricing-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    margin: 32px 0;
    list-style: none;
}

.pricing-features-grid li {
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.pricing-features-grid li svg {
    flex-shrink: 0;
    color: #10b981;
    margin-top: 2px;
}

.pricing-cta-wrap {
    margin-top: 32px;
    text-align: center;
}

.btn-pricing-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 28px;
    background: var(--accent);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-pricing-buy:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(0, 113, 227, 0.42);
}

.pricing-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px 18px;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-faint);
    flex-wrap: wrap;
}

.pricing-trust-strip .trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pricing-why-box {
    margin-top: 24px;
    background: var(--card-subtle);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    text-align: left;
}

.pricing-why-box svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-why-box h4 {
    font-size: 14.5px;
    margin-bottom: 4px;
}

.pricing-why-box p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

@media (max-width: 640px) {
    /* Section & Container spacing */
    section {
        padding: 50px 0;
    }
    .container {
        padding: 0 16px;
    }

    /* Typography */
    h1 {
        font-size: clamp(26px, 7.5vw, 34px);
        line-height: 1.15;
        margin-bottom: 16px;
    }
    h2 {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.2;
    }
    p.sub {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 24px;
    }
    .section-sub {
        font-size: 14px;
        margin-bottom: 28px;
    }
    .desktop-br {
        display: none;
    }

    /* Hero */
    .hero {
        padding: 44px 16px 36px;
    }
    .hero-pill {
        border-radius: 12px;
        font-size: 11.5px;
        padding: 7px 12px;
        line-height: 1.4;
        text-align: left;
        align-items: flex-start;
        margin-bottom: 20px;
    }
    .hero-pill .pulse-dot {
        margin-top: 4px;
        flex-shrink: 0;
    }
    .hero-icon {
        width: 80px;
        height: 80px;
        border-radius: 0;
    }
    .hero-cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        padding: 13px 20px;
        font-size: 14px;
    }
    .hero-meta {
        gap: 8px 14px;
        font-size: 12px;
    }

    .hero-showcase {
        margin: 28px auto 0;
        padding: 0;
    }

    /* Mobile Comparison Cards */
    .table-scroll-hint {
        display: none !important;
    }
    .comparison-desktop {
        display: none !important;
    }
    .comparison-mobile-cards {
        display: flex;
    }

    /* Interactive CLI Cheatsheet */
    .cheat-buttons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .cheat-buttons::-webkit-scrollbar {
        display: none;
    }
    .cheat-btn {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 12px;
    }
    .cheat-display {
        font-size: 11.5px;
        padding: 16px 14px;
        line-height: 1.6;
    }

    /* Pricing Section */
    .pricing-card {
        padding: 28px 18px;
        border-radius: 18px;
    }
    .pricing-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .pricing-price-wrap {
        text-align: left;
    }
    .pricing-amount {
        justify-content: flex-start;
    }
    .pricing-num {
        font-size: 42px;
    }
    .pricing-features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin: 24px 0;
    }
    .pricing-why-box {
        flex-direction: column;
        padding: 16px;
        gap: 10px;
    }
    .pricing-trust-strip {
        gap: 8px 14px;
        font-size: 12px;
    }

    /* Finder banner & install callout */
    .finder-banner {
        padding: 24px 16px;
        gap: 24px;
        border-radius: 18px;
    }
    .install-callout {
        padding: 36px 16px;
        border-radius: 20px;
    }
    .install-pill {
        padding: 5px 6px 5px 12px;
    }
    .install-pill code {
        font-size: 12px;
    }
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-list {
    max-width: 720px;
    margin: 36px auto 0;
    text-align: left;
}

details {
    background: var(--card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 18px 22px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

details[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

summary {
    font-size: 15.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text);
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s;
}

details[open] summary::after {
    content: "–";
}

details p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ── Bottom Install Callout ─────────────────────────────────── */
.install-callout {
    background: var(--card);
    border-radius: 28px;
    border: 1px solid var(--border);
    padding: 60px 32px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.install-callout::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #0071e3, #10b981);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
    border-top: 1px solid var(--border);
    padding: 44px 24px 60px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    background: var(--bg);
}

footer p + p { margin-top: 8px; }
footer a { color: var(--text); text-decoration: none; font-weight: 500; }
footer a:hover { text-decoration: underline; }

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ── Secret Manager Showcase Section ────────────────────────── */
.secpro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
    gap: 22px;
    margin-top: 42px;
    text-align: left;
}

.secpro-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.secpro-card:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.secpro-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.secpro-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.secpro-icon-wrap.radar { background: rgba(56, 189, 248, 0.12); color: #0284c7; }
.secpro-icon-wrap.runner { background: rgba(16, 185, 129, 0.12); color: #059669; }
.secpro-icon-wrap.scanner { background: rgba(168, 85, 247, 0.12); color: #7c3aed; }
.secpro-icon-wrap.inspector { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.secpro-icon-wrap.session { background: rgba(236, 72, 153, 0.12); color: #db2777; }
.secpro-icon-wrap.menubar { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }

[data-theme="dark"] .secpro-icon-wrap.radar { color: #38bdf8; }
[data-theme="dark"] .secpro-icon-wrap.runner { color: #34d399; }
[data-theme="dark"] .secpro-icon-wrap.scanner { color: #c084fc; }
[data-theme="dark"] .secpro-icon-wrap.inspector { color: #fbbf24; }
[data-theme="dark"] .secpro-icon-wrap.session { color: #f472b6; }
[data-theme="dark"] .secpro-icon-wrap.menubar { color: #818cf8; }

.secpro-badge-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: var(--card-subtle);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.secpro-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text);
}

.secpro-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.secpro-features-list,
.bento-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.secpro-features-list li,
.bento-features-list li {
    font-size: 12.5px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.secpro-features-list li svg,
.bento-features-list li svg {
    color: #10b981;
    flex-shrink: 0;
}

/* ── Unified Bento Grid (Apple-style Features) ─────────────── */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 44px;
    text-align: left;
}

.bento-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}

.bento-wide {
    grid-column: span 2;
}

.bento-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.bento-card p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-wide {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-wide {
        grid-column: span 1;
    }
}

/* ── Minimal Developer CLI Box ──────────────────────────────── */
.cli-quick-box {
    max-width: 780px;
    margin: 40px auto 0;
    background: #0d1117;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.cli-quick-content {
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 13.5px;
    line-height: 1.5;
}

.cli-snippet-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cli-line {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.t-prompt {
    color: #10b981;
    font-weight: 600;
    user-select: none;
}

.t-cmd {
    color: #f1f5f9;
    font-weight: 500;
}

.t-comment {
    color: #8b949e;
    font-size: 12.5px;
}

/* ── Interactive CLI Command Reference Explorer ───────────── */
.cli-explorer-wrap {
    max-width: 920px;
    margin: 52px auto 0;
    text-align: left;
}

.cli-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.cli-category-tabs-wrap {
    position: relative;
    min-width: 0;
}

.cli-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cli-tab-btn {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 7px 15px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

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

.cli-tab-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.cli-tab-count {
    background: rgba(0, 0, 0, 0.07);
    color: inherit;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 999px;
}

.cli-tab-btn.active .cli-tab-count {
    background: rgba(255, 255, 255, 0.25);
}

[data-theme="dark"] .cli-tab-btn.active .cli-tab-count {
    background: rgba(0, 0, 0, 0.35);
}

.cli-search-wrap {
    position: relative;
    min-width: 250px;
    max-width: 320px;
    flex-grow: 1;
}

.cli-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-faint);
    pointer-events: none;
}

.cli-search-input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-full);
    padding: 8px 36px 8px 36px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    -webkit-appearance: none;
}

.cli-search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

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

.cli-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.cli-search-clear:hover {
    color: var(--text);
    background: var(--card-subtle);
}

.cli-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: var(--text-faint);
    margin-bottom: 16px;
    padding: 0 4px;
}

.cli-docs-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.cli-docs-link:hover {
    text-decoration: underline;
}

/* Command Cards List */
.cli-command-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 14px;
    box-sizing: border-box;
}

.cli-cmd-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.cli-cmd-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.cli-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.cli-card-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.cli-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cli-cmd-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}

.badge-core {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
[data-theme="dark"] .badge-core {
    color: #34d399;
}

.badge-discovery {
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
}
[data-theme="dark"] .badge-discovery {
    color: #38bdf8;
}

.badge-backup {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}
[data-theme="dark"] .badge-backup {
    color: #fbbf24;
}

.badge-security {
    background: rgba(168, 85, 247, 0.12);
    color: #7c3aed;
}
[data-theme="dark"] .badge-security {
    color: #c084fc;
}

.cli-cmd-syntax {
    font-family: "SF Mono", "Menlo", "Consolas", monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cli-cmd-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.cli-cmd-desc code {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cli-flags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.cli-flag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    max-width: 100%;
    min-width: 0;
}

.cli-flag-tag {
    font-family: "SF Mono", monospace;
    font-size: 11.5px;
    background: var(--card-subtle);
    border: 1px solid var(--border);
    padding: 2px 7px;
    border-radius: 6px;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.cli-flag-hint {
    color: var(--text-faint);
    font-size: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.cli-card-example {
    background: #0d1117;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 9px 14px;
    font-family: "SF Mono", monospace;
    font-size: 13px;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    user-select: text;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.cli-card-example:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: #111722;
}

.cli-card-example.copied {
    border-color: #10b981;
    background: #092015;
}

.cli-card-example svg {
    flex-shrink: 0;
}

.cli-example-code {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    min-width: 0;
}

.cli-empty-state {
    display: none;
    padding: 44px 24px;
    text-align: center;
    background: var(--card);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 14px;
}

.cli-empty-state svg {
    margin-bottom: 10px;
    color: var(--text-faint);
}

.cli-btn-reset {
    margin-top: 12px;
    background: var(--card-subtle);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    color: var(--text);
    font-size: 12.5px;
    cursor: pointer;
}

.cli-accordion-chevron {
    display: none;
}

.cli-toggle-all-btn {
    display: none;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

.cli-toggle-all-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--card-hover);
}

.cli-meta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Mobile-Friendly Responsive CLI Accordion & Documentation ── */
@media (max-width: 768px) {
    .cli-quick-box {
        margin: 28px auto 0;
        border-radius: var(--radius-md);
    }

    .cli-quick-content {
        padding: 18px 16px;
        gap: 14px;
        font-size: 12.5px;
    }

    .cli-line {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .t-comment {
        font-size: 11.5px;
    }

    .stacks-strip {
        gap: 8px;
        margin-top: 20px;
    }

    .stack-chip {
        padding: 6px 12px;
        font-size: 12px;
    }

    .cli-explorer-wrap {
        margin-top: 36px;
    }

    .cli-filter-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 14px;
    }

    .cli-search-wrap {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .cli-search-input {
        padding: 10px 36px 10px 38px;
        font-size: 13.5px;
        border-radius: var(--radius-sm);
    }

    .cli-search-icon {
        left: 13px;
        width: 16px;
        height: 16px;
    }

    /* Category horizontal scroll rail */
    .cli-category-tabs-wrap {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .cli-category-tabs {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 2px 8px;
        margin: 0;
    }

    .cli-category-tabs::-webkit-scrollbar {
        display: none;
    }

    .cli-tab-btn {
        flex-shrink: 0;
        padding: 8px 14px;
        font-size: 13px;
        min-height: 38px;
        border-radius: var(--radius-full);
    }

    .cli-meta-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 14px;
        font-size: 12px;
        padding: 0 2px;
    }

    .cli-toggle-all-btn {
        display: inline-flex;
        padding: 5px 12px;
        font-size: 12px;
        border-radius: var(--radius-full);
    }

    .cli-meta-actions {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    /* ── Collapsible Accordion Cards on Mobile ── */
    .cli-command-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .cli-cmd-card {
        padding: 14px 16px;
        border-radius: 14px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
        box-sizing: border-box;
    }

    .cli-card-header {
        cursor: pointer;
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 0;
        padding: 2px 0;
        min-height: 44px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        -webkit-tap-highlight-color: transparent;
    }

    .cli-card-title-group {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .cli-cmd-badge {
        font-size: 10.5px;
        padding: 2.5px 7px;
        flex-shrink: 0;
    }

    .cli-cmd-syntax {
        font-size: 13.5px;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .cli-card-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .cli-card-actions .copy-btn {
        padding: 6px 11px;
        font-size: 12px;
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        border-radius: 8px;
        -webkit-tap-highlight-color: transparent;
    }

    .cli-accordion-chevron {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        border-radius: 50%;
        background: var(--card-subtle);
        color: var(--text-muted);
        flex-shrink: 0;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
    }

    /* Expanded State */
    .cli-cmd-card.expanded {
        border-color: rgba(0, 113, 227, 0.45);
        box-shadow: 0 4px 18px rgba(0, 113, 227, 0.08);
    }

    [data-theme="dark"] .cli-cmd-card.expanded {
        border-color: rgba(56, 189, 248, 0.45);
        box-shadow: 0 4px 18px rgba(14, 165, 233, 0.12);
    }

    .cli-cmd-card.expanded .cli-card-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--border);
    }

    .cli-cmd-card.expanded .cli-accordion-chevron {
        transform: rotate(180deg);
        background: var(--accent-subtle);
        color: var(--accent);
    }

    /* Hide Body Elements When Collapsed on Mobile */
    .cli-cmd-card:not(.expanded) .cli-cmd-desc,
    .cli-cmd-card:not(.expanded) .cli-flags-row,
    .cli-cmd-card:not(.expanded) .cli-card-example {
        display: none !important;
    }

    /* Show Body Elements When Expanded */
    .cli-cmd-card.expanded .cli-cmd-desc {
        display: block;
        font-size: 13.5px;
        line-height: 1.55;
        margin-bottom: 12px;
        word-break: break-word;
        overflow-wrap: anywhere;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        animation: cliFadeIn 0.2s ease-out;
    }

    .cli-cmd-card.expanded .cli-flags-row {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 12px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        animation: cliFadeIn 0.2s ease-out;
    }

    .cli-flag-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        background: var(--card-subtle);
        padding: 8px 10px;
        border-radius: 8px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .cli-flag-tag {
        font-size: 11.5px;
        font-weight: 600;
        color: var(--accent);
        background: transparent;
        border: none;
        padding: 0;
        word-break: break-word;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .cli-flag-hint {
        font-size: 12px;
        color: var(--text-muted);
        word-break: break-word;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    .cli-cmd-card.expanded .cli-card-example {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        padding: 10px 12px;
        gap: 8px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        border-radius: 8px;
        box-sizing: border-box;
        overflow: hidden;
        animation: cliFadeIn 0.2s ease-out;
    }

    .cli-example-code {
        flex: 1;
        min-width: 0;
        max-width: 100%;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 2px 6px;
        white-space: normal;
        word-break: break-word;
        overflow-wrap: anywhere;
        font-size: 12.5px;
        line-height: 1.45;
        box-sizing: border-box;
    }

    .cli-example-code .t-prompt {
        color: #38bdf8;
        font-weight: 600;
        flex-shrink: 0;
    }

    .cli-example-code .t-cmd {
        color: #f1f5f9;
        font-weight: 500;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .cli-example-code .t-comment {
        width: 100%;
        color: #8b949e;
        font-size: 11.5px;
        line-height: 1.4;
        word-break: break-word;
        overflow-wrap: anywhere;
        margin-top: 3px;
        display: block;
    }

    .cli-card-example svg {
        flex-shrink: 0;
        margin-top: 2px;
    }

    @keyframes cliFadeIn {
        from {
            opacity: 0;
            transform: translateY(-4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (max-width: 640px) {
    /* Hero Installation Switcher on Mobile */
    .hero-install-switcher {
        width: 100%;
        max-width: 100%;
    }

    .install-tabs {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .install-tab-btn {
        flex: 1;
        justify-content: center;
        padding: 6px 8px;
        font-size: 11.5px;
    }

    .install-pill {
        padding: 5px 6px 5px 12px;
    }

    .install-pill code {
        font-size: 11px;
        gap: 6px;
    }

    .install-pill .copy-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    /* CLI Filter Bar & Tabs on Small Screens */
    .cli-tab-btn {
        padding: 7px 12px;
        font-size: 12.5px;
    }

    .cli-search-input {
        padding: 9px 36px 9px 36px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cli-cmd-card {
        padding: 12px 14px;
    }

    .cli-card-actions .copy-btn span {
        display: none; /* Icon-only on narrow phones to save space */
    }

    .cli-card-actions .copy-btn {
        padding: 6px 8px;
    }

    .cli-cmd-syntax {
        font-size: 13px;
    }

    .cli-accordion-chevron {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .cli-meta-bar {
        font-size: 11px;
    }

    .cli-toggle-all-btn {
        padding: 4px 10px;
        font-size: 11px;
    }

    .cli-docs-link {
        font-size: 11px;
    }
}



