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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #18181b;
    --text-primary: #fafafa;
    --text-secondary: #e4e4e7;
    --text-muted: #a1a1aa;
    --accent-primary: #6366f1;
    --accent-primary-hover: #818cf8;
    --accent-secondary: #8b5cf6;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.04);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-primary-hover: linear-gradient(135deg, #818cf8 0%, #a78bfa 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

#starsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.chibi {
    position: absolute;
    width: 120px;
    height: auto;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
    image-rendering: -webkit-optimize-contrast;
}

.chibi-1 {
    top: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite;
}

.chibi-2 {
    bottom: 20%;
    left: 8%;
    animation: float 7s ease-in-out infinite 1s;
}

.chibi-3 {
    top: 10%;
    right: 5%;
    animation: float 8s ease-in-out infinite 2s;
}

.chibi-4 {
    bottom: 15%;
    right: 8%;
    animation: float 7s ease-in-out infinite 0.5s;
}

.chibi-team-1 {
    top: 20%;
    left: 3%;
    animation: float 6s ease-in-out infinite;
}

.chibi-team-2 {
    bottom: 25%;
    left: 5%;
    animation: float 7s ease-in-out infinite 1s;
}

.chibi-team-3 {
    top: 15%;
    right: 4%;
    animation: float 8s ease-in-out infinite 2s;
}

.chibi-team-4 {
    bottom: 20%;
    right: 6%;
    animation: float 7s ease-in-out infinite 0.5s;
}

.chibi-code-1 {
    top: 18%;
    left: 4%;
    animation: float 6s ease-in-out infinite;
}

.chibi-code-2 {
    bottom: 22%;
    left: 6%;
    animation: float 7s ease-in-out infinite 1s;
}

.chibi-code-3 {
    top: 12%;
    right: 5%;
    animation: float 8s ease-in-out infinite 2s;
}

.chibi-code-4 {
    bottom: 18%;
    right: 7%;
    animation: float 7s ease-in-out infinite 0.5s;
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom-color: var(--border-default);
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

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

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

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

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.btn-discord:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    padding: 6rem 2rem 2rem;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.3);
    color: var(--text-primary);
    transform: translateX(8px);
}

.mobile-nav-link.mobile-discord {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    margin-top: 1rem;
    justify-content: center;
}

.mobile-nav-link.mobile-discord:hover {
    background: var(--gradient-primary-hover);
    transform: translateX(0) translateY(-2px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

.team-section {
    min-height: 100vh;
    padding: 10rem 2rem 6rem;
    position: relative;
    z-index: 2;
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
}

.team-header {
    text-align: center;
    margin-bottom: 4rem;
}

.team-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.team-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

/* ========== CAROUSEL 3D ========== */
.crew-carousel {
    width: 100%;
    max-width: 900px;
    height: 400px;
    position: relative;
    perspective: 1000px;
    margin: 0 auto 3rem;
}

.crew-track {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform-style: preserve-3d;
}

.crew-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 
                0 0 40px rgba(99, 102, 241, 0.1);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(10px);
    will-change: transform, opacity;
}

.crew-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.8s ease;
    display: block;
}

.crew-card.center {
    z-index: 10;
    transform: translate(-50%, -50%) scale(1.1);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 
                0 0 60px rgba(99, 102, 241, 0.3);
}

.crew-card.center img {
    filter: grayscale(0%) brightness(1);
}

.crew-card.left-1 {
    z-index: 5;
    transform: translate(-50%, -50%) translateX(-300px) translateZ(-100px) scale(0.85) rotateY(20deg);
    opacity: 0.6;
}

.crew-card.left-1 img {
    filter: grayscale(80%) brightness(0.6);
}

.crew-card.right-1 {
    z-index: 5;
    transform: translate(-50%, -50%) translateX(300px) translateZ(-100px) scale(0.85) rotateY(-20deg);
    opacity: 0.6;
}

.crew-card.right-1 img {
    filter: grayscale(80%) brightness(0.6);
}

.crew-card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 1;
}

/* Arrows */
.crew-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
    color: var(--accent-primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.crew-arrow:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4);
}

.crew-left {
    left: 10px;
}

.crew-right {
    right: 10px;
}

/* Info Section */
.crew-info {
    text-align: center;
    margin: 3rem auto 2rem;
    max-width: 600px;
}

.crew-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
}

.crew-username {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.crew-role {
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

/* Dots Navigation */
.crew-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
}

.crew-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.crew-dot:hover {
    background: rgba(99, 102, 241, 0.4);
    transform: scale(1.2);
}

.crew-dot.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    transform: scale(1.3);
}

