/* ============================================
   VersionBear — Design System
   Clean, minimal, warm maker brand aesthetic
   ============================================ */

/* --- Custom Properties --- */
:root {
    /* Palette — minimalistic midnight theme */
    --bg: #000000;
    --bg-alt: #050505;
    --surface: #0a0a0a;
    --text: #ffffff;
    --text-secondary: #a1a1a1;
    --text-tertiary: #666666;
    --accent: #c47a3a;
    --accent-light: #e0a672;
    --accent-glow: rgba(196, 122, 58, 0.15);
    --border: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Sizing */
    --max-width: 1120px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* --- 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);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}


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

img {
    display: block;
    max-width: 100%;
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    min-width: min(90vw, 840px);
    z-index: 100;
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.5s var(--ease), transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

#main-nav.nav-hidden {
    transform: translate(-50%, -120%);
    opacity: 0;
    pointer-events: none;
}


#main-nav.scrolled {
    top: 16px;
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-inner {
    width: 100%;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    transition: opacity 0.2s var(--ease);
}

.nav-logo:hover {
    opacity: 0.7;
}

.logo-icon {
    font-size: 1.3rem;
}

.nav-logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 450;
    color: var(--text-secondary);
    transition: color 0.2s var(--ease);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover {
    color: var(--accent);
}

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

.nav-links a.nav-active {
    color: var(--text);
    font-weight: 600;
}

.nav-links a.nav-active::after {
    width: 100%;
    background: var(--accent);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

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

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

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

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-3xl) var(--space-md);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-logo-wrapper {
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.1s forwards;
}



.hero-title {
    font-size: clamp(3.2rem, 9vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.35s forwards;
}

.hero-title .accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    font-weight: 350;
    line-height: 1.6;
    max-width: 460px;
    margin: 0 auto var(--space-lg);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.5s forwards;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.65s forwards;
}

/* Hero background visuals */
.hero-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 6s ease-in-out infinite;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
    opacity: 0.4;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -100px;
    animation: float 12s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 10%;
    border-color: var(--accent-light);
    opacity: 0.25;
    animation: float 8s ease-in-out infinite 2s;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font);
    border-radius: var(--radius-xl);
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease);
}

.btn-primary {
    background: var(--text);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--text-tertiary);
    color: var(--text);
    transform: translateY(-2px);
}

/* --- Sections --- */
.section {
    padding: var(--space-3xl) var(--space-md);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: var(--space-xl);
}

/* --- About Modern --- */
.about-modern-layout {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.about-header {
    max-width: 800px;
}

.about-big-text {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--text);
}

.about-grid-new {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-3xl);
    align-items: start;
}

.about-copy {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.about-copy p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mini-card {
    display: flex;
    gap: var(--space-sm);
}

.mini-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.mini-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mini-content p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* --- Community Lite --- */
.community-lite {
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.community-info .section-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: var(--space-md);
}

.community-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 32ch;
}

