/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
    background: #0a0a0a;
    color: #b8b8b8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: #6366f1;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    z-index: 10000;
    font-size: 14px;
    text-decoration: none;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 12px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    color: #ffffff;
    line-height: 1.2;
    font-weight: 600;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; border-radius: 2px; }

::selection { background: rgba(99, 102, 241, 0.3); color: #fff; }

/* ===== UTILITIES ===== */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (min-width: 640px) {
    .container { padding: 0 48px; }
}
@media (min-width: 1200px) {
    .container { padding: 0 24px; }
}

.accent { color: #6366f1; }

.prose {
    max-width: 660px;
    line-height: 1.7;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION SPACING ===== */
.section {
    padding: 120px 0;
}
@media (max-width: 640px) {
    .section { padding: 80px 0; }
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}
.nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}

.nav-inner {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
@media (min-width: 640px) {
    .nav-inner { padding: 0 48px; }
}
@media (min-width: 1200px) {
    .nav-inner { padding: 0 24px; }
}

.nav-logo {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.nav-logo span { color: #6366f1; }

.nav-links {
    display: none;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    transition: color 0.2s;
    white-space: nowrap;
}
.nav-links a:hover { color: #fff; }

.nav-cta {
    display: none;
    padding: 8px 18px;
    background: #6366f1;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-cta:hover { background: #5558e6; }
.nav-cta:active { transform: scale(0.97); }

@media (min-width: 1024px) {
    .nav-links { display: flex; }
    .nav-cta { display: inline-flex; }
    .nav-hamburger { display: none !important; }
}

/* Hamburger */
.nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ccc;
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu a {
    font-size: 20px;
    font-weight: 500;
    color: #ccc;
    transition: color 0.2s;
}
.mobile-menu a:hover { color: #fff; }

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero h1 {
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}
.hero-body {
    max-width: 640px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.7;
    color: #b0b0b0;
}
.hero-body p { margin-bottom: 20px; }
.hero-body p:last-child { margin-bottom: 0; }

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Product Showcase */
.product-showcase {
    padding: 0 24px 64px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.showcase-track {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
    aspect-ratio: 16/10;
    background: #0a0a0a;
}
.showcase-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}
.showcase-slide.active {
    opacity: 1;
}
.showcase-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.showcase-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}
.showcase-dot {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    position: relative;
}
.showcase-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.showcase-dot.active::before {
    background: var(--dot-color, #6366F1);
    box-shadow: 0 0 8px var(--dot-color, #6366F1);
}
.showcase-dot-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    transition: color 0.3s ease;
}
.showcase-dot.active .showcase-dot-label {
    color: rgba(255,255,255,0.7);
}
/* Auto-cycle progress bar on active dot */
.showcase-dot.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    background: var(--dot-color, #6366F1);
    animation: showcase-progress 5s linear;
    width: 100%;
}
@keyframes showcase-progress {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: #6366f1;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn-primary:hover { background: #5558e6; }
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: transparent;
    color: #ccc;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.1s;
    text-decoration: none;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.3); color: #fff; }
.btn-secondary:active { transform: scale(0.97); }

/* ===== INSIGHT SECTION ===== */
.insight-body {
    max-width: 660px;
}
.insight-body h2 {
    margin-bottom: 40px;
}
.insight-body p {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 1.7;
}
.insight-pullquote {
    border-left: 3px solid #6366f1;
    padding-left: 24px;
    margin: 32px 0;
    font-size: 19px;
    color: #d0d0d0;
    line-height: 1.6;
}

/* ===== SYSTEM SECTION ===== */
.system-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 48px 0 40px;
}
@media (min-width: 768px) {
    .system-grid { grid-template-columns: repeat(3, 1fr); }
}

.system-card {
    background: #111;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 32px 28px;
}
.system-card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 12px;
}
.system-card h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
}
.system-card p {
    font-size: 15px;
    line-height: 1.65;
    color: #999;
}

.system-summary {
    max-width: 660px;
    font-size: 17px;
    line-height: 1.7;
    color: #999;
}

/* ===== SPEED SECTION ===== */
.speed-section {
    text-align: center;
    background: linear-gradient(180deg, rgba(99,102,241,0.02) 0%, transparent 50%, rgba(99,102,241,0.02) 100%);
    padding: 140px 0;
}
@media (max-width: 640px) {
    .speed-section { padding: 100px 0; }
}
.speed-section h2 {
    margin-bottom: 56px;
}
.speed-lines {
    max-width: 700px;
    margin: 0 auto 48px;
}
.speed-line {
    font-size: 18px;
    line-height: 1.5;
    color: #d0d0d0;
    margin-bottom: 24px;
}
.speed-line em {
    font-style: normal;
    color: #fff;
    font-weight: 600;
}
@media (min-width: 640px) {
    .speed-line { font-size: 20px; margin-bottom: 28px; }
}
.speed-kicker {
    font-size: 15px;
    color: #666;
    font-style: italic;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
}

/* ===== WHAT CHANGES TABLE ===== */
.changes-section h2 {
    text-align: center;
    margin-bottom: 48px;
}

/* Desktop table */
.changes-table {
    width: 100%;
    border-collapse: collapse;
    display: none;
}
@media (min-width: 768px) {
    .changes-table { display: table; }
    .changes-cards { display: none !important; }
}
.changes-table th,
.changes-table td {
    padding: 20px 24px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #1a1a1a;
    font-size: 15px;
    line-height: 1.6;
}
.changes-table th {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #555;
    border-bottom: 1px solid #222;
    padding-bottom: 14px;
}
.changes-table th.col-accent {
    color: #6366f1;
}
.changes-table td.row-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    width: 120px;
}
.changes-table td.col-today {
    color: #666;
    max-width: 300px;
}
.changes-table td.col-agent {
    color: #c8c8c8;
    max-width: 400px;
}
.changes-table .time-badge {
    display: inline-block;
    margin-top: 6px;
    font-weight: 600;
    color: #6366f1;
    font-size: 13px;
}

/* Mobile cards */
.changes-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
@media (min-width: 768px) {
    .changes-cards { display: none; }
}
.changes-card {
    background: #111;
    border: 1px solid #1c1c1c;
    border-radius: 10px;
    padding: 24px;
}
.changes-card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6366f1;
    margin-bottom: 16px;
}
.changes-card-row {
    margin-bottom: 14px;
}
.changes-card-row:last-child { margin-bottom: 0; }
.changes-card-row-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    margin-bottom: 4px;
}
.changes-card-row.today { color: #666; font-size: 14px; }
.changes-card-row.agent { color: #c8c8c8; font-size: 14px; }
.changes-card .time-badge {
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    color: #6366f1;
    font-size: 13px;
}

/* ===== METHOD ENGINE ===== */
.method-section h2 {
    margin-bottom: 24px;
}
.method-sub {
    max-width: 660px;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: #999;
}
.method-compound {
    max-width: 660px;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 56px;
    color: #777;
}

/* Pipeline */
.pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 56px 0;
    flex-wrap: wrap;
}
.pipeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.pipeline-node.active {
    opacity: 1;
    transform: scale(1);
}
.pipeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dot-color, #666);
    box-shadow: 0 0 8px var(--dot-color, #666);
}
.pipeline-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #777;
    text-transform: uppercase;
}
.pipeline-connector {
    width: 32px;
    height: 1px;
    background: #333;
    margin: 0 4px;
    margin-bottom: 20px;
}
@media (max-width: 640px) {
    .pipeline {
        flex-direction: column;
        gap: 4px;
    }
    .pipeline-connector {
        width: 1px;
        height: 20px;
        margin: 0;
        margin-bottom: 0;
    }
}

/* Agent cards */
.agent-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 56px;
}
.agent-card {
    background: #111;
    border: 1px solid #1c1c1c;
    border-radius: 10px;
    padding: 28px 28px 24px;
}
.agent-card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.agent-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-weight: 600;
}
.agent-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    margin-bottom: 12px;
}
.agent-card-output {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #777;
    padding-left: 2px;
}
.agent-card-output::before {
    content: '\2192\00a0';
    color: #555;
}

