:root {
    --accent: #173d32;
    --accent-dark: #0f2d25;
    --ink: #19201d;
    --muted: #66716b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: #fff;
    font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2000;
    padding: 10px 14px;
    color: #222;
    background: #fff;
    border: 2px solid #222;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(100% - 30px, 1000px);
    margin-inline: auto;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    height: 64px;
    color: #fff;
    background: linear-gradient(180deg, rgba(12, 24, 19, 0.48), rgba(12, 24, 19, 0));
    transition: height 0.35s ease, box-shadow 0.35s ease;
}

.navbar::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.navbar.affix {
    height: 52px;
    background: transparent;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.navbar.affix::before {
    opacity: 1;
}

.nav-container {
    position: relative;
    z-index: 1;
    display: flex;
    height: 64px;
    align-items: center;
    justify-content: space-between;
    transition: height 0.35s ease;
}

.navbar.affix .nav-container {
    height: 52px;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-decoration: none;
    transition: color 0.35s ease, letter-spacing 0.35s ease;
}

.navbar.affix .navbar-brand {
    color: #222;
    letter-spacing: 0;
}

.navbar-nav {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    list-style: none;
}

.navbar-nav a {
    position: relative;
    display: block;
    margin-left: 4px;
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.navbar-nav a::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 7px;
    left: 14px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.navbar-nav a:hover::after,
.navbar-nav a:focus-visible::after,
.navbar-nav .active a::after {
    transform: scaleX(1);
}

.navbar.affix .navbar-nav a {
    color: #222;
}

.navbar.affix .navbar-nav a::after {
    background: var(--accent-dark);
}

.navbar.affix .navbar-nav a:hover,
.navbar.affix .navbar-nav a:focus-visible,
.navbar.affix .navbar-nav .active a {
    color: var(--accent-dark);
}

.navbar-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
}

.navbar-toggle .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.navbar.affix .navbar-toggle {
    border-color: #ddd;
}

.navbar.affix .navbar-toggle .icon-bar {
    background: #222;
}

main {
    display: block;
    margin: 0;
}

header {
    display: block;
    height: 100svh;
    min-height: 560px;
    margin: 0;
    background: #333 url('../images/hero-modern.png') center / cover no-repeat;
}

.header-content {
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    padding: 110px 20px 70px;
    background:
        linear-gradient(90deg, rgba(8, 24, 18, 0.68), rgba(8, 24, 18, 0.18) 58%, rgba(8, 24, 18, 0.32)),
        rgba(0, 0, 0, 0.12);
}

.header-content-inner {
    max-width: 850px;
    width: min(100%, 1000px);
    text-align: center;
    animation: hero-enter 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

@keyframes hero-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content-inner h1 {
    max-width: 820px;
    margin: 0 auto 18px;
    color: #fff;
    font-size: clamp(44px, 6.5vw, 82px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.75);
}

.header-content-inner p {
    width: 100%;
    max-width: 650px;
    margin: 0 auto 30px;
    text-align: center;
    color: #fff;
    font-size: clamp(17px, 1.7vw, 21px);
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
}

.btn-primary {
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 12px;
    color: #fff;
    background: rgba(23, 61, 50, 0.94);
    box-shadow: 0 10px 30px rgba(8, 24, 18, 0.22);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition:
        border-radius 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    border-color: rgba(255, 255, 255, 0.78);
    background: var(--accent-dark);
    box-shadow: 0 10px 24px rgba(8, 24, 18, 0.26);
}

.btn-primary:active {
    background: #091e18;
    box-shadow: none;
}

.google-play-button {
    display: inline-flex;
    line-height: 0;
    transition: transform 0.25s ease;
}

.google-play-button:hover,
.google-play-button:focus-visible {
    transform: translateY(-3px) scale(1.03);
}

.google-play-button img {
    display: block;
    width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.24));
}

.google-play-button:active {
    filter: brightness(0.92);
}

.page-footer {
    display: block;
    text-align: center;
    margin: 0;
}

.contact {
    display: grid;
    place-items: center;
    padding: 48px 15px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 50%, rgba(166, 184, 133, 0.16), transparent 28%),
        linear-gradient(135deg, #101d18, #1a332b);
}

.contact .container {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    text-align: left;
}

