* {
    box-sizing: border-box;
}

:root {
    --bg: #070912;
    --card: rgba(0, 0, 0, .36);
    --line: rgba(255, 255, 255, .12);
    --muted: rgba(255, 255, 255, .64);
    --cyan: #67e8f9;
    --green: #86efac;
    --red: #ef4444;
}

html, body {
    margin: 0;
    min-height: 100%;
}

.lock-btn {
    width: 54px;
    height: 54px;
    padding: 0;
    font-size: 24px;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: #fff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 40, 90, .35), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(0, 229, 255, .25), transparent 28%),
        linear-gradient(135deg, #070912, #111827 55%, #160817);
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .25;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 36px 36px;
}

.page {
    position: relative;
    z-index: 2;
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0;
}

.site-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 36px;
}

.kicker {
    color: #a5f3fc;
    text-transform: uppercase;
    letter-spacing: .35em;
    font-size: 12px;
    font-weight: 800;
}

h1 {
    margin: 8px 0 0;
    font-size: clamp(42px, 9vw, 88px);
    line-height: .9;
    letter-spacing: -0.06em;
}

h2 {
    margin: 10px 0 12px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1;
}

a, button, input {
    font: inherit;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px 18px;
    color: white;
    background: rgba(255,255,255,.1);
    text-decoration: none;
    cursor: pointer;
    transition: .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.18);
}

.btn-primary {
    background: var(--cyan);
    color: #020617;
    font-weight: 900;
}

.btn-green {
    background: var(--green);
    color: #020617;
    font-weight: 900;
}

.btn-ghost {
    background: rgba(255,255,255,.09);
}

.full {
    width: 100%;
    margin-top: 14px;
}

.grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 32px;
    background: var(--card);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0,0,0,.35);
    overflow: hidden;
}

.card-inner {
    padding: clamp(22px, 4vw, 42px);
}

.topline {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
}

.muted {
    color: var(--muted);
}

.emoji {
    font-size: 56px;
}

.meter {
    position: relative;
    height: 430px;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.05);
}

.fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #dc2626, #f97316, #fde047);
    transition: height .45s ease;
}

.lines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,.2) 0 1px, transparent 1px 48px);
}

.readout {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 20px;
}

.percent {
    font-size: clamp(84px, 15vw, 160px);
    font-weight: 1000;
    letter-spacing: -0.08em;
    text-shadow: 0 0 32px rgba(255,0,70,.55);
}

.pill {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(0,0,0,.42);
    border: 1px solid var(--line);
    font-weight: 800;
}

.scale {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 16px;
    color: rgba(255,255,255,.52);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.scale span:last-child {
    text-align: right;
}

input[type="password"] {
    width: 100%;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.1);
    color: white;
    border-radius: 18px;
    padding: 15px 16px;
    outline: none;
}

input[type="password"]::placeholder {
    color: rgba(255,255,255,.45);
}

.form {
    margin-top: 18px;
}

.alert {
    color: #fecaca;
    margin-top: 12px;
}

.ok {
    color: #bbf7d0;
    margin-bottom: 14px;
    font-weight: 800;
}

.slider-layout {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 28px;
    align-items: center;
    margin-top: 18px;
}

.vertical-slider-wrap {
    height: 300px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.06);
}

.vertical-range {
    width: 260px;
    accent-color: var(--red);
    transform: rotate(-90deg);
}

.dashboard-preview {
    min-width: 0;
}

.dash-percent {
    margin: 10px 0 18px;
    font-size: clamp(64px, 10vw, 108px);
    font-weight: 1000;
    letter-spacing: -0.08em;
}

@media (max-width: 850px) {
    .site-header {
        display: grid;
    }

    .nav {
        justify-content: flex-start;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .meter {
        height: 360px;
    }

    .slider-layout {
        grid-template-columns: 1fr;
    }

    .vertical-slider-wrap {
        height: auto;
        padding: 20px;
    }

    .vertical-range {
        transform: none;
        width: 100%;
    }
}
