* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    height: 100vh;
    overflow: hidden;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: var(--bg);
}

/* Center Gradient Circle */
.center-gradient {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(99, 102, 241, 0.3) 0%,
        rgba(99, 102, 241, 0.25) 30%,
        rgba(99, 102, 241, 0.2) 50%,
        rgba(99, 102, 241, 0.1) 70%,
        transparent 100%
    );
    filter: blur(90px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.8;
}

.page-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transition: opacity 0.5s ease;
}

.loader-bar {
    width: 300px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    transition: width 0.1s linear;
}

.loader-percent {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
}

/* Main Content */
.main-content {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-out, visibility 0s 0.8s;
    z-index: 15;
    overflow: hidden;
}

.main-content:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease-out, visibility 0s;
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Top Navigation */
.top-nav {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 100;
}

.dashboard-btn {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1;
}

.dashboard-btn:hover {
    color: var(--text-primary);
}

/* Logo Above Text */
.logo-above {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.logo-main {
    width: 90px;
    height: auto;
}

/* Center Section */
.center-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    z-index: 20;
    min-height: 100vh;
    box-sizing: border-box;
}

.brand-section {
    text-align: center;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    position: relative;
    z-index: 21;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    line-height: 1.1;
    margin: 0 0 12px 0;
    position: relative;
    display: inline-block;
}

.brand-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-dark) 100%);
    opacity: 0.3;
}

.brand-tagline {
    font-size: clamp(14px, 2.2vw, 20px);
    font-weight: 300;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0 auto 24px auto;
    max-width: 680px;
}

/* Modules Grid */
.modules-grid {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    max-width: 500px;
    flex-wrap: nowrap;
}

.module-card {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.module-card:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

.module-icon {
    width: 22px;
    height: 22px;
    color: rgba(99, 102, 241, 0.85);
    stroke: currentColor;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.btn {
    padding: 11px 26px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--accent);
    color: var(--text-primary);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}


/* Responsive */
@media (max-width: 768px) {
    .top-nav {
        top: 20px;
        right: 20px;
    }

    .dashboard-btn {
        font-size: 10px;
    }

    .center-section {
        padding: 40px 20px;
        min-height: 100vh;
    }

    .logo-above {
        margin-bottom: 12px;
    }

    .logo-main {
        width: 70px;
    }

    .brand-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 10px;
    }

    .brand-tagline {
        font-size: clamp(13px, 3.5vw, 16px);
        margin-bottom: 18px;
        max-width: 100%;
        padding: 0 10px;
    }

    .modules-grid {
        gap: 8px;
        margin-bottom: 16px;
        max-width: 100%;
        padding: 0 10px;
    }

    .module-card {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }

    .module-icon {
        width: 18px;
        height: 18px;
    }

    .btn {
        padding: 10px 22px;
        font-size: 11px;
    }

    .loader-bar {
        width: 260px;
    }
}

@media (max-width: 480px) {
    .center-section {
        padding: 30px 16px;
    }

    .logo-main {
        width: 60px;
    }

    .brand-title {
        font-size: 26px;
        margin-bottom: 8px;
    }

    .brand-tagline {
        font-size: 13px;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .modules-grid {
        gap: 6px;
        margin-bottom: 14px;
    }

    .module-card {
        width: 45px;
        height: 45px;
    }

    .module-icon {
        width: 16px;
        height: 16px;
    }

    .btn {
        padding: 9px 20px;
        font-size: 10px;
    }
}
