:root {
    --bg-color: #080B10;
    --bg-card: #0F131F;
    --bg-subtle: #171B26;
    --bg-input: #111522;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --accent-primary: #6366F1;
    --accent-primary-dark: #4F46E5;
    --accent-secondary: #A855F7;
    --accent-teal: #06B6D4;
    --accent-amber: #F59E0B;
    --accent-green: #10B981;
    --accent-rose: #F43F5E;
    --border-light: #1E293B;
    --border-medium: #334155;
    --border-glow: rgba(99, 102, 241, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
    --shadow-hover: 0 0 25px rgba(99, 102, 241, 0.25);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --container-w: 1180px;
    --container-narrow: 880px;

    /* Dynamic Glassmorphism, Orbs & Layout colors */
    --glass-bg: rgba(255, 255, 255, 0.025);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-light: rgba(255, 255, 255, 0.04);
    --glass-inset: rgba(255, 255, 255, 0.06);
    --glass-glow: rgba(99, 102, 241, 0.04);
    --glass-border-gradient: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.2), transparent);
    --card-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    --orb-1: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.03) 40%, transparent 70%);
    --orb-2: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, rgba(6, 182, 212, 0.04) 40%, transparent 70%);
    --orb-3: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    --orb-opacity: 1;
}

[data-theme="light"] {
    --bg-color: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-subtle: #F1F5F9;
    --bg-input: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --accent-primary: #4F46E5;
    --accent-primary-dark: #3730A3;
    --accent-secondary: #7C3AED;
    --accent-teal: #0D9488;
    --accent-amber: #B45309;
    --accent-green: #047857;
    --accent-rose: #BE123C;
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --border-glow: rgba(79, 70, 229, 0.15);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 40px rgba(15, 23, 42, 0.12);
    --shadow-hover: 0 0 25px rgba(79, 70, 229, 0.15);

    /* Light Theme Glassmorphism, Orbs & Layout colors */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-light: rgba(15, 23, 42, 0.04);
    --glass-inset: rgba(255, 255, 255, 0.8);
    --glass-glow: rgba(79, 70, 229, 0.03);
    --glass-border-gradient: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.15), transparent);
    --card-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    --orb-1: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    --orb-2: radial-gradient(circle, rgba(168, 85, 247, 0.03) 0%, transparent 70%);
    --orb-3: radial-gradient(circle, rgba(16, 185, 129, 0.02) 0%, transparent 70%);
    --orb-opacity: 0.75;
}

/* Smooth transition for theme toggles */
body, header, .logo, a, .btn, .hero-artifact-card, .system-status, .nav-links a, .hero h1, .hero p, .tb-roles span, .tb-skills span, .nav-links {
    transition: background 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: #1F293D;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-secondary); }
img { max-width: 100%; display: block; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 2rem; }

/* ── Header ── */
header.site-header {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 11, 16, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
@media (min-width: 769px) {
    .nav-wrapper nav {
        margin-left: auto;
        margin-right: 2rem;
    }
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: -0.3px;
    text-decoration: none;
}
.logo:hover { color: var(--accent-primary); }
.logo span { color: var(--text-primary); }

.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent-primary); }

.nav-cta {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-teal) 100%);
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    cursor: pointer;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(99, 102, 241, 0.4); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.9rem;
    font-family: var(--font-main);
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
    color: #fff;
    transform: translateY(-1.5px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.6);
}
.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1.5px);
    box-shadow: var(--shadow-hover);
}
.btn-ghost {
    background: transparent;
    color: var(--accent-teal);
    padding: 0.5rem 0;
}
.btn-ghost:hover { color: var(--accent-primary); }

/* ── Hero (landing) — Immersive ── */
.hero {
    padding: 4.5rem 0 3.5rem;
    position: relative;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    align-items: center;
}
.hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: var(--orb-1);
    opacity: var(--orb-opacity);
    top: -250px;
    right: -200px;
    pointer-events: none;
    animation: heroOrb1 12s ease-in-out infinite;
}
.hero::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: var(--orb-2);
    opacity: var(--orb-opacity);
    bottom: -150px;
    left: -100px;
    pointer-events: none;
    animation: heroOrb2 15s ease-in-out infinite;
}
@keyframes heroOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, 40px) scale(1.1); }
}
@keyframes heroOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -30px) scale(1.05); }
}

