/* ===== Reset & Base ===== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-main: #02040a;
    --bg-panel: #050915;
    --bg-panel-soft: #0b1220;
    --accent: #00f2ff;
    --accent-soft: rgba(0, 242, 255, 0.2);
    --accent-strong: #33ffcc;
    --accent-pink: #ff7bff;
    --text-primary: #f5f7ff;
    --text-muted: #9ba3c0;
    --radius-lg: 18px;
    --radius-xl: 24px;
}

html,
body {
    height: 100%;
}

body {
    font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #101631 0, #02040a 55%);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Background effects */

.background-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(0, 242, 255, 0.06) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 242, 255, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.25;
    pointer-events: none;
    z-index: -3;
}

.scan-line {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 100% 3px;
    mix-blend-mode: soft-light;
    opacity: 0.2;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: -2;
}

@keyframes scan {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* ===== Top Bar ===== */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 6vw;
    background: linear-gradient(to bottom, rgba(3, 7, 20, 0.9), rgba(3, 7, 20, 0.3));
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 242, 255, 0.3);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-core {
    font-family: "Orbitron", system-ui;
    font-size: 1.4rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
}

.brand-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.system-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 242, 255, 0.5);
    background: radial-gradient(circle at top left, rgba(0, 242, 255, 0.22), rgba(5, 9, 21, 0.9));
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-strong);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}

/* ===== Main Layout ===== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 6vw 3rem;
}

/* ===== Hero Section ===== */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1.1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: stretch;
}

.hero-panel {
    position: relative;
    padding: 1.6rem 1.7rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top, rgba(0, 242, 255, 0.14), rgba(3, 6, 20, 0.96));
    border: 1px solid rgba(0, 242, 255, 0.45);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    overflow: hidden;
}

.hero-panel::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 0 0, rgba(0, 242, 255, 0.2), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(51, 255, 204, 0.18), transparent 55%);
    opacity: 0.4;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.hero-panel h1 {
    font-family: "Orbitron", system-ui;
    font-size: clamp(2.1rem, 3vw, 2.8rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
    text-shadow: 0 0 16px rgba(0, 242, 255, 0.4);
}

.hero-panel p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 40rem;
}

.hero-panel p strong {
    color: var(--accent-strong);
}

.hero-panel .hint {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(155, 163, 192, 0.9);
}

/* Google search bar */

.search-bar {
    margin-top: 1.3rem;
    display: flex;
    gap: 0.7rem;
    align-items: center;
}

.search-bar input {
    flex: 1;
    padding: 0.65rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 242, 255, 0.45);
    background: rgba(4, 8, 20, 0.9);
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
}

.search-bar input::placeholder {
    color: rgba(155, 163, 192, 0.8);
}

.search-bar button {
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 242, 255, 0.8);
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #02040a;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.search-bar button:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.7);
    filter: brightness(1.1);
}

/* Stats panel */

.stats-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.stat-card {
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 242, 255, 0.4);
    background: radial-gradient(circle at top, rgba(0, 242, 255, 0.14), rgba(5, 9, 20, 0.96));
    box-shadow: 0 0 14px rgba(0, 242, 255, 0.22);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(225, 230, 255, 0.75);
    margin-bottom: 0.35rem;
}

.stat-value {
    font-family: "Orbitron", system-ui;
    font-size: 1.3rem;
}

.stat-online {
    color: var(--accent-strong);
}

/* ===== Locations Section ===== */

.locations {
    margin-top: 1rem;
}

.locations h2 {
    font-family: "Orbitron", system-ui;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.location-card {
    position: relative;
    padding: 1.1rem 1rem 1.1rem;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top, rgba(0, 242, 255, 0.12), rgba(3, 6, 20, 0.96));
    border: 1px solid rgba(0, 242, 255, 0.4);
    box-shadow: 0 0 22px rgba(0, 242, 255, 0.28);
    overflow: hidden;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.location-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 20% 0, rgba(0, 242, 255, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(51, 255, 204, 0.18), transparent 50%);
    opacity: 0.3;
    mix-blend-mode: screen;
    pointer-events: none;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 0 26px rgba(0, 242, 255, 0.5),
        0 0 60px rgba(0, 0, 0, 0.9);
    border-color: var(--accent-strong);
}

/* Colored accents per location */

.location-home {
    border-color: rgba(0, 242, 255, 0.7);
}

.location-houseboat {
    border-color: rgba(51, 255, 204, 0.7);
}

.location-razor {
    border-color: rgba(255, 123, 255, 0.7);
}

.location-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.location-header h3 {
    font-family: "Orbitron", system-ui;
    font-size: 1rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.location-subnet {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.location-button {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 242, 255, 0.7);
    background: rgba(0, 242, 255, 0.1);
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.location-button:hover {
    background: rgba(0, 242, 255, 0.2);
    color: #02040a;
    box-shadow: 0 0 18px rgba(0, 242, 255, 0.7);
    transform: translateY(-1px);
}

.location-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

/* Device chips */

.device-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.device-chip {
    font-family: "Roboto", system-ui;
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    border: 1px solid rgba(0, 242, 255, 0.5);
    background: rgba(4, 8, 20, 0.9);
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.device-chip:hover {
    background: rgba(0, 242, 255, 0.2);
    color: #02040a;
    box-shadow:
        0 0 12px rgba(0, 242, 255, 0.7),
        0 0 18px rgba(0, 242, 255, 0.4);
    transform: translateY(-1px);
}

/* ===== Footer ===== */

.footer {
    padding: 1.5rem 6vw 2.4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.footer-line {
    height: 1px;
    width: 100%;
    max-width: 640px;
    margin: 0 auto 0.75rem;
    background: linear-gradient(
        to right,
        transparent,
        rgba(0, 242, 255, 0.6),
        transparent
    );
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .top-bar {
        padding-inline: 1.5rem;
    }
}

@media (max-width: 640px) {
    .location-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-panel {
        padding: 1.3rem 1.2rem;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar button {
        width: 100%;
        text-align: center;
    }
}
