/* ============================================
   DIMENSIGON - Cyberpunk Dark Theme
   Purple/Neon aesthetic with futuristic design
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #141425;
    --bg-card: #12121f;
    --bg-card-hover: #1a1a2e;

    --purple-100: #f0e6ff;
    --purple-200: #d4b3ff;
    --purple-300: #b380ff;
    --purple-400: #9b59ff;
    --purple-500: #8b3dff;
    --purple-600: #7b2fff;
    --purple-700: #6a1fff;
    --purple-800: #5a10e0;
    --purple-900: #4a0db8;

    --neon-purple: #b44dff;
    --neon-blue: #4d9fff;
    --neon-cyan: #00e5ff;
    --neon-pink: #ff4da6;

    --text-primary: #e8e6f0;
    --text-secondary: #9a96b0;
    --text-muted: #6b6780;
    --text-accent: var(--neon-purple);

    --border-color: rgba(139, 61, 255, 0.15);
    --border-hover: rgba(139, 61, 255, 0.35);

    --glow-sm: 0 0 10px rgba(139, 61, 255, 0.3);
    --glow-md: 0 0 20px rgba(139, 61, 255, 0.3), 0 0 40px rgba(139, 61, 255, 0.1);
    --glow-lg: 0 0 30px rgba(139, 61, 255, 0.4), 0 0 60px rgba(139, 61, 255, 0.2), 0 0 100px rgba(139, 61, 255, 0.1);

    --font-display: 'Orbitron', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--neon-purple);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--purple-300);
}

::selection {
    background: rgba(139, 61, 255, 0.3);
    color: #fff;
}

/* --- Animated Background Canvas --- */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- Section --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-purple);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.8;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo:hover {
    color: var(--text-primary);
}

.logo-bracket {
    color: var(--neon-purple);
    font-weight: 400;
}

.logo-text {
    color: var(--neon-purple);
    text-shadow: var(--glow-sm);
}

.logo-full {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-left: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(139, 61, 255, 0.08);
}

.nav-github {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    margin-left: 8px;
}

.nav-github:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    box-shadow: var(--glow-sm);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all var(--transition);
}

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

.dropdown-arrow {
    transition: transform var(--transition);
    opacity: 0.6;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 580px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), var(--glow-sm);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px;
    height: 14px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition);
}

.dropdown-item:hover {
    background: rgba(139, 61, 255, 0.08);
    color: var(--text-primary);
}

.dropdown-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(139, 61, 255, 0.1);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--neon-purple);
}

.dropdown-item strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.dropdown-item p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.dropdown-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.dropdown-footer a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--neon-purple);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 61, 255, 0.15) 0%, rgba(139, 61, 255, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(139, 61, 255, 0.1);
    border: 1px solid rgba(139, 61, 255, 0.2);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--neon-purple);
    margin-bottom: 32px;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--neon-purple);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--neon-purple);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.title-line {
    display: block;
}

.title-accent {
    background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-cyan) 50%, var(--neon-purple) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(139, 61, 255, 0.3));
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.title-sub {
    font-size: 0.55em;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* --- Terminal Component --- */
.hero-terminal {
    max-width: 580px;
    margin: 0 auto 40px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), var(--glow-sm);
    text-align: left;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(20, 20, 37, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    background: rgba(10, 10, 18, 0.95);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    min-height: 120px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-prompt {
    color: var(--neon-purple);
    font-weight: 700;
}

.terminal-command {
    color: var(--text-primary);
}

.terminal-cursor {
    color: var(--neon-purple);
    animation: blink 1s step-end infinite;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.terminal-output {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre-wrap;
}

.terminal-output .output-success {
    color: #28c840;
}

.terminal-output .output-info {
    color: var(--neon-cyan);
}

.terminal-output .output-purple {
    color: var(--neon-purple);
}

/* --- Hero Actions --- */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--purple-800));
    color: #fff;
    border: 1px solid rgba(139, 61, 255, 0.4);
    box-shadow: var(--glow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
    box-shadow: var(--glow-md);
    transform: translateY(-2px);
    color: #fff;
}

.btn-glow {
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan), var(--neon-purple));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    filter: blur(8px);
    transition: opacity var(--transition);
}

.btn-primary:hover .btn-glow {
    opacity: 0.4;
}

.btn-secondary {
    background: rgba(139, 61, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(139, 61, 255, 0.15);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--neon-purple);
    border: 1px solid var(--border-hover);
    padding: 14px 32px;
}

.btn-outline:hover {
    background: rgba(139, 61, 255, 0.1);
    box-shadow: var(--glow-sm);
    transform: translateY(-2px);
    color: var(--neon-purple);
}

/* --- Hero Stats --- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-purple);
    text-shadow: var(--glow-sm);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border-color);
}

/* ============================================
   FEATURES GRID
   ============================================ */
