:root {
    --color-bg: #f7f8fc;
    --color-surface: #ffffff;
    --color-text: #14161f;
    --color-text-muted: #5c6472;
    --color-border: #e6e9f0;
    --color-accent: #2563eb;
    --color-accent-hover: #1d4ed8;
    --color-accent-soft: #eef4ff;
    --color-green: #16a34a;
    --color-green-soft: #e9faf0;
    --color-ink: #0d1220;
    --color-ink-2: #151b2e;
    --color-ink-text: #eef1f8;

    --grad-brand: linear-gradient(135deg, #2563eb 0%, #1e9e5a 100%);
    --grad-brand-soft: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(22, 163, 74, 0.12) 100%);
    --grad-ink: linear-gradient(135deg, #10162a 0%, #0c1424 60%, #0a1a1c 100%);

    --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;

    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 48px;
    --spacing-4xl: 72px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);

    --container: 1140px;
    --nav-h: 67px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(100% - 2 * var(--spacing-xl), var(--container));
    margin-inline: auto;
}

.text-gradient {
    color: var(--color-accent);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 11px 18px;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    text-decoration: none;
}

.btn:active {
    transform: translateY(1px);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 14px;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    color: #fff;
    background: var(--color-accent-hover);
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.btn-outline {
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-white {
    background: #fff;
    color: var(--color-ink);
}

.btn-white:hover {
    color: var(--color-accent);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    min-height: 66px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-md);
    color: var(--color-text);
    font-weight: 700;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius-md);
}

.brand-name {
    font-size: 18px;
    letter-spacing: -0.01em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.header-nav a:not(.btn) {
    color: var(--color-text-muted);
    font-size: 15px;
    font-weight: 500;
}

.header-nav a:not(.btn):hover {
    color: var(--color-text);
}

.nav-toggle,
.nav-toggle-btn {
    display: none;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: var(--spacing-2xl) 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    opacity: 0.6;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-3xl);
}

.hero-copy {
    max-width: 780px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

.pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
}

.hero h1 {
    margin: 0 0 var(--spacing-lg);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
}

.hero-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    max-width: 60ch;
    margin-inline: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.hero-checks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--color-text-muted);
}

.hero-checks li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-green-soft);
    color: var(--color-green);
    font-size: 11px;
    font-weight: 700;
}

/* ---------- Hero preview card ---------- */
.hero-panel {
    position: relative;
    display: flex;
    justify-content: center;
}

.preview-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    display: grid;
    gap: var(--spacing-lg);
    animation: floaty 6s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-title {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-weight: 700;
    font-size: 15px;
}

.preview-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent);
}

.preview-tabs {
    display: inline-flex;
    gap: 4px;
    background: var(--color-bg);
    border-radius: 999px;
    padding: 3px;
}

.preview-tab {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 4px 10px;
    border-radius: 999px;
}

.preview-tab.active {
    background: var(--color-surface);
    color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.preview-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.preview-stat {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    display: grid;
    gap: 2px;
}

.preview-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.preview-stat-value {
    font-size: 18px;
    font-weight: 700;
}

.preview-trend {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.preview-trend.up {
    color: var(--color-green);
}

.preview-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 96px;
    padding: var(--spacing-md);
    background: var(--color-bg);
    border-radius: var(--radius-lg);
}

.preview-chart span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--color-accent);
    opacity: 0.85;
}

.preview-rows {
    display: grid;
    gap: var(--spacing-sm);
}

.preview-row {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 13px;
}

.preview-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-weight: 700;
    font-size: 12px;
}

.preview-row-main {
    flex: 1;
    font-weight: 500;
}

.preview-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.preview-badge.success {
    background: var(--color-green-soft);
    color: var(--color-green);
}

.preview-badge.warn {
    background: #fff3e0;
    color: #c2660a;
}

/* ---------- Trust strip ---------- */
.trust-strip {
    border-block: 1px solid var(--color-border);
    background: var(--color-surface);
    padding: var(--spacing-lg) 0;
}

.trust-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    text-align: center;
}

