:root {
    color-scheme: dark;
    --bg: #080d18;
    --panel: #101827;
    --panel-2: #0d1422;
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #b6c2d2;
    --soft: #7d8da3;
    --green: #2dd4bf;
    --green-strong: #14b8a6;
    --amber: #f59e0b;
    --blue: #38bdf8;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.site-shell {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    max-width: 820px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(8, 13, 24, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(45, 212, 191, 0.4);
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.12);
    color: var(--green);
    font-weight: 800;
}

.brand strong,
.brand small {
    display: block;
}

.brand small,
.site-footer p,
.site-footer a {
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

.site-nav a,
.site-footer a {
    text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
    color: var(--green);
}

.nav-cta,
.btn {
    background: var(--green);
    color: #04111d;
    font-weight: 800;
}

.nav-cta {
    padding: 10px 14px;
    border-radius: 8px;
}

.nav-toggle,
.nav-toggle-label {
    display: none;
}

main {
    min-height: 70vh;
}

.hero-section,
.page-hero,
.section-band,
.cta-band,
.article-page {
    padding: 72px 0;
}

.hero-section {
    padding-top: 88px;
}

.hero-grid,
.split-section,
.form-layout,
.cart-layout,
.product-detail,
.cta-inner {
    display: grid;
    gap: 36px;
}

.hero-grid,
.split-section,
.form-layout,
.product-detail,
.cta-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.detail-copy h1,
.article-page h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: 0;
}

.section-heading h2,
.detail-copy h1,
.article-page h1 {
    font-size: clamp(30px, 4vw, 48px);
}

.hero-copy p,
.page-hero p,
.section-heading p,
.detail-copy p,
.cta-inner p,
.article-page p {
    color: var(--muted);
    line-height: 1.75;
    font-size: 17px;
}

.eyebrow,
.product-category {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid rgba(45, 212, 191, 0.26);
    border-radius: 999px;
    background: rgba(45, 212, 191, 0.1);
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn,
.outline-btn,
.detail-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid transparent;
}

.outline-btn,
.detail-link {
    border-color: var(--line);
    color: var(--text);
    background: transparent;
}

.btn:hover {
    background: #5eead4;
}

.outline-btn:hover,
.detail-link:hover {
    border-color: var(--green);
    color: var(--green);
}

.hero-media,
.detail-media,
.panel-form,
.contact-panel,
.checkout-note,
.cart-summary,
.cart-item,
.empty-state,
.feature-grid article,
.service-list article,
.pcb-spec-grid article,
.blog-card,
.legal-list,
.product-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.hero-media {
    overflow: hidden;
}

.hero-media img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 32px 0 0;
}

.proof-strip div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-2);
}

.proof-strip dt {
    font-weight: 800;
    color: var(--text);
}

.proof-strip dd {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.section-band.subtle,
.cta-band {
    background: #0b1220;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 780px;
    margin-bottom: 28px;
}

.feature-grid,
.pcb-spec-grid,
.blog-grid,
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-grid article,
.service-list article,
.pcb-spec-grid article,
.blog-card,
.empty-state {
    padding: 24px;
}

.feature-grid h3,
.service-list h2,
.pcb-spec-grid h2,
.cart-item h2,
.cart-summary h2,
.checkout-note h2,
.contact-panel h2,
.empty-state h2 {
    margin-top: 0;
}

.feature-grid p,
.service-list p,
.service-list li,
.pcb-spec-grid p,
.product-card p,
.product-meta,
.detail-meta,
.cart-item p,
.cart-summary p,
.checkout-note p,
.contact-panel p,
.rich-text,
.legal-list p {
    color: var(--muted);
    line-height: 1.7;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.service-list ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.check-list p {
    margin: 0 0 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-row a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
}

.filter-row a:hover {
    border-color: var(--green);
    color: var(--green);
}

.product-card {
    overflow: hidden;
}

.product-image-link,
.detail-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: #050a13;
}

.product-image-link img,
.detail-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.product-card-body {
    padding: 20px;
}

.product-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 12px 0;
}

.product-card-title h2 {
    margin: 0;
    font-size: 22px;
}

.product-card-title strong,
.detail-price,
.cart-summary strong {
    color: var(--green);
    font-weight: 900;
}

.detail-price,
.cart-summary strong {
    display: block;
    margin: 18px 0;
    font-size: 30px;
}

.product-meta,
.detail-meta {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.product-meta div,
.detail-meta div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    padding-bottom: 8px;
}

.product-meta dt,
.detail-meta dt {
    color: var(--soft);
}

.product-meta dd,
.detail-meta dd {
    margin: 0;
    color: var(--text);
}

.detail-media {
    overflow: hidden;
}

.cart-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
}

.cart-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-controls a,
.cart-controls span {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
}

.cart-summary,
.checkout-note,
.contact-panel {
    padding: 24px;
}

.panel-form {
    padding: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #070d18;
    color: var(--text);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.panel-form {
    display: grid;
    gap: 16px;
}

.checkbox-line {
    grid-template-columns: 18px 1fr;
    align-items: start;
    font-weight: 400;
    color: var(--muted);
}

.checkbox-line input {
    min-height: auto;
    margin-top: 3px;
}

.blog-card img,
.article-page img {
    width: 100%;
    border-radius: 8px;
    display: block;
    margin-bottom: 18px;
}

.blog-card h2 a {
    text-decoration: none;
}

.date {
    color: var(--soft);
    font-size: 14px;
}

.article-page .rich-text {
    font-size: 18px;
}

.legal-list {
    margin-top: 24px;
    padding: 20px;
}

.message-list {
    padding-top: 18px;
}

.message {
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid rgba(45, 212, 191, 0.35);
    background: rgba(45, 212, 191, 0.12);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #060a12;
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 16px;
}

.site-footer a {
    display: block;
    margin: 8px 0;
}

.footer-brand {
    margin-bottom: 14px;
}

@media (max-width: 900px) {
    .nav-toggle-label {
        display: inline-flex;
        padding: 9px 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel);
        flex-direction: column;
        align-items: stretch;
    }

    .nav-toggle:checked ~ .site-nav {
        display: flex;
    }

    .hero-grid,
    .split-section,
    .form-layout,
    .product-detail,
    .cta-inner,
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .pcb-spec-grid,
    .blog-grid,
    .product-grid,
    .service-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .proof-strip,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 1fr;
    }

    .hero-media img {
        height: 300px;
    }
}
