:root {
    --green: #0b9feb;
    --green-dark: #07275d;
    --green-soft: #e8f6ff;
    --yellow: #95d51f;
    --orange: #ff9300;
    --ink: #0e1b33;
    --muted: #5d6b7d;
    --line: #d7e6f2;
    --surface: #ffffff;
    --soft: #f5f9fd;
    --shadow: 0 16px 40px rgba(7, 39, 93, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--soft);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 12px max(20px, calc((100vw - 1180px) / 2));
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green-dark);
    font-weight: 800;
    text-decoration: none;
}

.brand img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.95rem;
}

.site-nav a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--green-dark);
}

.btn,
.install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid var(--green);
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover,
.install-btn:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn.small,
.install-btn.small {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.9rem;
}

.btn.secondary {
    background: #fff;
    color: var(--green-dark);
    border-color: var(--line);
}

.btn.secondary:hover {
    background: var(--green-soft);
    border-color: var(--green);
}

.btn-whatsapp {
    background: #24a85a;
    border-color: #24a85a;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    min-height: 640px;
    padding: 96px max(20px, calc((100vw - 1180px) / 2)) 76px;
    background: #edf8ff;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 9px;
    background: linear-gradient(90deg, var(--green), var(--yellow), var(--orange));
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: 3.25rem;
    line-height: 1.08;
}

.hero p {
    max-width: 650px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
}

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

.hero-media {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 5 / 4;
    border: 1px solid rgba(7, 39, 93, 0.12);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 48px rgba(7, 39, 93, 0.16);
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-media img.hero-media-fallback {
    height: auto;
    object-fit: contain;
    object-position: center;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--orange);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.intro,
.section {
    padding: 72px max(20px, calc((100vw - 1180px) / 2));
}

.intro {
    background: var(--surface);
}

.intro p {
    max-width: 980px;
    margin: 0 auto;
    color: var(--ink);
    font-size: 1.1rem;
    text-align: center;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.18;
}

.section-heading p:not(.eyebrow) {
    margin: 10px 0 0;
    color: var(--muted);
}

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

.product-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: var(--green-soft);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--yellow);
    color: #4c3400;
    font-size: 0.78rem;
    font-weight: 900;
}

.product-body {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    padding: 18px;
}

.product-body h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

.price {
    margin: 10px 0;
    color: var(--green-dark);
    font-size: 1.25rem;
    font-weight: 900;
}

.price.large {
    font-size: 2rem;
}

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

.product-meta div,
.detail-list div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

dt {
    color: var(--muted);
    font-weight: 800;
}

dd {
    min-width: 0;
    margin: 0;
}

.contents {
    display: -webkit-box;
    min-height: 76px;
    margin: 0 0 18px;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: auto;
}

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

.feature-item {
    min-height: 104px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 800;
}

.qr-section {
    background: var(--surface);
}

.qr-box {
    display: inline-grid;
    gap: 16px;
    width: min(100%, 360px);
    padding: 20px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.qr-canvas {
    width: 100%;
    aspect-ratio: 1;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.qr-canvas svg {
    width: 100%;
    height: 100%;
}

.qr-caption {
    display: block;
    width: 100%;
    margin: -2px 0 0;
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-wrap: balance;
}

@media print {
    .qr-box {
        width: 360px;
        background: #fff;
        border-color: #111;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .qr-canvas {
        border-color: #111;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    .qr-caption {
        display: block;
        width: 100%;
        color: #111;
        font-size: 22px;
        font-weight: 900;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }

    [data-qr-download] {
        display: none;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.contact-grid div {
    min-width: 0;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.contact-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.contact-grid strong {
    display: block;
    overflow-wrap: anywhere;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 72px max(20px, calc((100vw - 1180px) / 2));
    background: #fff;
}

.detail-image {
    overflow: hidden;
    border-radius: 8px;
    background: var(--green-soft);
    box-shadow: var(--shadow);
}

.detail-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0;
    font-size: 2.45rem;
    line-height: 1.14;
}

.contents-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--soft);
}

.contents-panel h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.contents-panel p {
    margin: 0;
    color: var(--muted);
}

.not-found,
.setup-error {
    display: grid;
    place-items: start center;
    min-height: 70vh;
    padding: 90px 20px;
    text-align: center;
}

.not-found h1,
.setup-error h1 {
    margin: 0;
    font-size: 2.25rem;
}

.not-found p,
.setup-error p {
    max-width: 620px;
    color: var(--muted);
}

.empty-state {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px max(20px, calc((100vw - 1180px) / 2));
    color: #e9fff1;
    background: var(--green-dark);
}

.site-footer div {
    display: grid;
    gap: 4px;
}

.site-footer a {
    color: #fff;
    font-weight: 900;
}

.network-banner {
    position: sticky;
    top: 76px;
    z-index: 25;
    padding: 10px 20px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
    background: #245dc1;
    box-shadow: 0 10px 24px rgba(7, 39, 93, 0.12);
}

.network-banner[data-state="offline"] {
    background: #b24a1e;
}

.network-banner[data-state="timeout"] {
    background: #c17e19;
}

.network-banner[data-state="server"] {
    background: #7c3aed;
}

@media (max-width: 980px) {
    .site-header {
        padding: 12px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 75px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: flex;
    }

    .network-banner {
        top: 75px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 560px;
        padding: 80px 20px 60px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-media {
        width: min(100%, 680px);
        margin: 8px auto 0;
    }

    .intro,
    .section,
    .detail-hero {
        padding-right: 20px;
        padding-left: 20px;
    }

    .product-grid,
    .feature-grid,
    .contact-grid,
    .detail-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .brand span {
        max-width: 150px;
        line-height: 1.2;
    }

    .hero {
        min-height: 520px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-media {
        aspect-ratio: 16 / 11;
        border-radius: 22px;
    }

    .hero-actions,
    .card-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .product-grid,
    .feature-grid,
    .contact-grid,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .section-heading h2,
    .detail-copy h1,
    .not-found h1,
    .setup-error h1 {
        font-size: 1.75rem;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
