/* ========================================
   BOT COMMANDER LANDING PAGE
   Aesthetic: Cyberpunk Terminal / Neon Glow
   ======================================== */

/* CSS Variables */
:root {
    --bg-deep: #0d1117;
    --bg-dark: #161b22;
    --bg-card: #1c2128;
    --bg-card-hover: #242c38;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(114, 137, 218, 0.4);

    --text-primary: #f0f2f5;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;

    /* Discord-inspired palette */
    --accent-primary: #7289da;
    --accent-primary-dim: #5b6eae;
    --accent-secondary: #99aab5;
    --accent-highlight: #a8b9ff;
    --accent-green: #43b581;
    --accent-orange: #faa61a;
    --accent-yellow: #f1c40f;
    --accent-red: #f04747;
    --accent-pink: #eb459e;
    --accent-purple: #9b59b6;

    --glow-primary: 0 0 30px rgba(114, 137, 218, 0.4);
    --glow-highlight: 0 0 30px rgba(168, 185, 255, 0.3);
    --glow-green: 0 0 30px rgba(67, 181, 129, 0.4);

    --font-display: 'Outfit', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

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

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

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

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

img {
    max-width: 100%;
    height: auto;
}

/* Animated Background */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(114, 137, 218, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(114, 137, 218, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    animation: pulse 8s ease-in-out infinite;
}

.bg-glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(114, 137, 218, 0.2), transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.15), transparent 70%);
    bottom: 20%;
    left: -150px;
    animation-delay: 2s;
}

.bg-glow-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(67, 181, 129, 0.12), transparent 70%);
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(10, 11, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: var(--transition-base);
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    display: block;
    font-size: 0;
}

.logo-text::after {
    content: attr(data-full);
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .logo-text::after {
        content: attr(data-short);
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-base);
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-primary-dim) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-primary);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(114, 137, 218, 0.35);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.btn-discord {
    background: #5865f2;
    color: white;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 8rem 4rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(114, 137, 218, 0.15);
    border: 1px solid rgba(114, 137, 218, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-highlight);
    width: fit-content;
    animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-highlight) 50%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1rem;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

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

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-window {
    width: 100%;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(114, 137, 218, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(114, 137, 218, 0.1);
    animation: windowFloat 6s ease-in-out infinite, fadeIn 0.8s ease forwards;
}

@keyframes windowFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.window-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

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

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
}

.window-dots span:first-child { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #ffbd2e; }
.window-dots span:last-child { background: #28c840; }

.window-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.window-content {
    padding: 1.5rem;
}

.code-block {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.code-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: lineAppear 0.4s ease forwards;
}

.code-line.delay-1 { animation-delay: 0.5s; }
.code-line.delay-2 { animation-delay: 1s; }
.code-line.delay-3 { animation-delay: 1.5s; }
.code-line.delay-4 { animation-delay: 2s; }

@keyframes lineAppear {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.code-prompt {
    color: var(--accent-primary);
    font-weight: 600;
}

.code-success {
    color: var(--accent-green);
}

.code-ai {
    padding: 2px 6px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-purple));
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.code-text {
    color: var(--text-secondary);
}

.code-var {
    color: var(--accent-highlight);
}

.typing::after {
    content: '|';
    animation: cursor 1s step-end infinite;
    color: var(--accent-primary);
}

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

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: float 4s ease-in-out infinite;
}

.floating-card .card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 137, 218, 0.15);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
}

.floating-card .card-icon.purple {
    background: rgba(155, 89, 182, 0.15);
    color: var(--accent-purple);
}

.floating-card .card-icon.green {
    background: rgba(67, 181, 129, 0.15);
    color: var(--accent-green);
}

.floating-card .card-icon svg {
    width: 18px;
    height: 18px;
}

.card-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 15%;
    left: 0;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    right: 15%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Section Styles */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(114, 137, 218, 0.15);
    border: 1px solid rgba(114, 137, 218, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-highlight);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.section-tag.tag-new {
    background: linear-gradient(135deg, rgba(67, 181, 129, 0.2), rgba(114, 137, 218, 0.2));
    border-color: rgba(67, 181, 129, 0.3);
    color: var(--accent-green);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(114, 137, 218, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-large {
    grid-column: span 2;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.gradient-cyan {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.2), rgba(114, 137, 218, 0.05));
    color: var(--accent-primary);
}

.gradient-purple {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.2), rgba(155, 89, 182, 0.05));
    color: var(--accent-purple);
}

