/* ===========================================
   Glassmorphism Design System
   Developer Tool / Documentation Theme
   =========================================== */

/* CSS Variables */
:root {
    /* Colors - Dark Developer Theme */
    --color-bg-start: #0F172A;
    --color-bg-end: #1E293B;
    --color-primary: #3B82F6;
    --color-primary-light: #60A5FA;
    --color-secondary: #1E293B;
    --color-cta: #2563EB;
    --color-text: #F1F5F9;
    --color-text-muted: #94A3B8;
    --color-border: #334155;

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --blur-amount: 12px;

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --sidebar-width: 280px;
    --navbar-height: 72px;

    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg-start);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===========================================
   Animated Background
   =========================================== */

.bg-gradient {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, var(--color-bg-start) 0%, var(--color-bg-end) 50%, #0F172A 100%);
    z-index: -2;
}

.bg-orbs {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #3B82F6 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #8B5CF6 0%, transparent 70%);
    bottom: -150px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* ===========================================
   Glass Effect Classes
   =========================================== */

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-light {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===========================================
   Navigation
   =========================================== */

.navbar {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    height: var(--navbar-height);
    border-radius: 16px;
    z-index: 1000;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--color-text);
    transition: opacity var(--transition-fast);
}

.navbar-brand:hover {
    opacity: 0.9;
}

/* GitHub Avatar */
.brand-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    object-fit: cover;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.brand-name {
    color: var(--color-primary-light);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.25rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.25rem;
    border-radius: 8px;
    margin-right: 0.5rem;
}

.lang-btn {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.lang-btn.active {
    background: var(--color-primary);
    color: white;
}

.mobile-lang-switcher {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.mobile-lang-switcher .lang-btn {
    flex: 1;
    padding: 0.5rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-text);
    background: var(--glass-bg-hover);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: transparent;
    border-radius: 10px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.nav-btn:hover {
    background: var(--glass-bg-hover);
}

.nav-dropdown-content {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-normal);
}

.nav-dropdown:hover .nav-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

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

.nav-dropdown-content a svg {
    color: var(--color-primary);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: calc(var(--navbar-height) + 32px);
    left: 16px;
    right: 16px;
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 999;
    display: none;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-content h3 {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.mobile-menu-content a {
    display: block;
    padding: 0.75rem 0;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.mobile-menu-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 0;
}

/* ===========================================
   Layout
   =========================================== */

.main-container {
    display: flex;
    min-height: 100vh;
    padding-top: calc(var(--navbar-height) + 48px);
}

.main-container.three-column {
    --sidebar-right-width: 320px;
}

/* Left Sidebar */
.sidebar {
    position: fixed;
    top: calc(var(--navbar-height) + 48px);
    left: 16px;
    bottom: 16px;
    width: var(--sidebar-width);
    border-radius: 16px;
    overflow-y: auto;
    z-index: 100;
}

/* Right Sidebar */
.sidebar-right {
    position: fixed;
    top: calc(var(--navbar-height) + 48px);
    right: 16px;
    bottom: 16px;
    width: var(--sidebar-right-width);
    border-radius: 16px;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-right .install-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.sidebar-right .install-code {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.sidebar-right .install-code pre {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
}

.sidebar-right .install-code code {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    white-space: pre-wrap;
    word-break: break-all;
}

.sidebar-right .install-code .cmd {
    color: var(--color-primary-light);
}

.sidebar-right .install-code .comment {
    color: var(--color-text-muted);
    opacity: 0.7;
}

.sidebar-right .install-link {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.sidebar-right .install-link:hover {
    color: var(--color-primary-light);
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-heading {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 10px;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.sidebar-link:hover {
    background: var(--glass-bg-hover);
    color: var(--color-text);
}

.sidebar-link.active {
    background: var(--color-primary);
    color: white;
}

.sidebar-link svg {
    opacity: 0.7;
}

.sidebar-link.active svg {
    opacity: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: calc(var(--sidebar-width) + 32px);
    margin-right: 16px;
    margin-bottom: 16px;
    padding: 0 1rem;
    max-width: calc(100% - var(--sidebar-width) - 48px);
}

.content-card {
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 100%;
}

/* ===========================================
   Typography
   =========================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.3;
    scroll-margin-top: calc(var(--navbar-height) + 80px);
}

h1 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary-light);
}

h4 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

strong {
    font-weight: 600;
    color: var(--color-text);
}

/* Lists */
ul,
ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

li {
    margin-bottom: 0.5rem;
}

li::marker {
    color: var(--color-primary);
}

/* ===========================================
   Code Blocks
   =========================================== */

pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

pre code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    background: transparent;
    padding: 0;
    color: var(--color-text);
}

/* Inline code */
:not(pre)>code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ===========================================
   Tables
   =========================================== */

/* Table wrapper for responsive scrolling */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
}

/* When table is not wrapped */
article table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

th {
    background: rgba(59, 130, 246, 0.1);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: left;
    padding: 1rem 1.25rem;
    color: var(--color-primary-light);
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}

td {
    padding: 0.875rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    color: var(--color-text-muted);
    word-wrap: break-word;
}

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

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Mobile table adjustments */
@media (max-width: 768px) {
    table {
        min-width: 400px;
    }

    th,
    td {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    th {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    table {
        min-width: 320px;
    }

    th,
    td {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    th {
        font-size: 0.75rem;
    }
}

/* ===========================================
   Blockquotes
   =========================================== */

blockquote {
    border-left: 3px solid var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 12px 12px 0;
}

blockquote p {
    margin: 0;
    color: var(--color-text);
}

/* ===========================================
   Table of Contents (Tocbot)
   =========================================== */

.js-toc {
    font-size: 0.85rem;
}

.js-toc>.toc-list {
    padding-left: 0;
    list-style: none;
}

.js-toc .toc-list {
    padding-left: 1rem;
    list-style: none;
}

.js-toc .toc-list-item {
    margin: 0.4rem 0;
}

.js-toc .toc-link {
    display: block;
    padding: 0.3rem 0.75rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
}

.js-toc .toc-link:hover {
    color: var(--color-primary-light);
    border-left-color: var(--color-primary);
}

.js-toc .is-active-link {
    color: var(--color-primary-light);
    font-weight: 500;
    border-left-color: var(--color-primary);
}

/* ===========================================
   Loading State
   =========================================== */

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===========================================
   Footer
   =========================================== */

.footer {
    margin-left: calc(var(--sidebar-width) + 32px);
    margin-right: calc(var(--sidebar-right-width, 0px) + 32px);
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

.footer a:hover {
    color: var(--color-primary-light);
    text-decoration: none;
}

.footer .heart {
    color: #EF4444;
}

.footer-links {
    margin-top: 0.5rem;
}

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

.footer-links a:hover {
    color: var(--color-primary-light);
}

.footer-links .separator {
    margin: 0 0.75rem;
    opacity: 0.5;
}

/* ===========================================
   Alerts
   =========================================== */

.alert {
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1rem 0;
    border: 1px solid;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.alert h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #F87171;
}

/* ===========================================
   Responsive Design
   =========================================== */

/* Large screens - hide right sidebar */
@media (max-width: 1280px) {
    .sidebar-right {
        display: none;
    }

    .footer {
        margin-right: 16px;
    }
}

/* Medium screens - smaller left sidebar */
@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }

    .main-content {
        margin-left: calc(240px + 32px);
        max-width: calc(100% - 240px - 48px);
    }

    .footer {
        margin-left: calc(240px + 32px);
        margin-right: 16px;
    }

    .lang-switcher {
        display: none;
    }
}

/* Tablet screens - transition layout */
@media (max-width: 900px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: calc(200px + 24px);
        max-width: calc(100% - 200px - 40px);
    }

    .footer {
        margin-left: calc(200px + 24px);
    }

    .sidebar-content {
        padding: 1rem;
    }

    .content-card {
        padding: 2rem;
    }
}

/* Mobile screens */
@media (max-width: 768px) {
    :root {
        --navbar-height: 60px;
    }

    .navbar {
        top: 8px;
        left: 8px;
        right: 8px;
        height: var(--navbar-height);
    }

    .navbar-container {
        padding: 0 1rem;
    }

    .navbar-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .sidebar {
        display: none;
    }

    .main-container {
        padding-top: calc(var(--navbar-height) + 24px);
    }

    .main-content {
        margin-left: 8px;
        margin-right: 8px;
        max-width: 100%;
        padding: 0;
    }

    .content-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .footer {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem 1rem;
    }

    /* Typography adjustments */
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h2 {
        font-size: 1.2rem;
        margin-top: 2rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Code blocks - mobile optimized */
    pre {
        padding: 1rem;
        font-size: 0.75rem;
        border-radius: 10px;
        -webkit-overflow-scrolling: touch;
    }

    pre code {
        font-size: 0.75rem;
    }

    :not(pre)>code {
        font-size: 0.8em;
        padding: 0.15rem 0.4rem;
        word-wrap: break-word;
    }

    /* Mobile menu improvements */
    .mobile-menu {
        top: calc(var(--navbar-height) + 16px);
        left: 8px;
        right: 8px;
        max-height: calc(100vh - var(--navbar-height) - 32px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-menu-content a {
        padding: 1rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .mobile-lang-switcher .lang-btn {
        min-height: 44px;
        font-size: 0.9rem;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    .navbar {
        left: 4px;
        right: 4px;
    }

    .main-content {
        margin-left: 4px;
        margin-right: 4px;
    }

    .three-column .main-content {
        margin-left: 4px;
        margin-right: 4px;
    }

    .content-card {
        padding: 1rem;
        border-radius: 10px;
    }

    h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    pre {
        padding: 0.875rem;
        font-size: 0.7rem;
        margin: 1rem -0.5rem;
        border-radius: 8px;
    }

    .mobile-menu {
        left: 4px;
        right: 4px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {

    .sidebar-link,
    .nav-link,
    .lang-btn,
    .mobile-menu-content a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Disable hover effects on touch devices */
    .pain-point-card:hover {
        transform: none;
    }

    /* Better touch scrolling */
    .sidebar,
    .sidebar-right,
    .mobile-menu,
    pre {
        -webkit-overflow-scrolling: touch;
    }
}

/* ===========================================
   Marketing Section
   =========================================== */

.marketing-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.marketing-headline {
    margin-bottom: 1.5rem;
}

.marketing-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
    padding: 0;
    border: none;
    background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 50%, #F472B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.marketing-why {
    margin-bottom: 2rem;
}

.marketing-why p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin: 0;
}

.pain-points-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding: 0;
    border: none;
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.pain-point-card {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all var(--transition-fast);
}

.pain-point-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.pain-point-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 10px;
}

.pain-point-content {
    flex: 1;
    min-width: 0;
}

.pain-point-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.3;
}

.pain-point-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

/* Responsive adjustments for marketing section */
@media (max-width: 900px) {
    .pain-points-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
}

@media (max-width: 768px) {
    .marketing-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .marketing-headline {
        margin-bottom: 1rem;
    }

    .marketing-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    .marketing-why {
        margin-bottom: 1.5rem;
    }

    .marketing-why p {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .pain-points-title {
        font-size: 0.8rem;
        margin-bottom: 0.875rem;
    }

    .pain-points-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .pain-point-card {
        padding: 1rem;
        gap: 0.875rem;
    }

    .pain-point-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 1.25rem;
        border-radius: 8px;
    }

    .pain-point-title {
        font-size: 0.9rem;
        margin-bottom: 0.375rem;
    }

    .pain-point-desc {
        font-size: 0.825rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .marketing-title {
        font-size: 1.15rem;
    }

    .marketing-why p {
        font-size: 0.875rem;
    }

    .pain-point-card {
        padding: 0.875rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .pain-point-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 1.1rem;
    }

    .pain-point-title {
        font-size: 0.875rem;
    }

    .pain-point-desc {
        font-size: 0.8rem;
    }
}

/* ===========================================
   Scrollbar
   =========================================== */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* ========================================
   Triggers Section
   ======================================== */

.triggers-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.triggers-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--color-text);
}

.triggers-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0 0 1rem 0;
}

.triggers-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trigger-item {
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 3px solid rgba(59, 130, 246, 0.5);
    transition: all 200ms ease;
}

.trigger-item:hover {
    background: rgba(59, 130, 246, 0.15);
    border-left-color: rgba(59, 130, 246, 0.8);
}

.trigger-quote {
    font-size: 0.9rem;
    color: var(--color-text);
    font-style: italic;
}

/* ========================================
   Natural Language Installation
   ======================================== */

.install-natural {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.install-natural-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem 0;
}

.install-natural-example {
    padding: 0.75rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    border-left: 3px solid rgba(59, 130, 246, 0.5);
    font-size: 0.85rem;
    color: var(--color-text);
    font-style: italic;
    word-break: break-all;
    transition: all 200ms ease;
}

.install-natural-example:hover {
    background: rgba(59, 130, 246, 0.15);
    border-left-color: rgba(59, 130, 246, 0.8);
}

/* ===========================================
   Contact Modal (reuses .glass pattern)
   =========================================== */

.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.contact-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 420px;
    z-index: 2001;
    border-radius: 20px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.contact-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.contact-modal-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    border: none;
    padding: 0;
    background: none;
    -webkit-text-fill-color: var(--color-text);
}

.contact-modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.contact-modal-close:hover {
    background: var(--glass-bg-hover);
    color: var(--color-text);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 0.75rem;
    transition: all var(--transition-fast);
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.1);
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-primary-light);
    flex-shrink: 0;
}

.contact-item-info {
    flex: 1;
    min-width: 0;
}

.contact-item-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.contact-item-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-primary-light);
    word-break: break-all;
}

.contact-item-value a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-item-value a:hover {
    color: var(--color-text);
}