:root {
    --bg: #f6f5f3;
    --bg-pure: #ffffff;
    --surface: #ffffff;
    --surface-dark: #13202a;
    --text: #0f1923;
    --muted: #68737c;
    --line: rgba(15, 25, 35, 0.09);
    --accent: #0f766e;
    --accent-deep: #0b5d57;
    --accent-soft: rgba(15, 118, 110, 0.09);
    --gold: #bf8a54;
    --gold-soft: rgba(191, 138, 84, 0.1);
    --shadow-xs: 0 1px 4px rgba(15, 25, 35, 0.05);
    --shadow-sm: 0 4px 14px rgba(15, 25, 35, 0.07);
    --shadow-md: 0 10px 32px rgba(15, 25, 35, 0.1);
    --shadow-lg: 0 22px 56px rgba(15, 25, 35, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-pill: 999px;
    --container: 1160px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --dur: 200ms;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Manrope', system-ui, sans-serif;
    font-size: 16px;
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--bg);
}

img { display: block; max-width: 100%; }
a { color: inherit; }
.main-content { flex: 1; }

/* ── Scroll progress bar ─────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent) 0%, #22c7b9 100%);
    z-index: 500;
    transition: width 80ms linear;
    pointer-events: none;
}

/* ── Container ───────────────────────────────── */
.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

/* ── Navigation ──────────────────────────────── */
.site-nav-wrap {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
    transition: padding var(--dur) var(--ease);
}
.site-nav-wrap.is-scrolled { padding: 10px 0; }

.site-nav {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(255, 254, 252, 0.86);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-nav-wrap.is-scrolled .site-nav {
    box-shadow: var(--shadow-md);
    background: rgba(255, 254, 252, 0.96);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    flex-shrink: 0;
}
.brand-mark {
    width: 42px; height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent) 0%, #1aaa9c 100%);
    color: #fff;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(15, 118, 110, 0.22);
}
.brand-text small {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-link {
    text-decoration: none;
    padding: 9px 13px;
    border-radius: var(--radius-pill);
    color: var(--muted);
    font-size: 0.91rem;
    font-weight: 600;
    transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
    white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--accent-soft); }
.nav-link.is-active { color: var(--accent); background: var(--accent-soft); }

/* ── Hamburger toggle ────────────────────────── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    flex-shrink: 0;
    transition: background var(--dur) var(--ease);
}
.nav-toggle:hover { background: var(--accent-soft); }
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 280ms var(--ease), opacity 200ms var(--ease), width 200ms var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ─────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.93rem;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #149687 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.22);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(15, 118, 110, 0.3); }

.btn-secondary {
    background: var(--bg-pure);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}
.btn-secondary:hover { box-shadow: var(--shadow-sm); }

.btn-nav { padding-inline: 16px; font-size: 0.87rem; }

/* ── Sections ────────────────────────────────── */
.section { padding: 40px 0 88px; }
.section-header { max-width: 700px; margin-bottom: 40px; }

/* ── Eyebrow ─────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 13px;
    border-radius: var(--radius-pill);
    background: var(--bg-pure);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    box-shadow: var(--shadow-xs);
}

/* ── Headings ────────────────────────────────── */
.section-title,
.hero-copy h1,
.page-hero h1,
.cta-banner h2,
.hero-panel h2,
.faq-card h3,
.portfolio-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.section-title {
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    margin-bottom: 14px;
    color: var(--text);
}

.section-lead,
.hero-copy p, .page-hero p, .card p,
.feature-list li, .stat-card span,
.hero-note, .meta-list li, .process-card p,
.highlight-list li, .cta-banner p, .footer-copy,
.footer-bottom, .panel-text, .info-card p,
.hero-panel p, .portfolio-card p, .faq-card p,
.portfolio-card li {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.78;
}

/* ── Hero ────────────────────────────────────── */
.hero { padding: 20px 0 56px; }

