/*
 * DevKraken — the coming-soon site.
 *
 * Dark-only by design: the page wears the application's dark theme. Every colour below is
 * a design token from packages/shared/src/design/tokens.ts, restated here because the
 * site ships on its own — if a token changes there, change it here too.
 */

@font-face {
    font-family: Inter;
    font-style: normal;
    font-weight: 400 500;
    font-display: swap;
    src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}

:root {
    --dk-bg: #161826;
    --dk-chrome: #12141f;
    --dk-text: #e9e9ed;
    --dk-dim: #9397ab;
    --dk-line: rgba(233, 233, 237, 0.12);
    --dk-accent: #887fdc;
    --dk-badge: #b5abfc;
    --font-ui: Inter, system-ui, 'Segoe UI', sans-serif;
    --font-mono: ui-monospace, 'JetBrains Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-ui);
    font-weight: 400;
    color: var(--dk-text);
    background-color: var(--dk-bg);
    background-image:
        radial-gradient(640px 440px at 50% 30%, rgba(136, 127, 220, 0.13), transparent 70%),
        linear-gradient(180deg, var(--dk-bg) 0%, var(--dk-bg) 55%, var(--dk-chrome) 100%);
    -webkit-font-smoothing: antialiased;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 45px 22px;
}

.mark {
    width: clamp(150px, 32vw, 232px);
    height: auto;
    filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.55));
    animation: float 7s ease-in-out infinite;
}

.eyebrow {
    margin: 34px 0 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dk-badge);
}

.name {
    margin: 10px 0 0;
    font-size: clamp(40px, 8vw, 56px);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tease {
    margin: 17px 0 0;
    font-size: clamp(17px, 2.6vw, 20px);
}

.sub {
    margin: 10px 0 0;
    max-width: 46ch;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--dk-dim);
    text-wrap: balance;
}

.back {
    margin: 22px 0 0;
    font-size: 13.5px;
}

.back a {
    color: var(--dk-badge);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: text-decoration-color 120ms ease-out;
}

.back a:hover {
    text-decoration-color: currentColor;
}

.back a:focus-visible {
    outline: 2px solid var(--dk-accent);
    outline-offset: 2px;
    border-radius: 3px;
}

.statusbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 17px;
    padding: 9px 17px;
    font-size: 11px;
    color: var(--dk-dim);
}

/* The app's standalone rules fade out over their last 48px; this one fades at both ends. */
.statusbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--dk-line) 48px,
        var(--dk-line) calc(100% - 48px),
        transparent
    );
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
}

/* The app's "running" status dot: accent, with the 1.8s pulsing ring. */
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--dk-accent);
    animation: pulse 1.8s ease-out infinite;
}

::selection {
    background: rgba(136, 127, 220, 0.32);
    color: var(--dk-text);
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-7px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(136, 127, 220, 0.55);
    }

    70% {
        box-shadow: 0 0 0 4px rgba(136, 127, 220, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(136, 127, 220, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mark,
    .dot {
        animation: none;
    }
}
