/* Vercel-Inspired Dark Theme - Minimalist & Elegant */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Apple-inspired minimalist palette */
    --dx-black: #000000;
    --dx-surface: rgba(255, 255, 255, 0.03);
    --dx-elevated: rgba(255, 255, 255, 0.06);
    --dx-accent: #7C3AED;
    --dx-white: #F5F5F7;
    --dx-gray: #86868b;
    --dx-gray-light: #a1a1a6;
    --dx-border: rgba(255, 255, 255, 0.08);
    --dx-border-light: rgba(255, 255, 255, 0.12);
    --dx-bg: #000000;
    
    /* Legacy alias for compatibility */
    --dx-pink: var(--dx-accent);
    
    /* Typography scale */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Cascadia Code', 'Courier New', monospace;
}

/* Light Theme - Apple style */
[data-theme="light"] {
    --dx-black: #ffffff;
    --dx-surface: rgba(0, 0, 0, 0.02);
    --dx-elevated: rgba(0, 0, 0, 0.04);
    --dx-accent: #7C3AED;
    --dx-white: #1d1d1f;
    --dx-gray: #86868b;
    --dx-gray-light: #6e6e73;
    --dx-border: rgba(0, 0, 0, 0.06);
    --dx-border-light: rgba(0, 0, 0, 0.1);
    --dx-bg: #ffffff;
    --dx-pink: var(--dx-accent);
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--dx-surface);
    border: 1px solid var(--dx-border);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dx-gray);
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--dx-border-light);
    color: var(--dx-white);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="light"] .theme-toggle .sun-icon { display: block; }
[data-theme="light"] .theme-toggle .moon-icon { display: none; }

body {
    font-family: var(--font-sans);
    background: var(--dx-black);
    min-height: 100vh;
    padding: 0;
    color: var(--dx-gray-light);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--dx-black);
    padding: 0 60px;
}

/* Header - Ultra Minimal */
header {
    background: var(--dx-black);
    color: var(--dx-white);
    padding: 0;
    /* border handled inline */
}

header h1 {
    font-size: 2em;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--dx-white);
}

header h1 span {
    color: var(--dx-pink);
    font-weight: 600;
}

.subtitle {
    font-size: 0.95em;
    color: var(--dx-gray);
    font-weight: 400;
    letter-spacing: 0;
    margin: 0;
}

/* Tabs - Vercel Style */
.tabs {
    display: flex;
    background: var(--dx-black);
    /* border handled inline */
    padding: 0;
    gap: 0;
    overflow-x: auto;
}

.tab {
    padding: 18px 0;
    margin-right: 32px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875em;
    font-weight: 500;
    color: var(--dx-gray);
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.tab:hover {
    color: var(--dx-white);
}

.tab.active {
    color: var(--dx-white);
    border-bottom-color: var(--dx-white);
}

/* Content - Spacious */
#content {
    padding: 80px 0 120px;
    min-height: 600px;
    background: var(--dx-black);
    max-width: 1400px;
    margin: 0 auto;
}

/* Typography */
h2 {
    font-size: 2.5em;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--dx-white);
    line-height: 1.2;
}

h2::after {
    display: none;
}

h3 {
    font-size: 1.5em;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--dx-white);
    line-height: 1.3;
}

h4 {
    font-size: 1.125em;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dx-white);
    letter-spacing: -0.01em;
}

p {
    font-size: 1em;
    line-height: 1.7;
    color: var(--dx-gray-light);
    font-weight: 400;
}

/* Cards - Apple-style glass morphism */
.info-box {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    margin: 24px 0;
    transition: all 0.3s ease;
}

.info-box:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .info-box {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .info-box:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.12);
}

.info-box h4 {
    color: var(--dx-white);
    margin-bottom: 12px;
    font-size: 1.125em;
    font-weight: 600;
}

/* Framework Path Cards */
.framework-path {
    /* Styles now inline for better control */
}

.framework-path:hover {
    /* Handled by framework-card-interactive */
}

.path-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--dx-border);
}

.framework-icon {
    font-size: 3em;
    margin-bottom: 16px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.framework-path:hover .framework-icon {
    transform: scale(1.05);
}

/* Interactive Framework Titles */
.framework-title {
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.framework-card-interactive:hover {
    transform: translateY(-4px);
    border-color: var(--dx-pink) !important;
}

.framework-card-interactive:hover .stat-glow {
    opacity: 1;
}

.framework-card-interactive:hover .framework-title {
    text-shadow: 0 0 30px rgba(255, 43, 113, 0.6);
}

.path-content {
    text-align: left;
}

.journey-steps {
    margin-bottom: 24px;
}

.journey-step {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--dx-white);
    color: var(--dx-black);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875em;
}

.step-content h5 {
    font-size: 1em;
    color: var(--dx-white);
    margin-bottom: 4px;
    font-weight: 600;
}

.step-content p {
    font-size: 0.875em;
    color: var(--dx-gray);
    line-height: 1.6;
    margin: 0;
}

.path-cta {
    /* Styles now inline for better control */
}

.path-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.tag {
    display: inline-block;
    background: var(--dx-elevated);
    color: var(--dx-gray-light);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8125em;
    font-weight: 500;
    border: 1px solid var(--dx-border);
}

/* Stage Cards - Apple glass style */
.stage-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.stage {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--dx-white);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stage:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .stage {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stage:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.12);
}