/* ===== EXPERT NETWORK ===== */
.expert-section {
    max-width: 660px;
}
.expert-section h2 {
    margin-bottom: 32px;
}
.expert-section p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6366f1;
    font-size: 15px;
    font-weight: 500;
    transition: gap 0.2s;
}
.link-arrow:hover { gap: 10px; }

/* ===== FOUNDER ===== */
.founder-section {
    background: #0e0e0e;
    border-top: 1px solid #151515;
    border-bottom: 1px solid #151515;
}
.founder-content {
    max-width: 700px;
}
.founder-content h2 {
    margin-bottom: 36px;
}
.founder-quote {
    border-left: 3px solid #6366f1;
    padding-left: 28px;
    margin-bottom: 28px;
}
.founder-quote p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-style: italic;
    line-height: 1.6;
    color: #d0d0d0;
}
@media (max-width: 640px) {
    .founder-quote p { font-size: 19px; }
}
.founder-manifesto {
    margin-bottom: 32px;
}
.founder-manifesto p {
    font-size: 16px;
    line-height: 1.75;
    color: #b0b0b0;
    margin-bottom: 18px;
}
.founder-manifesto p:last-child {
    color: #d0d0d0;
    font-weight: 500;
    margin-bottom: 0;
}
.founder-sig {
    margin-bottom: 28px;
    padding-top: 20px;
    border-top: 1px solid #1e1e1e;
}
.founder-name {
    font-weight: 600;
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}
.founder-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 4px;
}
.founder-cred {
    font-size: 14px;
    color: #666;
    margin-bottom: 32px;
}
.founder-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #777;
    margin-bottom: 36px;
}
.founder-stats .dot {
    color: #444;
}
.founder-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ===== AUDIENCES ===== */
.audiences-section h2 {
    text-align: center;
    margin-bottom: 48px;
}
.audiences-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .audiences-grid { grid-template-columns: repeat(3, 1fr); }
}
.audience-card {
    background: #111;
    border: 1px solid #1c1c1c;
    border-radius: 12px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
}
.audience-card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    margin-bottom: 14px;
}
.audience-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.audience-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #999;
    margin-bottom: 20px;
    flex: 1;
}
.audience-card .link-arrow {
    font-size: 14px;
}

