/* =============================================
   IRIS — Coming Soon
   ============================================= */

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

@font-face {
    font-family: 'ZenKurenaido';
    src: url('../assets/fonts/ZenKurenaido-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #002D72;
    --blue-mid: #0046A8;
    --blue-light: #4A90D9;
    --red: #E4002B;
    --red-glow: #FF1744;
    --white: #FFFFFF;
}

html { font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--blue);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
}

/* ===================== CANVAS ===================== */
#aurora {
    position: fixed;
    inset: 0;
    z-index: 0;
}

/* ===================== GRAIN OVERLAY ===================== */
.grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

/* ===================== MOUSE GLOW ===================== */
.mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle, rgba(74,144,217,0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: left 0.3s ease-out, top 0.3s ease-out;
    will-change: left, top;
}

/* ===================== SCENE ===================== */
.scene {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 24px;
}

/* ---- Cross symbol ---- */
.logo-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 48px;
    opacity: 0;
    animation: revealUp .8s cubic-bezier(.16,1,.3,1) .3s forwards;
}

.logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 24px rgba(74,144,217,0.3));
}

.logo-ring {
    position: absolute;
    inset: -14px;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

.logo-ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--red-glow), 0 0 40px rgba(228,0,43,0.3);
}

/* ---- Titles ---- */
.title {
    font-family: 'ZenKurenaido', 'Inter', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0;
    animation: revealUp .8s cubic-bezier(.16,1,.3,1) .5s forwards;
    background: linear-gradient(180deg, var(--white) 40%, var(--blue-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: clamp(0.7rem, 1.5vw, 0.85rem);
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 48px;
    opacity: 0;
    animation: revealUp .8s cubic-bezier(.16,1,.3,1) .65s forwards;
}

/* ---- Divider ---- */
.divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    margin-bottom: 48px;
    opacity: 0;
    animation: revealUp .8s cubic-bezier(.16,1,.3,1) .8s forwards;
}

/* ---- Description ---- */
.desc {
    max-width: 420px;
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.55);
    margin-bottom: 56px;
    opacity: 0;
    animation: revealUp .8s cubic-bezier(.16,1,.3,1) .95s forwards;
}


/* ---- Bottom bar ---- */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.2);
    opacity: 0;
    animation: fadeIn 1s 1.8s forwards;
}

/* ---- Tri-color accent ---- */
.tri-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100;
    display: flex;
    opacity: 0;
    animation: fadeIn .6s 1.6s forwards;
}

.tri-line div { flex: 1; }
.tri-line div:nth-child(1) { background: var(--blue-mid); }
.tri-line div:nth-child(2) { background: var(--white); }
.tri-line div:nth-child(3) { background: var(--red); }

/* ===================== KEYFRAMES ===================== */
@keyframes revealUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 600px) {
    .form-inner {
        flex-direction: column;
        border-radius: 16px;
    }
    .form-inner button {
        border-radius: 0 0 16px 16px;
        padding: 14px;
    }
    .bottom-bar {
        flex-direction: column;
        gap: 6px;
        text-align: center;
        padding: 16px;
    }
    .logo-wrap {
        width: 72px;
        height: 72px;
        margin-bottom: 36px;
    }
    .desc {
        margin-bottom: 40px;
    }
}

/* ===================== A11Y ===================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}
