/* ==========================================================================
   PICK YOUR CARD (pickyourcard.app) — UNIFIED CENTERED DESIGN SYSTEM
   ========================================================================== */

:root {
    --bg-hero: #0f172a;
    --bg-primary: #070a12;
    --bg-card: #111827;
    --bg-elevated: #1e293b;
    --border-color: #26334d;
    --border-highlight: #3b82f6;
    --accent-blue: #3b82f6;
    --accent-purple: #6366f1;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ==========================================================================
   1. GLOBAL TOP NAVIGATION BAR (CENTERED CONTAINER, LOGO LEFT, LINKS RIGHT)
   ========================================================================== */
header.site-header {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
}

.header-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.brand-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: #0b1120;
    padding: 2px;
}

.brand-logo span {
    color: #60a5fa;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #60a5fa;
}

.nav-links a.btn-launch {
    background: var(--accent-blue);
    color: #ffffff !important;
    padding: 7px 15px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700 !important;
    border: 1px solid rgba(96, 165, 250, 0.4);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
    transition: background 0.15s ease, transform 0.15s ease;
}

.nav-links a.btn-launch:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* ==========================================================================
   2. WIREFRAME TIER 1: UPPER HERO BAND & CENTERED BROWSER PREVIEW FRAME
   ========================================================================== */
.hero-band {
    background: linear-gradient(180deg, #131c31 0%, #0d1424 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 64px 24px 0 24px;
    text-align: center;
}

.hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.article-badge,
.landing-badge,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.32);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title,
.landing-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.65rem;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-title span,
.landing-title span {
    color: #60a5fa;
}

.hero-subtitle,
.landing-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 28px auto;
    line-height: 1.65;
}

.hero-cta-row,
.landing-cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.btn-outline-hero {
    background: #ffffff;
    color: #0f172a;
    border: 2px solid #ffffff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 11px 26px;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-outline-hero:hover {
    background: #eff6ff;
    transform: translateY(-1px);
}

