/* ===========================================================
   Batteries At Home — redesign
   Design language: deep black + neon-green glow +
   the app's green→yellow→red charge gradient.
   =========================================================== */

@font-face {
    font-family: "Montserrat";
    src: url(fonts/Montserrat-VariableFont_wght.ttf);
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --bg: #080a08;
    --bg-2: #0e120e;
    --card: rgba(255, 255, 255, 0.035);
    --card-border: rgba(255, 255, 255, 0.08);
    --green: #16c264;
    --green-bright: #2ee884;
    --green-deep: #09924d;
    --text: #eef2ee;
    --muted: #9aa39a;
    --charge: linear-gradient(90deg, #16c264 0%, #8fd64a 40%, #f2c037 68%, #ef5a3c 100%);
    --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Montserrat", system-ui, sans-serif;
    font-weight: 300;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: var(--max);
    margin: 0 auto;
}

h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }

a { color: inherit; }

.grad-text {
    background: var(--charge);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---------- Ambient background ---------- */
.bg-glow {
    position: fixed;
    top: -25vh;
    left: 50%;
    transform: translateX(-50%);
    width: 1100px;
    height: 1100px;
    max-width: 140vw;
    background: radial-gradient(circle, rgba(22, 194, 100, 0.22) 0%, rgba(22, 194, 100, 0.06) 35%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    filter: blur(10px);
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 54px 54px;
    -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
    mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body > *:not(.bg-glow):not(.bg-grid) { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px max(24px, 5vw);
    backdrop-filter: blur(12px);
    background: rgba(8, 10, 8, 0);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease;
    z-index: 50;
}

.nav.scrolled {
    background: rgba(8, 10, 8, 0.75);
    border-bottom-color: var(--card-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1.02rem;
}

.nav-icon { width: 30px; height: 30px; border-radius: 8px; }

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

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color .2s;
}

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

.nav-links a.active { color: var(--text); }
.nav-links a.active:not(.nav-cta)::after {
    content: "";
    display: block;
    height: 2px;
    margin-top: 4px;
    border-radius: 2px;
    background: var(--charge);
}

.nav-cta {
    background: var(--green);
    color: #05140b !important;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 0 0 rgba(46, 232, 132, 0);
    transition: box-shadow .25s, transform .15s;
}

.nav-cta:hover { box-shadow: 0 0 24px rgba(46, 232, 132, 0.45); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 40px;
    width: 90%;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(40px, 7vw, 90px) 0 60px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--green-bright);
    border: 1px solid rgba(46, 232, 132, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
    background: rgba(46, 232, 132, 0.06);
}

.hero h1 {
    font-size: clamp(2.3rem, 5.2vw, 4rem);
    margin: 0 0 20px;
}

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.22rem);
    color: var(--muted);
    max-width: 30ch;
    margin: 0 0 32px;
}

.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.store-badge img { height: 54px; width: auto; display: block; transition: transform .15s; }
.store-badge:hover img { transform: translateY(-2px); }

.btn-ghost {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
    transition: color .2s;
}
.btn-ghost:hover { color: var(--green-bright); }

.hero-stats {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 44px;
}

.hero-stats div strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--charge);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats div span {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-stats .divider { width: 1px; height: 38px; background: var(--card-border); }

/* Phone */
.hero-device { display: flex; justify-content: center; }

.phone {
    position: relative;
    width: clamp(230px, 26vw, 310px);
    border-radius: 42px;
    padding: 10px;
    background: linear-gradient(150deg, #1c1f1c, #0a0c0a);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 40px 90px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.5) inset;
}

.phone-glow {
    position: absolute;
    inset: -30px;
    border-radius: 60px;
    background: radial-gradient(circle, rgba(46, 232, 132, 0.35), transparent 65%);
    filter: blur(20px);
    z-index: -1;
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: .65; }
    50% { opacity: 1; }
}

.phone img { width: 100%; display: block; border-radius: 34px; }

/* ---------- Sub-page header ---------- */
.page-header {
    text-align: center;
    width: 90%;
    max-width: var(--max);
    margin: 0 auto;
    padding: clamp(48px, 7vw, 90px) 0 clamp(36px, 5vw, 56px);
}

.page-header .kicker { margin-bottom: 14px; }

.page-header h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.4rem);
    margin: 0 0 18px;
}

.page-lead {
    color: var(--muted);
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    max-width: 52ch;
    margin: 0 auto;
}
.page-lead a { color: var(--green-bright); }

/* ---------- "See more" link under a section ---------- */
.more-link { text-align: center; margin-top: 44px; }
.more-link .btn-ghost { font-size: 1rem; }

