:root {
    --bg-deep: #0a1d33;
    --bg-mid: #0f2845;
    --bg-edge: #061626;
    --text: #ffffff;
    --text-soft: #d8e4f1;
    --accent: #5dc3ff;
    --box-border: #5dc3ff;
}

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

html, body {
    height: 100%;
    background: var(--bg-deep);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

.stage {
    position: relative;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(93, 195, 255, 0.18), transparent 60%),
        radial-gradient(ellipse at 50% 100%, rgba(15, 40, 69, 0.9), var(--bg-edge) 70%),
        linear-gradient(180deg, #0a1d33 0%, #0c2848 50%, #061626 100%);
    overflow: hidden;
}

/* iceberg as full-stage centerpiece */
.iceberg-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.iceberg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: screen;
    opacity: 0.95;
    filter: saturate(1.05) contrast(1.05);
}

/* twinkling stars */
.stars {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.stars span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--s);
    height: var(--s);
    background: #bfe5ff;
    border-radius: 50%;
    box-shadow: 0 0 8px 2px rgba(93, 195, 255, 0.6);
    animation: twinkle var(--d) ease-in-out infinite alternate;
}

@keyframes twinkle {
    from { opacity: 0.3; transform: scale(0.8); }
    to   { opacity: 1;   transform: scale(1.2); }
}

/* hero text — top left */
.hero-text {
    position: absolute;
    top: 8vh;
    left: 6vw;
    z-index: 3;
    max-width: 620px;
}

.title {
    font-size: clamp(40px, 6vw, 88px);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -1px;
    color: var(--text);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.subtitle {
    margin-top: 18px;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 300;
    color: var(--text-soft);
    letter-spacing: 0.3px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

/* brand logo — top right */
.brand {
    position: absolute;
    top: 7vh;
    right: 6vw;
    z-index: 3;
    width: clamp(180px, 22vw, 320px);
}

.brand-logo {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.5));
}

/* info box — bottom right */
.info-box {
    position: absolute;
    right: 6vw;
    bottom: 8vh;
    z-index: 3;
    max-width: 460px;
    padding: 22px 26px;
    border: 1px solid var(--box-border);
    border-radius: 4px;
    background: rgba(8, 24, 44, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.45),
        inset 0 0 24px rgba(93, 195, 255, 0.08);
}

.info-box p {
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.55;
    font-weight: 300;
}

.info-box p + p {
    margin-top: 14px;
}

/* visitor profile card — bottom left summary */
.profile-card {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 4;
    width: clamp(360px, 36vw, 520px);
    padding: 14px 18px 12px;
    border: 1px solid rgba(93, 195, 255, 0.55);
    border-radius: 6px;
    background: rgba(8, 24, 44, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 24px rgba(93, 195, 255, 0.06);
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    color: var(--text-soft);
    font-size: 12px;
    animation: profile-in 0.5s ease-out;
}

@keyframes profile-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(93, 195, 255, 0.18);
}

.profile-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: profile-pulse 1.4s ease-in-out infinite;
}
@keyframes profile-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}
.profile-card.done .profile-dot {
    background: #7ee5d7;
    box-shadow: 0 0 8px #7ee5d7;
    animation: none;
}

.profile-title {
    flex: 1;
    color: var(--accent);
    font-size: 11px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.profile-status {
    color: rgba(216, 228, 241, 0.55);
    font-size: 10.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
}

.profile-col {
    min-width: 0;
}

.profile-section {
    color: var(--accent);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.85;
}

.profile-card .row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    line-height: 1.55;
    min-width: 0;
}

.profile-card .k {
    color: rgba(150, 180, 210, 0.7);
    font-size: 11px;
    width: 60px;
    flex-shrink: 0;
}

.profile-card .v {
    color: #ffffff;
    font-size: 12px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card .v.loading {
    color: rgba(216, 228, 241, 0.35);
    animation: profile-load 1.4s ease-in-out infinite;
}
@keyframes profile-load {
    0%, 100% { opacity: 0.7; }
    50%      { opacity: 0.25; }
}

.profile-card .v.filled {
    animation: profile-fill 0.4s ease-out;
}
@keyframes profile-fill {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.profile-card .v.blocked {
    color: rgba(255, 123, 114, 0.75);
}

.profile-foot {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(93, 195, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.foot-tip {
    color: rgba(190, 210, 230, 0.55);
    font-size: 10.5px;
    font-style: italic;
    letter-spacing: 0.3px;
}

/* responsive */
@media (max-width: 900px) {
    html, body { overflow-y: auto; }
    .stage {
        height: auto;
        min-height: 100vh;
        padding: 24px 0 40px;
    }
    .hero-text {
        position: relative;
        top: 0;
        left: 0;
        padding: 24px 24px 0;
        max-width: 100%;
    }
    .brand {
        position: relative;
        top: 0;
        right: 0;
        width: 200px;
        margin: 18px 24px 0 auto;
    }
    .iceberg-wrap {
        position: relative;
        inset: auto;
        height: 50vh;
        margin: 12px 0;
    }
    .iceberg-img {
        height: 100%;
        object-fit: contain;
    }
    .info-box {
        position: relative;
        right: 0;
        bottom: 0;
        margin: 0 24px;
        max-width: 100%;
    }
    .profile-card {
        position: relative;
        left: 0;
        bottom: 0;
        width: auto;
        margin: 24px 24px 0;
    }
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .title { font-size: 38px; }
    .subtitle { font-size: 15px; }
    .info-box p { font-size: 14px; }
}
