:root {
    --bg: #07111e;
    --bg-alt: #0a1726;
    --surface: rgba(16, 32, 52, 0.7);
    --line: rgba(130, 170, 210, 0.16);
    --line-strong: rgba(130, 170, 210, 0.32);
    --text: #e8eef6;
    --text-soft: #c3cfdc;
    --muted: #93a6bb;
    --accent: #22c7f0;
    --accent-hover: #5fd8f6;
    --accent-soft: rgba(34, 199, 240, 0.1);
    --accent-line: rgba(34, 199, 240, 0.5);
    --header-height: 72px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2 {
    text-wrap: balance;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

.eyebrow {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn .icon-arrow {
    transition: transform 0.2s;
}

.btn:hover .icon-arrow {
    transform: translateX(3px);
}

.btn-outline {
    border-color: var(--line-strong);
    background: rgba(7, 17, 30, 0.35);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.btn-accent:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.btn-sm {
    height: 44px;
    padding: 0 20px;
    font-size: 14px;
}

.icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border: 1px solid var(--accent-line);
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
}

.icon-box .icon {
    width: 22px;
    height: 22px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 17, 30, 0.86);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 28px;
    /* minus the header's bottom border */
    height: calc(var(--header-height) - 1px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 36px;
    background: var(--accent);
    -webkit-mask: url(/images/logo.svg) center / contain no-repeat;
    mask: url(/images/logo.svg) center / contain no-repeat;
}

.brand-name {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-tagline {
    max-width: 170px;
    margin-left: 6px;
    padding-left: 16px;
    border-left: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* On desktop the menu items sit directly in the header row */
.header-menu {
    display: contents;
}

.header-nav {
    order: 1;
    display: flex;
    gap: 34px;
    margin: 0 auto;
}

.header-nav a {
    position: relative;
    padding: 8px 0;
    color: var(--text-soft);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
}

.header-nav a.active::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
}

.lang-switch {
    order: 2;
    display: flex;
}

.lang-switch a {
    padding: 0 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.lang-switch a + a {
    border-left: 1px solid var(--line-strong);
}

.lang-switch a:hover,
.lang-switch a.active {
    color: #fff;
}

.header-cta {
    order: 3;
    height: 44px;
    padding: 0 20px;
    border-color: var(--accent-line);
}

.menu-toggle {
    display: none;
}

/* Hero */

/* The hero and the quick links panel together fill the first screen */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
    overflow: hidden;
    background: url(/images/hero-bg.jpg) 62% 70% / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 17, 30, 0.94) 0%, rgba(7, 17, 30, 0.82) 32%, rgba(7, 17, 30, 0.3) 62%, rgba(7, 17, 30, 0.1) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(7, 17, 30, 0) 28%);
}

/* Radar rings around the drone */
.hero::after {
    content: "";
    position: absolute;
    top: 30%;
    left: 66%;
    width: 1100px;
    height: 1100px;
    transform: translate(-50%, -50%);
    background: repeating-radial-gradient(circle, transparent 0 88px, rgba(34, 199, 240, 0.16) 88px 89px);
    -webkit-mask: radial-gradient(circle, #000 0%, transparent 65%);
    mask: radial-gradient(circle, #000 0%, transparent 65%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding-top: 48px;
    padding-bottom: 48px;
}

.hero h1 {
    max-width: 660px;
    margin-bottom: 24px;
    color: #fff;
    font-size: clamp(34px, min(5.2vw, 7vh), 64px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.hero h1 .accent {
    display: block;
    color: var(--accent);
}

.hero-text {
    max-width: 520px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.65;
}

/* Quick links */

.quick-links {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--line);
    background: rgba(8, 19, 33, 0.8);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.quick-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 32px 32px 36px;
    transition: background-color 0.2s;
}

.quick-card + .quick-card::before {
    content: "";
    position: absolute;
    top: 28px;
    bottom: 28px;
    left: 0;
    width: 1px;
    background: var(--line-strong);
}

.quick-card:hover {
    background: var(--accent-soft);
}

.quick-card .icon-lg {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
    color: var(--accent);
    stroke-width: 1.5;
}

.quick-card h3 {
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    transition: color 0.2s;
}

.quick-card:hover h3 {
    color: var(--accent);
}

.quick-card p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.quick-arrow {
    position: absolute;
    top: 32px;
    right: 32px;
    color: var(--muted);
    transition: color 0.2s, transform 0.2s;
}

.quick-card:hover .quick-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* About */

.about {
    padding: 96px 0;
    border-bottom: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: center;
    gap: 56px;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background:
        radial-gradient(circle at 50% 50%, rgba(34, 199, 240, 0.26), transparent 60%),
        linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px,
        #081626;
}

.about-logo {
    width: 62%;
    aspect-ratio: 72 / 67;
    background: var(--accent);
    -webkit-mask: url(/images/logo.svg) center / contain no-repeat;
    mask: url(/images/logo.svg) center / contain no-repeat;
}

.about h2,
.contacts h2 {
    color: #fff;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    line-height: 1.2;
}

.about h2 {
    margin-bottom: 20px;
}

.about-lead {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.7;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.check-list .icon {
    color: var(--accent);
}

.feature-list {
    margin: 0;
    padding: 0 0 0 40px;
    border-left: 1px solid var(--line);
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 16px;
    padding: 20px 0;
}

.feature-list li + li {
    border-top: 1px solid var(--line);
}

.feature-list h3 {
    margin-bottom: 4px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.feature-list p {
    color: var(--muted);
    font-size: 14px;
}

/* Contacts */

.contacts {
    padding: 96px 0;
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
}

.contacts-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    align-items: center;
    gap: 56px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    transition: border-color 0.2s, background-color 0.2s;
}

.contact-card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.contact-body {
    min-width: 0;
}

.contact-label {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 13px;
}

.contact-value {
    display: block;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
    padding: 48px 0 32px;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.footer-nav,
.footer-contacts {
    display: flex;
    gap: 32px;
}

.footer-nav a,
.footer-contacts > * {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-nav a:hover,
.footer-contacts a:hover,
.footer-social a:hover {
    color: var(--accent);
}

.footer-contacts .icon {
    color: var(--muted);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    color: var(--muted);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 18px;
}

.footer-social a {
    color: var(--muted);
    transition: color 0.2s;
}

#branch {
    color: #ff6b6b;
}

/* Responsive */

@media (max-width: 1200px) {
    .brand-tagline {
        display: none;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-height: 64px;
    }

    .container {
        padding: 0 24px;
    }

    .header-inner {
        gap: 16px;
    }

    .lang-switch {
        margin-left: auto;
    }

    .header-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 20px;
        padding: 8px 24px 24px;
        border-bottom: 1px solid var(--line);
        background: rgba(7, 17, 30, 0.97);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    }

    .site-header.menu-open .header-menu {
        display: flex;
    }

    .header-nav {
        flex-direction: column;
        gap: 0;
        margin: 0;
    }

    .header-nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--line);
        font-size: 17px;
    }

    .header-nav a.active::after {
        display: none;
    }

    .header-cta {
        height: 48px;
    }

    .menu-toggle {
        order: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 40px;
        height: 40px;
        padding: 8px;
        border: none;
        background: none;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        height: 2px;
        background: var(--text);
        transition: transform 0.2s, opacity 0.2s;
    }

    .site-header.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .site-header.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .quick-card {
        padding: 28px 24px 32px;
    }

    .quick-arrow {
        top: 28px;
        right: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr 1.4fr;
        gap: 40px;
    }

    .feature-list {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 32px;
        padding: 0;
        border-left: none;
    }

    .feature-list li,
    .feature-list li + li {
        border-top: 1px solid var(--line);
    }

    .contacts-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-top {
        flex-wrap: wrap;
    }
}

/* Short screens (laptops, landscape tablets): tighten the first screen so the panel fits */
@media (max-height: 820px) and (min-width: 641px) {
    .hero-inner {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .quick-card {
        padding-top: 24px;
        padding-bottom: 26px;
    }

    .quick-card + .quick-card::before {
        top: 20px;
        bottom: 20px;
    }

    .quick-arrow {
        top: 24px;
    }

    .quick-card p {
        font-size: 14px;
    }
}

@media (max-width: 760px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-card:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .quick-card:nth-child(3)::before {
        display: none;
    }
}

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

    .header-menu {
        padding: 8px 16px 20px;
    }

    .brand-mark {
        width: 32px;
        height: 30px;
    }

    .brand-name {
        font-size: 18px;
    }

    .hero {
        background-position: 70% top;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(7, 17, 30, 0.2) 0%, rgba(7, 17, 30, 0.55) 28%, rgba(7, 17, 30, 0.92) 50%, var(--bg) 100%);
    }

    .hero::after {
        display: none;
    }

    /* Text sits at the bottom so the drone and sunset stay visible above it */
    .hero-inner {
        justify-content: flex-end;
        padding-top: 32px;
        padding-bottom: 28px;
    }

    .hero h1 {
        margin-bottom: 16px;
        font-size: clamp(30px, 8.5vw, 40px);
    }

    .hero-text {
        font-size: 16px;
    }

    /* Keep the first screen short so the whole panel fits */
    .quick-card p {
        display: none;
    }

    /* Full-bleed tiles leave room for the titles */
    .quick-grid {
        padding: 0;
    }

    .quick-card {
        gap: 8px;
        padding: 20px 16px 22px;
    }

    .quick-card + .quick-card::before {
        top: 16px;
        bottom: 16px;
    }

    .quick-card .icon-lg {
        width: 28px;
        height: 28px;
        margin-bottom: 2px;
    }

    .quick-card h3 {
        font-size: 15px;
    }

    .quick-arrow {
        top: 20px;
        right: 16px;
    }

    .about,
    .contacts {
        padding: 64px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-visual {
        aspect-ratio: 16 / 9;
    }

    .about-logo {
        width: auto;
        height: 62%;
    }

    .feature-list,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav,
    .footer-contacts {
        flex-wrap: wrap;
        gap: 16px 24px;
    }
}