.trust-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.trust-tags {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

/* ---------- Sections ---------- */
.eyebrow {
    display: inline-block;
    margin-bottom: var(--spacing-md);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-heading {
    max-width: 640px;
    margin-bottom: var(--spacing-3xl);
}

.section-heading.center {
    margin-inline: auto;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 var(--spacing-md);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
}

.section-heading p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 17px;
}

.features {
    padding: var(--spacing-4xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: color-mix(in srgb, var(--color-accent) 25%, var(--color-border));
}

.feature-card h3 {
    margin: 0 0 var(--spacing-sm);
    font-size: 18px;
    font-weight: 700;
}

.feature-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 15px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

/* ---------- How it works ---------- */
.how {
    padding: var(--spacing-4xl) 0;
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-xl);
}

.step-card {
    position: relative;
    padding: var(--spacing-2xl) var(--spacing-xl) var(--spacing-xl);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-bg);
}

.step-num {
    position: absolute;
    top: calc(-1 * var(--spacing-lg));
    left: var(--spacing-xl);
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.step-card h3 {
    margin: var(--spacing-sm) 0 var(--spacing-sm);
    font-size: 18px;
    font-weight: 700;
}

.step-card p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 15px;
}

/* ---------- Stats band ---------- */
.stats-band {
    padding-top: var(--spacing-3xl);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}

.stat-item {
    display: grid;
    gap: 4px;
}

.stat-num {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--color-ink);
}

.stat-cap {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* ---------- Testimonials (auto-scroll marquee) ---------- */
.testimonials {
    padding: var(--spacing-sm) 0 var(--spacing-4xl);
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
    overflow: hidden;
}

.testimonials .section-heading {
    margin-bottom: var(--spacing-2xl);
}

.testimonials-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.testimonials-track {
    display: flex;
    width: max-content;
    gap: var(--spacing-lg);
    animation: testimonials-scroll 42s linear infinite;
}

.testimonials-marquee:hover .testimonials-track,
.testimonials-marquee:focus-within .testimonials-track {
    animation-play-state: paused;
}

.testimonials-row {
    list-style: none;
    margin: 0;
    padding: 0 var(--spacing-sm);
    display: flex;
    gap: var(--spacing-lg);
}

.testimonial-card {
    width: min(340px, 78vw);
    flex-shrink: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.testimonial-card__quote {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-card__quote::before {
    content: "\201C";
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    margin-right: 2px;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-top: auto;
}

.testimonial-card__avatar {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.testimonial-card__name {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
}

.testimonial-card__meta {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--color-text-muted);
}

@keyframes testimonials-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonials-marquee {
        mask-image: none;
        -webkit-mask-image: none;
        overflow-x: auto;
        padding-inline: var(--spacing-xl);
    }

    .testimonials-track {
        animation: none;
        width: auto;
    }

    .testimonials-row[aria-hidden="true"] {
        display: none;
    }
}

/* ---------- FAQ ---------- */
.faq {
    padding: var(--spacing-4xl) 0;
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.faq .section-heading {
    margin-bottom: var(--spacing-3xl);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: var(--spacing-md);
}

.faq-item {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
}

.faq-question {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 1.05rem;
    font-weight: 650;
    color: var(--color-text);
    line-height: 1.4;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "";
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

.faq-item[open] .faq-question {
    color: var(--color-accent);
}

.faq-answer {
    padding: 0 var(--spacing-xl) var(--spacing-lg);
}

.faq-answer p {
    margin: 0;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-muted);
}

/* ---------- CTA band ---------- */
.cta-band {
    padding: var(--spacing-3xl) 0;
}

.cta-inner {
    background: var(--grad-ink);
    border-radius: var(--radius-2xl);
    padding: clamp(var(--spacing-2xl), 5vw, var(--spacing-4xl));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: -120px;
    right: -60px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.4), transparent 70%);
    filter: blur(40px);
}

.cta-text {
    position: relative;
    z-index: 1;
}

.cta-inner h2 {
    margin: 0 0 var(--spacing-sm);
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
}

.cta-inner p {
    margin: 0;
    color: #b9c2d6;
    font-size: 16px;
}

.cta-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-ink);
    color: var(--color-ink-text);
    padding-top: var(--spacing-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    padding-bottom: var(--spacing-3xl);
}

.footer-tagline {
    margin: var(--spacing-md) 0 0;
    color: #97a1b6;
    font-size: 14px;
    max-width: 32ch;
}

.footer-social {
    list-style: none;
    margin: var(--spacing-lg) 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.footer-social__link:hover,
.footer-social__link:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
    outline: none;
}

