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

html {
    min-width: 320px;
    min-height: 100%;
    background: #050505;
}

body {
    margin: 0;
    padding: 0;
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    background: #050505;
    color: #fff;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
    overflow-y: auto;
}

.glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(820px, 112vw);
    height: min(680px, 86vh);
    background: radial-gradient(
        ellipse at center,
        rgba(255,255,255,0.035) 0%,
        rgba(255,255,255,0.014) 44%,
        rgba(255,255,255,0) 78%
    );
    filter: blur(32px);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding:
        max(32px, env(safe-area-inset-top))
        max(24px, env(safe-area-inset-right))
        max(32px, env(safe-area-inset-bottom))
        max(24px, env(safe-area-inset-left));
}

.brand-lockup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 1.2vw, 12px);
    max-width: 100%;
    margin-bottom: 15px;
}

.brand-mark {
    flex: 0 0 auto;
    width: clamp(2rem, 1.85rem + 0.7vw, 2.35rem);
    height: auto;
}

.title {
    font-size: clamp(2.35rem, 2.22rem + 0.6vw, 2.65rem);
    font-weight: 620;
    line-height: 1.06;
    letter-spacing: -0.032em;
    margin-top: 0;
    margin-bottom: 0;
    text-wrap: balance;
}

.subtitle {
    max-width: 36rem;
    font-size: clamp(1rem, 0.94rem + 0.25vw, 1.1rem);
    color: rgba(255,255,255,0.68);
    margin-top: 0;
    margin-bottom: clamp(32px, 5vh, 40px);
    line-height: 1.42;
    text-wrap: balance;
}

.action-area {
    position: relative;
    width: 100%;
}

.actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    opacity: 0.72;
    transform: translateY(5px);
    transition: opacity 200ms ease, transform 200ms ease;
}

.actions.is-ready {
    opacity: 1;
    transform: translateY(0);
}

.action-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: #f5f5f5;
    color: #080808;
    font-size: 0.925rem;
    line-height: 1.25;
    font-weight: 560;
    letter-spacing: -0.006em;
    text-decoration: none;
    cursor: pointer;
    transition:
        opacity 200ms ease,
        transform 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        color 200ms ease;
}

.action-btn.forward {
    justify-content: flex-start;
    min-width: 180px;
    padding-right: 50px;
    padding-left: 24px;
    text-align: left;
}

.action-btn.forward::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: 20px;
    color: rgba(0,0,0,0.56);
    font-size: 1rem;
    font-weight: 400;
    transform: translateY(-52%);
}

.action-btn:active {
    transform: translateY(1px);
}

.action-btn:focus-visible {
    outline: 2px solid rgba(255,255,255,0.92);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .action-btn:hover {
        transform: translateY(-1px);
        background: #fff;
    }

    .action-btn:active {
        transform: translateY(1px);
    }
}

@media (max-width: 479px) {
    .wrapper {
        justify-content: flex-start;
        padding-top: max(32px, calc(50svh - 118px));
        padding-right: max(20px, env(safe-area-inset-right));
        padding-bottom: max(80px, calc(env(safe-area-inset-bottom) + 56px));
        padding-left: max(20px, env(safe-area-inset-left));
    }

    .actions {
        max-width: 320px;
        flex-direction: column;
        gap: 12px;
    }

    .action-btn {
        width: 100%;
    }

    .subtitle br {
        display: none;
    }
}

@media (max-width: 359px) {
    .brand-lockup {
        gap: 8px;
    }

    .brand-mark {
        width: 1.75rem;
    }

    .title {
        font-size: 2.05rem;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .wrapper {
        padding-top: max(20px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .brand-lockup {
        margin-bottom: 10px;
    }

    .title {
        font-size: clamp(2rem, 8vw, 2.6rem);
    }

    .subtitle {
        margin-bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .actions,
    .action-btn {
        transition: none;
    }

    .actions {
        transform: none;
    }
}
