/* ═══════════════════════════════════════════════════
   IKANISA — Agent Detail Page v3
   Dashboard-grade visual widgets, glassmorphism,
   animated infographics, zero "letter" look
   ═══════════════════════════════════════════════════ */

:root {
    --bg: #0a1628;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.09);
    --bg-glass: rgba(15, 29, 50, 0.7);
    --navy: #0f1d32;
    --navy-light: #162540;
    --teal: #2dd4bf;
    --teal-dim: rgba(45, 212, 191, 0.12);
    --gold: #f59e0b;
    --blue: #3b82f6;
    --pink: #ec4899;
    --purple: #a78bfa;
    --green: #34d399;
    --red: #f87171;
    --text: #e8ecf1;
    --muted: #8494ab;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    --glow-teal: 0 0 30px rgba(45, 212, 191, 0.15);
    --glow-blue: 0 0 30px rgba(59, 130, 246, 0.15);
    --radius: 16px;
    --radius-lg: 24px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden
}

/* ── Navigation ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 22, 40, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition)
}

.nav.scrolled {
    background: rgba(10, 22, 40, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3)
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text)
}

.nav-brand img {
    height: 28px;
    width: auto
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 500;
    transition: color var(--transition)
}

.nav-links a:hover {
    color: var(--teal)
}

/* ── Container ── */
.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 1.5rem
}

/* ── Hero Section ── */
.agent-hero {
    padding: 8rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden
}

.agent-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.06) 0%, transparent 70%);
    pointer-events: none
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.agent-hero .container {
    animation: heroFade .8s ease-out
}

.hero-avatar {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(45, 212, 191, 0.3);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4), var(--glow-teal);
    transition: var(--transition)
}

.hero-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(45, 212, 191, 0.25)
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero-badge {
    display: inline-block;
    padding: .3rem .85rem;
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    margin-bottom: .75rem
}

.badge-rw {
    background: rgba(0, 163, 96, 0.15);
    color: #34d399;
    border: 1px solid rgba(0, 163, 96, 0.3)
}

.badge-mt {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25)
}

.badge-global {
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25)
}

.hero-name {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: .25rem;
    background: linear-gradient(135deg, var(--text), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-role {
    font-size: 1.15rem;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 1.5rem
}

.hero-desc {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto 2rem
}

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

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 2rem;
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none
}

.btn-teal {
    background: linear-gradient(135deg, var(--teal), #14b8a6);
    color: #0a1628;
    box-shadow: 0 4px 20px rgba(45, 212, 191, 0.25)
}

.btn-teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45, 212, 191, 0.4)
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid var(--border);
    backdrop-filter: blur(8px)
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    background: rgba(45, 212, 191, 0.05)
}

/* ── Sections ── */
.section {
    padding: 4rem 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease, transform .8s ease
}

.section.visible {
    opacity: 1;
    transform: translateY(0)
}

.section-title {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--teal);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem
}

.section-title::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--teal);
    border-radius: 2px
}

.section-heading {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 1.5rem
}

.section-sub {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 2rem;
    max-width: 600px
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 0
}

/* ═══════════════════════════════════════
   PROBLEMS SOLVED — Visual Widget Cards
   ═══════════════════════════════════════ */
.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem
}

.problem-card {
    padding: 1.75rem;
    border-radius: var(--radius);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--teal), var(--blue));
    opacity: 0;
    transition: opacity var(--transition)
}

.problem-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.04) 0%, transparent 70%);
    pointer-events: none;
    transition: opacity var(--transition);
    opacity: 0
}

.problem-card:hover {
    background: rgba(15, 29, 50, 0.85);
    border-color: rgba(45, 212, 191, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--glow-teal)
}

.problem-card:hover::before {
    opacity: 1
}

.problem-card:hover::after {
    opacity: 1
}

.problem-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.12), rgba(59, 130, 246, 0.08));
    border: 1px solid rgba(45, 212, 191, 0.15)
}

.problem-card:nth-child(2) .problem-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(167, 139, 250, 0.08));
    border-color: rgba(59, 130, 246, 0.15)
}