/* Third ambient orb */
.hero .hero-orb-3 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--orb-3);
    opacity: var(--orb-opacity);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    animation: heroOrb3 18s ease-in-out infinite;
}
@keyframes heroOrb3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
    50% { transform: translate(-40%, -40%) scale(1.2); opacity: 1; }
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Hero top row: text + mini status */
.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}
.hero-text {
    flex: 1;
    max-width: 700px;
}
.hero-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 20px;
    padding: 0.4rem 0.85rem;
    margin-bottom: 1.25rem;
    white-space: nowrap;
}
.hero-status-pill .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: blink 2s infinite;
}

/* Glassmorphic artifact card */
.hero-artifact-card {
    margin: 0 0 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: 
        var(--card-shadow),
        inset 0 1px 0 var(--glass-inset),
        0 0 80px var(--glass-glow);
    overflow: hidden;
    position: relative;
}
.hero-artifact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--glass-border-gradient);
}

/* Artifact card header */
.artifact-header {
    padding: 1rem 1.75rem;
    border-bottom: 1px solid var(--glass-border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.artifact-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.artifact-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}
.artifact-title-bar {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.artifact-header-right {
    display: flex;
    gap: 0.35rem;
}
.artifact-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.artifact-dot.red { background: rgba(244, 63, 94, 0.6); }
.artifact-dot.yellow { background: rgba(245, 158, 11, 0.6); }
.artifact-dot.green { background: rgba(16, 185, 129, 0.6); }

/* Hero pipeline SVG row */
.hero-pipeline-row {
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
/* Lock the SVG to its native aspect ratio and a sane minimum width so labels
   never shrink below legibility — scroll horizontally instead of squashing. */
.hero-pipeline-row svg {
    display: block;
    min-width: 640px;
}

/* Systems dashboard grid */
.hero-systems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    align-items: stretch;
}
.hero-system-cell {
    padding: 1rem 1.25rem;
    border-right: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 96px;
}
.hero-system-cell:nth-child(4n) { border-right: none; }
.hero-system-cell:nth-last-child(-n+4) { border-bottom: none; }
.hero-system-cell:hover {
    background: rgba(99, 102, 241, 0.04);
}
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
}
.system-status.live {
    color: rgba(94, 234, 212, 0.9);
    background: rgba(20, 184, 166, 0.1);
}
.system-status.beta {
    color: rgba(251, 191, 36, 0.9);
    background: rgba(245, 158, 11, 0.08);
}
.system-status .s-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}
.system-status.live .s-dot { background: rgba(94, 234, 212, 0.8); }
.system-status.beta .s-dot { background: rgba(251, 191, 36, 0.8); animation: blink 1.8s infinite; }
.system-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.9);
    margin-bottom: 0.25rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em; /* reserves space for 2 lines so 1-line titles don't shift the grid */
}
.system-desc {
    font-size: 0.72rem;
    color: rgba(248, 250, 252, 0.35);
    line-height: 1.4;
    margin-top: auto; /* pins description to bottom so cells align on a shared baseline */
}

/* Proof strip */
.hero-proof-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 0;
}
.proof-cell {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.04);
}
.proof-cell:last-child { border-right: none; }
.proof-val {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}
.proof-label {
    font-family: var(--font-main);
    font-size: 0.58rem;
    color: rgba(248, 250, 252, 0.25);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* Responsive hero */
@media (max-width: 1024px) {
    .hero { min-height: auto; padding: 3rem 0 2.5rem; }
    .hero-systems-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-system-cell:nth-child(4n) { border-right: 1px solid rgba(255,255,255,0.04); }
    .hero-system-cell:nth-child(2n) { border-right: none; }
    .hero-system-cell:nth-last-child(-n+4) { border-bottom: 1px solid rgba(255,255,255,0.04); }
    .hero-system-cell:nth-last-child(-n+2) { border-bottom: none; }
    .hero-proof-strip { grid-template-columns: repeat(3, 1fr); }
    .proof-cell:nth-child(4),
    .proof-cell:nth-child(5) { grid-column: span 1; }
}
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 2.5rem 0 2rem; }
    .hero-top { flex-direction: column; }
    .hero-proof-strip { grid-template-columns: repeat(3, 1fr); }
    .hero-pipeline-row { padding: 1rem; }
}
@media (max-width: 480px) {
    .hero-systems-grid { grid-template-columns: 1fr; }
    .hero-system-cell { border-right: none !important; min-height: auto; }
    .hero-system-cell:not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.04) !important; }
    .hero-system-cell:last-child { border-bottom: none !important; }
    .system-name { -webkit-line-clamp: unset; min-height: auto; }
    .hero-proof-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── Transition Banner ── */