.hero-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.85);
    background: var(--bg-pure);
    box-shadow: var(--shadow-lg);
}
.hero-shell::before {
    content: '';
    position: absolute;
    right: -90px; top: -90px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-shell::after {
    content: '';
    position: absolute;
    left: -60px; bottom: -60px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(191, 138, 84, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 32px;
    align-items: center;
    padding: 64px;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 5.2vw, 4.6rem);
    margin-bottom: 20px;
    max-width: 12ch;
}
.hero-copy p, .page-hero p {
    font-size: 1.05rem;
    max-width: 58ch;
    margin-bottom: 28px;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.hero-note {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 0.9rem;
    color: var(--muted);
}
.hero-note strong { color: var(--text); }

/* ── Hero panel (dark) ───────────────────────── */
.hero-panel {
    padding: 28px;
    border-radius: 22px;
    background: var(--surface-dark);
    color: #f3ede5;
    box-shadow: 0 20px 52px rgba(19, 32, 42, 0.22);
}
.hero-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}
.hero-panel-label {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(243, 237, 229, 0.52);
    margin-bottom: 9px;
}
.hero-panel h2 {
    font-size: 1.8rem;
    line-height: 1.22;
    color: #f3ede5;
}
.hero-panel-icon {
    width: 52px; height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--gold);
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ── Stat grid ───────────────────────────────── */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.stat-card strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    color: #fdfaf6;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

/* ── Lists ───────────────────────────────────── */
.feature-list, .meta-list, .highlight-list, .impact-list {
    list-style: none;
    display: grid;
    gap: 12px;
}
.feature-list li, .meta-list li, .highlight-list li, .impact-list li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}
.feature-list li { color: rgba(243, 237, 229, 0.78); }
.feature-list i { margin-top: 4px; color: var(--gold); }
.meta-list i, .highlight-list i, .impact-list i { margin-top: 4px; color: var(--accent); }

/* ── Grid systems ────────────────────────────── */
.card-grid, .info-grid, .process-grid,
.highlight-grid, .portfolio-grid, .faq-grid {
    display: grid;
    gap: 20px;
}
.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.portfolio-grid, .faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-grid, .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.highlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── Cards ───────────────────────────────────── */
.card, .info-card, .process-card, .panel,
.cta-banner, .page-hero, .content-panel,
.portfolio-card, .faq-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.card, .info-card, .process-card, .panel,
.content-panel, .portfolio-card, .faq-card {
    padding: 28px;
}
.card, .info-card, .process-card, .portfolio-card, .faq-card {
    transition: transform 220ms var(--ease), box-shadow 220ms var(--ease);
    cursor: default;
}
.card:hover, .info-card:hover, .process-card:hover,
.portfolio-card:hover, .faq-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* ── Tags ────────────────────────────────────── */
.card-meta, .tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: var(--radius-pill);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: var(--gold-soft);
    color: #8a5f28;
    margin-bottom: 16px;
    border: 1px solid rgba(191, 138, 84, 0.18);
}
.portfolio-card .tag, .faq-card .tag { margin-bottom: 18px; }

/* ── Card icons ──────────────────────────────── */
.card-icon, .info-icon, .process-step {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.3rem;
}
.process-step {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
}

/* ── Card headings ───────────────────────────── */
.card h3, .info-card h3, .process-card h3, .panel h3,
.faq-card h3, .portfolio-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    line-height: 1.25;
    letter-spacing: -0.025em;
    margin-bottom: 12px;
    color: var(--text);
}

/* ── Split section ───────────────────────────── */
.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 24px;
    align-items: start;
}

/* ── Page hero ───────────────────────────────── */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 52px;
}
.page-hero::after {
    content: '';
    position: absolute;
    right: -80px; bottom: -100px;
    width: 260px; height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 118, 110, 0.07) 0%, transparent 70%);
    pointer-events: none;
}
.page-hero h1 {
    font-size: clamp(2.3rem, 4.5vw, 4.1rem);
    margin-bottom: 16px;
    max-width: 12ch;
}

/* ── Panel text ──────────────────────────────── */
.panel-text + .panel-text { margin-top: 14px; }

