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

:root {
    --bg: #07111f;
    --panel: rgba(8, 17, 32, 0.72);
    --text: #f5f7fb;
    --muted: #9fb0c9;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #7cf7c9;
    --accent-strong: #37d7a5;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

body {
    min-height: 100vh;
    font-family: "Manrope", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(50, 108, 255, 0.35), transparent 30%),
        radial-gradient(circle at 85% 20%, rgba(33, 208, 156, 0.22), transparent 24%),
        linear-gradient(145deg, #040814 0%, #0a1529 48%, #050a14 100%);
    overflow-x: hidden;
}

.page-shell {
    position: relative;
    min-height: 100vh;
    padding: 48px 20px;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(10px);
    opacity: 0.8;
    pointer-events: none;
}

.ambient-one {
    top: 90px;
    left: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(124, 247, 201, 0.4) 0%, rgba(124, 247, 201, 0) 70%);
    animation: float 10s ease-in-out infinite;
}

.ambient-two {
    right: -40px;
    bottom: 100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(71, 110, 255, 0.28) 0%, rgba(71, 110, 255, 0) 70%);
    animation: float 14s ease-in-out infinite reverse;
}

.container {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 96px);
}

.hero,
.panel {
    backdrop-filter: blur(18px);
    background: linear-gradient(180deg, rgba(18, 31, 56, 0.78), rgba(7, 16, 29, 0.9));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    animation: revealUp 0.8s ease both;
}

.hero.compact {
    margin-bottom: 22px;
}

.eyebrow {
    margin-bottom: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", Arial, sans-serif;
}

h1 {
    max-width: none;
    font-size: clamp(2.3rem, 6vw, 3.6rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.subtitle {
    margin-top: 12px;
    max-width: 44ch;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.panel {
    width: 100%;
    max-width: 680px;
    padding: 28px;
    border-radius: 30px;
    animation: revealUp 1s ease 0.08s both;
}

.app-card {
    padding: 34px;
}

.scan-form label {
    display: block;
    margin-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

input[type="text"] {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

input[type="text"]::placeholder {
    color: #7f93b0;
}

input[type="text"]:focus {
    border-color: rgba(124, 247, 201, 0.65);
    box-shadow: 0 0 0 5px rgba(124, 247, 201, 0.12);
    transform: translateY(-1px);
}

button {
    border: none;
    border-radius: 18px;
    padding: 0 24px;
    min-height: 58px;
    font-size: 0.98rem;
    font-weight: 800;
    font-family: "Space Grotesk", Arial, sans-serif;
    letter-spacing: 0.01em;
    color: #04111d;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(55, 215, 165, 0.28);
    filter: saturate(1.08);
}

button:active {
    transform: translateY(0);
}

.result {
    margin-top: 24px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid transparent;
    animation: revealUp 0.55s ease both;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.result h3 {
    font-size: 1.7rem;
    margin-bottom: 0;
}

.result code {
    display: block;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.2);
    color: #d9f1ff;
    overflow-wrap: anywhere;
}

.result.danger {
    background: linear-gradient(180deg, rgba(93, 23, 34, 0.92), rgba(49, 14, 21, 0.95));
    border-color: rgba(255, 123, 114, 0.24);
}

.result.danger .result-badge {
    background: rgba(255, 123, 114, 0.16);
    color: #ffb3ad;
}

.result.safe {
    background: linear-gradient(180deg, rgba(12, 64, 53, 0.92), rgba(9, 38, 33, 0.96));
    border-color: rgba(124, 247, 201, 0.26);
}

.result.safe .result-badge {
    background: rgba(124, 247, 201, 0.16);
    color: #b7ffe6;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-18px) scale(1.04);
    }
}

@media (max-width: 860px) {
    .input-row {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .page-shell {
        padding: 24px 14px 40px;
    }

    .panel {
        padding: 22px;
        border-radius: 24px;
    }

    .app-card {
        padding: 24px 20px;
    }

    h1 {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