.footer-social__link--facebook {
    background: #1877f2;
    box-shadow: 0 0 0 1px rgba(24, 119, 242, 0.35);
}

.footer-social__link--facebook:hover,
.footer-social__link--facebook:focus-visible {
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.45);
}

.footer-social__link--instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    box-shadow: 0 0 0 1px rgba(214, 36, 159, 0.35);
}

.footer-social__link--instagram:hover,
.footer-social__link--instagram:focus-visible {
    box-shadow: 0 6px 16px rgba(214, 36, 159, 0.45);
}

.footer-social__link--tiktok {
    background: #010101;
    box-shadow:
        -2px 0 0 #25f4ee,
        2px 0 0 #fe2c55;
}

.footer-social__link--tiktok:hover,
.footer-social__link--tiktok:focus-visible {
    box-shadow:
        -3px 0 0 #25f4ee,
        3px 0 0 #fe2c55,
        0 6px 16px rgba(254, 44, 85, 0.35);
}

.footer-social__link--whatsapp {
    background: #25d366;
    box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.35);
}

.footer-social__link--whatsapp:hover,
.footer-social__link--whatsapp:focus-visible {
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    transform: translateY(-3px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
    outline: none;
    color: #fff;
}

.whatsapp-float__icon {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float,
    .whatsapp-float:hover,
    .whatsapp-float:focus-visible {
        transition: none;
        transform: none;
    }
}

.footer-social__icon {
    display: block;
}

.footer-social__label {
    font-size: 12px;
    font-weight: 600;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: #fff;
    font-size: 18px;
}

.footer-brand .brand-logo {
    width: 32px;
    height: 32px;
}

.footer-heading {
    margin: 0 0 var(--spacing-lg);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7c869c;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--spacing-md);
}

.footer-links a {
    color: #c3cbdb;
    font-size: 14px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-hq-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7c869c;
    margin-bottom: 4px;
}

.footer-hq-value {
    display: block;
    color: #c3cbdb;
    font-size: 14px;
    line-height: 1.45;
}

.footer-hq-whatsapp {
    margin-top: 6px;
    color: #c3cbdb;
    text-decoration: none;
}

.footer-hq-whatsapp:hover,
.footer-hq-whatsapp:focus-visible {
    color: #fff;
}

.footer-bottom {
    padding: var(--spacing-lg) 0 var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    color: #7c869c;
}

/* ---------- About page ---------- */
.about-page {
    background: var(--color-bg);
}

.about-hero {
    padding: var(--spacing-3xl) 0 var(--spacing-4xl);
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(37, 99, 235, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 20%, rgba(22, 163, 74, 0.08), transparent 50%),
        var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.about-hero__inner {
    max-width: 760px;
}

.about-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    align-items: center;
    margin: 0 0 var(--spacing-xl);
    font-size: 13px;
    color: var(--color-text-muted);
}

.about-breadcrumb a {
    color: var(--color-accent);
}

.about-hero h1 {
    margin: var(--spacing-sm) 0 var(--spacing-lg);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.about-lead {
    margin: 0 0 var(--spacing-2xl);
    font-size: 1.125rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 54ch;
}

.about-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--spacing-md);
}

.about-facts li {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    font-size: 15px;
    color: var(--color-text);
}

.about-facts strong {
    min-width: 7.5rem;
    color: var(--color-text-muted);
    font-weight: 600;
}

.about-section {
    padding: var(--spacing-4xl) 0;
}

.about-section--muted {
    background: var(--color-surface);
    border-block: 1px solid var(--color-border);
}

.about-prose {
    max-width: 720px;
}

