:root {
    --bg: #050608;
    --bg-soft: #070a0f;
    --surface: #0a0d12;
    --text: #f8fafc;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;
    --text-faded: #64748b;
    --text-faint: #475569;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --emerald: #34d399;
    --holo-cyan: rgba(147, 197, 253, 0.78);
    --holo-violet: rgba(216, 180, 254, 0.72);
}

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

html,
body {
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    color-scheme: dark;
    -webkit-user-select: none;
    user-select: none;
}

body {
    overflow-x: hidden;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 300px;
    height: 230px;
    border-radius: 54% 46% 58% 42% / 48% 58% 42% 52%;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
    background:
        radial-gradient(circle at 38% 44%, rgba(255, 255, 255, 0.12), transparent 12%),
        radial-gradient(ellipse at 42% 50%, rgba(147, 197, 253, 0.22), transparent 54%),
        radial-gradient(ellipse at 66% 42%, rgba(216, 180, 254, 0.16), transparent 58%);
    filter: blur(22px);
    transition: opacity 220ms ease;
    animation: cursor-smoke-morph 5.8s ease-in-out infinite;
    will-change: transform, opacity, border-radius;
}

.cursor-glow::before,
.cursor-glow::after {
    content: "";
    position: absolute;
    inset: 12%;
    border-radius: inherit;
    background: radial-gradient(ellipse, rgba(147, 197, 253, 0.18), transparent 64%);
}

.cursor-glow::after {
    inset: 24% 6% 18% 34%;
    background: radial-gradient(ellipse, rgba(216, 180, 254, 0.16), transparent 66%);
}

.cursor-glow.is-visible {
    opacity: 0.7;
}

.custom-cursor-ready,
.custom-cursor-ready * {
    cursor: none !important;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
    width: 10px;
    height: 10px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    background: #bae6fd;
    box-shadow:
        0 0 0 1px rgba(5, 6, 8, 0.9),
        0 0 8px rgba(147, 197, 253, 0.95),
        0 0 16px rgba(216, 180, 254, 0.5);
    transition: opacity 140ms ease;
    will-change: transform, opacity;
}

.cursor-dot.is-visible {
    opacity: 1;
}

.cursor-smoke {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    width: var(--smoke-size);
    height: var(--smoke-size);
    border-radius: 52% 48% 60% 40% / 44% 56% 42% 58%;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
    background:
        radial-gradient(circle at 38% 34%, rgba(255, 255, 255, 0.1), transparent 18%),
        radial-gradient(ellipse at 42% 54%, rgba(147, 197, 253, 0.2), transparent 60%),
        radial-gradient(ellipse at 66% 42%, rgba(216, 180, 254, 0.14), transparent 64%);
    filter: blur(12px);
    animation: cursor-smoke-drift var(--smoke-duration, 900ms) ease-out forwards;
    transform: translate3d(var(--smoke-x), var(--smoke-y), 0) translate(-50%, -50%);
    will-change: transform, opacity, border-radius;
}

@keyframes cursor-smoke-morph {
    0%,
    100% {
        border-radius: 54% 46% 58% 42% / 48% 58% 42% 52%;
    }
    35% {
        border-radius: 48% 52% 44% 56% / 58% 46% 54% 42%;
    }
    70% {
        border-radius: 60% 40% 52% 48% / 44% 54% 46% 56%;
    }
}