.features-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.features-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.feature-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.feature-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--glow-sm);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(139, 61, 255, 0.03) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.feature-card:hover .feature-card-glow {
    opacity: 1;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: rgba(139, 61, 255, 0.1);
    border: 1px solid rgba(139, 61, 255, 0.15);
    border-radius: var(--radius-md);
    color: var(--neon-purple);
    margin-bottom: 20px;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    box-shadow: var(--glow-sm);
    border-color: rgba(139, 61, 255, 0.3);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 3px 10px;
    background: rgba(139, 61, 255, 0.08);
    border: 1px solid rgba(139, 61, 255, 0.12);
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.feature-link {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 12px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    color: var(--neon-purple);
    background: rgba(139, 61, 255, 0.05);
    border: 1px solid rgba(139, 61, 255, 0.15);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.feature-link:hover {
    background: rgba(139, 61, 255, 0.12);
    border-color: rgba(139, 61, 255, 0.3);
    box-shadow: var(--glow-sm);
    color: var(--purple-300);
}

.features-cta {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   ARCHITECTURE SECTION
   ============================================ */
.architecture-section {
    background: var(--bg-secondary);
}

.arch-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.arch-layer {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    cursor: default;
}

.arch-layer:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: var(--glow-sm);
    transform: translateX(8px);
}

.arch-layer-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-purple);
    opacity: 0.5;
    min-width: 28px;
}

.arch-layer:hover .arch-layer-num {
    opacity: 1;
}

.arch-layer-content h4 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.arch-layer-content p {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.arch-connector {
    width: 2px;
    height: 12px;
    background: linear-gradient(180deg, var(--neon-purple), transparent);
    margin-left: 44px;
    opacity: 0.3;
}

.arch-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.arch-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.arch-info-card h4 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neon-purple);
    margin-bottom: 12px;
}

.arch-info-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.arch-info-card ul {
    list-style: none;
}

.arch-info-card li {
    position: relative;
    padding-left: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.arch-info-card li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon-purple);
    font-weight: 700;
}

/* ============================================
   WORKFLOW / HOW IT WORKS
   ============================================ */
.workflow-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.workflow-step {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.workflow-step:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-sm);
}

.workflow-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--neon-purple);
    opacity: 0.15;
    position: absolute;
    top: 16px;
    right: 20px;
    line-height: 1;
}

.workflow-step h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.workflow-step p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.workflow-step code {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(139, 61, 255, 0.08);
    border: 1px solid rgba(139, 61, 255, 0.12);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

/* ============================================
   QUICK START
   ============================================ */
.quickstart-section {
    background: linear-gradient(180deg, var(--bg-primary), var(--bg-secondary));
}

.quickstart-content {
    max-width: 700px;
    margin: 0 auto;
}

.quickstart-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    background: var(--bg-card);
    padding: 4px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
}

