:root {
    --bg-color: #0d1117;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    --accent-color: #58a6ff;
    --accent-glow: rgba(88, 166, 255, 0.4);
    --danger-color: #f85149;
    --warning-color: #d29922;
    --success-color: #238636;
    --card-bg: rgba(22, 27, 34, 0.7);
    --glass-border: 1px solid rgba(240, 246, 252, 0.1);
    --blur-amt: 12px;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5d6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Layout Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.hidden {
    display: none !important;
}

/* Header/Nav */
header {
    padding: 1.5rem 0;
    border-bottom: var(--glass-border);
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    fill: var(--accent-color);
}

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Background blob effects */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 10s infinite alternate;
}

.blob-1 { top: -100px; left: -100px; }
.blob-2 { bottom: -100px; right: -100px; background: radial-gradient(circle, rgba(210, 153, 34, 0.2) 0%, rgba(0,0,0,0) 70%); }

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

/* Scanner Input */
.scan-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    width: 100%;
    margin-top: 2rem;
    background: var(--card-bg);
    padding: 10px;
    border-radius: 12px;
    border: var(--glass-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.scan-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.scan-btn {
    background: var(--accent-color);
    color: #000;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.scan-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* Scanner Overlay */
.scanner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.radar {
    width: 150px;
    height: 150px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 20px var(--accent-glow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.radar::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 50%;
    background: linear-gradient(45deg, transparent 50%, var(--accent-color) 100%);
    transform-origin: 0 0;
    animation: radar-spin 2s linear infinite;
    opacity: 0.5;
}

@keyframes radar-spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent-color);
}

/* Results Section */
.results-container {
    padding: 4rem 1rem;
    animation: fadeIn 0.8s ease-out;
}

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

.score-card {
    background: var(--card-bg);
    border: var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--danger-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--danger-color);
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.4);
}

.score-info h2 {
    margin-bottom: 0.5rem;
}

.score-info p {
    margin: 0;
    font-size: 1rem;
}

/* Checklist Items */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-item {
    background: var(--card-bg);
    border: var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.icon-box {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.icon-box.danger { background: rgba(248, 81, 73, 0.1); color: var(--danger-color); }
.icon-box.warning { background: rgba(210, 153, 34, 0.1); color: var(--warning-color); }

.item-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.item-content p {
    font-size: 0.9rem;
    margin: 0;
}

/* Blurring */
.blur-wrapper {
    position: relative;
    margin-top: 2rem;
}

.blurred-list {
    filter: blur(12px);
    user-select: none;
    pointer-events: none;
    opacity: 0.6;
    transition: filter 0.5s;
}

.paywall-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
}

.paywall-card {
    background: rgba(22, 27, 34, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-color);
    padding: 3rem;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 500px;
    width: 90%;
}

.paywall-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.paywall-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 700;
    display: block;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #79c0ff;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: block;
    transition: 0.2s;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}
