:root {
    --ink: #071a1f;
    --ink-soft: #25373c;
    --paper: #f7f4ed;
    --paper-strong: #fffdf8;
    --teal: #0a5f63;
    --teal-dark: #06383e;
    --mint: #8ccfc1;
    --copper: #b9824b;
    --line: rgba(7, 26, 31, 0.14);
    --white-line: rgba(255, 255, 255, 0.24);
    --shadow: 0 24px 80px rgba(5, 20, 24, 0.18);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
}

body::selection {
    color: var(--paper-strong);
    background: var(--teal);
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
    padding: 22px clamp(18px, 4vw, 56px);
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 12, 15, 0.86), rgba(2, 12, 15, 0.58));
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-logo {
    width: 38px;
    height: 38px;
    display: block;
    object-fit: contain;
}

.main-nav {
    justify-self: center;
    display: flex;
    gap: clamp(14px, 2.4vw, 34px);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.main-nav a,
.footer-links a {
    position: relative;
}

.main-nav a::after,
.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.main-nav a:hover::after,
.footer-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    font-size: 0.76rem;
    font-weight: 700;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.language-switcher a:hover,
.language-switcher .is-active {
    color: var(--ink);
    background: #fff;
    border-color: #fff;
}

.hero {
    position: relative;
    min-height: 88svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #fff;
    background: var(--ink);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
    object-position: center;
    filter: saturate(0.95) contrast(1.04);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(2, 12, 15, 0.88) 0%, rgba(2, 12, 15, 0.62) 43%, rgba(2, 12, 15, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 12, 15, 0.74) 0%, rgba(2, 12, 15, 0.12) 52%, rgba(2, 12, 15, 0.45) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(940px, calc(100% - 36px));
    margin: 0 auto;
    padding: 152px 0 78px;
}

.eyebrow,
.kicker,
.card-label {
    margin: 0 0 18px;
    color: var(--copper);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--mint);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    line-height: 0.98;
    letter-spacing: 0;
}

h1 {
    max-width: 880px;
    margin-bottom: 28px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.1rem, 8vw, 7.5rem);
    font-weight: 500;
}

h2 {
    margin-bottom: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 5.1rem);
    font-weight: 500;
}

h3 {
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.hero-text {
    max-width: 760px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
}

.hero-note {
    max-width: 660px;
    margin: 0;
    padding-top: 22px;
    border-top: 1px solid var(--white-line);
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.section {
    padding: clamp(74px, 10vw, 138px) clamp(18px, 5vw, 72px);
}

.section-light {
    background: var(--paper-strong);
}

.section-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
    gap: clamp(32px, 8vw, 106px);
    align-items: end;
}

.lead {
    margin-bottom: 0;
    color: var(--ink-soft);
    font-size: clamp(1.04rem, 1.7vw, 1.32rem);
}

.section-panel {
    background: linear-gradient(180deg, var(--paper-strong), #edf2ef);
    padding-top: 0;
}

.pillars {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    box-shadow: var(--shadow);
}

.pillar-card {
    min-height: 360px;
    padding: clamp(28px, 4vw, 48px);
    background: var(--paper-strong);
    border-radius: 0;
}

.pillar-card p:last-child {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.data-section {
    background: #0b2026;
    color: #fff;
}

.content-narrow {
    width: min(900px, 100%);
    margin: 0 auto;
}

.content-narrow .lead,
.data-section .lead {
    color: rgba(255, 255, 255, 0.76);
}

.data-list {
    width: min(1180px, 100%);
    margin: clamp(42px, 6vw, 72px) auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--white-line);
    border-left: 1px solid var(--white-line);
}

.data-item {
    min-height: 170px;
    padding: 28px;
    border-right: 1px solid var(--white-line);
    border-bottom: 1px solid var(--white-line);
}

.data-item span {
    width: 10px;
    height: 10px;
    display: block;
    margin-bottom: 44px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 8px rgba(140, 207, 193, 0.1);
}

.data-item p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.86);
}

.feature-section {
    min-height: 78svh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
    align-items: stretch;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(6, 56, 62, 0.96), rgba(6, 56, 62, 0.72)),
        url("../img/unipon-construction-intelligence.png") center / cover;
}

.feature-copy {
    align-self: end;
    max-width: 860px;
    padding: clamp(72px, 9vw, 132px) clamp(22px, 6vw, 88px);
}

.feature-copy p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1.03rem, 1.5vw, 1.22rem);
}

.feature-metric {
    display: grid;
    align-content: end;
    padding: clamp(38px, 6vw, 72px);
    border-left: 1px solid var(--white-line);
    background: rgba(3, 19, 22, 0.36);
}

.feature-metric strong {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(5rem, 11vw, 11rem);
    font-weight: 500;
    line-height: 0.82;
    color: var(--mint);
}

.feature-metric span {
    max-width: 260px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.74);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
}

.ai-section {
    border-bottom: 1px solid var(--line);
}

.region-section {
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
    gap: clamp(36px, 8vw, 110px);
    align-items: center;
    padding: clamp(74px, 10vw, 146px) clamp(18px, 5vw, 72px);
    background: var(--paper);
}

