@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-color: #05060b;
    --card-bg: rgba(13, 14, 25, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-hover: rgba(99, 102, 241, 0.3);
    
    --primary-color: #4f46e5;
    --primary-glow: rgba(79, 70, 229, 0.4);
    --secondary-color: #06b6d4;
    --accent-color: #d946ef;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --ai-gradient: linear-gradient(135deg, #a855f7 0%, #d946ef 50%, #4f46e5 100%);
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    --dark-gradient: linear-gradient(180deg, #090a12 0%, #05060b 100%);
    
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    overflow-x: hidden;
}

body {
    background: var(--dark-gradient);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #05060b;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid #05060b;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Base Styles */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

section {
    padding: 100px 0;
    position: relative;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px 0;
    background-color: transparent;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background-color: rgba(5, 6, 11, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--card-border);
    padding: 12px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img-small {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-item a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

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

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

.nav-item a:hover::after {
    width: 100%;
}

.btn-header {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
}

.btn-header:hover {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
    border-color: transparent;
    transform: translateY(-2px);
}

/* Header Right Container */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Mobile Navigation Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
    z-index: 1001;
}

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

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* Background Glow Effects */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.15;
}

.glow-primary {
    top: -200px;
    right: -100px;
    background: var(--primary-color);
}

.glow-secondary {
    bottom: -200px;
    left: -100px;
    background: var(--accent-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo-container {
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

.hero-logo {
    width: 130px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.3));
    animation: float 6s ease-in-out infinite;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.status-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    display: inline-block;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
        background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.6);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Glass Cards System */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary-color);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #ffffff 60%, #94a3b8 100%);
        background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* What It Does Section */
.what-it-does-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.flow-step {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    transition: var(--transition-smooth);
}

.flow-step:hover {
    transform: translateX(6px);
}

.flow-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.flow-step:hover .flow-step-icon {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.flow-step-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.flow-step-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Devices Section */
.search-container {
    max-width: 500px;
    margin: 0 auto 40px auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 52px;
    background: rgba(13, 14, 25, 0.6);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    color: white;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 55%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

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

.device-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.device-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.device-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.device-model {
    font-size: 1.25rem;
    font-weight: 700;
}

.device-code {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
}

.device-footer {
    border-top: 1px solid var(--card-border);
    padding-top: 16px;
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.note-box {
    margin-top: 40px;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.note-icon {
    font-size: 1.5rem;
    color: #f59e0b;
}

.note-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.note-text strong {
    color: var(--text-primary);
}

/* Feature Tabs & Explorer */
.feature-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

.features-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.feature-list-card {
    display: flex;
    gap: 20px;
}

.feature-list-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-list-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.feature-list-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Galaxy AI Special Visual Style */
.tab-btn.tab-ai.active {
    background: var(--ai-gradient);
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.4);
}

.ai-card {
    position: relative;
    border-color: rgba(217, 70, 239, 0.15);
}

.ai-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--ai-gradient);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.3;
    transition: var(--transition-smooth);
}

.ai-card:hover::before {
    opacity: 0.8;
}

.ai-card .feature-list-icon {
    background: rgba(217, 70, 239, 0.1);
    border-color: rgba(217, 70, 239, 0.2);
    color: var(--accent-color);
}

/* Knox Protected Apps */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.app-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.app-card:hover {
    transform: scale(1.03);
    border-color: rgba(79, 70, 229, 0.2);
    background: rgba(79, 70, 229, 0.05);
}

.app-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.app-name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* How to Use Section */
.guide-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.guide-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

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

.guide-tab-btn.active {
    color: var(--primary-color);
}

.guide-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.guide-panel {
    display: none;
}

.guide-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
}

.step-num {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.step-body {
    padding-top: 10px;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.step-content {
    color: var(--text-secondary);
    font-size: 0.98rem;
}

.step-content p {
    margin-bottom: 12px;
}

/* Terminal Simulator styling */
.terminal {
    background: #090a10;
    border: 1px solid #1e293b;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.terminal-header {
    background: #11131f;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #1e293b;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

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

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.terminal-copy {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.terminal-copy:hover {
    color: white;
}

.terminal-body {
    padding: 16px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    overflow-x: auto;
    white-space: pre-wrap;
}

.terminal-body code {
    white-space: pre-wrap;
    font-family: inherit;
    display: block;
}

.terminal-line {
    margin-bottom: 8px;
    white-space: pre;
}

.terminal-prompt {
    color: #38bdf8;
    margin-right: 8px;
}

.terminal-cmd {
    color: #f1f5f9;
}

.terminal-output {
    color: #94a3b8;
}

/* Cache Manager Panel */
.cache-panel {
    margin-top: 24px;
}

.cache-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-terminal {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-terminal:hover {
    background: #334155;
    color: white;
}

.btn-terminal.active {
    background: var(--primary-color);
    color: white;
    border-color: transparent;
}

/* Alert boxes */
.alert-box {
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-tip {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    color: var(--text-secondary);
}

.alert-tip strong {
    color: var(--secondary-color);
}

.alert-important {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.15);
    color: var(--text-secondary);
}

.alert-important strong {
    color: #ef4444;
}

/* Call to Action Banner */
.cta-banner {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(217, 70, 239, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(100px);
    opacity: 0.1;
    top: -50px;
    left: -50px;
    pointer-events: none;
}

.cta-banner-title {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.cta-banner-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px auto;
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 50px 0;
    background: #030407;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

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

/* Animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Reveal-on-scroll trigger */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        background: rgba(5, 6, 11, 0.95);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--card-border);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu .nav-item a {
        display: block;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .nav-menu .nav-item a::after {
        display: none;
    }

    .nav-toggle {
        display: flex !important;
    }

    .header-right {
        gap: 12px;
    }

    .btn-header {
        display: inline-flex;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .container {
        padding: 0 16px;
        max-width: 100%;
    }

    .nav-container {
        padding: 0 16px;
    }

    .logo-img-small {
        height: 28px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .what-it-does-content {
        grid-template-columns: 1fr;
    }
    
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .step-item {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .step-num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════
   Changelogs Page
═══════════════════════════════════════════════════ */

/* Active nav link */
.nav-active {
    color: var(--primary-color) !important;
}

/* Page Hero */
.cl-page-hero {
    padding: 160px 0 60px;
    text-align: center;
    position: relative;
}

.cl-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 8px 0 16px;
    line-height: 1.1;
}

.cl-hero-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 40px;
}

/* Stats bar */
.cl-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: 6px 8px;
    backdrop-filter: blur(12px);
}

.cl-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 28px;
}

.cl-stat-num {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.cl-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cl-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--card-border);
}

/* Mobile toggle bar */
.cl-mobile-toggle-bar {
    display: none;
    margin-bottom: 16px;
}

.cl-mobile-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
}

.cl-mobile-toggle-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Two-column layout */
.cl-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    padding-bottom: 80px;
    align-items: start;
}

/* Sidebar */
.cl-sidebar-wrap {
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    scrollbar-width: thin;
    scrollbar-color: #1e293b transparent;
}

.cl-sidebar {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cl-series-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    padding: 12px 12px 4px;
    margin-top: 6px;
}

.cl-series-heading:first-child {
    margin-top: 0;
}

.cl-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.cl-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cl-sidebar-item.active {
    background: rgba(79, 70, 229, 0.12);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.cl-item-version {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-sidebar-item.active .cl-item-version {
    color: var(--primary-color);
}

.cl-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.cl-tag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Detail Panel */
.cl-panel {
    min-height: 400px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Changelog Hero (inside panel) */
.cl-hero {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 32px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.cl-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(79,70,229,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cl-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}

.cl-version-label {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.cl-version-label span {
    background: var(--primary-gradient);
        background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cl-series {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.cl-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cl-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid;
}

.cl-device-note {
    margin-top: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.9rem;
    color: #f59e0b;
}

.cl-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #24A1DE 0%, #1e87bb 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(36, 161, 222, 0.3);
    white-space: nowrap;
}

.cl-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(36, 161, 222, 0.5);
}

/* Sections grid */
.cl-sections {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.cl-section {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    border-left: 3px solid var(--section-color, var(--primary-color));
}

.cl-section:hover {
    border-color: rgba(255,255,255,0.12);
    border-left-color: var(--section-color, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.cl-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.cl-section-icon {
    font-size: 1.2rem;
}

.cl-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--section-color, var(--text-primary));
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cl-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cl-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}

.cl-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--section-color, var(--primary-color));
    font-weight: 700;
    font-size: 1rem;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .cl-layout {
        grid-template-columns: 1fr;
    }

    .cl-sidebar-wrap {
        position: static;
        max-height: 0;
        overflow: hidden;
        border: none;
        background: transparent;
        transition: max-height 0.4s ease;
    }

    .cl-sidebar-wrap.open {
        max-height: 500px;
        background: var(--card-bg);
        border: 1px solid var(--card-border);
    }

    .cl-mobile-toggle-bar {
        display: block;
    }

    .cl-stats {
        flex-wrap: wrap;
        border-radius: var(--radius-lg);
    }

    .cl-hero-title {
        font-size: 2.5rem;
    }

    .cl-sections {
        grid-template-columns: 1fr;
    }

    .cl-hero-top {
        flex-direction: column;
    }
}