/* ---------- Signature charge bar ---------- */
.charge-bar {
    height: 4px;
    background: var(--charge);
    box-shadow: 0 0 22px rgba(46, 232, 132, 0.4);
}

/* ---------- Section primitives ---------- */
section { padding: clamp(60px, 9vw, 110px) 0; }

.kicker {
    text-align: center;
    color: var(--green-bright);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    margin: 0 0 10px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    margin: 0 0 50px;
}

/* ---------- Why ---------- */
.why { background: var(--bg-2); }

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

.why-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 34px 28px;
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--charge);
}

.why-q { font-size: 1.18rem; font-weight: 500; }
.why-q em { color: var(--green-bright); font-style: normal; font-weight: 700; }

/* ---------- Features ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(46, 232, 132, 0.4);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(46, 232, 132, 0.1);
}

.feature-ico {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    font-size: 1.5rem;
    border-radius: 14px;
    background: rgba(46, 232, 132, 0.1);
    border: 1px solid rgba(46, 232, 132, 0.22);
    margin-bottom: 18px;
}

.feature-card h3 { font-size: 1.2rem; margin: 0 0 10px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---------- Gallery ---------- */
.shots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    align-items: start;
}

.shot { margin: 0; text-align: center; }

.shot-phone {
    position: relative;
    border-radius: 30px;
    padding: 7px;
    background: linear-gradient(150deg, #1c1f1c, #0a0c0a);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
    transition: transform .3s ease, box-shadow .3s ease;
}

.shot-phone::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 30px;
    box-shadow: 0 0 0 1px rgba(46, 232, 132, 0) inset;
    transition: box-shadow .3s ease;
    pointer-events: none;
}

.shot:hover .shot-phone {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(46, 232, 132, 0.2);
}

.shot:hover .shot-phone::after { box-shadow: 0 0 0 1px rgba(46, 232, 132, 0.45) inset; }

.shot-phone img {
    width: 100%;
    display: block;
    border-radius: 24px;
    aspect-ratio: 1179 / 2556;
    object-fit: cover;
    background: #0c0e0c;
}

.shot figcaption {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.92rem;
}

/* ---------- Coming in 2.0 ---------- */
.next { background: var(--bg-2); position: relative; }

.next-sub { text-align: center; color: var(--muted); margin: -34px 0 48px; }

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

.next-card {
    background: linear-gradient(160deg, rgba(46, 232, 132, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 26px;
    transition: transform .25s, border-color .25s;
}

.next-card:hover { transform: translateY(-5px); border-color: rgba(46, 232, 132, 0.4); }

.next-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-bright);
    background: rgba(46, 232, 132, 0.1);
    border: 1px solid rgba(46, 232, 132, 0.25);
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.next-card h3 { font-size: 1.18rem; margin: 0 0 9px; }
.next-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.faq details {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 4px 24px;
    transition: border-color .2s;
}
.faq details[open] { border-color: rgba(46, 232, 132, 0.35); }

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    color: var(--green-bright);
    font-size: 1.4rem;
    transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { color: var(--muted); margin: 0 0 20px; }
.faq details a { color: var(--green-bright); }

/* ---------- Final CTA ---------- */
.cta-final { text-align: center; }
.cta-final h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 14px; }
.cta-final p { color: var(--muted); margin: 0 0 30px; }
.cta-final .store-badge { display: inline-block; }

/* ---------- Footer ---------- */
footer { background: var(--bg-2); border-top: 1px solid var(--card-border); padding: 44px 0; }

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

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-icon { width: 26px; height: 26px; border-radius: 7px; }

.footer-links { display: flex; gap: 26px; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--green-bright); }

.footer-copy { color: #5f655f; font-size: 0.85rem; margin: 0; }

/* ---------- Scroll reveal ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .phone-glow { animation: none; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .lead { max-width: 46ch; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-device { order: -1; margin-bottom: 30px; }
    .why-grid, .feature-grid, .next-grid { grid-template-columns: repeat(2, 1fr); }
    .shots { grid-template-columns: repeat(2, 1fr); gap: 30px; max-width: 560px; margin: 0 auto; }
    .nav-links { gap: 18px; }
}

@media (max-width: 600px) {
    .nav {
        flex-direction: column;
        gap: 12px;
        padding: 14px 20px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px 16px;
    }
    .nav-links a.active:not(.nav-cta)::after { display: none; }
    .why-grid, .feature-grid, .next-grid { grid-template-columns: 1fr; }
    .shots { grid-template-columns: 1fr; max-width: 280px; }
    .hero-stats { gap: 16px; }
    .hero-stats div strong { font-size: 1.5rem; }
}
