@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg: #0b110d;
    --bg-2: #0e1611;
    --bg-3: #121d16;
    --panel: rgba(143, 201, 160, 0.04);
    --line: rgba(143, 201, 160, 0.14);
    --line-strong: rgba(143, 201, 160, 0.28);
    --accent: #8fc9a0;
    --accent-soft: #6fae84;
    --accent-pale: #c9e8d2;
    --text: #d8e0d9;
    --text-dim: #9aa89d;
    --text-faint: #6f7d72;
    --heading-font: 'Rajdhani', sans-serif;
    --body-font: 'Inter', sans-serif;
    --grad: linear-gradient(135deg, #6fae84 0%, #a8d5b5 100%);
    --header-h: 78px;
    --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }
html.hide #preloader { display: none; }

body {
    font-family: var(--body-font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
body.fixed { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: var(--maxw);
    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;
}
#preloader img { width: 56px; height: 56px; }

/* ===== Headings ===== */
h1, h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0.5px;
    color: #eef4ef;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); }

.staccato { color: var(--text); }
.story-list {
    list-style: none;
    margin: 18px 0;
    padding: 0;
}
.story-list li {
    position: relative;
    padding: 8px 0 8px 26px;
    border-bottom: 1px solid var(--line);
    color: var(--text-dim);
}
.story-list li:last-child { border-bottom: 0; }
.story-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px rgba(143, 201, 160, 0.6);
}
.word-accent {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.6rem;
    letter-spacing: 3px;
    color: var(--accent);
    text-transform: uppercase;
}

p + p { margin-top: 16px; }

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 15px 44px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
    background: var(--grad);
    color: #08130c;
    box-shadow: 0 10px 30px rgba(111, 174, 132, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 14px 40px rgba(143, 201, 160, 0.4);
    transform: translateY(-2px);
}

@keyframes levitate {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}
.hero-cta {
    margin-top: 34px;
    padding: 18px 70px;
    min-width: 300px;
    text-align: center;
    animation: levitate 3s ease-in-out infinite;
}
.hero-cta:hover { animation-play-state: paused; }

/* ===== Header ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
    border-bottom: 1px solid transparent;
}
#header.scrolled {
    background: rgba(8, 14, 10, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1.05; }
.logo-main {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: #eef4ef;
}
.logo-sub {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}
.nav-desktop { display: flex; gap: 34px; }
.nav-desktop .nav-link {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: 1px;
    color: var(--text-dim);
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}
.nav-desktop .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}
.nav-desktop .nav-link:hover { color: var(--accent-pale); }
.nav-desktop .nav-link:hover::after { width: 100%; }

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 1100;
}
.burger-btn span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--accent-pale);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger-btn.act span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

#mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 340px);
    height: 100vh;
    background: rgba(8, 14, 10, 0.97);
    backdrop-filter: blur(14px);
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 40px;
    transform: translateX(40px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1050;
}
#mobile-menu.opened {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}
#mobile-menu .nav-link {
    font-family: var(--heading-font);
    font-weight: 500;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
#mobile-menu .nav-link:hover { color: var(--accent); }

/* ===== Hero ===== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 56px) 0 56px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg) url('../img/hero-bg.webp') center/cover no-repeat;
    z-index: 0;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 14, 10, 0.95) 0%, rgba(8, 14, 10, 0.7) 45%, rgba(8, 14, 10, 0.35) 100%),
        linear-gradient(0deg, var(--bg) 2%, transparent 40%);
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
}
.hero-content { max-width: 620px; }
.hero-text { margin-top: 26px; color: var(--text-dim); font-size: 1.08rem; }
.hero-text em { color: var(--accent-pale); font-style: italic; }
.hero-figure { display: flex; justify-content: center; }
.hero-figure img {
    max-height: 56vh;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
    animation: levitate 6s ease-in-out infinite;
}

/* ===== Sections ===== */
.section { position: relative; padding: 110px 0; }
.section-alt { background: var(--bg-2); }
.split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}
.section-reverse .split-media { order: 2; }
.split-media img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.split-text h2 { margin-bottom: 22px; }
.split-text p, .split-text li { font-size: 1.05rem; color: var(--text-dim); }
.split-text .staccato { color: var(--text); }

/* ===== Final ===== */
.section-final {
    position: relative;
    text-align: left;
    background:
        radial-gradient(900px 500px at 50% 0%, rgba(143, 201, 160, 0.08), transparent 70%),
        var(--bg-3);
    padding: 130px 0;
    overflow: hidden;
}
.section-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #05080640 url('../img/final-bg.webp') no-repeat;
    background-size: cover;
    background-position: center calc(50% + 20px);
    opacity: 0.7;
    z-index: 0;
}
.section-final::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 8, 6, 0.92) 2%, rgba(5, 8, 6, 0.5) 45%, rgba(5, 8, 6, 0.78) 100%);
    z-index: 0;
}
.final-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.section-final h2 { margin-bottom: 36px; }
.final-text {
    text-align: left;
    font-size: 1.12rem;
    color: var(--text-dim);
}
.final-text .staccato { color: var(--text); }
.final-text .word-accent {
    display: block;
    text-align: left;
    margin: 22px 0;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    padding: 64px 0 48px;
    border-top: 1px solid var(--line);
    overflow: hidden;
}
.footer-bg {
    position: absolute;
    inset: 0;
    background: var(--bg) url('../img/footer-bg.webp') center/cover no-repeat;
    opacity: 0.18;
    z-index: 0;
}
.footer-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg) 10%, rgba(11, 17, 13, 0.5) 100%);
}
.footer-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand {
    font-family: var(--heading-font);
    font-weight: 600;
    letter-spacing: 1px;
    color: #eef4ef;
}
.footer-center { color: var(--text-faint); font-size: 0.92rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a {
    color: var(--text-dim);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

/* ===== Legal pages ===== */
.legal-page {
    padding: calc(var(--header-h) + 70px) 0 90px;
    background:
        radial-gradient(800px 400px at 80% -5%, rgba(143, 201, 160, 0.06), transparent 70%),
        var(--bg);
    min-height: 70vh;
}
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 8px; }
.legal-content .legal-updated { color: var(--text-faint); margin-bottom: 36px; font-size: 0.92rem; }
.legal-content h2 { font-size: 1.5rem; margin: 36px 0 14px; color: var(--accent-pale); }
.legal-content p, .legal-content li { color: var(--text-dim); font-size: 1.02rem; }
.legal-content ul { margin: 14px 0 14px 22px; }
.legal-content li { margin-bottom: 8px; }
.legal-content a { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav-desktop { gap: 24px; }
    .split-inner { gap: 44px; }
    .section { padding: 90px 0; }
    .hero-inner { gap: 24px; }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .burger-btn { display: flex; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-figure { order: -1; }
    .hero-figure img { max-height: 42vh; }
    .hero-content { max-width: none; }
    .split-inner { grid-template-columns: 1fr; gap: 32px; }
    .section-reverse .split-media { order: 0; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .section { padding: 68px 0; }
    .btn { width: 100%; text-align: center; }
    .footer-links { flex-direction: column; gap: 10px; }
}
