:root {
    --bg: #060608;
    --bg-2: #0b0b10;
    --surface: #111118;
    --surface-2: #171725;
    --line: #2a2b38;
    --line-2: #3f4258;
    --text: #f4f4f4;
    --text-soft: #c7c7d4;
    --text-muted: #9898ab;
    --white: #ffffff;
    --accent-mint: #8df6d7;
    --accent-lilac: #c9b7ff;
    --accent-blue: #98c9ff;
    --accent-peach: #ffc9ad;
    --radius: 14px;
    --shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

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

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-height: 100vh;
    background:
        radial-gradient(1120px 720px at 88% -8%, rgba(201, 183, 255, 0.18), transparent 64%),
        radial-gradient(900px 560px at -6% 14%, rgba(141, 246, 215, 0.14), transparent 66%),
        radial-gradient(720px 480px at 55% 96%, rgba(152, 201, 255, 0.11), transparent 72%),
        var(--bg);
    color: var(--text);
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

a {
    color: var(--white);
    text-decoration: none;
}

.container {
    width: min(1160px, 93vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 10, 14, 0.78);
    backdrop-filter: blur(12px) saturate(130%);
}

.site-header-inner {
    width: min(1320px, 96vw);
    margin: 0 auto;
    padding: 11px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.logo {
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 0.98rem;
    letter-spacing: 0.14em;
    font-weight: 800;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px 4px 8px;
    border-radius: 999px;
}

.nav-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.nav-tab {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #161621 0%, #11111a 100%);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 0.84rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-tab:hover,
.nav-tab.active {
    border-color: var(--line-2);
    color: var(--white);
    box-shadow: 0 0 0 1px rgba(201, 183, 255, 0.28) inset;
    transform: translateY(-1px);
}

.header-cta {
    border: 1px solid #ffffff20;
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-lilac));
    color: #050505;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    margin-left: 8px;
}

.header-cta:hover {
    filter: brightness(1.05);
}

main {
    padding-bottom: 40px;
}

.section {
    padding: 62px 0;
}

.pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #151621 0%, #10111a 100%);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
}

.hero {
    padding-top: 72px;
}

.hero-shell {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(180deg, #161622 0%, #11111a 100%);
    box-shadow: var(--shadow);
    padding: clamp(22px, 4vw, 38px);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: stretch;
}

h1,
h2,
h3,
h4 {
    font-family: "Sora", "Manrope", sans-serif;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: var(--white);
}

h1 {
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    margin: 14px 0 12px;
}

h2 {
    font-size: clamp(1.55rem, 3vw, 2.45rem);
}

h3 {
    font-size: 1.08rem;
}

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

.lead {
    max-width: 72ch;
    font-size: 1.03rem;
}

.section-head {
    margin-bottom: 22px;
}

.section-head h2 {
    margin-top: 12px;
}

.section-head p {
    margin-top: 10px;
    max-width: 78ch;
}

.hero-metrics {
    display: grid;
    gap: 11px;
}

.metric {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #171725 0%, #11111a 100%);
    padding: 12px 14px;
}

.metric-label {
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 700;
}

.metric-value {
    margin-top: 4px;
    color: var(--white);
    font-size: 1.04rem;
    font-weight: 800;
}

.cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(180deg, #171727 0%, #11111a 100%);
    color: var(--text);
    transition: all 0.2s ease;
}

.btn:hover {
    border-color: var(--line-2);
    transform: translateY(-1px);
}

.btn.primary {
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-lilac));
    color: #050505;
    border-color: #ffffff26;
}

.btn.primary:hover {
    filter: brightness(1.05);
    border-color: #ffffff40;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 14px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #171725 0%, #11111a 100%);
    padding: 18px;
    transition: all 0.2s ease;
}

.card:hover {
    border-color: var(--line-2);
    transform: translateY(-2px);
}

.card h3,
.card h4 {
    margin-bottom: 8px;
}

.card p,
.card li {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.card ul,
.list {
    padding-left: 16px;
    margin-top: 8px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: auto;
    background: #11111a;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 0.92rem;
}

th {
    color: var(--white);
    background: #181825;
}

td {
    color: var(--text-soft);
}

.faq {
    display: grid;
    gap: 10px;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, #171725 0%, #11111a 100%);
    padding: 12px 14px;
}

.faq summary {
    font-weight: 800;
    color: var(--white);
    cursor: pointer;
}

.faq p {
    margin-top: 8px;
}

.media-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(180deg, #171725 0%, #11111a 100%);
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.media-card img {
    width: min(100%, 280px);
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top center;
    border-radius: 18px;
    border: 1px solid #ffffff24;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    display: block;
    margin-inline: auto;
}

.media-card p {
    margin-top: 9px;
    font-size: 0.9rem;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.search-link {
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(180deg, #171725 0%, #11111a 100%);
    padding: 10px 12px;
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-link:hover {
    border-color: var(--line-2);
    color: var(--white);
    transform: translateY(-1px);
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding: 24px 0 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.footer-links a:hover {
    color: var(--white);
}

.feedback-fab {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 60;
    border: 1px solid #ffffff26;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-lilac));
    color: #050505;
    border-radius: 999px;
    padding: 11px 14px;
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.feedback-fab:hover {
    filter: brightness(1.05);
}

.form-grid {
    display: grid;
    gap: 12px;
}

label {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--white);
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    background: #121320;
    color: var(--white);
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: linear-gradient(180deg, #171725 0%, #11111a 100%);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 6px 12px;
    margin-bottom: 10px;
}

.status-chip.ok {
    border-color: #3a3a3a;
    color: var(--white);
}

.status-chip.warn {
    border-color: #343434;
}

.form-status {
    border-radius: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #171725 0%, #11111a 100%);
    color: var(--text-soft);
    padding: 10px 12px;
    font-size: 0.88rem;
    display: none;
}

.form-status.ok,
.form-status.warn,
.form-status.error {
    display: block;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--text-soft);
    font-size: 0.8rem;
    font-weight: 700;
    background: linear-gradient(180deg, #171725 0%, #11111a 100%);
}

@media (max-width: 1060px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .site-header-inner {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-tabs {
        width: 100%;
    }

    .header-cta {
        margin-left: 0;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .split,
    .search-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
