* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: #0d0d10;
    color: #f5f5f7;
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
}

.landing h1 {
    font-size: 64px;
    margin: 80px 0 16px;
    letter-spacing: -0.5px;
}

.landing .lede {
    font-size: 20px;
    color: #a8a8b0;
    margin-bottom: 40px;
}

.btn-primary {
    display: inline-block;
    background: #2a7bff;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 18px 40px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.05s ease;
}

.btn-primary:hover { background: #1f6ae6; }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: #4a4a55; cursor: not-allowed; }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #6ad1ff;
    border: 2px solid #6ad1ff;
    border-radius: 14px;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
}

#stage-capturing {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100;
}

#stage-capturing #video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: hidden;
}

#stage-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 24px;
    gap: 24px;
}

#stage-result .success {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

#stage-result .btn-secondary {
    margin: 0;
}

.error {
    background: rgba(255, 80, 80, 0.15);
    color: #ff7c7c;
    border-radius: 12px;
    padding: 16px;
    margin: 24px auto 0;
    max-width: 480px;
    font-size: 15px;
}

.hidden { display: none !important; }