/* ===== CONTACT ===== */
.contact-section {
    text-align: center;
}
.contact-section h2 {
    margin-bottom: 20px;
}
.contact-body {
    max-width: 600px;
    margin: 0 auto 20px;
    font-size: 16px;
    line-height: 1.7;
    color: #999;
}
.contact-email {
    display: inline-block;
    margin-bottom: 40px;
    color: #6366f1;
    font-size: 15px;
    font-weight: 500;
    transition: opacity 0.2s;
}
.contact-email:hover { opacity: 0.8; }

.contact-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
    outline: none;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #555;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #6366f1;
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    background: #6366f1;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}
.contact-form .btn-submit:hover { background: #5558e6; }
.contact-form .btn-submit:active { transform: scale(0.98); }
.contact-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.contact-form .btn-submit.success {
    background: #10b981;
}
.contact-form .btn-submit.error {
    background: #ef4444;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 40px;
    text-align: center;
    font-size: 13px;
    color: #444;
}
.footer span { color: #555; }

/* ===== NOISE GRAIN OVERLAY ===== */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===== SCROLL SNAP ===== */
@media (min-width: 1024px) {
    html {
        scroll-snap-type: y proximity;
    }
    .section {
        scroll-snap-align: start;
    }
}

/* ===== STAGGERED REVEALS ===== */
.fade-in-stagger {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in-stagger.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CARD HOVER GLOW ===== */
.system-card,
.agent-card,
.audience-card,
.changes-card {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.system-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.06);
}
.audience-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.06);
}
.changes-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.06);
}
/* Agent card glow uses each agent's color via inline style */
.agent-card:hover {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
}

