@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
    --bg: #0b1210;
    --bg-alt: #121b17;
    --primary: #52a86f;
    --accent: #7fe7b4;
    --amber: #e8b75e;
    --rust: #c97b4a;
    --text: #edf3ef;
    --text-muted: #93a69c;
    --font-heading: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
    --header-height: 76px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html.hide #preloader {
    opacity: 0;
    visibility: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

ul,
ol {
    list-style: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

h1 {
    font-size: 52px;
}
h2 {
    font-size: 34px;
    margin-bottom: 18px;
}
h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

p {
    color: var(--text-muted);
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.btn {
    display: inline-block;
    padding: 15px 74px;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 22px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #061009;
    animation: heroFloat 3s ease-in-out infinite;
}

.btn-primary:hover {
    animation-play-state: paused;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: rgba(11, 18, 16, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(127, 231, 180, 0.08);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav .nav-link {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.main-nav .nav-link:hover {
    color: var(--accent);
}

.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
}

.burger-btn span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}

.burger-btn.act span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.burger-btn.act span:nth-child(2) {
    opacity: 0;
}
.burger-btn.act span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

#mobile-menu {
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    padding: 60px 24px 24px;
    gap: 20px;
    text-align: center;
    overflow-y: auto;
    transition: opacity 0.25s ease;
}

#mobile-menu.opened {
    opacity: 1;
    pointer-events: auto;
}

#mobile-menu .nav-link {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--text);
}

body.fixed {
    overflow: hidden;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-bg.webp");
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 18, 16, 0.55) 0%, rgba(11, 18, 16, 0.85) 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
        "content visual"
        "pills   visual";
    align-items: center;
    gap: 20px 40px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-content {
    grid-area: content;
}
.hero-content h1 {
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    max-width: 480px;
    margin-bottom: 30px;
}

.info-pills {
    grid-area: pills;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(127, 231, 180, 0.25);
    background: rgba(82, 168, 111, 0.1);
    color: var(--accent);
}

.hero-visual {
    grid-area: visual;
    width: 100%;
}

.hero-visual img {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 60px rgba(82, 168, 111, 0.35));
}

/* Content sections */
.content-section {
    padding: 110px 0;
    position: relative;
}

.content-section.alt-bg {
    background: var(--bg-alt);
}

.split-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-block + .split-block {
    margin-top: 110px;
}

.split-block.reverse .split-media {
    order: 2;
}
.split-block.reverse .split-text {
    order: 1;
}

.split-media img {
    border-radius: 20px;
    border: 1px solid rgba(127, 231, 180, 0.12);
}

.split-text p {
    margin-bottom: 16px;
}

.check-list {
    margin: 18px 0;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: var(--text);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--gradient-primary);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 50px;
}
.section-heading.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.section-heading p {
    margin-bottom: 12px;
}

.section-closing {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--text);
    max-width: 640px;
    margin: 50px auto 0;
}

.section-lead {
    text-align: center;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 26px;
}

/* Stat cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.stat-card {
    background: rgba(237, 243, 239, 0.03);
    border: 1px solid rgba(127, 231, 180, 0.1);
    border-radius: 18px;
    padding: 34px 28px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    color: var(--accent);
    margin-bottom: 18px;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-card:nth-child(2) .stat-icon {
    color: var(--primary);
}
.stat-card:nth-child(3) .stat-icon {
    color: var(--amber);
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    background: rgba(232, 183, 94, 0.06);
    border: 1px solid rgba(232, 183, 94, 0.18);
    border-radius: 12px;
    padding: 18px 20px;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
}

.final-section {
    padding-bottom: 130px;
}

/* Footer */
.site-footer {
    position: relative;
    background-image: url("../img/footer-bg.webp");
    background-size: cover;
    background-position: center;
    padding: 60px 0 34px;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 18, 16, 0.85);
}

.footer-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 26px;
}

.footer-nav .nav-link {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-nav .nav-link:hover {
    color: var(--accent);
}

.footer-legal {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-legal a:hover {
    color: var(--accent);
}

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* Legal pages */
.legal-page {
    padding: calc(var(--header-height) + 70px) 0 100px;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 30px;
}

.legal-content h2 {
    font-size: 24px;
    margin-top: 40px;
    margin-bottom: 14px;
}
.legal-content h3 {
    margin-top: 26px;
}

.legal-content p {
    margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 14px 22px;
    color: var(--text-muted);
}

.legal-content ul {
    list-style: disc;
}
.legal-content ol {
    list-style: decimal;
}

.legal-content a {
    color: var(--accent);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    h1 {
        font-size: 42px;
    }
    .hero-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "visual"
            "pills";
    }
    .hero-visual {
        max-width: 320px;
        margin: 0 auto;
    }
    .split-block,
    .split-block.reverse {
        grid-template-columns: 1fr;
    }
    .split-block.reverse .split-media,
    .split-block.reverse .split-text {
        order: initial;
    }
    .stat-cards {
        grid-template-columns: 1fr 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .burger-btn {
        display: flex;
    }
    h1 {
        font-size: 34px;
    }
    h2 {
        font-size: 26px;
    }
    .content-section {
        padding: 70px 0;
    }
    .split-block + .split-block {
        margin-top: 70px;
    }
    .stat-cards {
        grid-template-columns: 1fr;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }
    h1 {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 16px;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
}