.transition-banner {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--accent-green);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.5rem;
    margin-bottom: 1.75rem;
    align-items: center;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}
.transition-banner::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.tb-left {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.tb-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-green);
}
.tb-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.tb-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}
.tb-sub {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #cbd5e1;
    margin-bottom: 0.45rem;
}
.tb-roles, .tb-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.tb-roles span, .tb-skills span {
    font-size: 0.76rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}
.tb-roles span {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
}
.tb-skills span {
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: #99f6e4;
}
.tb-roles span:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.25);
}
.tb-skills span:hover {
    background: rgba(20, 184, 166, 0.15);
    border-color: rgba(45, 212, 191, 0.6);
    box-shadow: 0 0 10px rgba(20, 184, 166, 0.25);
}
.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: blink 2s infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── Glassmorphic Matrix Badge Card ──────────────────────────────
   Reusable across hero sections. Color via --badge-rgb (comma triplet)
   and --badge-text. Defaults to teal. ───────────────────────────── */
.matrix-badge-card {
    --badge-rgb: 20, 184, 166;
    --badge-text: #5eead4;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 1.1rem;
    margin-bottom: 1.4rem;
    background: linear-gradient(135deg, rgba(var(--badge-rgb), 0.12) 0%, rgba(var(--badge-rgb), 0.05) 100%);
    border: 1px solid rgba(var(--badge-rgb), 0.45);
    border-radius: 6px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 0 0 1px rgba(var(--badge-rgb), 0.1) inset,
        0 4px 24px rgba(var(--badge-rgb), 0.12),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
    position: relative;
    overflow: hidden;
    cursor: default;
}
.matrix-badge-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(var(--badge-rgb), 0.025) 3px,
        rgba(var(--badge-rgb), 0.025) 4px
    );
    pointer-events: none;
}
.matrix-badge-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 80%;
    height: 200%;
    background: linear-gradient(105deg, transparent 40%, rgba(var(--badge-rgb), 0.10) 50%, transparent 60%);
    animation: badge-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes badge-shimmer {
    0%, 100% { transform: translateX(-20%); opacity: 0; }
    50%      { transform: translateX(200%); opacity: 1; }
}
.matrix-badge-icon {
    width: 22px;
    height: 22px;
    background: rgba(var(--badge-rgb), 0.15);
    border: 1px solid rgba(var(--badge-rgb), 0.4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--badge-text);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.matrix-badge-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--badge-text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.matrix-badge-dot {
    width: 6px;
    height: 6px;
    background: rgb(var(--badge-rgb));
    border-radius: 50%;
    box-shadow: 0 0 6px rgb(var(--badge-rgb));
    animation: badge-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
@keyframes badge-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.5; box-shadow: 0 0 12px rgb(var(--badge-rgb)); }
}

@media (max-width: 768px) {
    .transition-banner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.25rem 1.5rem;
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    max-width: 950px;
}
.hero h1 .highlight,
.page-hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin-bottom: 3rem;
    line-height: 1.75;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-val {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.45rem;
}

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Page heroes (subpages) ── */
.page-hero {
    padding: 4.5rem 0 3.5rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}
.page-hero.matrix-hero {
    background: #030712;
}
.page-hero.matrix-hero .container-narrow {
    position: relative;
    z-index: 2;
}
.page-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}
.page-hero::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    top: -50px;
    right: 5%;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.04) 0%, transparent 70%);
    bottom: -50px;
    left: 5%;
    pointer-events: none;
}
.breadcrumb {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    font-weight: 500;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-primary); }
.breadcrumb .sep { margin: 0 0.5rem; opacity: 0.6; }

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.page-hero .subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 760px;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.page-hero .sub {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 760px;
    line-height: 1.7;
}

.tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.75rem; }
.status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.status-live { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: var(--accent-green); }
.status-beta { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); color: var(--accent-amber); }
.status-os   { background: rgba(99, 102, 241, 0.1); border-color: rgba(99, 102, 241, 0.2); color: var(--accent-primary); }
.status-archived { background: rgba(100, 116, 139, 0.12); border-color: rgba(100, 116, 139, 0.2); color: var(--text-muted); }

/* Premium Highlight Buttons - Solid Gradient */
a.status-tag[href*="github.com"],
a.status-tag[href*="adiyogibooks.com"] {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%) !important;
    border: 1px solid var(--accent-primary) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
}

a.status-tag[href*="github.com"]:hover,
a.status-tag[href*="adiyogibooks.com"]:hover {
    background: linear-gradient(135deg, var(--accent-primary-dark) 0%, var(--accent-secondary) 100%) !important;
    border-color: var(--accent-secondary) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.45) !important;
    transform: translateY(-1px) scale(1.02) !important;
}

.status-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Sections ── */
.section { padding: 6rem 0; }
.section.alt { background: var(--bg-card); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-teal);
    margin-bottom: 0.85rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.7px;
    color: var(--text-primary);
}
.section-title.center { text-align: center; }

.section-sub {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 3rem;
}
.section-sub.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ── Content prose ── */
.prose { max-width: 760px; }
.prose h2 {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    margin: 2.75rem 0 1.1rem;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.4rem;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 0.85rem;
    color: var(--text-primary);
}
.prose p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
}
.prose strong { color: var(--text-primary); font-weight: 600; }
.prose ul, .prose ol { margin: 0.75rem 0 1.5rem 0; padding-left: 1.5rem; }
.prose li {
    color: var(--text-secondary);
    margin-bottom: 0.65rem;
    line-height: 1.7;
}
.prose code {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: var(--bg-subtle);
    padding: 0.2em 0.45em;
    border-radius: 5px;
    color: var(--accent-teal);
    border: 1px solid var(--border-light);
}
.prose blockquote {
    border-left: 3px solid var(--accent-primary);
    padding: 0.5rem 0 0.5rem 1.5rem;
    margin: 1.75rem 0;
    color: var(--text-secondary);
    font-style: italic;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Two column ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.grid-2-center { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-glow);
    color: inherit;
}
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card:hover::before { opacity: 1; }

.card-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-teal);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}
.card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}
.card-desc {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}
.card-link {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.2s ease;
}
.card:hover .card-link { gap: 0.6rem; color: var(--accent-secondary); }

/* Premium GitHub Link Cards - Custom Gradient, No AI Slop */
.card.card-github {
    background: linear-gradient(135deg, rgba(20, 26, 46, 0.6) 0%, rgba(10, 13, 23, 0.8) 100%);
    border: 1px solid rgba(168, 85, 247, 0.2);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card.card-github::before {
    background: linear-gradient(90deg, #A855F7, #6366F1);
}

.card.card-github:hover {
    border-color: rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, rgba(26, 34, 60, 0.7) 0%, rgba(14, 18, 32, 0.9) 100%);
    box-shadow: 0 15px 35px rgba(168, 85, 247, 0.05), 0 0 25px rgba(99, 102, 241, 0.08);
}

.card.card-github .card-eyebrow {
    color: #A855F7;
}

.card.card-github .card-link {
    color: #A855F7;
}

.card.card-github:hover .card-link {
    color: #6366F1;
}

.tech-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    color: var(--text-secondary);
}

/* ── Project Spec Block ── */
.spec-grid {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    margin: 2.25rem 0;
}
.spec-key {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding-top: 0.15rem;
}
.spec-val {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.spec-val a { font-weight: 600; color: var(--accent-teal); }
.spec-val a:hover { color: var(--accent-primary); }
.spec-val .pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    margin: 0.15rem 0.3rem 0.15rem 0;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ── Timeline ── */
.timeline { position: relative; max-width: 760px; margin-top: 1rem; }
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--border-light);
    left: 22px;
    top: 0;
}
.timeline-item { position: relative; padding-left: 68px; margin-bottom: 3.5rem; }
.timeline-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-primary);
    left: 16px;
    top: 8px;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    z-index: 10;
}
.timeline-item.alt .timeline-dot {
    background: var(--accent-teal);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.2);
}
.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}
.timeline-item.alt .timeline-date { color: var(--accent-teal); }
.timeline-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}
.timeline-company {
    font-size: 0.93rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0.25rem 0 1.25rem;
}
.timeline-body {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
}
.timeline-body p { color: var(--text-secondary); font-size: 0.96rem; line-height: 1.7; margin-bottom: 1.25rem; }
.timeline-body ul { list-style: none; padding: 0; }
.timeline-body li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.timeline-body li::before {
    content: "↳";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-size: 0.85rem;
}
.timeline-item.alt .timeline-body li::before { color: var(--accent-teal); }

