@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg: #0d1411;
    --bg-2: #111c17;
    --bg-3: #0a100d;
    --panel: #16241d;
    --line: rgba(201, 168, 108, 0.16);
    --primary: #2f4a3d;
    --accent: #c9a86c;
    --accent-soft: #e3c489;
    --jade: #7fa890;
    --text: #e7ece8;
    --muted: #c9c9c9;
    --faint: #6f8378;
    --grad: linear-gradient(135deg, #e3c489 0%, #c9a86c 55%, #a8854f 100%);
    --head: 'Cormorant Garamond', Georgia, serif;
    --body: 'Inter', system-ui, sans-serif;
    --maxw: 1180px;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
    font-family: var(--body);
    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 28px; }

.preloader {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-3);
}

.eyebrow {
    display: inline-block;
    font-family: var(--body);
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 18px;
    position: relative;
    padding-left: 38px;
}
.eyebrow::before {
    content: ""; position: absolute; left: 0; top: 50%;
    width: 26px; height: 1px; background: var(--accent); opacity: 0.7;
}

h1, h2 {
    font-family: var(--head);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0.01em;
    color: #fff;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }

p { color: var(--muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Header */
.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
    border-bottom: 1px solid transparent;
    padding: 22px 0;
}
.header.scrolled {
    background: rgba(10, 16, 13, 0.82);
    backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
    padding: 14px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }

.logo {
    font-family: var(--head);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav { display: flex; gap: 38px; }
.nav-link {
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 400;
    position: relative;
    transition: color 0.3s var(--ease);
}
.nav-link::after {
    content: ""; position: absolute; left: 0; bottom: -7px;
    width: 0; height: 1px; background: var(--accent);
    transition: width 0.35s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.burger-btn {
    display: none;
    background: transparent;
    border: 0;
    width: 30px; height: 22px;
    position: relative;
    cursor: pointer;
}
.burger-btn span {
    position: absolute; left: 0; height: 2px; width: 100%;
    background: var(--accent); border-radius: 2px;
    transition: 0.35s var(--ease);
}
.burger-btn span:nth-child(1) { top: 0; }
.burger-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger-btn span:nth-child(3) { bottom: 0; }
.burger-btn.act span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(8, 13, 11, 0.97);
    backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ease);
}
.mobile-menu.opened { opacity: 1; pointer-events: auto; }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.mobile-nav .nav-link {
    font-family: var(--head);
    font-size: 1.7rem;
    text-transform: none;
    letter-spacing: 0.03em;
    color: var(--text);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 160px 0 90px;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: 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,13,11,0.92) 0%, rgba(8,13,11,0.74) 42%, rgba(8,13,11,0.34) 100%),
        linear-gradient(0deg, var(--bg) 2%, rgba(13,20,17,0) 40%);
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.15fr 0.85fr;
    gap: 50px; align-items: center;
}
.hero-content { max-width: 600px; }
.hero h1 { margin-bottom: 28px; }
.hero-text { max-width: 540px; }
.hero-text p { color: var(--muted); font-size: 1.02rem; }

.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pills li {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-soft);
    padding: 9px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(201, 168, 108, 0.05);
}

.hero-figure { position: relative; max-width: 80%; margin: 0 auto; }
.hero-figure img {
    filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.6));
    animation: floaty 6s ease-in-out infinite;
}
.hero-figure::before {
    content: ""; position: absolute; left: 50%; top: 48%;
    width: 78%; height: 78%; transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(201, 168, 108, 0.28), transparent 68%);
    filter: blur(20px); z-index: -1;
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* Split sections */
.split { position: relative; padding: 110px 0; background: var(--bg); }
.split.alt { background: var(--bg-2); }
.split::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 30%, var(--line) 70%, transparent);
}
.split-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 64px; align-items: center;
}
.split.reverse .split-media { order: 2; }

.split-media { position: relative; }
.split-media img {
    width: 100%; border-radius: 6px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    aspect-ratio: 4 / 3; object-fit: cover;
}
.split-media::after {
    content: ""; position: absolute; inset: 0;
    border-radius: 6px;
    box-shadow: inset 0 0 80px rgba(13, 20, 17, 0.5);
    pointer-events: none;
}

.split-text h2 { margin-bottom: 22px; }
.split-text p { font-size: 1.02rem; }
.split-text p + p { margin-top: 0.2rem; }

/* Footer */
.footer { position: relative; overflow: hidden; padding: 80px 0 36px; background: var(--bg-3); }
.footer-bg {
    position: absolute; inset: 0;
    background: url('../img/footer-bg.webp') center/cover no-repeat;
    opacity: 0.5; z-index: 0;
}
.footer-bg::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--bg-3) 18%, rgba(10,16,13,0.72) 100%);
}
.footer-inner {
    position: relative; z-index: 1;
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}
.footer-brand .logo { font-size: 1.9rem; }
.footer-copy { margin-top: 12px; font-size: 0.88rem; color: var(--faint); }
.footer-links { display: flex; flex-direction: column; gap: 12px; text-align: right; }
.footer-links a {
    font-size: 0.85rem; letter-spacing: 0.06em; color: var(--muted);
    transition: color 0.3s var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-meta {
    position: relative; z-index: 1;
    margin-top: 26px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--faint);
}
.footer-meta .dot { color: var(--accent); opacity: 0.6; }

/* Reveal animation */
.split-text, .split-media, .hero-content, .hero-figure { will-change: opacity, transform; }
@media (prefers-reduced-motion: no-preference) {
    .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
    .reveal.in { opacity: 1; transform: none; }
}

/* Legal pages */
.legal-page {
    padding: 160px 0 90px;
    position: relative;
    min-height: 70vh;
}
.legal-page::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(47, 74, 61, 0.35), transparent 55%);
    pointer-events: none;
}
.legal-content { position: relative; max-width: 880px; margin: 0 auto; }
.legal-content .page-title {
    font-family: var(--head);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: #fff; margin-bottom: 10px;
}
.legal-content .page-sub {
    color: var(--accent); font-size: 0.78rem; letter-spacing: 0.22em;
    text-transform: uppercase; margin-bottom: 40px; display: block;
}
.legal-content h3 {
    font-family: var(--head);
    font-size: 1.5rem; font-weight: 600; color: var(--accent-soft);
    margin: 36px 0 14px;
}
.legal-content p { margin-bottom: 1rem; color: var(--muted); }
.legal-content ul, .legal-content ol { margin: 0 0 1rem 1.4rem; color: var(--muted); }
.legal-content li { margin-bottom: 0.5rem; }
.legal-content a { color: var(--accent); }
.legal-content .name, .legal-content .app-domain { color: var(--accent-soft); font-weight: 500; }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr 0.8fr; gap: 36px; }
    .split-inner { gap: 44px; }
    .nav { gap: 26px; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .burger-btn { display: block; }
    .hero { min-height: auto; padding: 140px 0 70px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-figure { order: -1; max-width: 320px; margin: 0 auto; }
    .split { padding: 72px 0; }
    .split-inner { grid-template-columns: 1fr; gap: 32px; }
    .split.reverse .split-media { order: 0; }
    .split-media { order: -1; }
    .footer-inner { flex-direction: column; }
    .footer-links { text-align: left; }
}

@media (max-width: 640px) {
    .container { padding: 0 20px; }
    .hero-text p { font-size: 0.96rem; }
    .pills li { padding: 7px 14px; font-size: 0.68rem; }
    .logo { font-size: 1.5rem; }
    .footer-meta { gap: 8px; font-size: 0.72rem; }
}