.code-section {
    min-height: 100vh;
    padding: 10rem 2rem 6rem;
    position: relative;
    z-index: 2;
}

.code-container {
    max-width: 1600px;
    margin: 0 auto;
}

.code-header {
    text-align: center;
    margin-bottom: 3rem;
}

.code-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.code-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.code-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.star-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.star-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(251, 191, 36, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.star-btn:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.star-btn:active::before {
    width: 300px;
    height: 300px;
}

.star-icon {
    transition: all 0.3s ease;
    stroke: #fbbf24;
}

.star-btn:hover .star-icon {
    transform: rotate(72deg) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

.star-btn.starred .star-icon {
    fill: #fbbf24;
    stroke: #fbbf24;
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.8));
}

.star-count {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-primary);
    min-width: 40px;
    text-align: center;
    transition: all 0.3s ease;
}

.star-btn.starred .star-count {
    color: #fbbf24;
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.star-btn.pulse {
    animation: pulse 0.6s ease;
}

.star-btn.shake {
    animation: shake 0.5s ease;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-color: rgba(34, 197, 94, 0.5);
}

.notification-info {
    border-color: rgba(59, 130, 246, 0.5);
}

.code-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.breadcrumb-item:hover:not(.active) {
    color: var(--accent-primary);
}

.breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

.breadcrumb-separator {
    color: var(--text-muted);
    opacity: 0.5;
}

.code-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    min-height: 600px;
}

.code-explorer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem;
    overflow-y: auto;
    max-height: 700px;
}

.explorer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.explorer-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.explorer-folder svg {
    color: var(--accent-primary);
}

.explorer-file svg {
    color: var(--text-muted);
}

.explorer-loading,
.viewer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--text-muted);
}

.explorer-error {
    padding: 2rem;
    text-align: center;
    color: var(--error);
}

.code-viewer {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.viewer-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    color: var(--text-muted);
}

