:root {
    --vp-dark: #0c0c0c;
    --vp-darker: #060606;
    --vp-card: #151515;
    --vp-card-hover: #1c1c1c;
    --vp-border: #2a2a2a;
    --vp-text: #d4d4d4;
    --vp-text-muted: #8b8b8b;
    --vp-blue: #1a73e8;
    --vp-blue-dark: #0d47a1;
    --vp-blue-light: #4a90e2;
    --vp-red: #ee0000;
    --vp-white: #ffffff;
    --vp-section-alt: #0f0f0f;
    --vp-radius: 12px;
    --vp-radius-sm: 8px;
    --vp-max-width: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Red Hat Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--vp-text);
    background-color: var(--vp-dark);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ─── HEADER ─── */
.site-header {
    background-color: var(--vp-darker);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--vp-border);
}

.site-header__inner {
    max-width: var(--vp-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--vp-white);
}

.site-header__brand img {
    border-radius: 4px;
}

.site-header__title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.site-header__toggle {
    display: none;
    background: none;
    border: none;
    color: var(--vp-text);
    cursor: pointer;
    padding: 0.5rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.site-nav__link {
    color: var(--vp-text-muted);
    text-decoration: none;
    padding: 0 1rem;
    height: 56px;
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.site-nav__link:hover {
    color: var(--vp-white);
}

.site-nav__link--active {
    color: var(--vp-white);
    border-bottom-color: var(--vp-blue);
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1628 0%, #0d3b7a 40%, #1a5fb4 70%, #1a73e8 100%);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotate(45deg) scale(1.5);
}

.hero__content {
    position: relative;
    text-align: center;
    max-width: 760px;
    padding: 4rem 2rem;
}

.hero__logo {
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 20px rgba(26,115,232,0.3));
}

.hero__title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--vp-white);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero__subtitle {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--vp-white);
    color: var(--vp-blue-dark);
    border-color: var(--vp-white);
}

.btn--primary:hover {
    background-color: transparent;
    color: var(--vp-white);
}

.btn--outline {
    background-color: transparent;
    color: var(--vp-white);
    border-color: rgba(255,255,255,0.4);
}

.btn--outline:hover {
    border-color: var(--vp-white);
    background-color: rgba(255,255,255,0.1);
}

.btn--outline-light {
    background-color: transparent;
    color: var(--vp-white);
    border-color: rgba(255,255,255,0.4);
}

.btn--outline-light:hover {
    border-color: var(--vp-white);
    background-color: rgba(255,255,255,0.1);
}

/* ─── PAGE HERO (inner pages) ─── */
.page-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0d3b7a 60%, #1a5fb4 100%);
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.page-hero__inner {
    max-width: var(--vp-max-width);
    margin: 0 auto;
}

.page-hero__title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--vp-white);
    margin-bottom: 0.75rem;
}

.page-hero__subtitle {
    font-size: 1.0625rem;
    color: rgba(255,255,255,0.7);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ─── SECTIONS ─── */
.section {
    padding: 5rem 2rem;
}

.section--alt {
    background-color: var(--vp-section-alt);
}

.section--cta {
    background: linear-gradient(135deg, #0a1628 0%, #0d3b7a 60%, #1a73e8 100%);
    padding: 5rem 2rem;
}

.section__inner {
    max-width: var(--vp-max-width);
    margin: 0 auto;
}

.section__title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--vp-white);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section__subtitle {
    text-align: center;
    color: var(--vp-text-muted);
    font-size: 1.0625rem;
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.section__cta {
    text-align: center;
    margin-top: 2rem;
    color: var(--vp-text-muted);
    font-size: 0.9375rem;
}

/* ─── PARTNER STRIP ─── */
.partner-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.partner-strip__item img {
    height: 28px;
    border: none;
    box-shadow: none;
    margin: 0;
    display: block;
}

/* ─── CARDS ─── */
.card-grid {
    display: grid;
    gap: 1.5rem;
}

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

.card {
    background-color: var(--vp-card);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    background-color: var(--vp-card-hover);
    border-color: var(--vp-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(26,115,232,0.1);
}

.card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.card__title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--vp-white);
    margin-bottom: 0.75rem;
}

.card__desc {
    color: var(--vp-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.card__arrow {
    color: var(--vp-blue-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
}

.card__arrow:hover {
    text-decoration: underline;
}

/* ─── FEATURE CARDS ─── */
.feature-card {
    background-color: var(--vp-card);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 2rem;
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
}

.feature-card:hover {
    border-top-color: var(--vp-blue);
    background-color: var(--vp-card-hover);
}

.feature-card h3 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vp-white);
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--vp-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ─── STEP CARDS ─── */
.step-card {
    background-color: var(--vp-card);
    border: 1px solid var(--vp-border);
    border-radius: var(--vp-radius);
    padding: 2rem;
    text-align: center;
}

.step-card__number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vp-blue), var(--vp-blue-dark));
    color: var(--vp-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--vp-white);
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--vp-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ─── WAVE TABLE ─── */
.wave-table {
    max-width: 800px;
    margin: 0 auto;
}

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

.wave-table th,
.wave-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--vp-border);
}