.problem-card:nth-child(3) .problem-icon {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(236, 72, 153, 0.08));
    border-color: rgba(245, 158, 11, 0.15)
}

.problem-card:nth-child(4) .problem-icon {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(167, 139, 250, 0.08));
    border-color: rgba(236, 72, 153, 0.15)
}

.problem-card:nth-child(5) .problem-icon {
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.12), rgba(45, 212, 191, 0.08));
    border-color: rgba(167, 139, 250, 0.15)
}

.problem-card:nth-child(6) .problem-icon {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12), rgba(59, 130, 246, 0.08));
    border-color: rgba(52, 211, 153, 0.15)
}

.problem-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--text)
}

.problem-card p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.65
}

/* ═══════════════════════════════════════
   STATS — Glowing Metric Widgets
   ═══════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem
}

.stat-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    opacity: .4;
    transition: opacity var(--transition)
}

.stat-card:hover {
    border-color: rgba(45, 212, 191, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), var(--glow-teal)
}

.stat-card:hover::after {
    opacity: 1
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .5rem;
    line-height: 1.1
}

.stat-label {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.4
}

/* Animated counter effect */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.section.visible .stat-val {
    animation: countUp .6s ease-out both
}

.section.visible .stat-card:nth-child(2) .stat-val {
    animation-delay: .1s
}

.section.visible .stat-card:nth-child(3) .stat-val {
    animation-delay: .2s
}

.section.visible .stat-card:nth-child(4) .stat-val {
    animation-delay: .3s
}

/* ═══════════════════════════════════════
   PROCESS TIMELINE — Visual Flow Chart
   ═══════════════════════════════════════ */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--blue), var(--purple), var(--gold));
    border-radius: 2px;
    opacity: .3
}

.process-step {
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative
}

.process-step:hover {
    border-color: rgba(45, 212, 191, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3)
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: .85rem;
    font-weight: 800;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1
}

.process-step:nth-child(1) .step-number {
    background: linear-gradient(135deg, var(--teal), #14b8a6);
    color: #0a1628;
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3)
}

.process-step:nth-child(2) .step-number {
    background: linear-gradient(135deg, var(--blue), #2563eb);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3)
}

.process-step:nth-child(3) .step-number {
    background: linear-gradient(135deg, var(--purple), #7c3aed);
    color: #fff;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.3)
}

.process-step:nth-child(4) .step-number {
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #0a1628;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3)
}

.process-step h4 {
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: .4rem;
    color: var(--text)
}

.process-step p {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.55
}

/* ═══════════════════════════════════════
   CAPABILITIES — Icon Dashboard Grid
   ═══════════════════════════════════════ */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem
}

.cap-card {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition)
}

.cap-card:hover {
    background: rgba(15, 29, 50, 0.85);
    border-color: rgba(45, 212, 191, 0.15);
    transform: translateX(4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2)
}

.cap-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(59, 130, 246, 0.06));
    border: 1px solid rgba(45, 212, 191, 0.1)
}

.cap-text {
    flex: 1
}

.cap-text strong {
    display: block;
    margin-bottom: .15rem;
    color: var(--text);
    font-size: .9rem
}

.cap-text span {
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.45;
    display: block
}

/* ═══════════════════════════════════════
   VALUE PROPOSITION — Gradient Showcase
   ═══════════════════════════════════════ */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem
}

.value-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px)
}

.value-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: border-color var(--transition);
    z-index: 1;
    pointer-events: none
}

.value-card:hover {
    transform: translateY(-6px)
}

.value-card:hover::before {
    border-color: rgba(45, 212, 191, 0.3)
}

.value-card:nth-child(1) {
    background: linear-gradient(160deg, rgba(45, 212, 191, 0.12) 0%, rgba(45, 212, 191, 0.02) 100%)
}

.value-card:nth-child(1):hover {
    box-shadow: 0 20px 50px rgba(45, 212, 191, 0.12)
}

