/* ── Hero ────────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 160, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 160, .04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 20%, transparent 100%);
}

.hero__glow {
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 160, .08) 0%, transparent 70%);
}

.hero__radar {
    position: absolute;
    top: 45%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100px; height: 100px;
}

.hero__ring {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(0, 229, 160, .25);
    border-radius: 50%;
    animation: radarExpand 4.5s cubic-bezier(0, 0, .2, 1) infinite;
}

.hero__ring:nth-child(2) { animation-delay: 1.5s; }
.hero__ring:nth-child(3) { animation-delay: 3s; }

@keyframes radarExpand {
    0%   { transform: scale(.4); opacity: .6; }
    100% { transform: scale(9); opacity: 0; }
}

.hero__content {
    position: relative;
    text-align: center;
    max-width: 720px;
    animation: heroEnter .9s ease-out both;
}

@keyframes heroEnter {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__tag {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    margin-bottom: 1.25rem;
}

.hero__title {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
    margin-bottom: 1.25rem;
}

.hero__accent { color: var(--accent); }

.hero__sub {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.hero__cta {
    display: flex; gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.hero__stats {
    display: flex; gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__stat { text-align: center; }

.hero__stat-val {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-mono);
}

.hero__stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

/* ── Feature cards (How It Works) ────────────────── */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    transition: border-color .25s, transform .25s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.feature-card__icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    background: rgba(0, 229, 160, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.feature-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.feature-card__text {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.65;
}

/* ── Capabilities grid ───────────────────────────── */

.section--capabilities { background: var(--bg-secondary); }

.capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.cap-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    transition: border-color .3s, transform .3s;
}

.cap-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.cap-card__icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.cap-card__icon--green  { background: rgba(0, 229, 160, .1);  color: var(--accent); }
.cap-card__icon--blue   { background: rgba(59, 130, 246, .1); color: var(--accent-blue); }
.cap-card__icon--purple { background: rgba(168, 85, 247, .1); color: var(--accent-purple); }
.cap-card__icon--cyan   { background: rgba(6, 182, 212, .1);  color: var(--accent-cyan); }
.cap-card__icon--amber  { background: rgba(245, 158, 11, .1); color: var(--accent-amber); }
.cap-card__icon--red    { background: rgba(239, 68, 68, .1);  color: var(--accent-red); }

.cap-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.cap-card__text {
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.6;
}

/* ── Dashboard preview ───────────────────────────── */

.section--preview { background: var(--bg-primary); }

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.preview-frame {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow:
        0 0 0 1px rgba(0, 229, 160, .06),
        0 25px 80px rgba(0, 0, 0, .5),
        0 0 120px rgba(0, 229, 160, .03);
    transform: perspective(1800px) rotateX(2deg);
    transition: transform .4s ease;
}

.preview-frame:hover {
    transform: perspective(1800px) rotateX(0deg);
}

.preview-frame__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: .5rem 1rem;
    background: #0c1220;
    border-bottom: 1px solid var(--border);
}

.preview-frame__dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.preview-frame__dot:first-child { background: #ff5f57; }
.preview-frame__dot:nth-child(2) { background: #ffbd2e; }
.preview-frame__dot:nth-child(3) { background: #28c840; }

.preview-frame__url {
    margin-left: .75rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, .04);
    padding: .2rem .75rem;
    border-radius: 4px;
}

.preview-frame__body {
    background: var(--bg-secondary);
}

.preview-frame__img {
    width: 100%;
    display: block;
}

.preview-label {
    text-align: center;
    margin-top: 1rem;
}

.preview-label__title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: .25rem;
}

.preview-label__text {
    color: var(--text-secondary);
    font-size: .85rem;
}

/* ── Comparison table ────────────────────────────── */

.compare-table { overflow-x: auto; }

.compare-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.compare-table th,
.compare-table td {
    padding: .75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.compare-table td:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.compare-table__highlight {
    color: var(--accent) !important;
    font-weight: 600;
}

/* ── Hardware cards ──────────────────────────────── */

.hardware-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hardware-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color .25s;
}

.hardware-card:hover { border-color: var(--accent); }

.hardware-card__badge {
    position: absolute;
    top: -10px; right: 16px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .25rem .6rem;
    border-radius: 4px;
}

.hardware-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.hardware-card__price {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .75rem;
}

.hardware-card__text {
    color: var(--text-secondary);
    font-size: .88rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* ── Community section ───────────────────────────── */

.section--community { background: var(--bg-secondary); }

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color .25s;
}

.community-card:hover { border-color: var(--accent); }

.community-card__icon {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.community-card__val {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: .25rem;
}

.community-card__label {
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.community-card__text {
    color: var(--text-secondary);
    font-size: .85rem;
    line-height: 1.6;
}

/* ── CTA section ─────────────────────────────────── */

.section--cta { border-top: 1px solid var(--border); }

/* ── Footer ──────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border);
    padding: 0;
}

.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer__brand { display: flex; flex-direction: column; gap: .25rem; }

.footer__tagline {
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: .25rem;
}

.footer__links {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.footer__heading {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    margin-bottom: .25rem;
}

.footer__col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .875rem;
    transition: color .2s;
}

.footer__col a:hover { color: var(--accent); }

.footer__bottom {
    text-align: center;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .8rem;
}

/* ── Responsive (sections) ───────────────────────── */

@media (max-width: 768px) {
    .hero { min-height: auto; padding: 7rem 1.5rem 3.5rem; }
    .hero__title { font-size: 2rem; }
    .hero__stats { gap: 1.5rem; }

    .features { grid-template-columns: 1fr; }
    .capabilities { grid-template-columns: 1fr; }
    .preview-grid { grid-template-columns: 1fr; }
    .hardware-options { grid-template-columns: 1fr; }
    .community-grid { grid-template-columns: 1fr; }

    .footer__inner { flex-direction: column; }
    .footer__links { flex-direction: column; gap: 1.5rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .capabilities { grid-template-columns: repeat(2, 1fr); }
}
