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

:root {
    --treasury-blue: #0053A2;
    --treasury-dark: #003366;
    --treasury-light: #1a6fc4;
    --bg-light: #e8e8e8;
    --bg-white: #f5f5f5;
    --text-dark: #1a1a1a;
    --text-gray: #444;
}

body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Header & Navigation */
header {
    background: var(--treasury-blue);
    color: white;
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.logo img {
    height: 40px;
    width: auto;
    z-index: 2;
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: 'Kode Mono', monospace;
    overflow: hidden;
}

.dept-name {
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateX(-100%);
    animation: slideOutFromLogo 0.8s ease-out 0.3s forwards;
}

.core-name {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateX(-100%);
    animation: slideOutFromLogo 0.8s ease-out 0.5s forwards;
}

@keyframes slideOutFromLogo {
    0% {
        opacity: 0;
        transform: translateX(-100%);
        filter: blur(4px);
    }
    50% {
        opacity: 0.7;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }
}

/* Buttons */
.btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    border: 1px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kode Mono', monospace;
    text-transform: uppercase;
}

.btn:hover {
    background: white;
    color: var(--treasury-blue);
}

.btn-outline {
    background: transparent;
}

.btn-primary {
    background: var(--treasury-blue);
    border-color: var(--treasury-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--treasury-dark);
    border-color: var(--treasury-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 83, 162, 0.4);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, var(--treasury-blue) 0%, var(--treasury-light) 50%, var(--treasury-blue) 100%);
    color: white;
    padding: 6rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.lottie-container {
    width: 100%;
    max-width: 900px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.lottie-container svg {
    width: 100% !important;
    height: auto !important;
}

.hero-title {
    font-family: 'Kode Mono', monospace;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: 'Kode Mono', monospace;
    font-size: 1rem;
    letter-spacing: 4px;
    opacity: 0.9;
}

/* Gradient Transition Section */
#gradient-transition {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--treasury-blue);
}

#gradient-transition-2 {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-light);
}

#dot-gradient,
#dot-gradient-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Refounding Section */
#refounding {
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    background: var(--bg-light);
}

.refounding-video {
    position: relative;
    max-width: 900px;
    width: 90%;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    aspect-ratio: 16/9;
}

.refounding-video iframe {
    width: 100%;
    height: calc(100% + 50px);
    margin-top: -50px;
    border: none;
    display: block;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.video-overlay.hiding {
    opacity: 0;
}

.video-overlay .overlay-label {
    transition: background 0.3s ease;
}

.overlay-label {
    font-family: 'Kode Mono', monospace;
    font-size: 1rem;
    color: white;
    letter-spacing: 2px;
    background: var(--treasury-blue);
    padding: 0.75rem 1.5rem;
    display: inline-block;
    text-align: center;
}

/* Content Sections */
.content-section {
    padding: 3rem 2rem;
    background: var(--bg-light);
}

.section-label {
    font-family: 'Kode Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 2px;
    background: var(--treasury-blue);
    color: white;
    padding: 0.5rem 1rem;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-content {
    max-width: 800px;
}

.section-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.8;
}

/* Technical Core Section */
#technical-core {
    background: var(--treasury-blue);
    color: white;
    padding: 5rem 2rem;
    text-align: center;
}

.technical-content {
    max-width: 700px;
    margin: 0 auto;
}

.technical-content h2 {
    font-family: 'Kode Mono', monospace;
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    font-weight: 400;
}

.technical-content p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    line-height: 2;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.technical-content .emphasis {
    margin-top: 2rem;
    font-weight: 600;
}

/* Selectivity Section */
#selectivity {
    background: var(--bg-white);
    padding-bottom: 6rem;
    position: relative;
}

.stages-list {
    list-style: none;
    margin: 1.5rem 0 2rem;
    padding-left: 0;
}

.stages-list li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--treasury-blue);
}

.stages-list .stage-num {
    font-weight: 600;
}

.nomination-btn-wrapper {
    position: absolute;
    right: 8%;
    bottom: 3rem;
}

.btn-nomination {
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    border: 2px solid var(--treasury-blue);
    background: transparent;
    color: var(--treasury-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Kode Mono', monospace;
    text-transform: uppercase;
}

.btn-nomination:hover {
    background: var(--treasury-blue);
    color: white;
}

/* Partners Section */
#partners {
    background: var(--bg-light);
    padding: 0;
    border-top: 2px solid var(--treasury-blue);
    border-bottom: 2px solid var(--treasury-blue);
}

.partners-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    max-width: 100%;
    margin: 0;
}

.partner {
    font-family: 'Kode Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--text-gray);
    padding: 1.2rem 1.5rem;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 2px,
        rgba(0, 83, 162, 0.05) 2px,
        rgba(0, 83, 162, 0.05) 4px
    );
    transition: all 0.3s;
    flex: 1;
    text-align: center;
}

.partner:first-child {
    border-left: 1px solid #ccc;
}

.partner:hover {
    background: rgba(0, 83, 162, 0.1);
    color: var(--treasury-blue);
}

/* Seal Section */
#seal {
    background: var(--bg-light);
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
}

.treasury-seal {
    width: 100px;
    height: auto;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.treasury-seal:hover {
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        padding: 0 1rem;
    }

    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .ascii-art pre {
        font-size: 0.25rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .technical-content h2 {
        font-size: 1.2rem;
    }

    .partners-grid {
        gap: 1rem;
    }

    .partner {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .ascii-art pre {
        font-size: 0.2rem;
    }
}

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

.animate-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--treasury-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--treasury-dark);
}
