:root {
    --bg: #f4f7f7;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-strong: #ffffff;
    --text: #102126;
    --muted: #5d7077;
    --border: rgba(16, 33, 38, 0.1);
    --accent: #0e94a0;
    --accent-strong: #0a6e7b;
    --shadow: 0 24px 60px rgba(12, 49, 58, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --max-width: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    font-family: "Manrope", "Segoe UI Variable", "Trebuchet MS", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 148, 160, 0.18), transparent 32%),
        radial-gradient(circle at right 20%, rgba(14, 148, 160, 0.08), transparent 24%),
        linear-gradient(180deg, #f8fbfb 0%, var(--bg) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(16, 33, 38, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 33, 38, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-shell {
    position: relative;
    width: min(calc(100% - 2rem), var(--max-width));
    margin: 0 auto;
    padding: 1.25rem 0 3rem;
}

.topbar {
    position: sticky;
    top: 1rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(16, 33, 38, 0.08);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.brand-logo {
    width: auto;
    height: 5.75rem;
    display: block;
    filter: drop-shadow(0 8px 14px rgba(8, 65, 104, 0.2));
}

.brand-text {
    display: grid;
    gap: 0.1rem;
    line-height: 1;
}

.brand-title,
.brand-subtitle {
    display: block;
    text-transform: uppercase;
}

.brand-title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.brand-subtitle {
    color: var(--accent-strong);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.28em;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--muted);
    font-weight: 600;
}

.topnav a:hover,
.topnav a:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
    color: var(--accent-strong);
}

.section {
    padding: 3.5rem 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    align-items: stretch;
    min-height: calc(100vh - 8rem);
    padding-top: 2rem;
}

.hero-copy,
.hero-panel,
.about,
.contact-card,
.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-copy,
.about,
.contact-card {
    border-radius: var(--radius-lg);
}

.hero-copy {
    padding: clamp(2rem, 5vw, 4.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    margin: 0 0 1rem;
    color: var(--accent-strong);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    max-width: 11ch;
    font-size: clamp(2.9rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

h2 {
    max-width: 20ch;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.3rem;
    line-height: 1.15;
}

.hero-text,
.section-copy,
.service-card p,
.panel-card p,
.panel-metrics span {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-text {
    max-width: 40rem;
    margin-top: 1.5rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #f8ffff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    box-shadow: 0 16px 35px rgba(10, 110, 123, 0.22);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(16, 33, 38, 0.08);
}

.hero-panel {
    display: grid;
    grid-template-rows: 1.15fr 0.85fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: calc(var(--radius-lg) + 6px);
}

.panel-card,
.panel-metrics > div {
    border-radius: var(--radius-md);
    background: var(--surface-strong);
    border: 1px solid rgba(16, 33, 38, 0.08);
}

.panel-card {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.85rem;
    background:
        linear-gradient(180deg, rgba(14, 148, 160, 0.12), rgba(255, 255, 255, 0.94)),
        #ffffff;
}

.panel-label {
    color: var(--accent-strong);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.panel-card strong,
.panel-metrics strong {
    font-size: 1.35rem;
    line-height: 1.2;
}

.panel-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.panel-metrics > div {
    padding: 1.35rem;
    display: grid;
    gap: 0.65rem;
}

.section-heading {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.about,
.contact-card {
    padding: clamp(1.8rem, 4vw, 3rem);
}

.about .section-copy {
    max-width: 58rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    display: grid;
    gap: 1rem;
}

.icon-wrap {
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--accent-strong);
    background: rgba(14, 148, 160, 0.12);
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.contact-link {
    color: var(--muted);
    font-weight: 700;
}

.footer {
    padding: 2rem 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.5rem;
    color: var(--muted);
    font-weight: 600;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
}

.footer-brand-text {
    display: grid;
    gap: 0.1rem;
}

.footer-title,
.footer-subtitle {
    margin: 0;
    text-transform: uppercase;
}

.footer-title {
    color: var(--text);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.footer-subtitle {
    color: var(--accent-strong);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.footer-logo {
    width: auto;
    height: 3.4rem;
    display: block;
}

.reveal {
    opacity: 1;
    transform: translateY(0);
}

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.js .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal,
    .js .reveal.revealed,
    .button {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 900px) {
    .site-shell {
        width: min(calc(100% - 1.25rem), var(--max-width));
    }

    .hero,
    .service-grid,
    .contact-card {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        min-height: auto;
    }

    .hero-panel {
        grid-template-rows: auto;
    }

    .panel-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar {
        position: static;
        padding: 0.95rem 1rem;
        border-radius: var(--radius-sm);
    }

    .topnav {
        gap: 0.75rem;
        font-size: 0.95rem;
    }

    .brand-logo {
        height: 4.2rem;
    }

    .brand-text {
        gap: 0.06rem;
    }

    .brand-title {
        font-size: 1.18rem;
    }

    .brand-subtitle {
        font-size: 0.62rem;
        letter-spacing: 0.22em;
    }

    .footer-logo {
        height: 2.75rem;
    }

    .section {
        padding: 2.6rem 0;
    }

    .hero-copy,
    .about,
    .contact-card,
    .service-card {
        padding: 1.35rem;
    }

    h1 {
        max-width: 12ch;
        font-size: clamp(2.4rem, 14vw, 3.5rem);
    }

    h2 {
        font-size: clamp(1.8rem, 10vw, 2.5rem);
    }

    .hero-actions,
    .contact-actions {
        width: 100%;
    }

    .button {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        gap: 0.35rem;
    }
}