.stage::before {
    display: none;
}

.stage h3 {
    font-size: 1.25em;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dx-white);
}

.stage ul {
    list-style: none;
}

.stage li {
    padding: 10px 0;
    border-bottom: 1px solid var(--dx-border);
    font-size: 0.875em;
    color: var(--dx-gray);
}

.stage li:last-child {
    border-bottom: none;
}

/* Agent Cards - Apple glass style */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin: 40px 0;
}

.agent-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.agent-card::before {
    display: none;
}

.agent-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .agent-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .agent-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.12);
}

.agent-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.agent-icon {
    font-size: 2em;
    margin-right: 12px;
}

.agent-card h3 {
    color: var(--dx-white);
    font-size: 1.125em;
    font-weight: 600;
}

.agent-stage {
    display: inline-block;
    background: var(--dx-elevated);
    color: var(--dx-gray);
    padding: 4px 10px;
    font-size: 0.75em;
    margin: 6px 0;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    border: 1px solid var(--dx-border);
}

.agent-description {
    color: var(--dx-gray);
    line-height: 1.6;
    margin: 16px 0;
    font-size: 0.875em;
}

.agent-tools {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--dx-border);
}

.tool-tag {
    display: inline-block;
    background: var(--dx-elevated);
    padding: 6px 12px;
    font-size: 0.8125em;
    margin: 4px 4px 4px 0;
    color: var(--dx-gray);
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--dx-border);
}

/* Pipeline Steps */
.pipeline-flow {
    background: transparent;
    padding: 0;
    margin: 32px 0;
}

.pipeline-step {
    background: var(--dx-surface);
    border: 1px solid var(--dx-border);
    border-left: 2px solid var(--dx-white);
    border-radius: 8px;
    padding: 24px;
    margin: 16px 0;
    transition: all 0.2s ease;
}

.pipeline-step:hover {
    border-color: var(--dx-border-light);
    background: var(--dx-elevated);
}

.pipeline-step::before {
    display: none;
}

.pipeline-step h4 {
    color: var(--dx-white);
    margin-bottom: 12px;
    font-size: 1.125em;
    font-weight: 600;
}

.pipeline-step ul {
    list-style: none;
    padding-left: 0;
}

.pipeline-step li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--dx-gray);
    font-size: 0.875em;
}

.pipeline-step li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--dx-gray-light);
    font-weight: 400;
}

/* Framework Diagram */
.framework-diagram {
    background: var(--dx-surface);
    border: 1px solid var(--dx-border);
    padding: 48px;
    margin: 40px 0;
    border-radius: 12px;
    text-align: center;
    color: var(--dx-white);
}

.framework-diagram::before {
    display: none;
}

.framework-diagram h3 {
    color: var(--dx-white);
}

.diagram-row {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.diagram-box {
    background: var(--dx-elevated);
    color: var(--dx-white);
    padding: 20px 24px;
    font-weight: 500;
    border-radius: 8px;
    min-width: 140px;
    transition: all 0.2s ease;
    border: 1px solid var(--dx-border);
    font-size: 0.875em;
}

.diagram-box:hover {
    border-color: var(--dx-border-light);
    background: var(--dx-surface);
}

.diagram-box::after {
    display: none;
}

.arrow {
    font-size: 1.25em;
    color: var(--dx-gray);
    font-weight: 400;
}

.security-gate {
    background: var(--dx-white);
    color: var(--dx-black);
    padding: 14px 32px;
    font-weight: 600;
    display: inline-block;
    margin: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    font-size: 0.875em;
}

/* Legend */
.legend {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-item span {
    color: var(--dx-gray);
    font-size: 0.875em;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

/* Code Blocks */
pre {
    background: var(--dx-surface) !important;
    color: var(--dx-white) !important;
    padding: 24px !important;
    border-radius: 8px !important;
    border: 1px solid var(--dx-border) !important;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.875em;
    line-height: 1.6;
}

/* Buttons */
button {
    font-family: inherit;
    transition: all 0.2s ease;
}

button:hover {
    opacity: 0.9;
}

/* Remove patterns */
.diagonal-pattern::before {
    display: none;
}

/* Carousel Indicators */
.carousel-indicator {
    transition: all 0.2s ease;
}

.carousel-indicator:hover {
    transform: scale(1.2) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    header {
        padding: 24px 0;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .tabs {
        padding: 0;
    }
    
    #content {
        padding: 60px 0;
    }
    
    h2 {
        font-size: 2em;
    }
    
    .stage-container {
        grid-template-columns: 1fr;
    }
    
    .agent-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
    
    header {
        padding: 20px 0;
    }
    
    header h1 {
        font-size: 1.75em;
    }
    
    .tabs {
        padding: 0;
    }
    
    .tab {
        margin-right: 24px;
        font-size: 0.8125em;
    }
    
    #content {
        padding: 40px 0;
    }
    
    h2 {
        font-size: 1.75em;
    }
    
    .framework-path {
        padding: 32px 24px;
    }
}


/* Mobile Responsive Styles */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    header {
        padding: 0 20px !important;
    }
    
    /* Make all grids responsive */
    .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }
    
    /* Adjust feature cards */
    .feature-card {
        padding: 24px !important;
    }
    
    /* Buttons */
    button, a[style*="padding"] {
        padding: 12px 24px !important;
        font-size: 0.9em !important;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 12px;
    }
}