.wave-table th {
    color: var(--vp-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wave-table td {
    color: var(--vp-text);
    font-size: 0.9375rem;
}

.wave-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 0.5rem;
    background: linear-gradient(135deg, var(--vp-blue), var(--vp-blue-dark));
    color: var(--vp-white);
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
}

/* ─── VIDEO ─── */
.video-embed {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--vp-radius);
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
    aspect-ratio: 16/9;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ─── CONTENT PAGE (architecture, prompts) ─── */
.content-page h2 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--vp-white);
    margin-top: 3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--vp-border);
}

.content-page h2:first-child {
    margin-top: 0;
}

.content-page h3 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--vp-white);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.content-page h4, .content-page h5, .content-page h6 {
    color: var(--vp-white);
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-page p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.content-page a {
    color: var(--vp-blue-light);
    text-decoration: none;
}

.content-page a:hover {
    text-decoration: underline;
}

.content-page ul, .content-page ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-page li {
    margin: 0.5rem 0;
}

.content-page code {
    background-color: #1e293b;
    color: #93c5fd;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-family: 'Red Hat Mono', monospace;
    font-size: 0.875em;
}

.content-page pre {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--vp-radius-sm);
    overflow-x: auto;
    border-left: 3px solid var(--vp-blue);
    margin: 1.5rem 0;
    font-size: 0.875rem;
    position: relative;
}

.content-page pre code {
    background-color: transparent;
    color: #e2e8f0;
    padding: 0;
    font-size: 0.9375em;
}

.content-page img {
    max-width: 100%;
    height: auto;
    border-radius: var(--vp-radius-sm);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    margin: 1.5rem auto;
    border: 1px solid var(--vp-border);
    display: block;
}

.content-page img[alt*="badge"],
.content-page div[align="center"] img[src*="shields.io"] {
    box-shadow: none;
    border: none;
    margin: 0.25rem;
    display: inline-block;
}

.content-page blockquote {
    border-left: 3px solid var(--vp-blue);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    color: var(--vp-text-muted);
    font-style: italic;
}

.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
    border-radius: var(--vp-radius-sm);
    overflow: hidden;
}

.content-page table th,
.content-page table td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--vp-border);
}

.content-page table th {
    background-color: #1e293b;
    color: var(--vp-blue-light);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.content-page table tr:nth-child(even) {
    background-color: rgba(30,41,59,0.3);
}

.content-page hr {
    border: none;
    border-top: 1px solid var(--vp-border);
    margin: 3rem 0;
}

.content-page div[align="center"] {
    text-align: center;
    margin: 1.5rem 0;
}

/* ─── COPY BUTTON ─── */
.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background-color: #1e293b;
    color: var(--vp-text-muted);
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-family: 'Red Hat Text', sans-serif;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background-color: var(--vp-blue);
    color: var(--vp-white);
    border-color: var(--vp-blue);
}

.copy-button.copied {
    background-color: #16a34a;
    border-color: #16a34a;
    color: var(--vp-white);
}

/* ─── MERMAID ─── */
.mermaid {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: var(--vp-radius);
    padding: 2rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    text-align: center;
}

.mermaid svg {
    max-width: 100%;
    height: auto;
}

/* ─── FOOTER ─── */
.site-footer {
    background-color: var(--vp-darker);
    border-top: 1px solid var(--vp-border);
    padding: 4rem 2rem 2rem;
}

.site-footer__inner {
    max-width: var(--vp-max-width);
    margin: 0 auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--vp-white);
    font-family: 'Red Hat Display', sans-serif;
}

.site-footer__brand img {
    border-radius: 4px;
}

.site-footer__desc {
    color: var(--vp-text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.site-footer__col h4 {
    color: var(--vp-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.site-footer__col ul {
    list-style: none;
    padding: 0;
}

.site-footer__col ul li {
    margin-bottom: 0.5rem;
}

.site-footer__col ul a {
    color: var(--vp-text);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.site-footer__col ul a:hover {
    color: var(--vp-blue-light);
}

.site-footer__bottom {
    border-top: 1px solid var(--vp-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-footer__bottom p {
    color: var(--vp-text-muted);
    font-size: 0.8125rem;
}

.site-footer__bottom strong {
    color: var(--vp-text);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .card-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .site-header__toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background-color: var(--vp-darker);
        border-bottom: 1px solid var(--vp-border);
        flex-direction: column;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav__link {
        height: auto;
        padding: 0.875rem 2rem;
        border-bottom: none;
        border-left: 2px solid transparent;
    }

    .site-nav__link--active {
        border-left-color: var(--vp-blue);
    }

    .hero {
        min-height: 440px;
    }

    .hero__title {
        font-size: 1.875rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

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

    .section {
        padding: 3rem 1.25rem;
    }

    .section__title {
        font-size: 1.625rem;
    }

    .page-hero {
        padding: 3rem 1.25rem 2rem;
    }

    .page-hero__title {
        font-size: 1.875rem;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__bottom {
        flex-direction: column;
        text-align: center;
    }
}