.community-card-modern {
    position: relative;
    padding: var(--space-3xl);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.glass-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.quote {
    position: relative;
    z-index: 2;
    font-size: 1.8rem;
    font-weight: 650;
    font-style: italic;
    text-align: center;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

/* --- Partners --- */
.partners {
    background:
        radial-gradient(circle at top right, rgba(159, 223, 76, 0.08), transparent 32%),
        var(--bg-alt);
}

.partners-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.partners-heading .section-title {
    margin-bottom: 0;
}

.partners-intro {
    max-width: 420px;
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.partners-grid {
    display: grid;
    gap: var(--space-md);
}

.partner-card {
    display: grid;
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: var(--space-lg);
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-md);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.partner-card:hover {
    transform: translateY(-4px);
    border-color: rgba(159, 223, 76, 0.28);
    box-shadow: 0 24px 54px rgba(26, 26, 24, 0.08);
}

.partner-logo-panel {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    border-radius: calc(var(--radius-xl) - 8px);
    background:
        radial-gradient(circle at top right, rgba(159, 223, 76, 0.12), transparent 36%),
        linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    border: 1px solid rgba(159, 223, 76, 0.1);
    overflow: hidden;
}

.partner-logo {
    width: min(100%, 230px);
    height: auto;
}

.partner-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.partner-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.partner-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(159, 223, 76, 0.12);
    color: #4f772d;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.partner-link-label {
    font-size: 0.84rem;
    color: var(--text-tertiary);
}

.partner-name {
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.partner-description {
    max-width: 48ch;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Projects --- */
.projects {
    background: var(--bg-alt);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    border-color: var(--accent-light);
}

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

.project-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    margin-bottom: var(--space-md);
    transition: color 0.3s var(--ease);
}

.project-card:hover .project-number {
    color: var(--accent-light);
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.project-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-xl);
    background: var(--accent-glow);
    color: var(--accent);
}

/* --- Contact --- */
.contact {
    background: var(--bg);
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.contact-card .section-label,
.contact-card .section-title {
    text-align: center;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease);
}

.contact-link svg {
    width: 18px;
    height: 18px;
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* --- Footer --- */
.footer {
    border-top: 1px solid var(--border);
    background: var(--bg);
    overflow: hidden;
}

/* Footer bar - dark strip at top */
.footer-bar {
    background: #000000;
    padding: var(--space-md) var(--space-md);
    border-top: 1px solid var(--border);
}

.footer-bar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bar-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.footer-bar-copy {
    font-size: 0.8rem;
    color: #888885;
    font-weight: 450;
}

.footer-owner {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.78rem;
    color: #6f6f6b;
    font-weight: 450;
    transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.footer-owner::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

.footer-owner:hover {
    color: #d8d6cf;
}

.footer-bar-center {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-bar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.2s var(--ease);
}

.footer-bar-link:hover {
    opacity: 0.7;
}

.footer-bar-right {
    display: flex;
    align-items: center;
}

.footer-bar-top {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #aaaaa7;
    font-weight: 450;
    transition: color 0.2s var(--ease);
}

.footer-bar-top:hover {
    color: #ffffff;
}

/* Large brand text */
.footer-brand-text {
    background: var(--bg);
    padding: 0;
    overflow: hidden;
}

.footer-brand-text span {
    display: block;
    font-size: clamp(60px, 15vw, 180px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: transparent;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.75), transparent 38%),
        linear-gradient(135deg, #36231a 0%, #8f5b3e 28%, var(--accent) 52%, #e8c4a8 74%, #5d3a28 100%);
    background-clip: text;
    -webkit-background-clip: text;
    text-align: center;
    padding: var(--space-sm) 0;
    text-shadow: 0 18px 45px rgba(200, 135, 94, 0.16);
    filter: drop-shadow(0 10px 24px rgba(54, 35, 26, 0.12));
    transition: transform 0.3s var(--ease), filter 0.3s var(--ease), opacity 0.3s var(--ease);
}

.footer-brand-text:hover span {
    opacity: 0.95;
    transform: translateY(-2px);
    filter: drop-shadow(0 14px 30px rgba(200, 135, 94, 0.2));
}

/* Legacy footer styles (kept for other pages) */
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.footer-rights {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
}

.footer-link-sm {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.footer-link-sm:hover {
    color: var(--text);
    text-decoration: underline;
}

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

.footer-links {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-divider {
    color: var(--text-tertiary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s var(--ease);
}

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

.footer-social {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-xs);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all 0.2s var(--ease);
}

.footer-social a:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1.1);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 900px) {
    .about-grid-new, .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .community-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

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

    .partner-card {
        grid-template-columns: 1fr;
    }

    .partners-heading {
        flex-direction: column;
        align-items: start;
    }
}

/* Mobile */
@media (max-width: 640px) {
    :root {
        --space-3xl: 5rem;
    }

    .section-inner {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    /* Mobile nav */
    #main-nav {
        top: 14px;
        width: min(calc(100vw - 24px), 440px);
        min-width: 0;
    }

    #main-nav.scrolled {
        top: 10px;
    }

    .nav-inner {
        padding: 0 var(--space-md);
        height: 56px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 12px;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: var(--space-md) 0;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s var(--ease);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: var(--space-sm) var(--space-md);
        font-size: 1rem;
    }

    .nav-links a::after {
        display: none;
    }

    /* Mobile projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .discord-community-shell {
        grid-template-columns: 1fr;
        padding: var(--space-lg);
    }

    /* Mobile hero */
    .hero-logo {
        width: 110px;
        height: 110px;
    }

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

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

    .discord-community-copy .section-title {
        max-width: none;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Mobile community */
    .community-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: var(--space-lg);
    }

    .community-info p {
        margin-left: auto;
        margin-right: auto;
    }

    .community-card-modern {
        min-height: 300px;
        padding: var(--space-xl) var(--space-md);
    }

    .quote {
        font-size: 1.4rem;
    }

    /* Mobile contact */
    .contact-card {
        padding: var(--space-xl) var(--space-md);
    }

    .partner-card {
        padding: var(--space-sm);
        gap: var(--space-md);
    }

    .partner-logo-panel {
        min-height: 140px;
        padding: var(--space-md);
    }

    .partner-card-topline {
        align-items: start;
    }

    /* Mobile footer */
    .footer-inner {
        flex-direction: column;
        gap: var(--space-xs);
        text-align: center;
    }

    .footer-group {
        align-items: center;
    }

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

    .footer-rights {
        align-items: center;
        margin-top: var(--space-sm);
    }

    /* Mobile footer bar */
    .footer-bar {
        padding: var(--space-sm) var(--space-sm) 1.1rem;
    }

    .footer-bar-inner {
        flex-direction: column;
        gap: 0.85rem;
        text-align: center;
    }

    .footer-bar-center {
        order: 1;
        gap: 1.1rem;
    }

    .footer-bar-left {
        order: 2;
        justify-content: center;
        flex-direction: column;
        gap: 0.45rem;
        width: 100%;
        text-align: center;
    }

    .footer-bar-copy,
    .footer-bar-left .footer-bar-link {
        line-height: 1.35;
    }

    .footer-bar-right {
        order: 0;
        width: 100%;
        justify-content: center;
    }

    .footer-bar-link {
        width: 42px;
        height: 42px;
    }

    .footer-bar-top {
        min-height: 42px;
        padding: 0.45rem 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.03);
    }

    .footer-brand-text span {
        font-size: clamp(34px, 11vw, 56px);
        letter-spacing: -0.045em;
        line-height: 0.92;
        padding: 0.8rem 0.35rem 0.45rem;
        color: rgba(255, 255, 255, 0.03);
    }

    /* Shapes smaller on mobile */
    .shape-1 {
        width: 200px;
        height: 200px;
    }

    .shape-2 {
        width: 120px;
        height: 120px;
    }

    .shape-3 {
        width: 80px;
        height: 80px;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    #main-nav {
        width: min(calc(100vw - 16px), 420px);
    }

    .nav-inner {
        padding: 0 1rem;
    }

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

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

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

    .footer-bar {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .footer-bar-center {
        gap: 0.85rem;
    }

    .footer-bar-copy,
    .footer-bar-top {
        font-size: 0.75rem;
    }

    .footer-brand-text span {
        font-size: clamp(30px, 10vw, 40px);
        letter-spacing: -0.035em;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
    }
}

/* --- Error Page --- */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.error-visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.error-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.error-code {
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) forwards;
}

.error-title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.error-msg {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.4s forwards;
}

.error-actions {
    opacity: 0;
    animation: fadeUp 0.8s var(--ease-out) 0.6s forwards;
}