.about-prose h2 {
    margin: 0 0 var(--spacing-lg);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.about-prose p {
    margin: 0 0 var(--spacing-lg);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.about-prose a {
    color: var(--color-accent);
    font-weight: 600;
}

.about-product-list {
    margin: var(--spacing-xl) 0 0;
    padding-left: 1.25rem;
    display: grid;
    gap: var(--spacing-md);
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.5;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.about-value {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
}

.about-value h3 {
    margin: 0 0 var(--spacing-sm);
    font-size: 1.1rem;
    font-weight: 700;
}

.about-value p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.about-team {
    list-style: none;
    margin: var(--spacing-3xl) 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.about-team__card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    text-align: center;
}

.about-team__avatar {
    width: 88px;
    height: 88px;
    margin: 0 auto var(--spacing-lg);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.about-team__name {
    margin: 0 0 var(--spacing-xs);
    font-size: 1.05rem;
    font-weight: 700;
}

.about-team__role {
    margin: 0 0 var(--spacing-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-accent);
}

.about-team__bio {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.about-contact {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.about-contact h2 {
    margin: 0 0 var(--spacing-md);
    font-size: 1.75rem;
    font-weight: 800;
}

.about-contact__lead {
    margin: 0 0 var(--spacing-xl);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    max-width: 48ch;
}

.about-contact__list {
    list-style: none;
    margin: 0 0 var(--spacing-xl);
    padding: 0;
    display: grid;
    gap: var(--spacing-md);
}

.about-contact__list li {
    display: grid;
    gap: 2px;
    font-size: 15px;
}

.about-contact__list strong {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.about-contact__list a {
    color: var(--color-accent);
    font-weight: 600;
}

.about-contact .footer-social {
    margin-top: 0;
}

.about-cta-card {
    background: var(--color-ink);
    color: var(--color-ink-text);
    border-radius: var(--radius-2xl);
    padding: clamp(var(--spacing-xl), 4vw, var(--spacing-3xl));
}

.about-cta-card h3 {
    margin: 0 0 var(--spacing-md);
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.about-cta-card p {
    margin: 0 0 var(--spacing-xl);
    color: #97a1b6;
    line-height: 1.6;
}

.about-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.about-cta-card .btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.about-cta-card .btn-outline:hover {
    border-color: #fff;
    color: #fff;
}

@media (max-width: 960px) {
    .about-values,
    .about-team {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-contact {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .about-values,
    .about-team {
        grid-template-columns: 1fr;
    }
}

/* ---------- Legal pages ---------- */
.legal-page {
    padding: var(--spacing-4xl) 0;
}

.legal-content {
    max-width: 780px;
    margin-inline: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: clamp(var(--spacing-xl), 4vw, var(--spacing-3xl));
    box-shadow: var(--shadow-sm);
}

.legal-content h1 {
    margin-top: 0;
    font-size: 2rem;
    font-weight: 800;
}

.legal-content h2 {
    margin-top: var(--spacing-2xl);
    font-size: 1.3rem;
    font-weight: 700;
    scroll-margin-top: 96px;
}

.legal-content h3 {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    font-size: 1.05rem;
    font-weight: 700;
}

.legal-content ul,
.legal-content ol {
    padding-left: var(--spacing-xl);
}

.legal-content li {
    margin-bottom: var(--spacing-sm);
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content a:hover {
    color: var(--color-accent-hover);
}

.legal-toc {
    margin: var(--spacing-xl) 0 0;
    padding: var(--spacing-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg, #f8fafc);
}

.legal-toc h2 {
    margin: 0 0 var(--spacing-md);
    font-size: 1rem;
    font-weight: 700;
}

.legal-toc ol {
    margin: 0;
}

.legal-toc a {
    text-decoration: none;
}

.legal-toc a:hover {
    text-decoration: underline;
}

.legal-updated {
    color: var(--color-text-muted);
    font-size: 14px;
}

.alert-banner {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    background: #fff3e0;
    border: 1px solid #ffd8a8;
    color: #b45309;
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }

    .hero-panel {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .nav-toggle-btn {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        padding: 10px;
        border-radius: var(--radius-md);
        border: 1px solid var(--color-border);
        background: var(--color-surface);
        cursor: pointer;
    }

    .nav-toggle-btn span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: var(--color-text);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .header-nav {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
        padding: var(--spacing-lg);
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .nav-toggle:checked ~ .header-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .header-nav a:not(.btn) {
        padding: var(--spacing-sm) 0;
    }

    .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-checks {
        gap: var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}
.blog-list {
    padding: var(--spacing-2xl) 0;
}
.blog-article {
    padding: var(--spacing-4xl) 0;
}

.blog-list h1,
.blog-article h1 {
    margin-top: 0;
}

.blog-meta {
    color: var(--color-text-muted);
    font-size: 14px;
}

.blog-body {
    max-width: 720px;
}

.blog-html img {
    border-radius: 12px;
}

.article-preview-banner {
    background: #fff7ed;
    color: #9a3412;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
}

/* Public blog browser (search + list/grid) */
.blog-list .article-browser {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.blog-list .article-browser__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.blog-list .article-browser__search {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    flex: 1 1 320px;
    min-width: 0;
}

.blog-list .article-browser__viewbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.blog-list .article-count {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.blog-list .article-count strong {
    font-size: 22px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.blog-list .article-count span {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-list .article-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 0;
}

.blog-list .article-search__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    pointer-events: none;
}

.blog-list .article-search__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.blog-list .article-search__input {
    width: 100%;
    padding: 11px 12px 11px 38px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font: inherit;
    background: var(--color-surface);
    color: var(--color-text);
}

.blog-list .article-search-btn {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: none;
}

.blog-list .article-search-btn:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--color-accent) 28%, transparent);
}

.blog-list .view-toggle {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.blog-list .view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.blog-list .view-toggle__btn svg {
    width: 16px;
    height: 16px;
}

.blog-list .view-toggle__btn.is-active {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--color-accent) 28%, transparent);
}

.blog-list .article-browser[data-view="list"] .article-browser__grid,
.blog-list .article-browser[data-view="grid"] .article-browser__list {
    display: none;
}

.blog-list .article-empty {
    padding: var(--spacing-2xl) var(--spacing-xl);
    text-align: center;
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-lg);
}

.blog-list .article-empty strong {
    display: block;
    margin-bottom: var(--spacing-sm);
}

.blog-stack {
    display: grid;
    gap: var(--spacing-md);
}

.blog-stack__item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-lg);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    color: inherit;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.blog-stack__item:hover {
    border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
    box-shadow: var(--shadow-md);
    color: inherit;
}

.blog-list .article-thumb {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-weight: 700;
}

.blog-list .article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-stack__text {
    min-width: 0;
    flex: 1;
}

.blog-stack__title {
    margin: 0 0 4px;
    font-size: 20px;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-stack__excerpt {
    margin: 8px 0 0;
    color: var(--color-text-muted);
    font-size: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-list .article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--spacing-lg);
}

.blog-list .article-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.blog-list .article-card--link {
    color: inherit;
    text-decoration: none;
}

.blog-list .article-card--link:hover {
    border-color: color-mix(in srgb, var(--color-accent) 35%, var(--color-border));
    box-shadow: var(--shadow-md);
    color: inherit;
}

.blog-list .article-card__media {
    height: 140px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--color-accent-soft), var(--color-green-soft));
    color: var(--color-accent);
    font-size: 28px;
    font-weight: 700;
}

.blog-list .article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-list .article-card__body {
    display: grid;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    flex: 1;
}

.blog-list .article-card__title {
    margin: 0;
    font-size: 17px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blog-list .article-keyword {
    display: inline-block;
    margin: 0;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 600;
}

.blog-list .article-card__excerpt {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 640px) {
    .blog-list .article-browser__toolbar {
        align-items: stretch;
    }

    .blog-list .article-browser__search {
        width: 100%;
    }

    .blog-list .article-search-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preview-card {
        animation: none;
    }
}

/* ============================================================
   Home redesign: device showcase, scroll-sync, stacked cards, demo
   ============================================================ */

/* ---- Hero device showcase (laptop + phone) ---- */
.hero-showcase {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
}

/* Product screenshot in a centered browser-style window, below the hero copy. */
.hero-window {
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.40),
                0 14px 28px -16px rgba(15, 23, 42, 0.25);
}

.hero-window-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 16px;
    background: #f2f4f9;
    border-bottom: 1px solid var(--color-border);
}

.hero-window-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d3d8e4;
}

.hero-window-bar span:nth-child(1) { background: #ff5f57; }
.hero-window-bar span:nth-child(2) { background: #febc2e; }
.hero-window-bar span:nth-child(3) { background: #28c840; }

.hero-screens {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-surface);
}

.hero-screens > picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.hero-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.hero-shot.is-active {
    opacity: 1;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-xl);
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--color-border);
    cursor: pointer;
    transition: background 0.2s ease, width 0.2s ease;
}

.hero-dot.is-active {
    background: var(--color-accent);
}

/* ---- Pinned feature showcase (scroll-driven) ---- */
.showcase {
    padding: var(--spacing-4xl) 0;
}

/* Base layout (small screens / short viewports / reduced motion): a simple
   stacked list of feature cards. The pinned behaviour below layers on top. */
.showcase .section-heading {
    margin-bottom: var(--spacing-2xl);
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.showcase-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.showcase-list-track {
    display: flex;
    flex-direction: column;
    gap: inherit;
}

.showcase-item {
    display: flex;
    gap: var(--spacing-lg);
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    text-align: left;
    font: inherit;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.showcase-num {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-accent);
    line-height: 1.7;
}

.showcase-text {
    display: block;
}

.showcase-item-title {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-size: 1.2rem;
    font-weight: 700;
}

.showcase-item-desc {
    display: block;
    color: var(--color-text-muted);
    font-size: 15px;
    line-height: 1.5;
}

/* The screenshot frame only appears in the pinned layout (it swaps as the
   scroll steps through features); in the stacked base layout it is hidden. */
.showcase-media {
    position: relative;
    display: none;
}

/* Pinned scrollytelling: wide + tall viewports, when motion is allowed.
   A tall track supplies the scroll distance; the stage pins inside it and
   holds the whole section (heading + list + screenshot) as one unit.
   Keep min-height in sync with home.js pinnedQuery (560px). */
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) and (min-height: 560px) {
    .showcase {
        padding: 0;
    }

    .showcase-scroll {
        position: relative;
        /* Fallback; JS sets height from item count when pinned. */
        height: 320vh;
    }

    .showcase-pin {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: calc(var(--nav-h, 66px) + var(--spacing-lg)) 0 var(--spacing-2xl);
    }

    .showcase .section-heading {
        margin-bottom: var(--spacing-md);
    }

    .showcase-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3xl);
        align-items: center;
        width: 100%;
    }

    .showcase-list {
        position: relative;
        height: min(420px, 55vh);
        overflow: hidden;
        gap: 0;
        mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            #000 12%,
            #000 88%,
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to bottom,
            transparent 0%,
            #000 12%,
            #000 88%,
            transparent 100%
        );
    }

    .showcase-list.is-at-start {
        mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
    }

    .showcase-list.is-at-end {
        mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 100%);
    }

    .showcase-list.is-at-start.is-at-end {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .showcase-list-track {
        gap: var(--spacing-xs);
        will-change: transform;
        transition: transform 0.28s ease;
    }

    /* In the pinned layout the list items are quiet until active. */
    .showcase-item {
        padding: var(--spacing-sm) var(--spacing-lg);
        border-color: transparent;
        background: transparent;
        box-shadow: none;
        opacity: 0.5;
    }

    .showcase-item.is-active {
        opacity: 1;
        background: var(--color-surface);
        border-color: var(--color-border);
        box-shadow: var(--shadow-md);
    }

    .showcase-item-desc {
        font-size: 14px;
    }

    .showcase-media {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .showcase-list-track {
        transition: none;
    }
}

.device-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.device-frame-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f2f4f9;
    border-bottom: 1px solid var(--color-border);
}

.device-frame-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d3d8e4;
}

.device-frame-screen {
    position: relative;
    aspect-ratio: 1280 / 800;
}

.device-frame-screen > picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
}

.showcase-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.showcase-shot.is-active {
    opacity: 1;
}

/* ---- Pinned stacked cards (scroll-driven) ---- */
.stack {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg);
}

