:root {
    --bg: #0b0b0b;
    --surface: #1d1d1d;
    --surface-soft: #242424;
    --text: #f4f4f4;
    --muted: #b3b3b3;
    --line: rgba(255, 255, 255, 0.08);
    --pill: #151515;
    --accent: #f5f5f5;
    --accent-text: #111111;
    --brand: #27d1c3;
    --container: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 100;
    background: #ffffff;
    color: #111111;
    padding: 10px 14px;
    border-radius: 999px;
}

.skip-link:focus {
    top: 16px;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 11, 11, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-text strong {
    font-size: 1rem;
    display: block;
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: anywhere;
}

.brand-text span {
    font-size: 0.84rem;
    color: var(--muted);
}

.desktop-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--pill);
    padding: 8px;
    border-radius: 999px;
    border: 1px solid var(--line);
}

.desktop-nav a {
    color: var(--muted);
    padding: 10px 18px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    min-width: 0;
}

.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: #1f1f1f;
    color: #ffffff;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    z-index: 3;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
    background: #ffffff;
    color: #111111;
}

.hero {
    padding: 72px 0 28px;
    text-align: center;
}

.hero-inner {
    max-width: 980px;
}

.eyebrow {
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #8a8a8a;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.hero-copy {
    max-width: 760px;
    margin: 16px auto 0;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--muted);
}

.filter-row {
    margin-top: 42px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.filter-pill {
    border: 1px solid var(--line);
    background: var(--pill);
    color: var(--muted);
    border-radius: 999px;
    padding: 14px 22px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover,
.filter-pill:focus-visible {
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.filter-pill.active {
    background: var(--accent);
    color: var(--accent-text);
    border-color: transparent;
}

.cards-section {
    padding: 18px 0 88px;
}

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

.calc-card {
    min-height: 220px;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.calc-card:hover,
.calc-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.18);
    background: var(--surface-soft);
}

.featured-card {
    background: linear-gradient(180deg, rgba(39, 209, 195, 0.08), rgba(255, 255, 255, 0.02)), var(--surface);
    border-color: rgba(39, 209, 195, 0.18);
}

.featured-card .card-icon {
    background: rgba(39, 209, 195, 0.12);
    color: #ddfffb;
}

.featured-card .card-meta {
    color: #9cece4;
}

.card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.84rem;
    font-weight: 800;
    color: #c8c8c8;
    background: rgba(255, 255, 255, 0.06);
}

.calc-card h2 {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.calc-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    flex: 1;
}

.card-meta {
    color: #d0d0d0;
    font-size: 0.88rem;
}

.calc-card.is-hidden {
    display: none;
}

.empty-state {
    margin: 24px 0 0;
    text-align: center;
    color: var(--muted);
    line-height: 1.7;
}

.empty-state span {
    color: #ffffff;
}

.is-hidden {
    display: none;
}

.faq-section {
    margin-top: 88px;
}

.info-section,
.faq-section {
    padding: 0 0 38px;
}

.info-grid {
    max-width: 980px;
}

.faq-shell {
    max-width: 980px;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
}

.section-label {
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #8a8a8a;
}

.info-card h2,
.faq-heading h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.info-card p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.8;
}

.info-card a {
    color: #ffffff;
}

.faq-heading {
    margin-bottom: 18px;
}

.faq-list {
    display: grid;
    gap: 18px;
}

.faq-item {
    background: #101010;
    border: 1px solid var(--line);
    border-radius: 28px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item[open] {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.14);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 26px 28px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.45;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: "+";
    flex: 0 0 auto;
    font-size: 2rem;
    line-height: 1;
    font-weight: 400;
    color: #ffffff;
}

.faq-item[open] summary::before {
    content: "−";
}

.faq-answer {
    padding: 0 28px 24px 74px;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.faq-answer a {
    color: #ffffff;
}

.site-footer {
    padding: 16px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.footer-shell {
    width: 100%;
    padding: 28px 0 34px;
}

@media (min-width: 1121px) {
    .footer-shell {
        width: min(80vw, 1100px);
        margin: 0 auto;
    }
}

.footer-single h3 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

.footer-brand-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-intro p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.25fr 1.75fr;
    gap: 28px;
}

.footer-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.footer-group {
    min-width: 0;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
    padding: 0;
    border: 0;
    background: transparent;
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #ffffff;
}

.footer-bottom-bar {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    justify-items: center;
    text-align: center;
}

.footer-bottom-bar p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.22);
    outline-offset: 3px;
}

@media (max-width: 1120px) {
    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 840px) {
    .topbar {
        position: relative;
        display: block;
        min-height: 88px;
        padding: 18px 0;
    }

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

    .brand {
        width: 100%;
        flex: 1 1 auto;
        min-width: 0;
        padding-right: 64px;
    }

    .menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        position: absolute;
        top: 14px;
        right: 0;
    }

    .desktop-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 6px;
        border-radius: 22px;
        z-index: 2;
        background: #151515;
        border: 1px solid var(--line);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    }

    .desktop-nav.is-open {
        display: flex;
    }

    .desktop-nav a {
        text-align: left;
        padding: 12px 14px;
    }

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

    .footer-bottom-bar {
        gap: 10px;
    }
}

@media (max-width: 560px) {
    .hero {
        padding-top: 56px;
    }

    .topbar {
        min-height: 70px;
        padding: 20px 0;
    }

    .brand {
        gap: 12px;
    }

    .brand-logo {
        display: none;
    }

    .brand-text strong {
        font-size: 18px;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .brand-text span {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 10vw, 2.9rem);
        line-height: 0.96;
    }

    .hero-copy {
        font-size: 1rem;
    }

    .filter-row {
        margin-top: 34px;
        gap: 14px;
    }

    .filter-pill {
        padding: 13px 20px;
        font-size: 0.95rem;
    }

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

    .calc-card {
        min-height: 0;
    }

    .info-card,
    .footer-bottom-bar {
        padding: 20px;
    }

    .faq-item summary {
        padding: 22px 20px;
        gap: 14px;
        font-size: 1.02rem;
    }

    .faq-item summary::before {
        font-size: 1.8rem;
    }

    .faq-answer {
        padding: 0 20px 20px 54px;
    }

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

    .footer-single {
        padding: 0;
    }

    .footer-bottom-bar {
        padding: 18px 0 0;
    }
}

@media (min-width: 427px) and (max-width: 560px) {
    .brand-text span {
        display: block;
    }
}