.contact .section-heading {
    margin: 0;
    margin-bottom: 18px;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact p {
    display: block;
    margin: 0;
    font-size: 17px;
}

.mailto-contact {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.mailto-contact:hover,
.mailto-contact:focus-visible {
    border-color: rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.16);
    text-decoration: none;
    transform: translateY(-2px);
}

.small-print {
    display: block;
    padding: 18px 0;
    background: #f7f8f6;
    margin: 0;
}

.copyright-text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.skip-link:focus,
.navbar a:focus-visible,
.navbar-toggle:focus-visible,
.btn:focus-visible,
.google-play-button:focus-visible,
.mailto-contact:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.navbar.affix a:focus-visible,
.navbar.affix .navbar-toggle:focus-visible,
.mailto-contact:focus-visible {
    outline-color: var(--accent-dark);
}

.language-switcher-item {
    display: flex;
    align-items: center;
    margin-left: 8px;
}

.language-switcher {
    display: inline-flex;
    height: 32px;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.68);
    background: rgba(12, 24, 19, 0.12);
}

.language-button {
    width: 30px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: inherit;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.language-button.is-active {
    color: var(--accent-dark);
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
}

.navbar.affix .language-switcher {
    border-color: #e1e5e2;
    color: #8a938e;
    background: #f4f6f4;
}

.navbar.affix .language-button.is-active {
    color: #fff;
    background: var(--accent);
}

.language-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.features {
    padding: 88px 15px;
    color: var(--ink);
    background: #f5f7f3;
}

.features .container {
    text-align: center;
}

.features-eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.features h2 {
    max-width: 760px;
    margin: 0 auto 18px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.features-intro {
    max-width: 700px;
    margin: 0 auto 38px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    text-align: left;
}

.feature-card {
    min-height: 210px;
    padding: 28px;
    border: 1px solid #dde5de;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(23, 61, 50, 0.08);
}

.feature-card h3 {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-size: 22px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 767px) {
    .navbar,
    .nav-container,
    .navbar.affix,
    .navbar.affix .nav-container {
        height: 52px;
    }

    .navbar,
    .navbar.affix {
        background: #fff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .navbar-brand,
    .navbar.affix .navbar-brand {
        color: #222;
    }

    .navbar-toggle {
        display: block;
        border-color: #ddd;
    }

    .navbar a:focus-visible,
    .navbar-toggle:focus-visible {
        outline-color: var(--accent-dark);
    }

    .navbar-toggle .icon-bar,
    .navbar.affix .navbar-toggle .icon-bar {
        background: #222;
    }

    .navbar-collapse {
        display: none;
        position: absolute;
        top: 52px;
        left: 0;
        width: 100%;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

    .navbar-collapse.is-open {
        display: block;
    }

    .navbar-nav {
        display: block;
    }

    .navbar-nav a,
    .navbar.affix .navbar-nav a {
        margin: 0;
        padding: 14px 20px;
        color: #222;
        border-top: 1px solid #eee;
    }

    .navbar-nav .active a {
        color: var(--accent-dark);
        font-weight: 700;
        background: #e8efeb;
        box-shadow: inset 3px 0 0 var(--accent);
    }

    .navbar-nav a::after {
        display: none;
    }

    .header-content {
        height: 100%;
        min-height: 100%;
        padding: 84px 18px 48px;
        background:
            linear-gradient(rgba(8, 24, 18, 0.58), rgba(8, 24, 18, 0.48)),
            rgba(0, 0, 0, 0.12);
    }

    .header-content-inner h1 {
        font-size: clamp(42px, 13vw, 58px);
        letter-spacing: -0.035em;
    }

    .header-actions {
        flex-direction: column;
    }

    .contact {
        min-height: 220px;
    }

    .contact .container {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .contact .section-heading {
        margin-bottom: 18px;
        font-size: 30px;
    }

    .contact p {
        max-width: 100%;
        font-size: 15px;
    }

    .mailto-contact {
        max-width: 100%;
        overflow-wrap: anywhere;
        padding-inline: 14px;
    }

    .language-switcher-item {
        margin: 8px 20px 12px;
        padding: 0;
    }

    .language-switcher,
    .navbar.affix .language-switcher {
        border-color: #e1e5e2;
        color: #66716b;
        background: #f4f6f4;
    }

    .features {
        padding: 64px 15px;
    }

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

    .feature-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

#contact {
    scroll-margin-top: 52px;
}

.navbar:not(.is-ready),
.navbar:not(.is-ready)::before,
.navbar:not(.is-ready) * {
    transition: none !important;
}