.btn-filled-hero {
    background: rgba(59, 130, 246, 0.22);
    color: #93c5fd;
    border: 2px solid rgba(96, 165, 250, 0.45);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 8px;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-filled-hero:hover {
    background: rgba(59, 130, 246, 0.35);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Centered Tablet / Browser Frame Rising from Bottom of Hero */
.hero-window-frame {
    max-width: 820px;
    margin: 0 auto;
    background: #0b101d;
    border: 2px solid #2e4166;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    padding: 18px 18px 0 18px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
}

.hero-window-screen {
    background: #111827;
    border: 1px solid #26334d;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    padding: 28px 24px 32px 24px;
    text-align: left;
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.window-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.window-dot.blue { background: #3b82f6; }
.window-dot.indigo { background: #6366f1; }
.window-dot.emerald { background: #10b981; }

.window-title-text {
    margin-left: 8px;
    font-size: 0.78rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #94a3b8;
}

.pipeline-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 768px) {
    .pipeline-preview-grid {
        grid-template-columns: 1fr;
    }
}

.pipeline-step-box {
    background: #090d16;
    border: 1px solid #26334d;
    border-radius: 10px;
    padding: 16px;
}

.pipeline-step-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
}

.pipeline-step-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.pipeline-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.rc-badge {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
}

/* ==========================================================================
   3. WIREFRAME TIER 2: DARK CONTRAST BAND WITH CENTERED FEATURE BOX
   ========================================================================== */
.contrast-band {
    background: #05070d;
    padding: 64px 24px;
    border-bottom: 1px solid var(--border-color);
}

.contrast-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.centered-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    border: 2px solid #3b82f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.band-description {
    max-width: 620px;
    margin: 0 auto 36px auto;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

/* Centered Feature / Quick-Launch Card (Matches Wireframe Center Box) */
.centered-focus-card {
    max-width: 520px;
    margin: 0 auto 36px auto;
    background: #0b101b;
    border: 2px solid #3b82f6;
    border-radius: 12px;
    padding: 32px 28px;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.centered-focus-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #60a5fa;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 22px;
}

.focus-field-row {
    border-bottom: 2px solid #26334d;
    padding: 10px 0;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.88rem;
}

.focus-field-label {
    color: #94a3b8;
    font-weight: 600;
}

.focus-field-value {
    color: #f8fafc;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
}

.focus-check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
    margin: 14px 0 24px 0;
}

.focus-card-cta {
    display: block;
    width: 100%;
    text-align: center;
    background: #3b82f6;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 13px 20px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.focus-card-cta:hover {
    background: #2563eb;
}

/* ==========================================================================
   4. WIREFRAME TIER 3: TWO-COLUMN SPLIT SECTION (VISUAL LEFT, LINKS RIGHT)
   ========================================================================== */
.split-showcase-section {
    max-width: 960px;
    margin: 48px auto 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    text-align: left;
}

@media (max-width: 820px) {
    .split-showcase-section {
        grid-template-columns: 1fr;
    }
}

.split-visual-panel {
    background: #0d1526;
    border: 1px solid #2e4166;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.split-visual-panel h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.split-links-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.split-action-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #60a5fa;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.15s ease, transform 0.15s ease;
}

.split-action-link:hover {
    color: #93c5fd;
    transform: translateX(3px);
}

.split-sub-heading {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #94a3b8;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.split-directory-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.split-directory-list a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.15s ease;
}

.split-directory-list a:hover {
    color: #60a5fa;
}

/* ==========================================================================
   5. INNER PAGES: CENTERED ARTICLE & GUIDE LAYOUT (NO EDGE-TO-EDGE)
   ========================================================================== */
main.page-main,
main.guide-container,
main.doc-container,
main.faq-container,
main.contact-container {
    flex: 1;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    padding: 48px 24px 72px 24px;
}

article.article-container {
    width: 100%;
    max-width: 840px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 44px 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

@media (max-width: 640px) {
    article.article-container {
        padding: 28px 20px;
    }
}

article.article-container h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.22;
    color: #ffffff;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

article.article-container p.article-lead {
    font-size: 1.06rem;
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

article.article-container h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    margin: 36px 0 14px 0;
    padding-top: 8px;
}

article.article-container h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #e2e8f0;
    margin: 24px 0 10px 0;
}

article.article-container p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

article.article-container ul,
article.article-container ol {
    margin: 12px 0 22px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

article.article-container li {
    margin-bottom: 10px;
    line-height: 1.65;
}

article.article-container a {
    color: #60a5fa;
    text-decoration: none;
}

article.article-container a:hover {
    text-decoration: underline;
}

strong {
    color: #f8fafc;
}

code {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    padding: 2px 6px;
    border-radius: 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #93c5fd;
    font-size: 0.85em;
}

/* Callout Boxes Inside Articles */
.callout-box {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-left: 4px solid var(--accent-blue);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 26px 0;
}

.callout-box.emerald {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    border-left-color: var(--accent-emerald);
}

.callout-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

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

/* FAQ Cards Inside faq.html */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 18px 0 28px 0;
}

.faq-item {
    background: #0b101b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
}

.faq-item h3 {
    margin: 0 0 8px 0 !important;
    font-size: 1.02rem !important;
    color: #60a5fa !important;
}

.faq-item p {
    margin-bottom: 0 !important;
    font-size: 0.93rem !important;
}

/* Values Grid & Changelog Timeline (about.html) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 22px 0;
}

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

.value-card {
    background: #0b101b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px;
}

.value-card h4 {
    font-family: 'Outfit', sans-serif;
    color: #60a5fa;
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.9rem !important;
    margin-bottom: 0 !important;
}

.timeline-list {
    border-left: 2px solid var(--accent-blue);
    padding-left: 22px;
    margin: 22px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    position: relative;
    background: #0b101b;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 22px;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: #60a5fa;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.timeline-item p {
    margin-bottom: 0 !important;
    font-size: 0.92rem !important;
}

/* Contact Form Centered Iframe */
.contact-iframe {
    width: 100%;
    max-width: 680px;
    height: 760px;
    margin: 12px auto 0 auto;
    display: block;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #ffffff;
}

/* ==========================================================================
   6. MODERN RESPONSIVE DATA TABLES (Container Queries + Sticky Headers)
   ========================================================================== */
.table-wrapper {
    overflow: auto;
    max-inline-size: 100%;
    container-type: inline-size;
    margin: 22px 0;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #0b101b;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

caption {
    text-align: left;
    padding: 12px 16px;
    font-weight: 700;
    color: #94a3b8;
    font-size: 0.82rem;
    background: #090d16;
    border-bottom: 1px solid var(--border-color);
}

thead {
    position: sticky;
    inset-block-start: 0;
    z-index: 1;
}

th {
    background: #162033;
    color: #ffffff;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.84rem;
}

tbody th {
    position: sticky;
    inset-inline-start: 0;
    background: #101726;
    color: #f8fafc;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.86rem;
}

tr:last-child td,
tr:last-child th {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

@container (width < 600px) {
    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-block-end: 0.75rem;
        border-bottom: 2px solid var(--border-color);
    }

    tbody th {
        position: static;
        background: #162033;
    }

    td::before {
        content: var(--label, "");
        display: block;
        font-weight: 700;
        font-size: 0.75rem;
        color: #93c5fd;
        text-transform: uppercase;
        margin-bottom: 2px;
    }
}

/* ==========================================================================
   7. GLOBAL CENTERED FOOTER BAR
   ========================================================================== */
footer.site-footer {
    background: #0b1120;
    border-top: 1px solid var(--border-color);
    padding: 32px 24px;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.footer-links {
    max-width: 960px;
    margin: 0 auto 14px auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.copyright {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}