.gradient-pink {
    background: linear-gradient(135deg, rgba(235, 69, 158, 0.2), rgba(235, 69, 158, 0.05));
    color: var(--accent-pink);
}

.gradient-green {
    background: linear-gradient(135deg, rgba(67, 181, 129, 0.2), rgba(67, 181, 129, 0.05));
    color: var(--accent-green);
}

.gradient-orange {
    background: linear-gradient(135deg, rgba(250, 166, 26, 0.2), rgba(250, 166, 26, 0.05));
    color: var(--accent-orange);
}

.gradient-yellow {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.2), rgba(241, 196, 15, 0.05));
    color: var(--accent-yellow);
}

.gradient-red {
    background: linear-gradient(135deg, rgba(240, 71, 71, 0.2), rgba(240, 71, 71, 0.05));
    color: var(--accent-red);
}

.gradient-blue {
    background: linear-gradient(135deg, rgba(114, 137, 218, 0.2), rgba(114, 137, 218, 0.05));
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

.feature-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.preview-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-highlight);
}

/* AI Section */
.ai-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(114, 137, 218, 0.04) 50%, transparent 100%);
}

.ai-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-content .section-title {
    text-align: left;
    margin-bottom: 0;
}

.ai-content .section-subtitle {
    text-align: left;
    max-width: none;
}

.ai-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
}

.ai-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.ai-features li svg {
    width: 20px;
    height: 20px;
    color: var(--accent-green);
    flex-shrink: 0;
}

.ai-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(114, 137, 218, 0.1);
    border: 1px solid rgba(114, 137, 218, 0.2);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.ai-note-icon {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
}

/* Chat Window */
.ai-demo {
    display: flex;
    justify-content: center;
}

.chat-window {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(114, 137, 218, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(114, 137, 218, 0.1);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-dim));
    border-radius: 50%;
    color: white;
}

.chat-avatar svg {
    width: 20px;
    height: 20px;
}

.chat-info {
    display: flex;
    flex-direction: column;
}

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

.chat-status {
    font-size: 0.8rem;
    color: var(--accent-green);
}

.chat-messages {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    max-width: 90%;
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-message.user {
    align-self: flex-end;
    background: rgba(114, 137, 218, 0.15);
    border: 1px solid rgba(114, 137, 218, 0.25);
    color: var(--text-primary);
}

.chat-message.ai {
    align-self: flex-start;
    background: rgba(67, 181, 129, 0.1);
    border: 1px solid rgba(67, 181, 129, 0.2);
}

.chat-message.ai p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.chat-code {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
}

.chat-code-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.chat-code code {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-highlight);
}

.chat-apply {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, var(--accent-green), #3ca374);
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: var(--transition-base);
}

.chat-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.chat-apply svg {
    width: 16px;
    height: 16px;
}

/* BCFD Language Section */
.bcfd-lang {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.lang-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-base);
}

.lang-category:hover {
    background: var(--bg-card-hover);
    border-color: rgba(114, 137, 218, 0.35);
    transform: translateY(-4px);
}

.lang-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--accent-highlight);
}

.lang-category p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.lang-examples {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lang-example {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.lang-example span:last-child {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.var-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    background: rgba(114, 137, 218, 0.15);
    border: 1px solid rgba(114, 137, 218, 0.25);
    border-radius: var(--radius-sm);
    color: var(--accent-highlight);
    white-space: nowrap;
}

.lang-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.lang-preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-subtle);
}

.lang-preview-header span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.lang-preview-content {
    padding: 1.5rem;
    background: var(--bg-dark);
}

.lang-preview-line {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
}

.lang-preview-line .comment {
    color: var(--text-muted);
    font-style: italic;
}

.lang-preview-line .response {
    color: var(--text-primary);
}

.lang-preview-line .var {
    color: var(--accent-highlight);
}

.lang-preview-line .func {
    color: #ff79c6;
    font-weight: 600;
}

.lang-preview-line .func-braces {
    color: var(--text-primary);
}