/* ── Callout ── */
.callout {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    color: #fff;
}
.callout::before {
    content: '"';
    position: absolute;
    top: -0.5rem;
    left: 1.5rem;
    font-family: Georgia, serif;
    font-size: 7rem;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    pointer-events: none;
}
.callout-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-teal);
    margin-bottom: 1.25rem;
}
.callout-text { font-size: 1.05rem; line-height: 1.75; position: relative; z-index: 1; color: var(--text-primary); }

/* ── Architecture diagram (CSS-only) ── */
.arch-flow {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    margin: 1.75rem 0;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--text-secondary);
    overflow-x: auto;
}
.arch-flow .step { color: var(--text-primary); font-weight: 600; }
.arch-flow .branch { padding-left: 1.5rem; color: var(--text-muted); }
.arch-flow .arrow { color: var(--accent-primary); }

/* ── Feature list (styled checks) ── */
.feature-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.feature-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 2rem;
    color: var(--text-secondary);
    font-size: 0.96rem;
    line-height: 1.6;
}
.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 20px;
    height: 20px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── Pivot section ── */
.pivot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.pivot-col {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: border-color 0.2s ease;
}
.pivot-col:hover {
    border-color: var(--border-medium);
}
.pivot-col h4 {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-teal);
    margin-bottom: 0.95rem;
}
.pivot-col h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.95rem;
    letter-spacing: -0.2px;
}
.pivot-col p { color: var(--text-secondary); font-size: 0.94rem; line-height: 1.65; }

/* ── Interactive Widget Styles ── */

/* Chatbot Float */
.chatbot-widget-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    font-family: var(--font-main);
}
.chatbot-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.chatbot-toggle:hover {
    transform: scale(1.08);
}
.chatbot-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}
.chatbot-toggle.open svg {
    transform: rotate(90deg);
}
.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.chatbot-window.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}
.chatbot-header {
    background: var(--bg-subtle);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.chatbot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    color: #fff;
}
.chatbot-title-area h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.chatbot-status {
    font-size: 0.7rem;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.chatbot-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
}
.chatbot-messages {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(8, 11, 16, 0.4);
}
.chatbot-msg {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.45;
}
.chatbot-msg.system {
    align-self: flex-start;
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-light);
}
.chatbot-msg.user {
    align-self: flex-end;
    background: var(--accent-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chatbot-msg-citation {
    display: inline-block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-teal);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}
.chatbot-msg.user .chatbot-msg-citation {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    border-color: transparent;
}
.chatbot-suggestions {
    padding: 0.75rem 1.25rem;
    background: rgba(8, 11, 16, 0.2);
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.chatbot-suggest-btn {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.chatbot-suggest-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.05);
}
.chatbot-input-area {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
    display: flex;
    gap: 0.6rem;
}
.chatbot-input {
    flex-grow: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.5rem 0.85rem;
    font-size: 0.88rem;
    outline: none;
}
.chatbot-input:focus {
    border-color: var(--accent-primary);
}
.chatbot-send {
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.chatbot-send:hover {
    background: var(--accent-primary-dark);
}
.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chatbot lead capture (Formspree) */
.chatbot-lead {
    border: 1px solid rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.06);
}
.chatbot-lead-prompt {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.chatbot-lead-row {
    display: flex;
    gap: 0.5rem;
}
.chatbot-lead-input {
    flex-grow: 1;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
    outline: none;
}
.chatbot-lead-input:focus {
    border-color: var(--accent-teal);
}
.chatbot-lead-send {
    background: var(--accent-teal);
    color: #02121a;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.chatbot-lead-send:hover {
    opacity: 0.88;
}
.chatbot-lead-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.chatbot-lead-status {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-height: 1em;
}

/* JD-Analyzer Widget */
.widget-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: var(--shadow-md);
}
.widget-panel::after {
    content: 'INTERACTIVE PLATFORM DEMO';
    position: absolute;
    top: 0.85rem; right: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--accent-teal);
    letter-spacing: 0.1em;
    opacity: 0.8;
}
.widget-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}
.widget-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.jd-presets {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.jd-preset-btn {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 0.95rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}
.jd-preset-btn.active, .jd-preset-btn:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}
.jd-input-box {
    width: 100%;
    height: 110px;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.85rem;
    font-family: var(--font-main);
    font-size: 0.88rem;
    resize: none;
    outline: none;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}