.viewer-placeholder svg {
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.viewer-filename {
    font-weight: 600;
    color: var(--text-primary);
}

.viewer-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.viewer-download:hover {
    background: rgba(99, 102, 241, 0.15);
}

.viewer-code {
    margin: 0;
    background: transparent !important;
    max-height: 600px;
    overflow: auto;
}

.viewer-code code {
    font-size: 0.85rem;
    line-height: 1.6;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--accent-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

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

.main-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
}

.cta-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 5rem;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

.feature-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-item:hover {
    background: var(--surface-hover);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.feature-text h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: color 0.2s ease;
}

.scroll-indicator:hover {
    color: var(--text-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.showcase-section {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(99, 102, 241, 0.02) 100%);
}

.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-header {
    text-align: center;
    margin-bottom: 5rem;
}

.showcase-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.showcase-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

.showcase-main {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.app-preview {
    position: relative;
    padding: 1rem;
}

.carousel {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.carousel-track {
    position: relative;
    width: 100%;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(99, 102, 241, 0.2);
    position: relative;
    z-index: 1;
    display: none;
    transition: opacity 0.5s ease;
}

.app-screenshot.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel:hover .app-screenshot {
    transform: scale(1.02);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator.active {
    width: 24px;
    border-radius: 4px;
    background: var(--gradient-primary);
}

.preview-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.showcase-feature {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.showcase-feature::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-feature:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateX(8px);
}

.showcase-feature:hover::before {
    transform: scaleY(1);
}

.feature-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(99, 102, 241, 0.3);
    line-height: 1;
    min-width: 60px;
    transition: color 0.4s ease;
}

.showcase-feature:hover .feature-number {
    color: rgba(99, 102, 241, 0.6);
}

.feature-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.showcase-cta {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.showcase-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.showcase-cta h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.btn-large {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
}

.cta-info {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.pricing-section {
    position: relative;
    z-index: 2;
    padding: 8rem 2rem;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.pricing-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.pricing-intro {
    max-width: 900px;
    margin: 0 auto 5rem;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    text-align: center;
}

.pricing-intro h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.pricing-intro p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.pricing-intro strong {
    color: var(--accent-primary);
    font-weight: 600;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pricing-card-ultimate {
    border-color: rgba(99, 102, 241, 0.3);
    background: rgba(99, 102, 241, 0.03);
}

.pricing-card-ultimate:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.pricing-badge-ultimate {
    background: var(--gradient-primary);
    border: none;
    color: white;
}

.pricing-plan-name {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 1rem;
}

.pricing-price {
    text-align: center;
    margin-bottom: 2.5rem;
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.period {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-features svg {
    flex-shrink: 0;
    color: var(--accent-primary);
}

.pricing-card-ultimate .pricing-features svg {
    color: #818cf8;
}

.pricing-btn {
    width: 100%;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.pricing-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.pricing-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.pricing-btn-primary:hover {
    background: var(--gradient-primary-hover);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
    transform: translateY(-2px);
}

.pricing-btn-disabled {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: not-allowed;
    opacity: 0.6;
}

.pricing-btn-disabled:hover {
    transform: none;
}

.final-cta-section {
    position: relative;
    z-index: 2;
    padding: 6rem 2rem;
}

.final-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.final-cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
}

.final-cta-container h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: rgba(161, 161, 170, 0.4);
    font-size: 0.8rem;
    background: transparent;
    border: none;
}

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

    .header-content {
        gap: 1rem;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex !important;
    }
    
    .mobile-nav:not(.active) {
        pointer-events: none;
    }
    
    .mobile-nav.active {
        pointer-events: auto;
    }
    
    .header {
        z-index: 100;
    }

    .btn-discord {
        display: none;
    }

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

    .main-title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cta-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

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

    .chibi {
        width: 60px;
        opacity: 0.6;
    }

    .chibi-1, .chibi-3 {
        top: 10%;
    }

    .chibi-2, .chibi-4 {
        bottom: 10%;
    }

    .app-preview {
        margin-bottom: 2rem;
    }

    .app-screenshot {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .carousel-indicators {
        gap: 0.5rem;
    }

    .indicator {
        width: 8px;
        height: 8px;
    }

    .crew-carousel {
        max-width: 100%;
        height: 300px;
    }

    .crew-card {
        width: 180px;
        height: 240px;
    }

    .crew-card.left-1 {
        transform: translate(-50%, -50%) translateX(-200px) translateZ(-80px) scale(0.8) rotateY(20deg);
    }

    .crew-card.right-1 {
        transform: translate(-50%, -50%) translateX(200px) translateZ(-80px) scale(0.8) rotateY(-20deg);
    }

    .crew-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .showcase-section {
        padding: 4rem 1.5rem;
    }

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

    .showcase-subtitle {
        font-size: 1rem;
    }

    .showcase-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .showcase-feature {
        padding: 1.25rem;
    }

    .feature-number {
        font-size: 2rem;
        min-width: 50px;
    }

    .feature-content h3 {
        font-size: 1.1rem;
    }

    .showcase-cta {
        padding: 2.5rem 1.5rem;
    }

    .showcase-cta h3 {
        font-size: 1.5rem;
    }

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

    .pricing-section {
        padding: 4rem 1.5rem;
    }

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

    .pricing-subtitle {
        font-size: 1rem;
    }

    .pricing-intro {
        padding: 2rem 1.5rem;
    }

    .pricing-intro h3 {
        font-size: 1.5rem;
    }

    .pricing-intro p {
        font-size: 0.95rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .price {
        font-size: 2.5rem;
    }

    .final-cta-section {
        padding: 4rem 1.5rem;
    }

    .final-cta-container {
        padding: 2.5rem 1.5rem;
    }

    .final-cta-container h3 {
        font-size: 1.5rem;
    }

    .team-section {
        padding: 8rem 1.5rem 4rem;
    }

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

    .team-subtitle {
        font-size: 1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .team-avatar-container {
        width: 120px;
        height: 120px;
    }

    .team-name {
        font-size: 1.5rem;
    }

    .code-section {
        padding: 8rem 1.5rem 4rem;
    }

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

    .code-subtitle {
        font-size: 1rem;
    }

    .code-layout {
        grid-template-columns: 1fr;
    }

    .code-explorer {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.875rem 1rem;
    }

    .main-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

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

    .showcase-subtitle {
        font-size: 0.95rem;
    }

    .showcase-feature {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .feature-number {
        font-size: 1.5rem;
        min-width: auto;
    }

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

    .pricing-card {
        padding: 1.5rem 1rem;
    }

    .price {
        font-size: 2rem;
    }

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

    .crew-carousel {
        height: 250px;
    }

    .crew-card {
        width: 150px;
        height: 200px;
    }

    .crew-card.left-1 {
        transform: translate(-50%, -50%) translateX(-150px) translateZ(-60px) scale(0.75) rotateY(20deg);
    }

    .crew-card.right-1 {
        transform: translate(-50%, -50%) translateX(150px) translateZ(-60px) scale(0.75) rotateY(-20deg);
    }

    .crew-info {
        padding: 1.5rem 1rem;
    }

    .crew-name {
        font-size: 1.5rem;
    }

    .crew-username {
        font-size: 0.9rem;
    }

    .crew-role {
        font-size: 0.85rem;
    }

    .chibi {
        width: 50px;
    }
}

