:root {
    color-scheme: dark;
    --bg: #05070b;
    --surface: #0e1621;
    --surface-soft: #111c2a;
    --ink: #f5f7fb;
    --muted: #95a7c0;
    --line: #1f2a3d;
    --accent: #4ae3ac;
    --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-size: 1rem;
}

a {
    color: var(--accent);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1rem, 5vw, 4rem);
    background: rgba(12, 20, 32, 0.8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(74, 227, 172, 0.18);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-mark::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 50% 50%, rgba(74, 227, 172, 0.9), rgba(12, 20, 32, 0));
    filter: blur(10px);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.brand-logo {
    width: 48px;
    height: 48px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.brand-label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.brand-tagline {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.site-nav {
    display: flex;
    gap: 1.5rem;
    font-size: 0.95rem;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
}

.site-nav a:hover,
.site-nav a:focus {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-family: var(--font-heading);
    color: #fff;
}

main {
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 5rem);
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 5vw, 5rem);
    background: radial-gradient(circle at 20% 20%, rgba(74, 227, 172, 0.18), rgba(5, 7, 11, 0.85)), var(--surface);
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero > *:not(.hero-background) {
    position: relative;
    z-index: 1;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.hero-video.is-paused {
    opacity: 0;
}

.hero-text {
    color: #fff;
}

.hero-text .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.hero-text h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-top: 0.4rem;
    margin-bottom: 1rem;
}

.hero-text .lead {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 32rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.hero-actions .btn.primary {
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.25);
}

.hero-actions .btn.primary:hover,
.hero-actions .btn.primary:focus {
    background-color: rgba(255, 255, 255, 0.22);
}

.hero-actions .btn.ghost {
    border-color: rgba(255, 255, 255, 0.65);
    color: #fff;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-heading);
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 5px 18px rgba(47, 125, 75, 0.25);
}

.btn.ghost {
    border-color: var(--line);
    color: var(--ink);
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
}

.hero-visual {
    height: clamp(320px, 45vw, 420px);
    background: radial-gradient(circle at 65% 30%, rgba(20, 31, 52, 0.9), rgba(11, 18, 29, 0.95));
    border-radius: 1.2rem;
    border: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.hero-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-visual .grid-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-visual .grid-lines::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 2px, transparent 2px, transparent 30px);
}

.geo-pointer {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.geo-pointer-dot {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background-color: var(--accent);
    box-shadow: 0 0 12px rgba(74, 227, 172, 0.8);
    animation: geoPulse 1.4s ease-in-out infinite;
    position: relative;
}

.geo-pointer-dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 1px solid rgba(74, 227, 172, 0.45);
    animation: geoPulseRing 1.4s ease-in-out infinite;
}

@keyframes geoPulse {
    0% { transform: scale(0.85); opacity: 0.8; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.85); opacity: 0.8; }
}

@keyframes geoPulseRing {
    0% { transform: scale(0.6); opacity: 0.8; }
    70% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(0.6); opacity: 0; }
}

.geo-card {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    background: rgba(5, 7, 11, 0.7);
    padding: 1.2rem;
    border-radius: 1rem;
    width: min(260px, 90%);
    border: 1px solid rgba(74, 227, 172, 0.15);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2;
}

.geo-coords {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.coord-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
}

.coord-row span {
    color: var(--ink);
}

.coord-icon {
    width: 20px;
    height: 20px;
    stroke: rgba(74, 227, 172, 0.85);
    stroke-width: 1.5;
    fill: none;
}

.leaflet-container {
    font-family: var(--font-body);
}

.section {
    background-color: var(--surface);
    border-radius: 1.2rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.section + .section {
    margin-top: 0;
}

.section-heading h2 {
    margin: 0.5rem 0 0.5rem;
    font-family: var(--font-heading);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
}

.about .section-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.stat-value {
    margin: 0;
    font-weight: 600;
    font-family: var(--font-heading);
}

.services .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.5rem;
    background-color: var(--surface-soft);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.service-card svg,
.service-card img {
    width: 54px;
    height: 54px;
    display: block;
}

.service-card svg {
    stroke: var(--accent);
    stroke-width: 2;
    fill: none;
}

.service-card h3 {
    margin: 0;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.service-card:hover,
.service-card:focus-within {
    border-color: var(--accent);
    background-color: #16263a;
    transform: translateY(-3px);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.why-grid article {
    border: 1px solid var(--line);
    border-radius: 1rem;
    padding: 1.2rem;
    background: var(--surface-soft);
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.contact-form {
    display: grid;
    gap: 0.7rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid var(--line);
    background: #0c121c;
    color: var(--ink);
    font-family: inherit;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 227, 172, 0.25);
}

.contact-form .btn.primary {
    background-color: #122024;
    border: 1px solid rgba(74, 227, 172, 0.35);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.contact-form .btn.primary:hover,
.contact-form .btn.primary:focus {
    background-color: #183138;
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer {
    padding: 2rem clamp(1rem, 5vw, 4rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    background-color: #04070b;
}

.footer-text {
    margin: 0;
    color: var(--muted);
}

.footer-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

@media (max-width: 760px) {
    .site-nav {
        position: absolute;
        top: 64px;
        right: 1rem;
        flex-direction: column;
        background: var(--surface);
        padding: 1rem 1.5rem;
        border: 1px solid var(--line);
        border-radius: 1rem;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
        display: none;
    }

    .site-nav.open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
    }
}
