/* CART402 DOCS - LUXURY MINIMAL */

:root {
    --black: #000000;
    --gray-50: #0a0a0a;
    --gray-100: #111111;
    --gray-200: #1a1a1a;
    --gray-300: rgba(255, 255, 255, 0.08); /* Semi-transparent white borders */
    --gray-400: rgba(255, 255, 255, 0.12);
    --gray-500: #666666;
    --gray-600: #888888;
    --gray-700: #a0a0a0;
    --gray-800: #cccccc;
    --white: #ffffff;
    
    --font-display: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-display);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    position: relative;
}

/* Noise texture for premium feel */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: -1;
}

::selection {
    background: var(--white);
    color: var(--black);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gray-300);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.03),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 17px;
    font-weight: 900;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: all 0.2s var(--ease);
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.15);
}

.nav-logo:hover {
    text-shadow: 0 2px 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s var(--ease);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    background: var(--white);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s var(--ease);
    box-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* Docs Layout */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 80px;
    min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
    border-right: 1px solid var(--gray-300);
    padding: 40px 0;
    
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.docs-sidebar::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.sidebar-header {
    padding: 0 32px 24px;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 24px;
}

.sidebar-header h3 {
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.sidebar-section {
    margin-bottom: 32px;
    padding: 0 32px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.sidebar-link {
    display: block;
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s var(--ease);
}

.sidebar-link:hover {
    color: var(--white);
}

.sidebar-link.active {
    color: var(--white);
    font-weight: 600;
}

/* Content */
.docs-content {
    padding: 60px 80px 140px;
    max-width: 900px;
}

.docs-content section {
    margin-bottom: 80px;
}

.docs-content h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.docs-content h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    margin-top: 60px;
}

.docs-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 40px;
}

.docs-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    margin-top: 24px;
}

.docs-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 20px;
}

.lead {
    font-size: 20px;
    line-height: 1.6;
    color: var(--gray-600);
}

.docs-content ul {
    list-style: none;
    margin: 20px 0;
}

.docs-content ul li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.docs-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gray-500);
}

.docs-content code {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--white);
    background: var(--gray-200);
    padding: 3px 8px;
    border-radius: 4px;
}

/* Info Box */
.info-box {
    display: flex;
    gap: 16px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
}

.info-icon {
    font-size: 24px;
}

.info-box strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.info-box p {
    margin: 0;
}

/* Code Block */
.code-block {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    overflow: hidden;
    margin: 24px 0;
}

.code-header {
    background: var(--gray-200);
    border-bottom: 1px solid var(--gray-300);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-header span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray-600);
}

.copy-btn {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-600);
    background: transparent;
    border: 1px solid var(--gray-400);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.copy-btn:hover {
    background: var(--gray-300);
    color: var(--white);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.code-block pre {
    padding: 24px;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    background: none;
    padding: 0;
    display: block;
}

.kw { color: #c678dd; font-weight: 600; }
.cls { color: #e5c07b; }
.str { color: #98c379; }
.prop { color: #e06c75; }
.fn { color: #61afef; }
.num { color: #d19a66; }
.comment { color: var(--gray-500); font-style: italic; }
.type { color: #e5c07b; }

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 32px 0;
}

.step {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--white);
    color: var(--black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 8px 0;
}

.step-content p {
    margin: 0;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    overflow: hidden;
}

.comparison-table thead {
    background: var(--gray-200);
}

.comparison-table th {
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    color: var(--white);
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-300);
}

.comparison-table td {
    font-size: 14px;
    color: var(--gray-700);
    padding: 16px 20px;
    border-bottom: 1px solid var(--gray-300);
}

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

/* Example Grid */
.example-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.example-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s var(--ease);
}

.example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.example-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.example-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 16px 0;
}

.example-card a {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.example-card a:hover {
    color: var(--gray-600);
}

/* FAQ */
.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-300);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h4 {
    margin: 0 0 12px 0;
}

.faq-item p {
    margin: 0;
}

/* Support Grid */
.support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.support-card {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.2s var(--ease);
}

.support-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.support-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.support-card p {
    font-size: 14px;
    color: var(--gray-600);
    margin: 0 0 20px 0;
}

.support-card a {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.support-card a:hover {
    color: var(--gray-600);
}

/* Legal Pages */
.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 40px 140px;
}

.legal-container {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    overflow: hidden;
}

.legal-header {
    padding: 60px 60px 40px;
    border-bottom: 1px solid var(--gray-300);
}

.back-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 32px;
    transition: color 0.2s var(--ease);
}

.back-link:hover {
    color: var(--white);
}

.legal-header h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.meta {
    font-size: 14px;
    color: var(--gray-600);
}

.legal-content {
    padding: 60px;
}

.legal-content section {
    margin-bottom: 60px;
}

.legal-content section:last-child {
    margin-bottom: 0;
}

.legal-content h2 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.legal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    margin-top: 32px;
}

.legal-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 16px;
}

.legal-content ul {
    list-style: none;
    margin: 20px 0;
}

.legal-content ul li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
}

.legal-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--gray-500);
}

.legal-content a {
    color: var(--white);
    text-decoration: underline;
    transition: color 0.2s var(--ease);
}

.legal-content a:hover {
    color: var(--gray-600);
}

.legal-content strong {
    color: var(--white);
    font-weight: 600;
}

.legal-footer {
    padding: 40px 60px;
    border-top: 1px solid var(--gray-300);
    background: var(--gray-200);
}

.legal-footer p {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 20px;
}

.legal-links {
    display: flex;
    gap: 24px;
}

.legal-links a {
    font-size: 14px;
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.legal-links a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }
    
    .docs-sidebar {
        display: none;
    }
    
    .docs-content {
        padding: 60px 40px 140px;
    }
    
    .example-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 24px;
    }
    
    .docs-content {
        padding: 40px 24px 100px;
    }
    
    .docs-content h1 {
        font-size: 36px;
    }
    
    .docs-content h2 {
        font-size: 28px;
    }
    
    .legal-page {
        padding: 80px 24px 100px;
    }
    
    .legal-header {
        padding: 40px 32px 32px;
    }
    
    .legal-header h1 {
        font-size: 36px;
    }
    
    .legal-content {
        padding: 40px 32px;
    }
    
    .legal-content h2 {
        font-size: 28px;
    }
    
    .legal-footer {
        padding: 32px;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 12px;
    }
}