.jd-input-box:focus {
    border-color: var(--accent-primary);
}
.analyzer-btn {
    width: 100%;
}
.jd-result-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 1.5rem;
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.score-circle-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-teal) var(--percentage, 0%), var(--border-light) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.score-circle::after {
    content: '';
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-subtle);
    position: absolute;
}
.score-value {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}
.score-label h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}
.score-label p {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.match-evidences {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.evidence-item {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}
.evidence-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.evidence-desc {
    color: var(--text-secondary);
    font-size: 0.83rem;
}
.gaps-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-rose);
    margin-bottom: 0.5rem;
}
.gaps-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Diagnostic / Problem solver */
.problem-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 600px) {
    .problem-selector { grid-template-columns: 1fr; }
}
.problem-btn {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s ease;
}
.problem-btn:hover, .problem-btn.active {
    border-color: var(--accent-teal);
    background: rgba(6, 182, 212, 0.05);
    color: var(--text-primary);
}
.diagnostic-result {
    margin-top: 1.25rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.diag-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}
.diag-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}
.diag-badge {
    padding: 0.25rem 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
}
.diag-badge.yes { background: rgba(16, 185, 129, 0.1); color: var(--accent-green); border: 1px solid rgba(16, 185, 129, 0.2); }
.diag-badge.maybe { background: rgba(245, 158, 11, 0.1); color: var(--accent-amber); border: 1px solid rgba(245, 158, 11, 0.2); }
.diag-badge.no { background: rgba(244, 63, 94, 0.1); color: var(--accent-rose); border: 1px solid rgba(244, 63, 94, 0.2); }