/* ── CTA banner ──────────────────────────────── */
.cta-banner {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: linear-gradient(135deg, var(--surface-dark) 0%, #1c3242 100%);
    color: #fdf6ee;
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.cta-banner h2 {
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    margin-bottom: 10px;
    color: #fdf6ee;
}
.cta-banner p { color: rgba(253, 246, 238, 0.7); max-width: 54ch; }

/* ── Footer ──────────────────────────────────── */
.site-footer { padding: 16px 0 32px; }
.footer-shell {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
    padding: 28px 32px;
    border-radius: 22px;
    background: var(--surface-dark);
    color: #fdf6ee;
    box-shadow: var(--shadow-lg);
}
.footer-top, .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-top {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    margin-bottom: 18px;
}
.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.footer-copy { color: rgba(253, 246, 238, 0.6); max-width: 56ch; }
.footer-bottom { color: rgba(253, 246, 238, 0.5); font-size: 0.9rem; }

/* ── Floating WhatsApp ───────────────────────── */
.float-wa {
    position: fixed;
    right: 22px; bottom: 22px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #19a15f 0%, #25d366 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.28);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.float-wa::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-pill);
    background: rgba(37, 211, 102, 0.28);
    animation: waPulse 2.6s ease-in-out infinite;
    z-index: -1;
}
.float-wa:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.35);
}
.float-wa i { font-size: 1.2rem; }

@keyframes waPulse {
    0%, 100% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(1.18); opacity: 0; }
}

/* ── Scroll reveal ───────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 660ms var(--ease), transform 660ms var(--ease);
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 180ms; }
.delay-3 { transition-delay: 270ms; }

/* ── Responsive: tablet ──────────────────────── */
@media (max-width: 1080px) {
    .hero-grid, .split-section, .info-grid,
    .process-grid, .highlight-grid, .portfolio-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cta-banner { flex-direction: column; align-items: flex-start; }
}

/* ── Responsive: mobile ──────────────────────── */
@media (max-width: 768px) {
    /* Nav */
    .site-nav-wrap { padding: 10px 0; }
    .site-nav {
        padding: 12px 16px;
        border-radius: 18px;
        flex-wrap: wrap;
        row-gap: 0;
    }
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding-top: 12px;
        border-top: 1px solid var(--line);
        margin-top: 8px;
    }
    .nav-links.is-open { display: flex; }
    .nav-link {
        padding: 13px 14px;
        border-radius: 12px;
        font-size: 0.97rem;
        width: 100%;
    }
    .btn-nav {
        text-align: center;
        justify-content: center;
        padding: 13px;
        border-radius: 12px;
        width: 100%;
    }

    /* Sections */
    .section { padding: 24px 0 60px; }
    .section-title { font-size: clamp(1.7rem, 7.5vw, 2.3rem); }

    /* Hero */
    .hero { padding: 10px 0 40px; }
    .hero-grid { padding: 26px; }
    .hero-copy h1 { font-size: clamp(2rem, 8.5vw, 2.9rem); max-width: none; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* Page hero */
    .page-hero { padding: 28px; }
    .page-hero h1 { font-size: clamp(1.9rem, 8vw, 2.7rem); max-width: none; }

    /* Cards */
    .card, .info-card, .process-card, .panel,
    .content-panel, .cta-banner, .footer-shell,
    .portfolio-card, .faq-card { padding: 22px; }

    .card-grid, .stat-grid { grid-template-columns: 1fr; }

    /* CTA */
    .cta-banner .btn { width: 100%; justify-content: center; }

    /* WA — icon only on mobile */
    .float-wa {
        width: 54px; height: 54px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .float-wa span { display: none; }
    .float-wa::before { border-radius: 50%; }

    /* Footer */
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }
    .container { width: calc(100% - 32px); }
    .hero-grid { padding: 20px; }
    .card, .info-card, .process-card, .panel,
    .content-panel, .cta-banner, .footer-shell,
    .portfolio-card, .faq-card { padding: 18px; }
    .page-hero { padding: 22px; }
}