@keyframes cursor-smoke-drift {
    0% {
        opacity: 0;
        border-radius: 52% 48% 60% 40% / 44% 56% 42% 58%;
        transform: translate3d(var(--smoke-x), var(--smoke-y), 0) translate(-50%, -50%) rotate(0deg) scale(0.35);
    }
    22% {
        opacity: var(--smoke-opacity, 0.52);
    }
    48% {
        opacity: var(--smoke-mid-opacity, 0.38);
        border-radius: 58% 42% 46% 54% / 48% 58% 42% 52%;
        transform: translate3d(
                calc(var(--smoke-x) + var(--smoke-mid-x, var(--smoke-drift-x))),
                calc(var(--smoke-y) + var(--smoke-mid-y, var(--smoke-drift-y))),
                0
            )
            translate(-50%, -50%)
            rotate(var(--smoke-mid-rotate, 0deg))
            scale(var(--smoke-mid-scale-x, 1), var(--smoke-mid-scale-y, 1));
    }
    100% {
        opacity: 0;
        border-radius: 44% 56% 46% 54% / 58% 42% 56% 44%;
        transform: translate3d(
                calc(var(--smoke-x) + var(--smoke-drift-x)),
                calc(var(--smoke-y) + var(--smoke-drift-y)),
                0
            )
            translate(-50%, -50%)
            rotate(var(--smoke-rotate))
            scale(var(--smoke-scale-x), var(--smoke-scale-y));
    }
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.coming-soon {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(900px 460px at 78% 18%, rgba(147, 197, 253, 0.11), transparent 62%),
        radial-gradient(700px 380px at 18% 86%, rgba(216, 180, 254, 0.08), transparent 64%),
        var(--bg);
}

.background-grid {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.55) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(circle at 50% 50%, #000 0, transparent 72%);
    pointer-events: none;
}

.grain::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.045;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.logo-watermark {
    /* Desktop watermark is now drawn from .status-panel::before for reliable alignment. */
    display: none;
}

.shell {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: min(1240px, 100%);
    margin: 0 auto;
    padding: 24px;
}

@media (min-width: 768px) {
    .shell {
        padding: 32px 48px;
    }
}

.topbar,
.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-word {
    font-family: "Syncopate", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.15;
}

.brand-word span {
    display: block;
    color: var(--text-faint);
    font-size: 0.62rem;
    letter-spacing: 0.34em;
    margin-top: 3px;
}

.top-link,
.socials a,
.mono {
    font-family: ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.top-link,
.socials a {
    color: var(--text-muted);
    transition: color 200ms;
}

.top-link:hover,
.socials a:hover {
    color: #fff;
}

.hero {
    /* Main page layout: mobile stacks, desktop becomes text column + status column. */
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    flex: 1;
    padding: 72px 0 56px;
}

@media (min-width: 960px) {
    .hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
        gap: 72px;
        padding: 72px 0 64px;
    }

    .status-panel {
        /* Moves the status card down under the desktop watermark logo. */
        margin-top: clamp(120px, 12vh, 180px);
    }
}

.overline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-family: "Syncopate", sans-serif;
    font-size: 10px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--emerald);
    box-shadow: 0 0 24px rgba(52, 211, 153, 0.8);
}

.headline {
    /* Edit hero title scale here. Keep letter-spacing at 0 for this chunky display font. */
    position: relative;
    max-width: 820px;
    font-family: "Outfit", sans-serif;
    font-size: clamp(4rem, 8.7vw, 8.85rem);
    font-weight: 900;
    line-height: 0.86;
    letter-spacing: 0;
}

.headline::after {
    content: attr(data-holo-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    white-space: pre-line;
    color: transparent;
    background: linear-gradient(
        110deg,
        transparent 34%,
        rgba(186, 230, 253, 0.18) 42%,
        rgba(255, 255, 255, 0.95) 49%,
        rgba(216, 180, 254, 0.72) 55%,
        transparent 65%
    );
    background-size: 260% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 0 18px rgba(147, 197, 253, 0.2));
    opacity: 0;
}

.headline:hover::after {
    animation: headline-holo-sweep 620ms cubic-bezier(0.2, 0, 0.2, 1) both;
}

.headline [data-holding="headlineBottom"] {
    display: block;
    color: var(--text-faded);
    font-style: italic;
    font-weight: 300;
}

.lead {
    max-width: 38rem;
    margin-top: 32px;
    color: var(--text-soft);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    line-height: 1.7;
}

.lead strong {
    color: #fff;
    font-weight: 500;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition:
        background 200ms,
        color 200ms,
        border-color 200ms;
}

.btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-primary:hover {
    background: #e2e8f0;
    border-color: #e2e8f0;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
}

