@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

:root {
    --bg: #0a0e17;
    --bg-subtle: #0f1a2e;
    --text: #e0e6ed;
    --text-muted: #5a6a7a;
    --accent: #00ffcc;
    --accent-secondary: #c77dff;
    --border: #1e2a3a;
    --surface: #111827;
}

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

::selection {
    background: var(--accent);
    color: var(--bg);
}

body {
    font-family: 'IBM Plex Mono', monospace;
    background-color: var(--bg);
    background-image: radial-gradient(ellipse at 50% 40%, var(--bg-subtle) 0%, var(--bg) 70%);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
}

.container {
    width: 100%;
    max-width: 640px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(8px);
    animation: fadeSlideIn 0.4s ease forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes fadeSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Greeting */
.greeting { text-align: center; }
.greeting h1 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.clock {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Search */
.search { width: 100%; }
.search form { display: flex; }
.search input {
    flex: 1;
    padding: 0.9rem 1.1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.1);
}
.search input::placeholder { color: var(--text-muted); }
.search button {
    padding: 0.9rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: none;
    color: var(--accent);
    font-family: inherit;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.search button:hover {
    background: var(--accent);
    color: var(--bg);
}

/* Pills */
.pills {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s;
}
.pill--sober {
    color: var(--accent);
    border-color: rgba(0, 255, 204, 0.25);
}
.pill--orbit:hover {
    border-color: #58a6ff;
}
.pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pill-dot--clear { background: #3fb950; }
.pill-dot--risk { background: #d29922; }
.pill-dot--high { background: #f85149; }

/* Quote */
.quote { text-align: center; }
.quote p {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
footer {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.6rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    letter-spacing: 0.05em;
}
.footer-sys, .footer-hint { color: #3a4a5c; }
.footer-hint {
    animation: fadeHint 0.5s ease 5s forwards;
}

@keyframes fadeHint {
    to { opacity: 0; }
}

/* Responsive */
@media (max-width: 640px) {
    .greeting h1 { font-size: 1.4rem; }
    .container { gap: 1.5rem; }
}
