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

:root {
    --slate: #2D3748;
    --teal: #4FD1C5;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #f4fafa;
    color: var(--slate);
    overflow-x: hidden;
    cursor: default;
}

/* ── Floating doodles ── */
.doodle {
    position: fixed;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.doodle:nth-child(odd) {
    animation-direction: alternate-reverse;
}

.doodle svg {
    width: 100%;
    height: 100%;
}

@keyframes float {

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

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

/* ── Hero ── */
.hero {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

.badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1.5px solid var(--teal);
    border-radius: 999px;
    padding: 10px 22px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--slate);
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s 0.3s ease forwards;
    z-index: 1;
    cursor: default;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.badge::before {
    content: '';
    position: absolute;
    inset: -1.5px;
    border-radius: 999px;
    background: conic-gradient(from var(--border-angle),
            #f44336, #ff9800, #ffeb3b, #4caf50, #2196f3, #9c27b0, #f44336);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.badge:hover::before {
    opacity: 1;
    animation: spinGradient 2s linear infinite;
}

.badge:hover {
    border-color: transparent;
}

/* Inner white fill to mask gradient behind text on hover */
.badge-inner {
    position: absolute;
    inset: 1px;
    background: white;
    border-radius: 999px;
    z-index: -1;
}

@keyframes spinGradient {
    to {
        --border-angle: 360deg;
    }
}

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

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.6);
        opacity: 0.5;
    }
}

.logo-wrap {
    opacity: 0;
    animation: fadeUp 0.8s 0.5s ease forwards;
    margin-bottom: 10px;
}

#logo {
    display: block;
    max-width: 420px;
    width: 100%;
    height: auto;
}

.tagline {
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 3vw, 22px);
    color: var(--slate);
    text-align: center;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 12px;
    opacity: 0;
    animation: fadeUp 0.8s 0.7s ease forwards;
}

.tagline em {
    font-style: normal;
    color: var(--teal);
    position: relative;
}

.tagline em::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
    transform: scaleX(0);
    animation: underline 0.6s 1.6s ease forwards;
}

@keyframes underline {
    to {
        transform: scaleX(1);
    }
}

.subtitle {
    font-size: clamp(14px, 2.5vw, 17px);
    color: rgba(45, 55, 72, 0.6);
    text-align: center;
    max-width: 440px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s 0.9s ease forwards;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-radius: 60px;
    padding: 16px 32px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: var(--slate);
    text-decoration: none;
    box-shadow: 0 4px 24px rgba(45, 55, 72, 0.08), 0 0 0 1px rgba(79, 209, 197, 0.2);
    opacity: 0;
    animation: fadeUp 0.8s 1.1s ease forwards;
    transition: box-shadow 0.3s, transform 0.2s;
}

.email-link:hover {
    box-shadow: 0 4px 32px rgba(79, 209, 197, 0.25), 0 0 0 2px var(--teal);
    transform: translateY(-2px);
}

.email-link:active {
    transform: translateY(0);
}

.countdown-section {
    margin-top: 52px;
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 1.5s ease forwards;
}

.cd-block {
    text-align: center;
    background: white;
    border-radius: 18px;
    padding: 18px 14px 14px;
    min-width: 76px;
    box-shadow: 0 2px 12px rgba(45, 55, 72, 0.06);
    transition: transform 0.3s;
}

.cd-block:hover {
    transform: translateY(-4px);
}

.cd-num {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--slate);
    line-height: 1;
}

.cd-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(45, 55, 72, 0.4);
    margin-top: 6px;
    font-weight: 700;
}

.scroll-hint {
    margin-top: 48px;
    opacity: 0;
    animation: fadeUp 0.8s 2s ease forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(45, 55, 72, 0.4);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
}

.scroll-hint .arrow {
    width: 20px;
    height: 20px;
    border-right: 2.5px solid var(--teal);
    border-bottom: 2.5px solid var(--teal);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

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

    50% {
        transform: rotate(45deg) translateY(6px);
    }
}

/* ── Section ── */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: clamp(26px, 4vw, 38px);
    text-align: center;
    margin-bottom: 12px;
    color: var(--slate);
}

.section-subtitle {
    text-align: center;
    color: rgba(45, 55, 72, 0.6);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* ── Roles ── */
.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.role-card {
    background: white;
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 2px 16px rgba(45, 55, 72, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--teal);
}

.role-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(45, 55, 72, 0.1);
}

.role-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    background: rgba(79, 209, 197, 0.15);
}

.role-name {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--slate);
}

.role-desc {
    font-size: 13px;
    color: rgba(45, 55, 72, 0.6);
    line-height: 1.6;
}

/* ── Wave divider ── */
.wave-divider {
    width: 100%;
    height: 80px;
    display: block;
}

/* ── Modules ── */
.modules-section {
    background: white;
    padding: 80px 24px;
    position: relative;
    z-index: 1;
}

.modules-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.module-card {
    background: #f4fafa;
    border-radius: 20px;
    padding: 28px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    border-left: 4px solid var(--teal);
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(45, 55, 72, 0.08);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.module-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: rgba(79, 209, 197, 0.15);
}

.module-name {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--slate);
}

.module-tagline {
    font-size: 13px;
    color: var(--teal);
    font-weight: 600;
}

.module-overview {
    font-size: 14px;
    color: rgba(45, 55, 72, 0.65);
    line-height: 1.7;
    margin: 0;
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 24px;
    background: var(--slate);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--teal);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(79, 209, 197, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.3s;
    z-index: 100;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--slate);
}

.footer a {
    color: var(--teal);
    text-decoration: none;
    font-weight: 600;
}

.footer-logo {
    font-family: 'Fredoka', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: white;
    margin-bottom: 8px;
}

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

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

@keyframes blink {

    0%,
    94%,
    100% {
        transform: scaleY(1);
    }

    97% {
        transform: scaleY(0.05);
    }
}

.eye-white {
    transform-origin: center;
    animation: blink 4s ease-in-out infinite;
}

.left-eye .eye-white {
    animation-delay: 0s;
}

.right-eye .eye-white {
    animation-delay: 0.1s;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Responsive ── */
@media (max-width: 520px) {
    .countdown-section {
        gap: 12px;
    }

    .cd-block {
        min-width: 62px;
        padding: 14px 10px 10px;
    }

    .cd-num {
        font-size: 26px;
    }

    #logo {
        max-width: 300px;
    }

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

    .email-link {
        padding: 14px 24px;
        font-size: 15px;
    }
}