.value-card:nth-child(2) {
    background: linear-gradient(160deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.02) 100%)
}

.value-card:nth-child(2):hover {
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.12)
}

.value-card:nth-child(3) {
    background: linear-gradient(160deg, rgba(167, 139, 250, 0.12) 0%, rgba(167, 139, 250, 0.02) 100%)
}

.value-card:nth-child(3):hover {
    box-shadow: 0 20px 50px rgba(167, 139, 250, 0.12)
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3))
}

.value-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.value-card p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.6
}

/* ═══════════════════════════════════════
   USE CASES — Scenario Cards
   ═══════════════════════════════════════ */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem
}

.usecase-card {
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden
}

.usecase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--blue));
    opacity: 0;
    transition: opacity var(--transition)
}

.usecase-card:hover {
    border-color: rgba(45, 212, 191, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3)
}

.usecase-card:hover::before {
    opacity: 1
}

.usecase-label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #0a1628;
    padding: .25rem .65rem;
    border-radius: 6px;
    background: var(--teal);
    margin-bottom: .75rem
}

.usecase-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem
}

.usecase-card p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.65
}

/* ═══════════════════════════════════════
   KNOWLEDGE SOURCES — Source Cards
   ═══════════════════════════════════════ */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem
}

.source-item {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: all var(--transition)
}

.source-item:hover {
    border-color: rgba(45, 212, 191, 0.15);
    background: rgba(15, 29, 50, 0.85);
    transform: translateY(-2px)
}

.source-item .src-icon {
    font-size: 1.3rem;
    margin-bottom: .5rem
}

.source-item h4 {
    font-size: .88rem;
    font-weight: 600;
    margin-bottom: .25rem
}

.source-item p {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.5
}

/* ═══════════════════════════════════════
   WORKFLOW STEPS (legacy compat)
   ═══════════════════════════════════════ */
.workflow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    counter-reset: step
}

.workflow-step {
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    position: relative;
    transition: all var(--transition);
    counter-increment: step;
    overflow: hidden
}

.workflow-step::before {
    content: counter(step);
    position: absolute;
    top: .75rem;
    right: 1rem;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(59, 130, 246, 0.08));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1
}

.workflow-step:hover {
    border-color: rgba(45, 212, 191, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3)
}

.workflow-step h4 {
    font-size: .95rem;
    font-weight: 700;
    margin-bottom: .5rem;
    color: var(--teal)
}

.workflow-step p {
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.6
}

/* ═══════════════════════════════════════
   SLACK QR — Chat on Slack Card
   ═══════════════════════════════════════ */
.slack-qr-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.slack-qr-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(97, 31, 105, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.slack-qr-card:hover {
    border-color: rgba(97, 31, 105, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(97, 31, 105, 0.1);
}

.slack-qr-card img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    image-rendering: pixelated;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.slack-qr-card .slack-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.8rem;
    border-radius: 100px;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, #611f69, #4a154b);
    box-shadow: 0 4px 20px rgba(97, 31, 105, 0.3);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.slack-qr-card .slack-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(97, 31, 105, 0.45);
}

.slack-qr-card .slack-btn svg {
    flex-shrink: 0;
}

.slack-qr-label {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .75rem;
    display: block;
}

/* ═══════════════════════════════════════
   CTA BOTTOM — Ready to Get Started Card
   ═══════════════════════════════════════ */
.cta-bottom-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.cta-bottom-card::before {
    content: '';
    position: absolute;
    top: -60%;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-bottom-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--blue), var(--purple));
    opacity: .5;
}

.cta-bottom-card:hover {
    border-color: rgba(45, 212, 191, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3), var(--glow-teal);
}

.cta-bottom-card .hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin: 0 auto 1rem;
}

.cta-bottom-card .section-heading {
    margin-bottom: .75rem;
}

.cta-bottom-card .section-sub {
    margin: 0 auto 1.5rem;
    max-width: 420px;
}

/* ── Footer ── */
.footer {
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(10, 22, 40, 0.5)
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: .5rem
}

.footer-brand img {
    height: 20px
}