/* Base layout (small screens / short viewports / reduced motion): the cards
   sit in a normal vertical stack. The pinned behaviour layers on below. */
.stack-cards {
    margin-top: var(--spacing-3xl);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.stack-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Pinned scrollytelling (mirrors the features section): a tall track supplies
   the scroll distance; the stage pins and holds the whole section, and scroll
   progress reveals each card onto the stack.
   Keep min-height in sync with home.js pinnedQuery (560px). */
@media (prefers-reduced-motion: no-preference) and (min-width: 901px) and (min-height: 560px) {
    .stack {
        padding: 0;
    }

    .stack-scroll {
        position: relative;
        height: 320vh;
    }

    .stack-pin {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: calc(var(--nav-h) + var(--spacing-lg)) 0 var(--spacing-2xl);
    }

    .stack .section-heading {
        margin-bottom: var(--spacing-xl);
    }

    /* All cards share one grid cell so they overlap; the cell auto-sizes to
       the tallest card, so there are no hard-coded heights or offsets. */
    .stack-cards {
        margin-top: 0;
        display: grid;
        width: 100%;
    }

    /* Resting stacked position (each card a little lower than the one before
       so their top edges peek through). JS overrides transform/opacity
       continuously from scroll progress, so cards slide up 1:1 with scroll
       instead of popping in - no CSS transition here on purpose. */
    .stack-card {
        grid-area: 1 / 1;
        z-index: var(--i);
        transform: translateY(calc(var(--i) * 24px));
        will-change: transform, opacity;
    }
}

.stack-card-body {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 320px;
}

.stack-card-text {
    padding: var(--spacing-3xl) var(--spacing-4xl);
    align-self: center;
}

.stack-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: var(--spacing-lg);
}