/* ===== PIPELINE ENERGY PULSE ===== */
.pipeline-connector {
    position: relative;
    overflow: hidden;
}
.pipeline-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.6), transparent);
    animation: pipelinePulse 3s ease-in-out infinite;
}
@keyframes pipelinePulse {
    0% { left: -40%; }
    100% { left: 140%; }
}
/* Vertical pipeline pulse for mobile */
@media (max-width: 640px) {
    .pipeline-connector::after {
        width: 100%;
        height: 40%;
        top: -40%;
        left: 0;
        background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.6), transparent);
        animation: pipelinePulseV 3s ease-in-out infinite;
    }
    @keyframes pipelinePulseV {
        0% { top: -40%; }
        100% { top: 140%; }
    }
}

/* ===== ANIMATED PIPELINE FLOW ===== */
.pipeline-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 28px auto 0;
    padding: 16px 12px;
    max-width: 900px;
    overflow-x: auto;
}
.pf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0;
    animation: pfStepIn 0.4s ease-out forwards;
    flex-shrink: 0;
}
.pf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot-color);
    box-shadow: 0 0 0 0 var(--dot-color);
    animation: pfPulse 3s ease-in-out infinite;
}
.pf-agent {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}
.pf-output {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    white-space: nowrap;
    padding: 0 4px;
    opacity: 0;
    animation: pfFadeIn 0.5s ease-out forwards;
    flex-shrink: 0;
}
.pf-connector {
    width: 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.pf-connector::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: pfConnPulse 3s ease-in-out infinite;
}

/* Staggered entrance — each step appears in sequence */
.pf-step-1 { animation-delay: 0.2s; }
.pf-output-1 { animation-delay: 0.6s; }
.pf-step-2 { animation-delay: 1.0s; }
.pf-output-2 { animation-delay: 1.4s; }
.pf-step-3 { animation-delay: 1.8s; }
.pf-output-3 { animation-delay: 2.2s; }
.pf-step-4 { animation-delay: 2.6s; }
.pf-output-4 { animation-delay: 3.0s; }
.pf-step-5 { animation-delay: 3.4s; }
.pf-output-5 { animation-delay: 3.8s; }
.pf-step-6 { animation-delay: 4.2s; }
.pf-output-6 { animation-delay: 4.6s; }
.pf-step-7 { animation-delay: 5.0s; }

.pf-conn-1 { animation-delay: 0.8s; }
.pf-conn-2 { animation-delay: 1.6s; }
.pf-conn-3 { animation-delay: 2.4s; }
.pf-conn-4 { animation-delay: 3.2s; }
.pf-conn-5 { animation-delay: 4.0s; }
.pf-conn-6 { animation-delay: 4.8s; }

/* Connector also fades in */
.pf-connector {
    opacity: 0;
    animation: pfFadeIn 0.3s ease-out forwards;
}

@keyframes pfStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pfFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pfPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--dot-color); }
    50% { box-shadow: 0 0 12px 3px var(--dot-color); }
}
@keyframes pfConnPulse {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .pipeline-flow {
        flex-direction: column;
        gap: 0;
        padding: 24px 0;
    }
    .pf-connector {
        width: 1px;
        height: 16px;
    }
    .pf-connector::after {
        width: 100%;
        height: 100%;
        top: -100%;
        left: 0;
        background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: pfConnPulseV 3s ease-in-out infinite;
    }
    .pf-output {
        font-size: 10px;
        padding: 2px 0;
    }
}
@keyframes pfConnPulseV {
    0% { top: -100%; }
    50% { top: 100%; }
    100% { top: 100%; }
}
