:root {
    --bg: #09111f;
    --bg-soft: #101d31;
    --bg-card: rgba(16, 29, 49, 0.84);
    --bg-card-strong: #13253e;
    --surface: #1a3150;
    --text: #ebf2ff;
    --text-soft: #b9c8e7;
    --text-muted: #8fa2c7;
    --line: rgba(143, 162, 199, 0.18);
    --brand: #4dc0ff;
    --brand-strong: #2f8cff;
    --brand-deep: #87e1ff;
    --accent: #8cffc1;
    --warning: #ffd37a;
    --shadow: 0 22px 60px rgba(1, 8, 18, 0.42);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(77, 192, 255, 0.18), transparent 32%),
        radial-gradient(circle at 85% 12%, rgba(140, 255, 193, 0.10), transparent 24%),
        linear-gradient(180deg, #07101d 0%, #0a1321 100%);
    color: var(--text);
    font-family: "IBM Plex Sans", sans-serif;
    line-height: 1.72;
}

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

main {
    min-height: 60vh;
}

.container {
    width: min(1180px, calc(100vw - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(7, 16, 29, 0.84);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-navbar {
    padding: 1rem 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-lockup img {
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(46, 140, 255, 0.25);
}

.brand-text {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
    color: var(--text);
}

.navbar-nav {
    gap: 0.35rem;
}

.nav-tools {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: 1rem;
}

.nav-link {
    color: var(--text-soft);
    font-size: 0.96rem;
    font-weight: 500;
    padding: 0.7rem 0.95rem !important;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(235,242,255,0.92)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.btn-brand,
.btn-ghost {
    border-radius: 999px;
    padding: 0.82rem 1.3rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.btn-brand {
    color: #04101b;
    background: linear-gradient(135deg, var(--brand-deep), var(--brand));
    box-shadow: 0 16px 28px rgba(77, 192, 255, 0.24);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #04101b;
    background: linear-gradient(135deg, #a4ecff, #5bcbff);
}

.btn-ghost {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
}

.lang-switch-btn {
    min-width: 142px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.78rem 1.05rem;
    border-radius: 999px;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lang-switch-btn:hover,
.lang-switch-btn:focus,
.lang-switch-btn.show {
    color: var(--text);
    border-color: rgba(77, 192, 255, 0.35);
    background: linear-gradient(180deg, rgba(77, 192, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.lang-switch-btn::after {
    margin-left: 0;
}

.lang-switch-current {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 700;
}

.lang-switch-menu {
    margin-top: 0.7rem !important;
    min-width: 220px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(10, 19, 33, 0.96);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
}

.lang-switch-menu .dropdown-item {
    color: var(--text-soft);
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    font-weight: 600;
}

.lang-switch-menu .dropdown-item:hover,
.lang-switch-menu .dropdown-item:focus {
    color: var(--text);
    background: rgba(77, 192, 255, 0.12);
}

.hero-shell {
    padding: 5rem 0 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 2rem;
    align-items: center;
}

.eyebrow-row {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.eyebrow-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(77, 192, 255, 0.12);
    border: 1px solid rgba(77, 192, 255, 0.28);
    color: var(--brand-deep);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.eyebrow-text {
    color: var(--text-soft);
    font-size: 0.96rem;
}

.hero-title,
.section-heading h2,
.legal-card h1 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
}

.hero-title {
    font-size: clamp(2.45rem, 5.7vw, 4.7rem);
    line-height: 1.05;
    margin: 0 0 1.1rem;
    max-width: 12ch;
}

.hero-subtitle {
    max-width: 64ch;
    color: var(--text-soft);
    font-size: 1.08rem;
    margin: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.7rem 0 2rem;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.highlight-card,
.hero-visual-card,
.facts-panel,
.intent-card,
.step-card,
.note-panel,
.module-card,
.resource-card,
.longform-card,
.faq-card,
.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.highlight-card {
    padding: 1.15rem 1.2rem;
}

.highlight-value {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-deep);
}

.highlight-label {
    margin-top: 0.35rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.hero-visual-card {
    padding: 1rem;
    background:
        linear-gradient(180deg, rgba(24, 48, 76, 0.95), rgba(12, 22, 36, 0.98));
}

.hero-image {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius-lg) - 8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual-caption {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 0.85rem;
}

.content-section {
    padding: 2.35rem 0;
}

.section-heading {
    max-width: 820px;
    margin: 0 auto 1.7rem;
    text-align: center;
}

.section-heading-left {
    margin-left: 0;
    text-align: left;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 0.9rem;
}

.section-heading p,
.overview-copy p,
.longform-card p,
.faq-card p,
.legal-card p,
.legal-card li {
    color: var(--text-soft);
}

.overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: 1.4rem;
    align-items: start;
}

.overview-copy p,
.longform-card p {
    margin-bottom: 1rem;
}

.facts-panel,
.note-panel,
.legal-card {
    padding: 1.45rem;
}

.facts-panel h3,
.note-panel h3,
.legal-card h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.facts-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.fact-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fact-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.fact-label {
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.fact-value {
    color: var(--text);
    font-weight: 600;
}

.intent-grid,
.module-grid,
.resource-grid,
.faq-stack {
    display: grid;
    gap: 1.15rem;
}

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

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

.intent-card,
.module-card,
.resource-card,
.faq-card {
    padding: 1.35rem;
}

.intent-icon,
.module-icon,
.resource-icon {
    font-size: 1.65rem;
    margin-bottom: 0.8rem;
}

.intent-card h3,
.module-card h3,
.resource-card h3,
.longform-card h3,
.faq-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.22rem;
    margin-bottom: 0.75rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.step-card {
    padding: 1.45rem;
}

.step-badge {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-strong), var(--brand));
    color: #061221;
    font-weight: 800;
    margin-bottom: 0.95rem;
}

.step-card h3 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.25rem;
    margin-bottom: 0.7rem;
}

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

.code-block {
    margin: 1rem 0 0;
    padding: 1rem;
    border-radius: 18px;
    overflow: auto;
    background: rgba(4, 10, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #d7ecff;
    font-size: 0.9rem;
    line-height: 1.55;
}

.code-block code {
    white-space: pre-wrap;
    word-break: break-word;
}

.code-shell {
    position: relative;
}

.copy-code-btn {
    position: absolute;
    top: 1.55rem;
    right: 0.9rem;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(17, 37, 63, 0.92);
    color: var(--text-soft);
    border-radius: 999px;
    padding: 0.38rem 0.82rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: all 0.18s ease;
}

.copy-code-btn:hover,
.copy-code-btn:focus {
    color: var(--text);
    border-color: rgba(77, 192, 255, 0.38);
    background: rgba(31, 62, 99, 0.96);
}

.copy-code-btn.copied {
    color: #04101b;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent), #b6ffd7);
}

.note-panel {
    margin-top: 1.2rem;
}

.note-list {
    padding-left: 1.15rem;
    margin: 0;
    color: var(--text-soft);
}

.note-list li + li {
    margin-top: 0.75rem;
}

.resource-link {
    color: var(--brand-deep);
    font-weight: 700;
}

.resource-link:hover {
    color: #b6f2ff;
}

.section-longform .longform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.longform-card {
    padding: 1.5rem;
}

.site-footer {
    padding: 3rem 0 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(4, 11, 20, 0.55);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

.footer-copy,
.footer-bottom p,
.footer-links a {
    color: var(--text-muted);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li + li {
    margin-top: 0.6rem;
}

.footer-links a:hover,
.footer-copy a:hover {
    color: var(--text);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    gap: 0.4rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.92rem;
}

.legal-shell {
    padding: 3.8rem 0;
}

.legal-card {
    max-width: 860px;
    margin: 0 auto;
}

.legal-date {
    color: var(--text-muted);
    margin-bottom: 1.1rem;
}

.legal-card h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    margin-bottom: 0.4rem;
}

.legal-card h2 {
    margin-top: 1.6rem;
}

.legal-card a {
    color: var(--brand-deep);
}

.legal-card a:hover {
    color: #b6f2ff;
}

@media (max-width: 991px) {
    .hero-grid,
    .overview-grid,
    .steps-grid,
    .intent-grid,
    .module-grid,
    .resource-grid,
    .faq-stack,
    .section-longform .longform-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        max-width: none;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .fact-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}

@media (max-width: 767px) {
    .hero-shell {
        padding-top: 3.6rem;
    }

    .content-section {
        padding: 1.8rem 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-brand,
    .btn-ghost {
        text-align: center;
        width: 100%;
    }

    .highlight-card,
    .facts-panel,
    .intent-card,
    .step-card,
    .note-panel,
    .module-card,
    .resource-card,
    .longform-card,
    .faq-card,
    .legal-card {
        border-radius: 22px;
    }

    .site-navbar {
        padding: 0.8rem 0;
    }

    .nav-item-cta {
        margin-top: 0.75rem;
    }

    .nav-tools {
        margin-left: 0;
        margin-top: 0.85rem;
        flex-direction: column;
        align-items: stretch;
    }

    .lang-switch-btn {
        width: 100%;
    }
}