.region-copy {
    max-width: 740px;
}

.region-copy p:last-child {
    color: var(--ink-soft);
    font-size: clamp(1.03rem, 1.5vw, 1.22rem);
}

.region-map {
    display: grid;
    place-items: center;
    min-height: 520px;
    position: relative;
    border: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(10, 95, 99, 0.14), rgba(185, 130, 75, 0.1)),
        repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(7, 26, 31, 0.08) 40px),
        repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(7, 26, 31, 0.08) 40px);
    overflow: hidden;
}

.region-map::before,
.region-map::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.region-map::before {
    inset: 14%;
    border: 1px solid rgba(10, 95, 99, 0.14);
    border-radius: 50%;
    transform: rotate(-18deg);
}

.region-map::after {
    inset: auto 11% 12% 11%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10, 95, 99, 0.25), transparent);
}

.latam-map {
    position: relative;
    z-index: 1;
    width: min(80%, 390px);
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(7, 26, 31, 0.08));
}

.latam-land {
    fill: rgba(255, 253, 248, 0.74);
    stroke: none;
    fill-rule: evenodd;
}

.latam-outline {
    fill: none;
    stroke: rgba(10, 95, 99, 0.78);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.latam-borders {
    fill: none;
    stroke: rgba(10, 95, 99, 0.24);
    stroke-width: 0.85;
    stroke-linejoin: round;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.latam-scan {
    fill: none;
    stroke: rgba(10, 95, 99, 0.28);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.latam-scan-soft {
    stroke: rgba(185, 130, 75, 0.26);
}

.latam-icon-marker {
    color: #ffffff;
    filter: drop-shadow(0 8px 14px rgba(7, 26, 31, 0.18));
}

.marker-halo {
    fill: rgba(10, 95, 99, 0.14);
}

.marker-pin {
    fill: var(--teal);
    stroke: rgba(255, 253, 248, 0.9);
    stroke-width: 1.5;
}

.latam-icon-marker use {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.legal-hero {
    padding: 172px clamp(18px, 5vw, 72px) 76px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(5, 23, 28, 0.94), rgba(5, 23, 28, 0.76)),
        url("../img/unipon-construction-intelligence.png") center / cover;
}

.legal-hero h1,
.legal-hero p {
    width: min(900px, 100%);
}

.legal-hero p:last-child {
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1.06rem, 1.5vw, 1.28rem);
}

.legal-content {
    width: min(980px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(54px, 8vw, 96px) 0;
}

.legal-content article {
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
}

.legal-content h2 {
    margin-bottom: 16px;
    font-size: clamp(1.65rem, 3vw, 2.6rem);
}

.legal-content p {
    margin-bottom: 0;
    color: var(--ink-soft);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
    padding: 48px clamp(18px, 5vw, 72px);
    color: #fff;
    background: var(--ink);
}

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

.site-footer p,
.footer-links span {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 22px;
    font-size: 0.88rem;
}

@media (max-width: 980px) {
    .site-header {
        grid-template-columns: auto auto;
        gap: 16px;
        background: rgba(2, 12, 15, 0.72);
        backdrop-filter: blur(18px);
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-self: start;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .language-switcher {
        justify-self: end;
    }

    .section-grid,
    .feature-section,
    .region-section,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .pillars,
    .data-list {
        grid-template-columns: 1fr 1fr;
    }

    .feature-metric {
        border-top: 1px solid var(--white-line);
        border-left: 0;
    }

    .region-map {
        min-height: 380px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 16px;
    }

    .brand {
        font-size: 0.88rem;
    }

    .brand-logo {
        width: 32px;
        height: 32px;
    }

    .main-nav {
        gap: 13px;
        font-size: 0.66rem;
        letter-spacing: 0.08em;
    }

    .language-switcher a {
        width: 34px;
        height: 34px;
        font-size: 0.7rem;
    }

    .hero {
        min-height: 86svh;
    }

    .hero-overlay {
        background:
            linear-gradient(90deg, rgba(2, 12, 15, 0.9), rgba(2, 12, 15, 0.48)),
            linear-gradient(0deg, rgba(2, 12, 15, 0.78), rgba(2, 12, 15, 0.32));
    }

    .hero-content {
        width: calc(100% - 32px);
        padding: 184px 0 48px;
    }

    h1 {
        font-size: clamp(2.65rem, 16vw, 4.8rem);
    }

    h2 {
        font-size: clamp(2rem, 11vw, 3.5rem);
    }

    .hero-note {
        font-size: 0.72rem;
    }

    .pillars,
    .data-list {
        grid-template-columns: 1fr;
    }

    .pillar-card {
        min-height: auto;
    }

    .data-item {
        min-height: 140px;
    }

    .feature-section {
        min-height: auto;
    }

    .feature-copy,
    .feature-metric {
        padding: 56px 20px;
    }

    .region-map {
        min-height: 300px;
    }

    .legal-hero {
        padding-top: 190px;
    }
}