.diag-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Playable DAG Demo */
.dag-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
@media (max-width: 880px) {
    .dag-layout { grid-template-columns: 1fr; }
}
.dag-flowchart {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}
.dag-node {
    width: 170px;
    padding: 0.6rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s ease;
}
.dag-node.active {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
    transform: scale(1.03);
}
.dag-node.completed {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    background: rgba(6, 182, 212, 0.02);
}
.dag-arrow-down {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1;
}
.dag-arrow-down.active {
    color: var(--accent-primary);
    animation: flowPulse 1.2s infinite;
}
.dag-fork-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}
@keyframes flowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}
.dag-console {
    background: #05070a;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
}
.console-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}
.console-dots {
    display: flex;
    gap: 4px;
}
.console-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.console-dot.red { background: #f43f5e; }
.console-dot.yellow { background: #eab308; }
.console-dot.green { background: #10b981; }

.console-body {
    height: 220px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.console-line {
    color: var(--text-secondary);
    line-height: 1.4;
    word-break: break-all;
}
.console-line.system { color: var(--accent-teal); }
.console-line.agent { color: var(--accent-primary); }
.console-line.success { color: var(--accent-green); }

/* SVG Clickable Explorer */
.explorer-svg-container {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}
.explorer-svg-container svg {
    max-width: 100%;
    height: auto;
}
.svg-clickable-node {
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.svg-clickable-node:hover {
    opacity: 0.85;
}
.svg-detail-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 600px;
    max-width: 90%;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1100;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.svg-detail-overlay.open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: all;
}
.svg-detail-overlay-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.svg-detail-overlay-backdrop.open {
    opacity: 1;
    pointer-events: all;
}
.overlay-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.overlay-close-btn:hover { color: var(--text-primary); }

.code-display-panel {
    background: #05070a;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #a855f7;
    margin-top: 1rem;
    overflow-x: auto;
    white-space: pre;
    max-height: 250px;
}

/* SSO Handoff Timeline Visualizer */
.sso-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    margin: 1.5rem 0;
    padding-left: 24px;
}
.sso-steps::before {
    content: '';
    position: absolute;
    left: 7px; top: 8px; bottom: 8px;
    width: 2px;
    background: var(--border-light);
}
.sso-step-item {
    position: relative;
    padding-left: 1.25rem;
}
.sso-step-bullet {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    left: -23px;
    top: 5px;
    z-index: 2;
    transition: all 0.3s ease;
}
.sso-step-item.active .sso-step-bullet {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 0 8px var(--accent-primary);
}
.sso-step-item.completed .sso-step-bullet {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
}
.sso-step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.sso-step-desc {
    font-size: 0.83rem;
    color: var(--text-secondary);
}

.sso-token-graphic {
    background: #05070a;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    margin-top: 1.25rem;
    position: relative;
    overflow: hidden;
}
.sso-device {
    padding: 0.5rem 0.85rem;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-primary);
    z-index: 2;
}
.sso-token-streamer {
    flex-grow: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 1rem;
    position: relative;
}
.sso-flying-token {
    position: absolute;
    width: 45px;
    height: 18px;
    background: var(--accent-primary);
    color: #fff;
    font-size: 0.55rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    top: -8px;
    left: 0;
    opacity: 0;
    transform: translateX(-50%);
}
.sso-flying-token.animating {
    animation: tokenFly 1.5s linear infinite;
}
@keyframes tokenFly {
    0% { left: 0%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* AI Pre-Screen Interview Simulator */
.interview-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 2rem 0;
}
.interview-questions-grid {
    padding: 1.25rem;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.interview-question-chip {
    padding: 0.6rem 0.85rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}
.interview-question-chip:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.03);
}
.interview-question-chip.asked {
    border-color: var(--border-light);
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.01);
    cursor: default;
}
.interview-chat-body {
    height: 300px;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(8, 11, 16, 0.2);
}
.interview-chat-line {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.5;
}
.interview-chat-line.system-shubham {
    align-self: flex-start;
    background: var(--bg-subtle);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-light);
}
.interview-chat-line.user-recruiter {
    align-self: flex-end;
    background: var(--accent-teal);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.report-card-container {
    padding: 1.5rem;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-light);
    display: none;
    animation: fadeIn 0.4s ease forwards;
}
.report-card {
    border: 1px dashed var(--accent-teal);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    background: var(--bg-card);
}
.report-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed var(--border-light);
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}
.report-card-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-teal);
}
.report-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.report-card-item {
    font-size: 0.83rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}
.report-card-item strong { color: var(--text-primary); }

/* ── Footer ── */
footer.site-footer {
    padding: 4rem 0 3rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-card);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-brand .logo { font-size: 1.4rem; }
.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    margin-top: 1rem;
    max-width: 380px;
    line-height: 1.65;
}
.footer-col h5 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: var(--accent-teal);
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}
.footer-col a:hover {
    color: var(--accent-teal);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── Page section spacers ── */
.spacer-sm { height: 1.5rem; }
.spacer { height: 3rem; }
.spacer-lg { height: 5rem; }

/* ── Responsive ── */
@media (max-width: 968px) {
    .grid-2, .grid-2-center, .grid-3, .pivot-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .hero h1 { font-size: 2.6rem; }
    .page-hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.85rem; }
    .spec-grid { grid-template-columns: 1fr; gap: 0.4rem 0; padding: 1.5rem; }
    .spec-grid .spec-key { margin-top: 1rem; }
    .spec-grid .spec-key:first-child { margin-top: 0; }
    .hero-stats { gap: 1.5rem; }
}

/* ── Theme Button & Hamburger Navigation ── */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 101;
}

