/* Catena — design tokens (design.md) */
:root {
    --primary: #0052ff;
    --primary-active: #003ecc;
    --primary-disabled: #a8b8cc;
    --canvas: #ffffff;
    --surface-soft: #f7f7f7;
    --surface-strong: #eef0f3;
    --surface-dark: #0a0b0d;
    --surface-dark-elevated: #16181c;
    --hairline: #dee1e6;
    --hairline-soft: #eef0f3;
    --ink: #0a0b0d;
    --body: #5b616e;
    --muted: #7c828a;
    --muted-soft: #a8acb3;
    --on-primary: #ffffff;
    --on-dark: #ffffff;
    --on-dark-soft: #a8acb3;
    --semantic-up: #05b169;
    --semantic-down: #cf202f;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.04);
    --font-display: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: var(--font-display);
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --radius-xl: 24px;
    --radius-md: 12px;
    --radius-pill: 100px;
    --section-pad: 96px;
    --container: 1200px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--body);
    background: var(--canvas);
}

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

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: var(--radius-md);
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1,
h2,
h3 {
    color: var(--ink);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

.text-up {
    color: var(--semantic-up);
    font-family: var(--font-mono);
    font-weight: 500;
}

/* Badge */
.badge-pill {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 6px 14px;
    background: var(--surface-strong);
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
}

.hero-band-dark .badge-pill {
    background: var(--surface-dark-elevated);
    color: var(--on-dark-soft);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--on-primary);
}

.btn-primary:hover {
    background: var(--primary-active);
}

.btn-pill-cta {
    min-height: 56px;
    padding: 16px 32px;
    background: var(--primary);
    color: var(--on-primary);
}

.btn-pill-cta:hover {
    background: var(--primary-active);
}

.btn-outline-on-dark {
    background: transparent;
    color: var(--on-dark);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-outline-on-dark:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary-dark {
    background: var(--surface-dark-elevated);
    color: var(--on-dark);
}

.btn-secondary-dark:hover {
    background: #1f2228;
}

.btn-block {
    width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 1rem;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 1.75rem;
}

.nav-desktop a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.nav-desktop a:hover {
    color: var(--primary);
}

.header-cta {
    flex-shrink: 0;
}

.nav-mobile {
    display: none;
}

.nav-mobile summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.nav-mobile summary::-webkit-details-marker {
    display: none;
}

.nav-mobile nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--hairline);
    padding: 1rem 24px 1.5rem;
}

.nav-mobile ul {
    list-style: none;
}

.nav-mobile li {
    margin-bottom: 0.75rem;
}

.nav-mobile a {
    color: var(--ink);
    font-weight: 500;
}

/* Hero */
.hero-band-dark {
    background: var(--surface-dark);
    color: var(--on-dark);
    padding: var(--section-pad) 0;
    overflow: hidden;
}

.hero-band-dark h1 {
    color: var(--on-dark);
}

.hero-lead {
    font-size: 1.125rem;
    color: var(--on-dark-soft);
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    list-style: none;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stats .stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--on-dark);
}

.hero-stats .stat-label {
    font-size: 13px;
    color: var(--on-dark-soft);
}

.hero-visual {
    position: relative;
    min-height: 320px;
}

.product-ui-card-dark {
    background: var(--surface-dark-elevated);
    border-radius: var(--radius-xl);
    padding: 12px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.hero-card-main {
    position: relative;
    z-index: 2;
    transform: rotate(-1deg);
}

.hero-card-secondary {
    position: absolute;
    right: -8%;
    bottom: -12%;
    width: 52%;
    z-index: 1;
    transform: rotate(4deg);
    opacity: 0.95;
}

.hero-card-main img,
.hero-card-secondary img {
    border-radius: calc(var(--radius-xl) - 8px);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Sections */
.band-soft {
    background: var(--surface-soft);
}

.section-header {
    max-width: 42rem;
    margin-bottom: 3rem;
}

.section-header--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-intro {
    font-size: 1.0625rem;
    color: var(--body);
    margin-bottom: 0;
}

.section-gallery,
.section-specs,
.section-b2b,
.section-segments,
.section-contact {
    padding: var(--section-pad) 0;
}

/* Product gallery — inline, no modal */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-card {
    margin: 0;
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.gallery-card:hover {
    box-shadow: var(--shadow-soft);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--surface-strong);
}

.gallery-card figcaption {
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
    border-top: 1px solid var(--hairline-soft);
}

/* Feature cards */
.specs-grid,
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.band-soft .feature-card {
    background: var(--canvas);
}

.spec-number {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.spec-unit {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 400;
}

/* Table */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--hairline);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--canvas);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--hairline-soft);
}

.comparison-table thead th {
    background: var(--surface-dark);
    color: var(--on-dark);
    font-weight: 600;
    font-size: 14px;
}

.comparison-table tbody th {
    font-weight: 500;
    color: var(--ink);
}

.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:nth-child(even) td,
.comparison-table tbody tr:nth-child(even) th {
    background: var(--surface-soft);
}

/* Segments */
.segments-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.segments-list li {
    padding: 32px;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-xl);
    background: var(--canvas);
}

/* CTA band */
.cta-band-dark {
    background: var(--surface-dark);
    color: var(--on-dark);
    padding: var(--section-pad) 0;
    text-align: center;
}

.cta-inner h2 {
    color: var(--on-dark);
    margin-bottom: 0.75rem;
}

.cta-inner p {
    color: var(--on-dark-soft);
    max-width: 32rem;
    margin: 0 auto 2rem;
}

.cta-inner .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-list {
    list-style: none;
    margin-top: 1.5rem;
}

.contact-list li {
    margin-bottom: 0.75rem;
}

.contact-list a {
    color: var(--primary);
    font-weight: 500;
}

.contact-whatsapp {
    margin-top: 1.75rem;
}

.btn-whatsapp {
    gap: 10px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #1ebe57;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:focus-visible {
    outline: 2px solid #128c7e;
    outline-offset: 3px;
}

.btn-whatsapp-icon {
    flex-shrink: 0;
}

.contact-form {
    background: var(--surface-soft);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--radius-xl);
    padding: 32px;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 14px;
    color: var(--ink);
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: var(--canvas);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-width: 2px;
    border-color: var(--primary);
    padding: 13px 15px;
}

address {
    font-style: normal;
}

/* Footer */
.site-footer {
    background: var(--canvas);
    border-top: 1px solid var(--hairline);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    max-width: 280px;
    font-size: 14px;
}

.footer-nav-title {
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 1rem;
    font-size: 14px;
}

.footer-nav ul,
.footer-norms ul {
    list-style: none;
}

.footer-nav li,
.footer-norms li {
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.footer-nav a {
    color: var(--body);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--primary);
}

.legal-band {
    padding: 1.5rem 0 2rem;
    border-top: 1px solid var(--hairline-soft);
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --section-pad: 72px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        order: -1;
        min-height: 260px;
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-card-secondary {
        right: 0;
        bottom: -8%;
    }

    .product-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .specs-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .segments-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 56px;
    }

    .nav-desktop,
    .header-cta {
        display: none;
    }

    .nav-mobile {
        display: block;
        position: relative;
    }

    .site-header {
        position: sticky;
    }

    .product-gallery {
        grid-template-columns: 1fr;
    }

    .specs-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: 1.25rem;
    }
}