.tab-btn {
    flex: 1;
    padding: 10px 20px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

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

.tab-btn.active {
    color: var(--neon-purple);
    background: rgba(139, 61, 255, 0.1);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.code-block {
    background: rgba(10, 10, 18, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    overflow: hidden;
}

.quickstart-content .code-block {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.feature-deep-visual .code-block {
    border-radius: var(--radius-md);
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(20, 20, 37, 0.9);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.copy-btn {
    padding: 4px 12px;
    background: rgba(139, 61, 255, 0.1);
    border: 1px solid rgba(139, 61, 255, 0.2);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--neon-purple);
    cursor: pointer;
    transition: all var(--transition);
}

.copy-btn:hover {
    background: rgba(139, 61, 255, 0.2);
}

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

.code-block code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.code-comment { color: var(--text-muted); }
.code-prompt { color: var(--neon-purple); font-weight: 700; }
.code-key { color: var(--neon-cyan); }
.code-str { color: #a5d6a7; }
.code-num { color: #ffb74d; }

/* Log colors */
.code-log-time { color: var(--text-muted); }
.code-log-node { color: var(--neon-purple); font-weight: 600; }
.code-log-ok { color: #28c840; }
.code-log-warn { color: #ffbd2e; }

/* ============================================
   TECH STACK
   ============================================ */
.tech-section {
    background: var(--bg-secondary);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.tech-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.tech-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-sm);
    transform: translateY(-2px);
}

.tech-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.tech-cat {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 60px 0 100px;
}

.cta-card {
    position: relative;
    text-align: center;
    padding: 64px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 61, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

/* ============================================
   FEATURES PAGE - Deep Feature Sections
   ============================================ */
.features-hero {
    position: relative;
    padding-bottom: 60px;
    overflow: hidden;
}

.feature-deep {
    padding: 80px 0;
}

.feature-deep-alt {
    background: var(--bg-secondary);
}

.feature-deep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-deep-grid.reverse {
    direction: rtl;
}

.feature-deep-grid.reverse > * {
    direction: ltr;
}

.feature-deep-info h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.feature-deep-info > p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.feature-deep-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-deep-item {
    display: flex;
    gap: 16px;
}

.feature-deep-bullet {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--neon-purple);
    border-radius: 50%;
    margin-top: 8px;
    box-shadow: 0 0 8px rgba(139, 61, 255, 0.5);
}

.feature-deep-item strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.feature-deep-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Mesh Visual --- */
.mesh-visual {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.mesh-svg {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 0 auto;
}

.mesh-line {
    stroke: var(--neon-purple);
    stroke-width: 1.5;
    opacity: 0.4;
    stroke-dasharray: 4 2;
}

.mesh-line-dim {
    opacity: 0.15;
}

.mesh-node {
    fill: var(--bg-secondary);
    stroke: var(--neon-purple);
    stroke-width: 2;
}

.mesh-label {
    fill: var(--neon-purple);
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-anchor: middle;
    font-weight: 600;
}

.mesh-pulse {
    fill: none;
    stroke: var(--neon-purple);
    stroke-width: 1;
    opacity: 0;
    animation: mesh-pulse 3s ease-out infinite;
}

.mesh-pulse-delay-1 { animation-delay: 0.6s; }
.mesh-pulse-delay-2 { animation-delay: 1.2s; }
.mesh-pulse-delay-3 { animation-delay: 1.8s; }
.mesh-pulse-delay-4 { animation-delay: 2.4s; }

@keyframes mesh-pulse {
    0% { r: 18; opacity: 0.6; }
    100% { r: 40; opacity: 0; }
}

.mesh-caption {
    text-align: center;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* --- API Endpoints Visual --- */
.api-endpoints {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.api-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.api-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.api-endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(10, 10, 18, 0.6);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.api-endpoint:hover {
    background: rgba(139, 61, 255, 0.05);
    color: var(--text-primary);
}

.api-method {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    min-width: 48px;
    text-align: center;
}

.api-method.get {
    background: rgba(0, 229, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.api-method.post {
    background: rgba(139, 61, 255, 0.1);
    color: var(--neon-purple);
    border: 1px solid rgba(139, 61, 255, 0.2);
}

/* --- Security Layers Visual --- */
.security-layers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sec-layer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.sec-layer:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
}

.sec-layer-highlight {
    border-color: rgba(139, 61, 255, 0.3);
    background: rgba(139, 61, 255, 0.05);
}

.sec-num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--neon-purple);
    min-width: 24px;
}

.sec-name {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.sec-detail {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: right;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 16px;
}

.footer-license {
    font-family: var(--font-mono);
    font-size: 0.75rem !important;
    color: var(--text-muted) !important;
    margin-top: 8px !important;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-links h5 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--neon-purple);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.footer-ascii {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 0.7rem !important;
    color: rgba(139, 61, 255, 0.3) !important;
    letter-spacing: 0.1em;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .arch-container {
        grid-template-columns: 1fr;
    }

    .arch-info {
        position: static;
        flex-direction: row;
    }

    .arch-info-card {
        flex: 1;
    }

    .feature-deep-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-deep-grid.reverse {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--bg-secondary);
        padding: 80px 24px 24px;
        gap: 4px;
        transition: right var(--transition);
        border-left: 1px solid var(--border-color);
        z-index: 999;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        border: none;
        box-shadow: none;
        transition: max-height var(--transition), padding var(--transition);
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 600px;
        padding: 12px;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .hero-stats {
        gap: 16px;
    }

    .stat-divider {
        display: none;
    }

    .arch-info {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .sec-detail {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-terminal {
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 61, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 61, 255, 0.5);
}

/* ============================================
   COMPACT CARDS
   ============================================ */
.feature-card.compact {
    padding: 28px;
}

.feature-card.compact .feature-title {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.feature-card.compact .feature-desc {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================
   FEATURE DETAIL PAGES
   ============================================ */
.feature-content {
    padding: 60px 0;
}

.use-case-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 48px;
}

.use-case-block h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.use-case-block p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.example-block {
    margin-bottom: 48px;
}

.example-block h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 24px;
    letter-spacing: 0.01em;
}

.example-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 24px;
}

.example-grid.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.example-visual {
    position: relative;
}

.example-info h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.example-info ul.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.example-info ul.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    line-height: 1.7;
    border-left: 2px solid rgba(139, 61, 255, 0.2);
    padding-left: 12px;
}

.example-info ul.feature-list strong {
    color: var(--text-primary);
}

.note {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(139, 61, 255, 0.05);
    border-left: 3px solid var(--neon-purple);
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.mesh-diagram {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    overflow-x: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    transition: all var(--transition);
}

.benefit-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-sm);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.benefit-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.feature-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
    flex-wrap: wrap;
}

.feature-hero {
    padding: 100px 0 60px;
}

@media (max-width: 768px) {
    .example-grid,
    .example-grid.reverse {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .feature-cta {
        flex-direction: column;
    }
}