.theme-btn {
    display: none !important; /* Hidden as requested */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    padding: 0;
    line-height: 1;
}
[data-theme="light"] .theme-btn {
    background: rgba(15, 23, 42, 0.04);
}
.theme-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: scale(1.08);
    box-shadow: var(--shadow-hover);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 102;
}
.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}
.hamburger-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-wrapper nav {
        margin: 0;
    }
    .hamburger-btn {
        display: flex;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-light);
        padding: 2.5rem 2rem;
        gap: 1.5rem;
        z-index: 99;
        box-shadow: var(--shadow-lg);
        align-items: center;
        text-align: center;
    }
    .nav-links.open {
        display: flex !important;
    }
    .nav-links li {
        width: 100%;
        display: block !important;
    }
    .nav-links li:not(:last-child) {
        display: block !important;
    }
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.1rem;
        width: 100%;
        color: var(--text-secondary);
    }
    .nav-links a:hover, .nav-links a.active {
        color: var(--text-primary);
    }
    .nav-links .nav-cta {
        margin-top: 0.5rem;
        display: inline-block;
        width: auto;
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2rem; letter-spacing: -1px; }
    .page-hero h1 { font-size: 1.75rem; }
    .cta-group { flex-direction: column; }
    .cta-group .btn { width: 100%; }
    .container, .container-narrow { padding: 0 1.25rem; }
    .timeline-item { padding-left: 56px; }
    .timeline::before { left: 16px; }
    .timeline-dot { left: 10px; }
    .chatbot-window {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ── Contact Info Card (LinkedIn-style popup) ──────────────────── */
.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(3, 7, 18, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.contact-overlay.open {
    opacity: 1;
    visibility: visible;
}
.contact-card-modal {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(160deg, rgba(22, 27, 45, 0.97) 0%, rgba(11, 14, 26, 0.97) 100%);
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(99, 102, 241, 0.08) inset;
    overflow: hidden;
    transform: translateY(14px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-overlay.open .contact-card-modal {
    transform: none;
}
.contact-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.08) 100%);
}
.contact-card-head h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.contact-card-head .contact-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.contact-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.contact-close:hover {
    background: rgba(244, 63, 94, 0.12);
    color: var(--accent-rose);
}
.contact-card-body {
    padding: 0.5rem 0;
    max-height: 70vh;
    overflow-y: auto;
}
.contact-row {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    padding: 0.85rem 1.5rem;
    text-decoration: none;
    transition: background 0.18s ease;
}
.contact-row:hover {
    background: rgba(99, 102, 241, 0.08);
}
.contact-row-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--accent-primary);
}
.contact-row-icon svg { width: 18px; height: 18px; }
.contact-row-text { min-width: 0; }
.contact-row-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}
.contact-row-value {
    font-size: 0.92rem;
    color: var(--accent-teal);
    word-break: break-all;
}
.contact-row:hover .contact-row-value { color: #67e8f9; }

/* ── Glassmorphic content blocks + arrow lists (reusable) ──────── */
.flow-stack {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin: 2.5rem 0;
}
.glass-block {
    position: relative;
    background: linear-gradient(160deg, rgba(22, 27, 45, 0.55) 0%, rgba(11, 14, 26, 0.45) 100%);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 1.85rem 2rem 1.85rem 2.15rem;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}
.glass-block:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}
.glass-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-primary) 0%, var(--accent-teal) 100%);
}
.glass-block-head {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    margin-bottom: 1.35rem;
}
.glass-block-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 1.15rem;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
}
.glass-block-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.25;
}
.glass-block-meta {
    font-size: 0.78rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-top: 0.2rem;
}
.glass-block-lead {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 1.25rem;
}
.glass-block-foot {
    margin: 1.3rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Nested role sub-cards (e.g. employers inside a block) */
.subcard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.subcard {
    background: rgba(8, 11, 18, 0.5);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
}
.subcard-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.98rem;
}
.subcard-role {
    font-size: 0.82rem;
    color: var(--accent-teal);
    margin: 0.15rem 0 0.9rem;
    font-family: 'JetBrains Mono', monospace;
}

/* Arrow bullet list */
.arrow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.arrow-list li {
    position: relative;
    padding-left: 1.65rem;
    color: var(--text-secondary);
    line-height: 1.65;
}
.arrow-list li::before {
    content: '\25B9';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-teal);
    font-weight: 700;
}
.arrow-list strong { color: var(--text-primary); font-weight: 600; }
.arrow-list a { color: var(--accent-primary); }

/* Tag chips for grouping (Live / Beta / Open Source) */
.flow-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    margin-bottom: 0.6rem;
}
.flow-tag.live  { color: var(--accent-green); background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }
.flow-tag.beta  { color: var(--accent-amber); background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.flow-tag.oss   { color: var(--accent-teal);  background: rgba(6, 182, 212, 0.1);  border: 1px solid rgba(6, 182, 212, 0.3); }

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