.stack-card-text h3 {
    margin: 0 0 var(--spacing-md);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}

.stack-card-text p {
    margin: 0 0 var(--spacing-lg);
    color: var(--color-text-muted);
    max-width: 46ch;
}

.stack-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--spacing-sm);
}

.stack-points li {
    position: relative;
    padding-left: 28px;
    color: var(--color-text);
    font-weight: 500;
}

.stack-points li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: -1px;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--color-green);
    background: var(--color-green-soft);
    border-radius: 50%;
}

.stack-card-visual {
    position: relative;
    min-height: 260px;
    background: var(--grad-ink);
}

.stack-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 20px 20px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 30%, transparent 100%);
    mask-image: radial-gradient(ellipse 70% 70% at 70% 30%, #000 30%, transparent 100%);
}

.stack-visual-1 { background: linear-gradient(135deg, #12306b 0%, #0d1220 70%); }
.stack-visual-2 { background: linear-gradient(135deg, #0f5132 0%, #0d1220 70%); }
.stack-visual-3 { background: linear-gradient(135deg, #3b2a6b 0%, #0d1220 70%); }
.stack-visual-4 { background: linear-gradient(135deg, #7a3d12 0%, #0d1220 70%); }

/* ---- Video demo ---- */
.demo {
    padding-top: calc(var(--spacing-4xl) + 40px);
}

.demo-video {
    position: relative;
    max-width: 940px;
    margin: var(--spacing-3xl) auto 0;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    background: var(--color-ink);
}

.demo-video img,
.demo-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
}

.demo-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
}

.demo-video:hover .demo-play {
    transform: translate(-50%, -50%) scale(1.06);
}

.demo-play svg {
    width: 34px;
    height: 34px;
    margin-left: 4px;
}

.features-extra {
    padding: var(--spacing-4xl) 0;
    background: var(--color-bg);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .stack-card-body {
        grid-template-columns: 1fr;
    }

    .stack-card-text {
        padding: var(--spacing-2xl);
    }

    .stack-card-visual {
        min-height: 160px;
        order: -1;
    }

    /* Flatten the tilt on small screens for a clean, front-on screenshot. */
    .hero-screens,
    .hero-showcase:hover .hero-screens {
        transform: none;
    }
}

/* ---- Clickable screenshots: hover hint + full-size lightbox ---- */
.hero-window,
.showcase-media .device-frame {
    cursor: zoom-in;
}

.zoom-hint {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(13, 18, 32, 0.28);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.zoom-hint svg {
    width: 28px;
    height: 28px;
    padding: 13px;
    box-sizing: content-box;
    background: rgba(13, 18, 32, 0.55);
    border-radius: 999px;
}

.hero-window:hover .zoom-hint,
.showcase-media .device-frame:hover .zoom-hint {
    opacity: 1;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 56px);
    background: rgba(8, 11, 20, 0.82);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-stage {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 86vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    background: var(--color-surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.26);
}

.lightbox-close {
    top: clamp(12px, 3vw, 28px);
    right: clamp(12px, 3vw, 28px);
    width: 44px;
    height: 44px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
}

.lightbox-prev { left: clamp(8px, 2vw, 28px); }
.lightbox-next { right: clamp(8px, 2vw, 28px); }

.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-nav svg { width: 26px; height: 26px; }

.lightbox-counter {
    position: absolute;
    bottom: clamp(12px, 3vw, 26px);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
}

/* Hide the nav arrows when a group has a single image. */
.lightbox.is-single .lightbox-nav,
.lightbox.is-single .lightbox-counter {
    display: none;
}

@media (max-width: 640px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
    }
}