.footer-brand span {
    font-weight: 800;
    font-size: 1rem
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: .75rem
}

.footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: .75rem;
    transition: color var(--transition)
}

.footer-links a:hover {
    color: var(--teal)
}

.footer-copy {
    font-size: .7rem;
    color: var(--muted)
}

/* ═══════════════════════════════════════
   DECORATIVE — Background Particles
   ═══════════════════════════════════════ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(45, 212, 191, 0.03) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%), radial-gradient(ellipse at 60% 80%, rgba(167, 139, 250, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0
}

.container,
.agent-hero,
.footer {
    position: relative;
    z-index: 1
}

/* ═══════════════════════════════════════
   ANIMATIONS — Staggered card reveals
   ═══════════════════════════════════════ */
@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.section.visible .problem-card,
.section.visible .stat-card,
.section.visible .cap-card,
.section.visible .value-card,
.section.visible .usecase-card,
.section.visible .process-step,
.section.visible .source-item {
    animation: cardReveal .5s ease-out both
}

.section.visible .problem-card:nth-child(1),
.section.visible .stat-card:nth-child(1),
.section.visible .cap-card:nth-child(1),
.section.visible .value-card:nth-child(1),
.section.visible .usecase-card:nth-child(1),
.section.visible .process-step:nth-child(1) {
    animation-delay: .05s
}

.section.visible .problem-card:nth-child(2),
.section.visible .stat-card:nth-child(2),
.section.visible .cap-card:nth-child(2),
.section.visible .value-card:nth-child(2),
.section.visible .usecase-card:nth-child(2),
.section.visible .process-step:nth-child(2) {
    animation-delay: .1s
}

.section.visible .problem-card:nth-child(3),
.section.visible .stat-card:nth-child(3),
.section.visible .cap-card:nth-child(3),
.section.visible .value-card:nth-child(3),
.section.visible .usecase-card:nth-child(3),
.section.visible .process-step:nth-child(3) {
    animation-delay: .15s
}

.section.visible .problem-card:nth-child(4),
.section.visible .stat-card:nth-child(4),
.section.visible .cap-card:nth-child(4),
.section.visible .process-step:nth-child(4) {
    animation-delay: .2s
}

.section.visible .problem-card:nth-child(5),
.section.visible .cap-card:nth-child(5) {
    animation-delay: .25s
}

.section.visible .problem-card:nth-child(6),
.section.visible .cap-card:nth-child(6) {
    animation-delay: .3s
}

.section.visible .cap-card:nth-child(7) {
    animation-delay: .35s
}

.section.visible .cap-card:nth-child(8) {
    animation-delay: .4s
}

.section.visible .cap-card:nth-child(9) {
    animation-delay: .45s
}

.section.visible .cap-card:nth-child(10) {
    animation-delay: .5s
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media(max-width:900px) {
    .process-timeline {
        grid-template-columns: repeat(2, 1fr)
    }

    .process-timeline::before {
        display: none
    }

    .value-grid {
        grid-template-columns: 1fr 1fr
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:640px) {
    .nav {
        padding: .75rem 1rem
    }

    .container {
        padding: 0 1rem
    }

    .agent-hero {
        padding-top: 6rem
    }

    .hero-name {
        font-size: 2.2rem
    }

    .process-timeline,
    .stats-grid,
    .value-grid {
        grid-template-columns: 1fr
    }

    .cap-grid,
    .problems-grid,
    .usecase-grid {
        grid-template-columns: 1fr
    }

    .workflow {
        grid-template-columns: 1fr
    }

    .sources-grid {
        grid-template-columns: 1fr
    }
}

@media(prefers-reduced-motion:reduce) {
    .section {
        opacity: 1;
        transform: none;
        transition: none
    }

    .agent-hero .container {
        animation: none
    }

    .section.visible .problem-card,
    .section.visible .stat-card,
    .section.visible .cap-card,
    .section.visible .value-card,
    .section.visible .usecase-card,
    .section.visible .process-step,
    .section.visible .source-item {
        animation: none
    }
}