.status-panel {
    /* Status card container. The desktop watermark is attached to this card. */
    position: relative;
    align-self: center;
    overflow: visible;
    border: 1px solid var(--line-2);
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.status-panel::before {
    /* Desktop watermark logo: centred to the status card. Hidden on mobile below. */
    content: "";
    position: absolute;
    left: 50%;
    bottom: calc(100% - 18px);
    width: min(720px, 172%);
    aspect-ratio: 1.9;
    transform: translateX(-50%);
    opacity: 0.035;
    background: url("images/logo.svg") center / contain no-repeat;
    filter: drop-shadow(0 0 64px rgba(147, 197, 253, 0.18));
    pointer-events: none;
}

.status-panel::after {
    content: "";
    position: absolute;
    right: -32px;
    top: 50%;
    width: min(240px, 48%);
    aspect-ratio: 1;
    transform: translateY(-50%);
    opacity: 0;
    background: url("images/logo.svg") center / contain no-repeat;
    filter: drop-shadow(0 0 42px rgba(147, 197, 253, 0.16));
    pointer-events: none;
}

.status-panel > * {
    position: relative;
    z-index: 1;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--text-faint);
}

.live-pill {
    padding: 5px 9px;
    border: 1px solid rgba(52, 211, 153, 0.32);
    color: #6ee7b7;
    background: rgba(52, 211, 153, 0.06);
    font-family: ui-monospace, monospace;
    font-size: 9px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.progress-block {
    padding: 22px 18px 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: 0.86rem;
}

.progress-track {
    position: relative;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.progress-track span {
    position: relative;
    display: block;
    width: 52%;
    height: 100%;
    background: linear-gradient(90deg, #fff, var(--holo-cyan), var(--holo-violet));
    overflow: hidden;
    transform-origin: left;
    animation: progress-fill 1.4s cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
}

.progress-track span::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 34%,
        rgba(255, 255, 255, 0.05) 42%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(186, 230, 253, 0.5) 56%,
        transparent 66%,
        transparent 100%
    );
    background-size: 240% 100%;
    mix-blend-mode: screen;
    animation: progress-holo-shine 2.7s cubic-bezier(0.4, 0.1, 0.3, 1) 1.5s infinite;
}

.status-list {
    border-top: 1px solid var(--line);
}

.status-list div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.status-list div:last-child {
    border-bottom: 0;
}

.status-list dt {
    color: var(--text-faint);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.status-list dd {
    color: #fff;
    font-weight: 500;
    text-align: right;
}

.footer {
    position: relative;
    z-index: 30;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--text-faint);
}

.socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.holo-sweep {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 38%, var(--holo-cyan) 45%, #fff 50%, var(--holo-violet) 55%, transparent 62%);
    background-size: 280% 100%;
    mix-blend-mode: screen;
    -webkit-mask-image: url("images/logo.svg");
    mask-image: url("images/logo.svg");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    animation: holo-sweep 5.6s cubic-bezier(0.4, 0.1, 0.3, 1) infinite;
}

@keyframes holo-sweep {
    0%,
    72%,
    100% {
        background-position: 150% 0;
        opacity: 0;
    }
    78%,
    88% {
        opacity: 1;
    }
    90% {
        background-position: -60% 0;
        opacity: 0;
    }
}

@keyframes headline-holo-sweep {
    0% {
        background-position: 130% 0;
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    86% {
        background-position: -60% 0;
        opacity: 1;
    }
    100% {
        background-position: -60% 0;
        opacity: 0;
    }
}

@keyframes progress-fill {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes progress-holo-shine {
    0%,
    24% {
        background-position: 140% 0;
        opacity: 0;
    }
    34% {
        opacity: 1;
    }
    64% {
        background-position: -80% 0;
        opacity: 1;
    }
    74%,
    100% {
        background-position: -80% 0;
        opacity: 0;
    }
}

@media (max-width: 640px) {
    /* Mobile layout: no watermark, stacked nav/footer, simpler status card. */
    .shell {
        padding: 20px;
    }

    .topbar,
    .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding: 72px 0 48px;
    }

    .headline {
        font-size: clamp(3.35rem, 17vw, 4.75rem);
    }

    .logo-watermark {
        display: none;
    }

    .status-panel {
        overflow: hidden;
    }

    .status-panel::before,
    .status-panel::after {
        display: none;
    }

    .status-list div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .status-list dd {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .holo-sweep,
    .headline::after,
    .progress-track span,
    .progress-track span::after {
        animation: none;
    }
}
