:root {
    --sp-deep: #020602;
    --sp-panel: #061008;
    --sp-card: #0b160d;
    --sp-hover: #102116;
    --sp-border: #1f3b23;
    --sp-border-lit: #3f8f55;
    --sp-gold: #f28a13;
    --sp-gold-lt: #ffc24a;
    --sp-gold-glow: #ffe08a;
    --sp-text: #c9d9c4;
    --sp-text-dim: #82907c;
    --sp-text-bright: #efffe8;
    --sp-red: #d04b38;
    --sp-green: #35c46b;
    --sp-green-lt: #74e59a;
    --sp-green-glow: #b5ffd0;
    --sp-blue: #3a7ab5;
    --sp-radius: 0.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(circle at 18% 0%, rgba(53, 196, 107, .18), transparent 32%),
        radial-gradient(circle at 76% 8%, rgba(18, 94, 45, .28), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 2, .86), rgba(4, 14, 6, .95) 55%, rgba(2, 6, 2, .99)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.03"><path d="M50 10 L60 40 L90 40 L65 60 L75 90 L50 70 L25 90 L35 60 L10 40 L40 40Z" fill="white"/></svg>') center top / cover fixed;
    color: var(--sp-text);
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 0.3125rem;
    height: 0.3125rem;
}
::-webkit-scrollbar-track {
    background: var(--sp-deep);
}
::-webkit-scrollbar-thumb {
    background: var(--sp-border);
    border-radius: 0.1875rem;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--sp-border-lit);
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 44%, rgba(53, 196, 107, .16), transparent 32%),
        linear-gradient(180deg, rgba(2, 8, 4, .98), rgba(0, 2, 1, .99));
    opacity: 1;
    pointer-events: auto;
    transition: opacity .36s ease, visibility .36s ease;
    visibility: visible;
}
.site-loader.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
.loader-mark {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.125rem;
    filter: drop-shadow(0 1rem 1.625rem rgba(0, 0, 0, .55));
}
.loader-logo img {
    display: block;
    max-width: 15rem;
    height: auto;
    opacity: .94;
    filter: drop-shadow(0 0 0.875rem rgba(53, 196, 107, .16)) drop-shadow(0 0.5rem 1.125rem rgba(0, 0, 0, .5));
}
.loader-bar {
    position: relative;
    width: min(13.75rem, 76vw);
    height: 0.25rem;
    overflow: hidden;
    background: rgba(85, 217, 157, .14);
    border-radius: 999px;
    border: 1px solid rgba(85, 217, 157, .16);
    box-shadow: 0 0 1rem rgba(53, 196, 107, .14);
}
.loader-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 42%;
    background: linear-gradient(90deg, rgba(53, 196, 107, .1), rgba(85, 217, 157, .96), rgba(53, 196, 107, .28));
    border-radius: 999px;
    box-shadow: 0 0 0.875rem rgba(85, 217, 157, .55);
    animation: loaderBar 1.15s ease-in-out infinite;
}
@keyframes loaderBar {
    0% { transform: translateX(-120%); }
    55% { transform: translateX(85%); }
    100% { transform: translateX(245%); }
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 500;
    height: 4.25rem;
    background:
        linear-gradient(90deg, rgba(7, 18, 9, .98), rgba(4, 13, 6, .99) 38%, rgba(2, 6, 3, .97)),
        linear-gradient(180deg, rgba(6, 16, 8, .99), rgba(3, 8, 4, .97));
    border-bottom: 1px solid var(--sp-border);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, .72);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
}
.navbar-inner {
    width: min(100%, 82.5rem);
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
}
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0 0.75rem;
    height: 4.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.075rem;
    text-transform: uppercase;
    color: #7f9278;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .18s, background .18s, border-bottom-color .18s;
    white-space: nowrap;
}
.nav-link:hover {
    color: var(--sp-green-lt);
    background: rgba(53, 196, 107, .07);
}
.nav-link.active {
    color: var(--sp-green-glow);
    background: rgba(53, 196, 107, .12);
    border-bottom-color: var(--sp-green);
}
.nav-icon {
    width: 0.875rem;
    height: 0.875rem;
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.3125rem;
    padding: 0.4375rem 1rem;
    background: linear-gradient(135deg, var(--sp-gold-lt), var(--sp-gold) 55%, #7c3608);
    border: none;
    border-radius: 0.375rem;
    color: #1b0d03;
    font-weight: 700;
    letter-spacing: 0.03125rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s;
}
.btn-download:hover {
    background: linear-gradient(135deg, #ffd26b, var(--sp-gold-lt));
}

.form-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5.5rem 1.25rem 3rem;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(2, 6, 2, .7) 0%, rgba(2, 6, 2, .95) 100%);
    pointer-events: none;
}
.hero-body {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 37.5rem;
}
.hero-form-card {
    background: rgba(6, 12, 7, .88);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 2rem 1.75rem;
    backdrop-filter: blur(0.375rem);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .7);
}
.form-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    /*border-bottom: 1px solid var(--sp-border);*/
}
.form-logo {
    max-width: 13.75rem;
    height: auto;
    filter: drop-shadow(0 0 1.5rem rgba(53, 196, 107, .25)) drop-shadow(0 0.5rem 1.25rem rgba(0, 0, 0, .5));
}
.form-head-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--sp-gold-lt);
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    text-shadow: 0 0 1.25rem rgba(242, 138, 19, .25);
}
.form-head-sub {
    font-size: 0.75rem;
    color: var(--sp-text-dim);
}