.lang-preview-line .js-tag {
    color: var(--accent-purple);
    font-weight: 600;
}

.lang-preview-line .js-code {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.lang-preview-line .js-kw {
    color: #ff79c6;
}

.lang-preview-line .js-obj {
    color: #8be9fd;
}

.lang-preview-line .js-prop {
    color: #50fa7b;
}

.lang-preview-line .js-op {
    color: #ff79c6;
}

.lang-preview-line .js-num {
    color: #bd93f9;
}

.lang-preview-line .js-str {
    color: #f1fa8c;
}

@media (max-width: 1024px) {
    .lang-grid {
        grid-template-columns: 1fr;
    }
}

/* More Features / Capabilities */
.more-features {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.capability {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.capability:hover {
    background: var(--bg-card-hover);
    border-color: rgba(114, 137, 218, 0.25);
}

.capability-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(114, 137, 218, 0.15);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    flex-shrink: 0;
}

.capability-icon svg {
    width: 24px;
    height: 24px;
}

.capability-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.capability-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Platforms Section */
.platforms {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.platform-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(114, 137, 218, 0.35);
    transform: translateY(-4px);
}

.platform-card svg {
    width: 40px;
    height: 40px;
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.platform-card:hover svg {
    color: var(--accent-primary);
}

.platform-card span {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.platform-note {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.platform-card.has-note {
    opacity: 0.7;
}

.platform-card.has-note:hover {
    opacity: 1;
}

/* Community Section */
.community {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.community-card {
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.discord-card {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15), rgba(88, 101, 242, 0.05));
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.discord-card:hover {
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 0 40px rgba(88, 101, 242, 0.2);
}

.docs-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}

.docs-card:hover {
    border-color: rgba(114, 137, 218, 0.35);
}

.community-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.community-icon svg {
    width: 48px;
    height: 48px;
}

.discord-card .community-icon svg {
    color: #5865f2;
}

.docs-card .community-icon svg {
    color: var(--accent-primary);
}

.community-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.community-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Download Section */
.download {
    position: relative;
    padding: 8rem 2rem;
    text-align: center;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(114, 137, 218, 0.12), transparent 60%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.download .section-title {
    margin-bottom: 1rem;
}

.download .section-subtitle {
    margin-bottom: 3rem;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    min-width: 280px;
}

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

.download-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.download-card-icon svg {
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

.download-card-icon.android svg {
    color: #3ddc84;
}

.download-card-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.download-card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.download-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.download-arrow {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.download-card:hover .download-arrow {
    color: var(--accent-primary);
    transform: translateX(4px);
}

/* Google Play Badge - must use official badge per Google guidelines */
.google-play-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    min-height: 80px;
    transition: all var(--transition-base);
    border-radius: var(--radius-lg);
    background: transparent;
}

.google-play-badge:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

.google-play-badge img {
    height: auto;
    width: 100%;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-dark);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
}

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

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-column a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition-base);
}

.footer-social a:hover {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 7rem 2rem 4rem;
        min-height: auto;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        max-width: 600px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .ai-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .ai-content {
        text-align: center;
        align-items: center;
    }

    .ai-content .section-title,
    .ai-content .section-subtitle {
        text-align: center;
    }

    .ai-features {
        align-items: center;
    }

    .feature-large {
        grid-column: span 1;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-brand {
        max-width: none;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    section {
        padding: 4rem 1.5rem;
    }

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

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

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

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .download-card {
        width: 100%;
        max-width: 350px;
    }

    .footer-links {
        gap: 2rem;
    }

    .platform-cards {
        gap: 1rem;
    }

    .platform-card {
        padding: 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    .capability {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .community-card {
        padding: 1.5rem;
    }
}

/* Scroll Animations */
@media (prefers-reduced-motion: no-preference) {
    .feature-card,
    .capability,
    .platform-card,
    .community-card,
    .download-card {
        opacity: 0;
        transform: translateY(30px);
        animation: scrollReveal 0.6s ease forwards;
        animation-play-state: paused;
    }

    .feature-card.visible,
    .capability.visible,
    .platform-card.visible,
    .community-card.visible,
    .download-card.visible {
        animation-play-state: running;
    }
}

@keyframes scrollReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
