:root {
    --bg-color: #121418;
    --text-color: #e0e0e0;
    --primary-dark: #ffffff;
    --primary-text-on-btn: #121418;

    --accent-green: #4ade80;
    --accent-yellow: #facc15;
    --accent-orange: #fb923c;
    --accent-red: #f87171;
    --gradient: linear-gradient(90deg, #4ade80, #facc15, #fb923c, #f87171);

    --panel-bg: rgba(24, 24, 28, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* ── Utility ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-dark);
    color: var(--primary-text-on-btn);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ── Navigation ── */
nav {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Hero ── */
.hero {
    padding: 60px 0 80px;
    text-align: center;
}
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--primary-dark);
}
#hero-subheader {
    font-size: 1.25rem;
    color: #999;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* ── Browser mockup ── */
.screenshot-container {
    position: relative;
    margin-top: 50px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    line-height: 0;
}
.browser-header {
    height: 30px;
    background: #999;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    padding-left: 15px;
    gap: 6px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}
.dot.red    { background: var(--accent-red); }
.dot.orange { background: var(--accent-orange); }
.dot.yellow { background: var(--accent-yellow); }
.dot.green  { background: var(--accent-green); }

.screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 0 0 8px 8px;
    display: block;
}

/* ── Features ── */
.features {
    padding: 80px 0 100px;
}
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.card {
    padding: 30px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}
.card:hover {
    transform: translateY(-5px);
}
.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}
.card h3 {
    margin-bottom: 15px;
}

/* ── Explanation ── */
.explanation {
    padding: 80px 0;
    color: white;
}
.explanation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.explanation h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.explanation-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--accent-yellow);
}
.example-time {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--accent-green);
}

/* ── Footer ── */
footer {
    background: #111;
    color: #777;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* ── Spectrum legend ── */
.spectrum-legend {
    width: 100%;
    max-width: 500px;
    margin: 25px auto 0;
    text-align: center;
}
.legend-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    opacity: 0.9;
}
.spectrum-bar {
    width: 100%;
    height: 10px;
    border-radius: 20px;
    background: var(--gradient);
    margin-bottom: 8px;
}
.legend-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.8;
}
.legend-note {
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-color);
    opacity: 0.5;
    font-style: italic;
}

/* ── Modal overlays (shared by both pages) ── */
#select-city-overlay,
#onboarding-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    z-index: 9998;
    display: none;
}

#select-city-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--panel-bg);
    padding: 30px 40px;
    border-radius: 8px;
    z-index: 9999;
    text-align: center;
    width: 320px;
    display: none;
    color: white;
}
#select-city-window a {
    margin: 10px;
    width: 150px;
    font: initial;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

/* ── Cookie banner ── */
#cookieBanner {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: calc(100% - 20px);
    padding: 14px 18px;
    background: var(--panel-bg);
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    transition: transform 0.25s ease, opacity 0.25s ease;
}
#cookieBanner .content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}
#cookieBanner p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    flex: 1;
}
#cookieBanner .actions {
    display: flex;
    gap: 10px;
}
.accept-btn,
.reject-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.accept-btn {
    background: #2563eb;
    color: white;
    transition: background 0.2s ease, transform 0.1s ease;
}
.accept-btn:hover {
    background: #1e4fd8;
    transform: translateY(-1px);
}
.reject-btn {
    background: transparent;
    color: #d1d5db;
    transition: background 0.2s ease;
}
.reject-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ── Responsive ── */
@media (max-width: 350px) {
    .logo span { display: none; }
}

@media (max-width: 600px) {
    nav { padding: 10px 0; }
    .logo-fixed { width: 35px !important; height: auto !important; }
    .logo { font-size: 1.1rem; gap: 6px; }
    .btn { padding: 8px 14px; font-size: 0.85rem; white-space: nowrap; width: auto; }
}

@media (max-width: 640px) {
    #cookieBanner { width: 100%; padding: 14px 16px; }
    #cookieBanner .content { flex-direction: column; align-items: stretch; gap: 12px; }
    #cookieBanner p { font-size: 1rem; text-align: center; }
    #cookieBanner .actions { flex-direction: column; gap: 8px; }
    .accept-btn,
    .reject-btn { width: 100%; }
}

@media (max-width: 900px) {
    .explanation-content { grid-template-columns: 1fr; gap: 30px; }
    .explanation { padding: 40px 0; }
    .explanation h2 { font-size: 1.8rem; line-height: 1.2; }
    .explanation-box { padding: 20px; }
    .explanation-box h3 { font-size: 1.2rem; }
}

@media (hover: none) {
    .accept-btn:hover,
    .reject-btn:hover { transform: none; background: inherit; }
}
