/* ──────────────────────────────────────────
   Electrolite Website Styles
   Color palette extracted from hero banner:
     Void:    #080c18  (deepest bg)
     Surface: #111827  (card bg)
     Border:  #1e293b  (subtle edges)
     Muted:   #94a3b8  (secondary text)
     Text:    #e2e8f0  (body text)
     Bright:  #f1f5f9  (headings)
     Cyan:    #00d4ff  (primary accent)
     Teal:    #00bcd4  (secondary accent)
     Purple:  #7c3aed  (glow / gradient)
     Magenta: #a855f7  (glow / gradient)
   ────────────────────────────────────────── */

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --void: #080c18;
    --surface: #111827;
    --surface-raised: #1a2236;
    --border: #1e293b;
    --border-light: #2d3a52;
    --muted: #94a3b8;
    --text: #e2e8f0;
    --bright: #f1f5f9;
    --cyan: #00d4ff;
    --teal: #00bcd4;
    --purple: #7c3aed;
    --magenta: #a855f7;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--void);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

kbd {
    display: inline-block;
    padding: 2px 7px;
    font-family: inherit;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--bright);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    line-height: 1.4;
}

/* ── Typography ───────────────────────────── */
h1, h2, h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: var(--bright);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    text-shadow: 0 0 60px rgba(0, 212, 255, 0.25), 0 0 120px rgba(0, 212, 255, 0.1);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ── Buttons ──────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn-primary {
    background: var(--cyan);
    color: var(--void);
    box-shadow: 0 0 24px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    background: #33ddff;
    box-shadow: 0 0 36px rgba(0, 212, 255, 0.4);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-light);
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.05);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
}

/* ── Navigation ───────────────────────────── */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8, 12, 24, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
    transition: background 0.3s;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--bright);
}

.nav-bolt {
    color: var(--cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--bright);
}

.nav-cta {
    padding: 8px 18px !important;
    background: var(--cyan);
    color: var(--void) !important;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
    transition: background 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    background: #33ddff !important;
    color: var(--void) !important;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Mobile nav toggle */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    padding: 16px 24px 24px;
    background: rgba(8, 12, 24, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    gap: 4px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--bright);
}

.mobile-menu .nav-cta {
    display: inline-block;
    margin-top: 8px;
    text-align: center;
    padding: 12px 18px !important;
}

/* ── Hero ─────────────────────────────────── */
#hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 140px 24px 80px;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    width: 140%;
    height: 80%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 60% 50% at 35% 60%, rgba(0, 212, 255, 0.12) 0%, transparent 70%),
                radial-gradient(ellipse 50% 50% at 65% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 70%),
                radial-gradient(ellipse 40% 40% at 50% 40%, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.hero-sub {
    margin-top: 1.25rem;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-note {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    color: var(--muted);
    opacity: 0.7;
}

.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    width: 100%;
    max-width: 780px;
}

.hero-app-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(0, 212, 255, 0.06);
}

.hero-app-frame img {
    width: 100%;
    display: block;
}

/* ── Features ─────────────────────────────── */
#features {
    padding: 100px 24px;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--cyan);
    margin-bottom: 16px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

.feature-card p strong {
    color: var(--text);
}

/* ── Modes / How it works ─────────────────── */
#how-it-works {
    padding: 100px 24px;
    background: linear-gradient(180deg, var(--void) 0%, rgba(17, 24, 39, 0.5) 50%, var(--void) 100%);
}

.modes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mode-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.mode-card:hover {
    border-color: var(--border-light);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.mode-card--active {
    border-color: rgba(0, 212, 255, 0.2);
}

.mode-card--active:hover {
    border-color: rgba(0, 212, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.08);
}

.mode-header {
    padding: 24px 28px 0;
}

.mode-badge {
    display: inline-block;
    padding: 5px 14px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.02em;
}

.mode-badge--balanced {
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    border: 1px solid var(--border);
}

.mode-badge--electrolite {
    background: rgba(0, 212, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.mode-visual {
    padding: 20px 28px;
}

.mode-visual img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.mode-body {
    padding: 4px 28px 28px;
}

.mode-body p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── CTA Section ──────────────────────────── */
#download {
    padding: 100px 24px;
}

.cta-section {
    position: relative;
    text-align: center;
    padding: 80px 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    width: 120%;
    height: 100%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 50% 60% at 50% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 70%),
                radial-gradient(ellipse 40% 50% at 30% 30%, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    position: relative;
    margin-bottom: 1rem;
}

.cta-section p {
    position: relative;
    color: var(--muted);
    max-width: 480px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.cta-actions {
    position: relative;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-note {
    margin-top: 1.5rem !important;
    font-size: 0.8rem !important;
    opacity: 0.6;
}

/* ── Footer ───────────────────────────────── */
#site-footer {
    border-top: 1px solid var(--border);
    padding: 24px;
}

.footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.825rem;
    color: var(--muted);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text);
}

.footer-logo svg {
    color: var(--cyan);
}

.footer-sep {
    color: var(--border-light);
}

.footer-right a {
    color: var(--muted);
    transition: color 0.2s;
}

.footer-right a:hover {
    color: var(--bright);
}

/* ── Reduced Motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-mobile-toggle {
        display: flex;
    }

    #hero {
        padding: 120px 20px 60px;
        min-height: auto;
    }

    .hero-visual {
        margin-top: 2.5rem;
    }

    .modes-container {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 48px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-left {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 540px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ── Focus styles ─────────────────────────── */
:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}