.form-section-title {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.125rem;
    color: var(--sp-gold);
    margin-bottom: 0.875rem;
    margin-top: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sp-border);
}
.form-section-title:first-child {
    margin-top: 0;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-bottom: 0.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.3125rem;
}
.field.full {
    grid-column: 1 / -1;
}
.label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    color: var(--sp-text-dim);
}
.required {
    color: var(--sp-red);
}
.input-wrap {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 0.6875rem;
    top: 50%;
    transform: translateY(-50%);
    stroke: var(--sp-text-dim);
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 0.875rem;
    height: 0.875rem;
    pointer-events: none;
}
.input {
    width: 100%;
    background: rgba(0, 0, 0, .55);
    border: 1px solid var(--sp-border);
    border-radius: 0.375rem;
    color: var(--sp-text);
    font-size: 0.8125rem;
    padding: 0.625rem 0.75rem 0.625rem 2.125rem;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.input:focus {
    border-color: var(--sp-gold);
    color: var(--sp-text-bright);
    box-shadow: 0 0 0 0.125rem rgba(242, 138, 19, .14);
}
.input::placeholder {
    color: var(--sp-text-dim);
}
.hint {
    font-size: 0.6875rem;
    color: var(--sp-text-dim);
    margin-top: 0.125rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--sp-text-dim);
    cursor: pointer;
    line-height: 1.5;
}
.checkbox-label a {
    color: var(--sp-gold-lt);
    text-decoration: none;
}
.checkbox-label a:hover {
    color: var(--sp-gold-glow);
}
.checkbox {
    display: none;
}
.checkbox-custom {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
    border: 1px solid var(--sp-border-lit);
    background: rgba(0, 0, 0, .3);
    transition: all .18s;
    position: relative;
}
.checkbox:checked+.checkbox-custom {
    background: var(--sp-gold);
    border-color: var(--sp-gold);
}
.checkbox:checked+.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.125rem;
    width: 0.375rem;
    height: 0.625rem;
    border: 2px solid #1b0d03;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #ffd66d 0%, var(--sp-gold-lt) 35%, var(--sp-gold) 65%, #a34609 100%);
    border: 1px solid rgba(255, 213, 96, .7);
    border-radius: 0.5rem;
    color: #130800;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, 0 0.875rem 2.125rem rgba(242, 138, 19, .28);
    font-size: 0.9375rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04375rem;
    cursor: pointer;
    transition: all .18s;
}
.submit-btn svg {
    stroke: currentColor;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
}
.submit-btn:hover {
    background: linear-gradient(135deg, #ffe18a, #ffbd35 48%, #d9690d);
    transform: translateY(-0.125rem);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 1.125rem 2.625rem rgba(242, 138, 19, .36);
}
.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    background: linear-gradient(135deg, #c9a04a 0%, #b88f3d 35%, #a37c2e 65%, #8a5f1a 100%);
    border-color: rgba(201, 160, 74, 0.7);
    color: rgba(19, 8, 0, 0.8);
}

.btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(19, 8, 0, 0.2);
    border-top-color: #130800;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

.alert {
    border-radius: var(--sp-radius);
    border-width: 1px;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    margin-bottom: 1rem;
}
.alert-success {
    text-align: center;
    background: rgba(58, 158, 95, .08);
    border: 1px solid rgba(58, 158, 95, .35);
    color: #7dd49a;
}
.alert-error {
    background: rgba(208, 75, 56, .08);
    border: 1px solid rgba(208, 75, 56, .35);
    color: #e07878;
}
.alert-info {
    background: rgba(58, 122, 181, .08);
    border: 1px solid rgba(58, 122, 181, .35);
    color: #78b0e0;
}

.footer {
    background:
        linear-gradient(180deg, rgba(5, 7, 4, .96), rgba(3, 5, 3, .99)),
        var(--sp-deep);
    border-top: 1px solid var(--sp-border);
    padding: 2rem 1.25rem 1.5rem;
}
.footer-inner {
    max-width: 48.75rem;
    margin: 0 auto;
    text-align: center;
}
.footer p {
    font-size: 0.75rem;
    color: var(--sp-text-dim);
}
.footer strong {
    color: var(--sp-gold-lt);
}

@media (max-width: 40rem) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .hero-form-card {
        padding: 1.25rem 1rem;
    }
    .nav-links {
        display: none;
    }
}
