/* MiteClaw Launch Website Styles - Glassmorphism Cyberpunk Edition */
:root {
    --bg-dark: #090d16;
    --bg-card: rgba(18, 25, 41, 0.7);
    --bg-card-hover: rgba(30, 41, 64, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(14, 165, 233, 0.3);
    
    --primary: #0ea5e9;
    --primary-glow: #38bdf8;
    --secondary: #8b5cf6;
    --accent: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --font-heading: 'Outfit', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 65%, rgba(139, 92, 246, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Container */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Glassmorphism Card Utility */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover {
    border-color: var(--border-glow);
    box-shadow: 0 12px 40px 0 rgba(14, 165, 233, 0.15);
}

/* Typography Gradient */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 50%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Navbar */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.brand-logo .logo-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-glow);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Lang Switcher Button */
.lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.lang-toggle:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(2, 132, 199, 0.39);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(2, 132, 199, 0.55);
}

.btn-glow {
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: var(--primary-glow);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* Interactive App Screen Preview */
.app-preview-wrapper {
    max-width: 1060px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    background: #0f172a;
}

.app-preview-header {
    background: #1e293b;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
}

.preview-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.preview-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.app-preview-body {
    padding: 1.5rem;
    min-height: 380px;
    background: #090d16;
    text-align: left;
    font-family: var(--font-mono);
}

/* Terminal & App Visual Mockup */
.terminal-window {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.term-prompt {
    color: var(--primary-glow);
}
.term-cmd {
    color: #f1f5f9;
}
.term-output {
    color: var(--text-muted);
}
.term-highlight {
    color: #34d399;
}
.term-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Stats / Comparison Section */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px;
}

.comparison-table th, .comparison-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.table-highlight {
    color: var(--primary-glow);
    font-weight: 700;
    background: rgba(14, 165, 233, 0.05) !important;
}

.check-yes {
    color: var(--accent);
    font-weight: 700;
}
.check-no {
    color: var(--danger);
    font-weight: 700;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.75rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

/* Cards */
.feature-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--primary-glow);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.feature-card .card-footer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--primary-glow);
    font-weight: 600;
}

/* Channel & LLM Badges Grid */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.badge-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-main);
}

/* SkillHub Gallery Cards */
.persona-chip {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c084fc;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.code-snippet {
    background: #090d16;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.copy-mini-btn {
    background: none;
    border: none;
    color: var(--primary-glow);
    cursor: pointer;
    font-size: 0.8rem;
}

/* Download Section */
.download-card {
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.08) 0%, rgba(9, 13, 22, 0.8) 100%);
    border: 1px solid var(--border-glow);
}

.download-os-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Footer */
footer.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    background: #060911;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-glow);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Arena Stats Bar */
.arena-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 3rem;
}

.arena-stat {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.arena-stat:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.arena-stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-glow);
    display: block;
    margin-bottom: 0.3rem;
}

.arena-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero subtitle subtext */
.hero-sub {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-glow);
    margin-top: 0.75rem;
    font-weight: 600;
}

/* Arena section extra padding */
#arena .section-header .section-title {
    font-size: 2.4rem;
}

/* Comparison table arena row highlight */
#arena .table-highlight {
    background: rgba(16, 185, 129, 0.05) !important;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-sub {
        font-size: 0.95rem;
    }
    .arena-stat-value {
        font-size: 1.4rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .nav-menu {
        display: none;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-sub {
        display: none;
    }
    .arena-stats-bar {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Lang i18n switcher dynamic display */
[data-lang="vi"] .lang-en { display: none !important; }
[data-lang="en"] .lang-vi { display: none !important; }