/* ── Explainer ───────────────────────────────────── */

.explainer {
    border-bottom: 1px solid var(--border);
}

.explainer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.explainer__block {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.explainer__label {
    font-family: var(--font-mono);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--accent);
    margin-bottom: .75rem;
}

.explainer__text {
    color: var(--text-secondary);
    font-size: .95rem;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .explainer__grid { grid-template-columns: 1fr; }
}

/* ── Feature Cards ───────────────────────────────── */

.features { background: var(--bg-secondary); }

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: border-color .3s, transform .3s;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.card__num {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(0, 229, 160, .12);
    line-height: 1;
    margin-bottom: .75rem;
}

.card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.card__text {
    color: var(--text-secondary);
    font-size: .92rem;
    line-height: 1.65;
}

.card--wide { grid-column: span 1; }

.card--coming-soon {
    position: relative;
    opacity: .6;
    border-color: var(--border);
}

.card--coming-soon:hover {
    opacity: .8;
    border-color: var(--text-muted);
}

.card--highlight {
    border-color: var(--accent);
    position: relative;
}

.card__badge {
    position: absolute;
    top: -10px; right: 1.25rem;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: .7rem;
    font-weight: 700;
    padding: .25rem .7rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.card__list {
    list-style: none;
    margin: 1rem 0 1.5rem;
}

.card__list li {
    padding: .4rem 0;
    font-size: .9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(35, 48, 73, .5);
}

.card__list li::before {
    content: '\2192\0020';
    color: var(--accent);
    font-family: var(--font-mono);
}

/* ── Pipeline ────────────────────────────────────── */

.pipeline { background: var(--bg-primary); }

.pipeline__flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .75rem;
}

.pipeline__step {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color .3s;
}

.pipeline__step:hover { border-color: var(--accent); }

.pipeline__num {
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 auto .75rem;
    border-radius: 50%;
    background: rgba(0, 229, 160, .1);
    border: 1px solid rgba(0, 229, 160, .3);
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .85rem;
}

.pipeline__step h3 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .35rem;
}

.pipeline__step p {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pipeline__arrow {
    align-self: center;
    margin-top: .5rem;
    width: 28px;
    height: 2px;
    background: var(--border);
    position: relative;
    flex-shrink: 0;
}

.pipeline__arrow::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -4px;
    border: 5px solid transparent;
    border-left-color: var(--border);
}

/* ── Terminal Preview ────────────────────────────── */

.preview { background: var(--bg-secondary); }

.terminal {
    background: #0c1220;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 229, 160, .05),
        0 20px 60px rgba(0, 0, 0, .4);
}

.terminal__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: .6rem 1rem;
    background: rgba(15, 23, 41, .8);
    border-bottom: 1px solid var(--border);
}

.terminal__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #ffbd2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
    margin-left: .5rem;
    font-family: var(--font-mono);
    font-size: .72rem;
    color: var(--text-muted);
}

.terminal__body {
    padding: 1.25rem 1.5rem;
    font-family: var(--font-mono);
    font-size: .78rem;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-x: auto;
}

.t-dim { color: var(--text-muted); }
.t-muted { color: #3a4a6b; }
.t-green { color: var(--accent); font-weight: 600; }
.t-blue { color: var(--accent-blue); }
.t-cyan { color: var(--accent-cyan); }
.t-purple { color: var(--accent-purple); }
.t-amber { color: var(--accent-amber); }

/* ── Dashboard Preview ───────────────────────────── */

.dash-preview { background: var(--bg-primary); }

.dash-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;
}

.dash-preview__frame:hover {
    transform: perspective(1800px) rotateX(0deg);
}

.dash-preview__chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: .5rem 1rem;
    background: #0c1220;
    border-bottom: 1px solid var(--border);
}

.dash-preview__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.dash-preview__dot:first-child { background: #ff5f57; }
.dash-preview__dot:nth-child(2) { background: #ffbd2e; }
.dash-preview__dot:nth-child(3) { background: #28c840; }

.dash-preview__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;
    flex: 1;
    max-width: 200px;
}

.dash-preview__img {
    width: 100%;
    display: block;
}

/* ── Hardware ────────────────────────────────────── */

.hardware { background: var(--bg-primary); }

.hardware__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.bom {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.bom td {
    padding: .55rem 0;
    font-size: .9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(35, 48, 73, .5);
}

.bom__price {
    text-align: right;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.bom__total td {
    font-weight: 700;
    color: var(--accent);
    border-bottom: none;
    padding-top: .75rem;
}

.bom__note {
    margin-top: 1rem;
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.55;
    font-style: italic;
}

/* ── Notify form ─────────────────────────────────── */

.card__notify { margin-top: 1.5rem; }

.card__notify-text {
    font-size: .85rem;
    color: var(--text-muted);
    margin-bottom: .5rem;
}

.card__notify-form { display: flex; gap: .5rem; }

.card__notify-status {
    font-size: .8rem;
    margin-top: .4rem;
    min-height: 1.2em;
}

.input {
    flex: 1;
    padding: .5rem .75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: .85rem;
    outline: none;
    transition: border-color .2s;
}

.input:focus { border-color: var(--accent); }

/* ── CTA Section ─────────────────────────────────── */

.cta-section {
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 229, 160, .04), transparent),
        var(--bg-secondary);
}

.cta-section__inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-section__title {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: .75rem;
}

.cta-section__sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 480px;
    margin-bottom: 2rem;
}

/* ── Footer ──────────────────────────────────────── */

.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
}

.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-row {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.footer__tagline {
    color: var(--text-muted);
    font-size: .85rem;
    margin-top: .5rem;
}

.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.5rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .8rem;
}

/* ── Responsive (sections) ──────────────────────── */

@media (max-width: 768px) {
    .pipeline__flow {
        flex-direction: column;
        align-items: center;
    }

    .pipeline__step { max-width: 100%; width: 100%; }

    .pipeline__arrow {
        width: 2px;
        height: 24px;
        margin-top: 0;
    }

    .pipeline__arrow::after {
        right: auto;
        top: auto;
        bottom: -1px;
        left: -4px;
        border: 5px solid transparent;
        border-top-color: var(--border);
        border-left-color: transparent;
    }

    .terminal__body { font-size: .65rem; padding: 1rem; }

    .hardware__grid { grid-template-columns: 1fr; }

    .cta-section__title { font-size: 1.75rem; }

    .footer__inner { flex-direction: column; }
}
