:root {
    --lp-bg: #f7f7f2;
    --lp-surface: #ffffff;
    --lp-surface-soft: #f0f1eb;
    --lp-ink: #17191f;
    --lp-muted: #5b606c;
    --lp-line: #dfe1d8;
    --lp-brand: #f7c928;
    --lp-brand-strong: #e6ad00;
    --lp-brand-soft: #fff3bd;
    --lp-dark: #12151c;
    --lp-dark-soft: #1d222d;
    --lp-max: 1180px;
    --lp-shadow: 0 24px 70px rgba(21, 25, 34, 0.12);
}

:root[data-theme="dark"] {
    --lp-bg: #090c12;
    --lp-surface: #121721;
    --lp-surface-soft: #191f2b;
    --lp-ink: #f7f8fb;
    --lp-muted: #c0c6d0;
    --lp-line: #303847;
    --lp-brand: #ffd84f;
    --lp-brand-strong: #f3bd16;
    --lp-brand-soft: #302a15;
    --lp-dark: #05070b;
    --lp-dark-soft: #151a23;
    --lp-shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
}

html { scroll-behavior: smooth; }

body.landing-page {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background: var(--lp-bg);
    color: var(--lp-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.landing-page *,
.landing-page *::before,
.landing-page *::after { box-sizing: border-box; }

.landing-page img,
.landing-page svg { display: block; max-width: 100%; }

.landing-page a { color: inherit; }

.landing-page a:focus-visible,
.landing-page button:focus-visible {
    outline: 3px solid var(--lp-brand);
    outline-offset: 4px;
}

.lp-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 5000;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: var(--lp-dark);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
}

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

.lp-container {
    width: min(var(--lp-max), calc(100% - 2rem));
    margin-inline: auto;
}

.lp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--lp-line);
    background: color-mix(in srgb, var(--lp-bg) 88%, transparent);
    backdrop-filter: blur(18px);
}

.lp-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.lp-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 48px;
    text-decoration: none;
    flex-shrink: 0;
}

.lp-brand-icon {
    width: 44px;
    height: 44px;
    padding: 6px;
    object-fit: contain;
    border-radius: 13px;
    background: var(--lp-dark);
    box-shadow: 0 8px 22px rgba(18, 21, 28, 0.16);
}

.lp-brand-copy {
    display: grid;
    line-height: 1.12;
}

.lp-brand-copy strong {
    font-size: 1.06rem;
    letter-spacing: 0.035em;
}

.lp-brand-copy small {
    margin-top: 0.18rem;
    color: var(--lp-muted);
    font-size: 0.73rem;
    font-weight: 650;
}

.lp-nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    margin-left: auto;
}

.lp-nav-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--lp-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
}

.lp-nav-links a:hover,
.lp-nav-links a[aria-current="page"] { color: var(--lp-ink); }

.lp-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 1rem;
}

.lp-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.15rem;
    border: 2px solid transparent;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lp-button:hover { transform: translateY(-2px); }

.lp-button-primary {
    background: var(--lp-brand);
    color: #111111;
    box-shadow: 0 12px 30px rgba(231, 174, 0, 0.22);
}

.lp-button-primary:hover { background: var(--lp-brand-strong); color: #111111; }

.lp-button-ghost {
    border-color: var(--lp-line);
    background: var(--lp-surface);
    color: var(--lp-ink);
}

.lp-button-ghost:hover { border-color: var(--lp-ink); }

.lp-doc {
    flex: 1 1 auto;
    padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.lp-doc-head { max-width: 780px; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }

.lp-kicker {
    margin: 0 0 0.8rem;
    color: #987000;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

:root[data-theme="dark"] .lp-kicker { color: var(--lp-brand); }

.lp-doc h1 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.lp-doc-lead {
    margin: 1rem 0 0;
    color: var(--lp-muted);
    font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.lp-doc-card {
    display: grid;
    gap: 0;
    padding: clamp(1.25rem, 3vw, 2.4rem);
    border: 1px solid var(--lp-line);
    border-radius: 24px;
    background: var(--lp-surface);
    box-shadow: var(--lp-shadow);
}

.lp-doc-card section {
    padding: 1.35rem 0;
    border-top: 1px solid var(--lp-line);
}

.lp-doc-card section:first-child {
    padding-top: 0.2rem;
    border-top: 0;
}

.lp-doc-card h2 {
    margin: 0 0 0.55rem;
    font-size: clamp(1.2rem, 2vw, 1.45rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.lp-doc-card p {
    margin: 0 0 0.75rem;
    color: var(--lp-muted);
}

.lp-doc-card p:last-child { margin-bottom: 0; }

.lp-doc-card a {
    color: var(--lp-ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.lp-footer {
    padding: 2.5rem 0 5rem;
    border-top: 1px solid var(--lp-line);
    background: var(--lp-surface);
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
}

.lp-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.lp-footer-brand img {
    width: 40px;
    height: 40px;
    padding: 5px;
    border-radius: 12px;
    background: var(--lp-dark);
}

.lp-footer-brand strong,
.lp-footer-brand small { display: block; }

.lp-footer-brand small {
    margin-top: 0.18rem;
    color: var(--lp-muted);
    font-size: 0.78rem;
}

.lp-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem 1.2rem;
}

.lp-footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--lp-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.lp-footer-links a:hover,
.lp-footer-links a[aria-current="page"] {
    color: var(--lp-ink);
    text-decoration: underline;
}

.lp-footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--lp-line);
    color: var(--lp-muted);
    font-size: 0.8rem;
}

@media (max-width: 980px) {
    .lp-nav-links { display: none; }
    .lp-nav-actions { margin-left: auto; }
}

@media (max-width: 720px) {
    .lp-container { width: min(100% - 1.25rem, var(--lp-max)); }
    .lp-nav { min-height: 70px; }
    .lp-brand-copy small { display: none; }
    .lp-nav-actions .lp-button-ghost { display: none; }
    .lp-nav-actions .lp-button {
        min-height: 44px;
        padding: 0.65rem 0.85rem;
    }
    .lp-footer-grid { grid-template-columns: 1fr; }
    .lp-footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .lp-button { transition: none; }
    .lp-button:hover { transform: none; }
}
