/* 
 * Poly-Agents Protocol (PAP) - Future Prime Aesthetic
 * Theme: Dark, Neon, Glassmorphism, Futuristic
 */

:root {
    /* Base Colors - Deep Space Palette */
    --bg-page: #020617;
    /* Dark Slate 950 */
    --bg-surface: rgba(15, 23, 42, 0.6);
    /* Slate 900 Glass */
    --bg-card: rgba(30, 41, 59, 0.4);
    /* Slate 800 Glass */

    /* Borders */
    --border-subtle: rgba(148, 163, 184, 0.1);
    --border-strong: rgba(148, 163, 184, 0.2);
    --border-glow: rgba(56, 189, 248, 0.3);

    /* Typography Colors */
    --text-primary: #f8fafc;
    /* Slate 50 */
    --text-secondary: #94a3b8;
    /* Slate 400 */
    --text-muted: #64748b;
    /* Slate 500 */
    --text-on-brand: #ffffff;

    /* Brand Colors - Electric/Neon */
    --brand-primary: #0ea5e9;
    /* Sky 500 (Cyan-ish) */
    --brand-hover: #0284c7;
    /* Sky 600 */
    --brand-glow: rgba(14, 165, 233, 0.5);

    /* Functional Colors - Neon Variants */
    --success: #10b981;
    /* Emerald 500 */
    --success-glow: rgba(16, 185, 129, 0.4);

    --warning: #f59e0b;
    /* Amber 500 */
    --warning-glow: rgba(245, 158, 11, 0.4);

    --danger: #ef4444;
    /* Red 500 */
    --danger-glow: rgba(239, 68, 68, 0.4);

    /* Dimensions & Effects */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(14, 165, 233, 0.15);
    --glass-blur: blur(12px);

    /* Fonts */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(14, 165, 233, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Scanline Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.15;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 20px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.logo span {
    color: var(--brand-primary);
    text-shadow: 0 0 10px var(--brand-glow);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--brand-primary);
    text-shadow: 0 0 8px var(--brand-glow);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: white;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tabs */
.demo-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 99px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

.demo-tab {
    padding: 12px 24px;
    border-radius: 99px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-sans);
}

.demo-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.demo-tab.active {
    background: rgba(14, 165, 233, 0.15);
    color: var(--brand-primary);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.2);
}

/* Panels */
.demo-panel {
    display: none;
    animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.demo-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(5px);
    }

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

/* Cards & Glass Containers */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-glow);
    border-color: var(--border-glow);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.card-body {
    padding: 32px;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
}

.btn-primary:hover::before {
    transform: translateX(100%);
}

.btn-primary:active {
    transform: translateY(0);
}

/* ===== DEMO COMPONENTS ===== */

/* Network Waterfall */
.waterfall-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.waterfall-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: var(--glass-blur);
}

.waterfall-panel.traditional {
    border-top: 2px solid var(--danger);
}

.waterfall-panel.cap {
    border-top: 2px solid var(--success);
}

.waterfall-header {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.waterfall-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.waterfall-body {
    padding: 20px;
    min-height: 320px;
    background: rgba(0, 0, 0, 0.2);
}

.waterfall-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.8rem;
}

.waterfall-row:last-child {
    border-bottom: none;
}

.waterfall-domain {
    width: 140px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.waterfall-bar-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
    /* Center trace line */
}

.waterfall-bar {
    height: 100%;
    border-radius: 99px;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    padding-left: 0;
    font-size: 0;
    /* Hide text inside thin bars for cleaner look */
    position: relative;
}

.waterfall-bar::after {
    /* Glow effect at tip */
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    bottom: -2px;
    width: 4px;
    background: inherit;
    filter: blur(4px);
    opacity: 0.8;
}

.waterfall-bar.entropy {
    background: var(--danger);
    box-shadow: 0 0 10px var(--danger-glow);
}

.waterfall-bar.signal {
    background: var(--success);
    box-shadow: 0 0 10px var(--success-glow);
}

.waterfall-bar.fcs {
    background: var(--brand-primary);
    box-shadow: 0 0 10px var(--brand-glow);
}

.waterfall-time {
    width: 60px;
    text-align: right;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.waterfall-stats {
    display: flex;
    gap: 24px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-subtle);
    justify-content: space-around;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    font-family: var(--font-mono);
}

.stat-value.danger {
    color: var(--danger);
    text-shadow: 0 0 10px var(--danger-glow);
}

.stat-value.success {
    color: var(--success);
    text-shadow: 0 0 10px var(--success-glow);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Data Flow */
.data-flow-demo {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: var(--glass-blur);
    position: relative;
    overflow: hidden;
}

/* Grid background for flow demo */
.data-flow-demo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    pointer-events: none;
}

.flow-diagram {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 60px 0;
    z-index: 1;
}

.flow-node {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--border-subtle);
    position: relative;
    z-index: 2;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.flow-node.active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 25px var(--brand-glow), inset 0 0 15px rgba(14, 165, 233, 0.2);
    transform: scale(1.1);
    background: rgba(15, 23, 42, 0.9);
}

.flow-node i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    transition: color 0.3s;
}

.flow-node.active i {
    color: var(--brand-primary);
    text-shadow: 0 0 10px var(--brand-primary);
}

.flow-node span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.flow-path {
    position: absolute;
    top: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle base path */
    z-index: 1;
}

.flow-path::after {
    /* Animated light packet */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
    box-shadow: 0 0 10px var(--brand-primary);
    transition: width 0.4s ease-out;
}



.flow-path.path-1 {
    left: 100px;
    width: calc(25% - 50px);
}

.flow-path.path-2 {
    left: calc(25% + 50px);
    width: calc(25% - 50px);
}

.flow-path.path-3 {
    left: calc(50% + 50px);
    width: calc(25% - 50px);
}

.flow-path.path-4 {
    left: calc(75% + 50px);
    width: calc(25% - 100px);
}

.third-party-block {
    position: absolute;
    top: -30px;
    right: 20%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blocked-tracker {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--danger);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.1);
    backdrop-filter: blur(4px);
}

.blocked-tracker.visible {
    opacity: 1;
    transform: translateX(0);
}

.header-stream {
    background: #020617;
    /* Deep black for terminal */
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    height: 220px;
    overflow-y: auto;
    margin-top: 24px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 10;
}

.header-stream::-webkit-scrollbar {
    width: 8px;
}

.header-stream::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 4px;
}

.header-stream::-webkit-scrollbar-track {
    background: transparent;
}

.header-line {
    padding: 6px 0;
    opacity: 0;
    animation: streamIn 0.3s forwards;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
}

@keyframes streamIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

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

.header-line .timestamp {
    color: var(--text-muted);
}

.header-line .direction {
    color: var(--warning);
    font-weight: bold;
}

.header-line .key {
    color: #a78bfa;
    /* Violet 400 */
}

.header-line .value {
    color: var(--success);
    text-shadow: 0 0 5px rgba(16, 185, 129, 0.3);
}

/* Trust Chain */
.trust-chain {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 24px;
    position: relative;
}

.chain-connection {
    position: absolute;
    top: 50%;
    height: 2px;
    background: var(--border-strong);
    z-index: 0;
    transition: background 0.5s;
    box-shadow: 0 0 0 transparent;
}

.chain-connection.verified {
    background: var(--success);
    box-shadow: 0 0 15px var(--success);
}

.chain-connection.c1 {
    left: 80px;
    width: calc(25% - 60px);
}

.chain-connection.c2 {
    left: calc(25% + 20px);
    width: calc(25% - 40px);
}

.chain-connection.c3 {
    left: calc(50% + 20px);
    width: calc(25% - 40px);
}

.chain-connection.c4 {
    left: calc(75% + 20px);
    width: calc(25% - 100px);
}

.chain-node {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: all 0.5s;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.chain-node.verified {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 20px var(--success-glow), inset 0 0 10px rgba(16, 185, 129, 0.2);
}

.chain-node i {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.5s;
}

.chain-node.verified i {
    color: var(--success);
    text-shadow: 0 0 10px var(--success);
}

.chain-node span {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.chain-node .check-mark {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 10px var(--success);
    z-index: 3;
}

.chain-node.verified .check-mark {
    opacity: 1;
    transform: scale(1);
}

/* Signature Reveal */
.signature-reveal {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-top: 30px;
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(5px);
}

.signature-reveal h4 {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.signature-parts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.sig-part {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
    opacity: 0.3;
    transition: all 0.5s;
    transform: translateY(5px);
}

.sig-part.revealed {
    opacity: 1;
    border-color: var(--brand-primary);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
    background: rgba(14, 165, 233, 0.05);
    transform: translateY(0);
}

.sig-part .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sig-part .value {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--brand-primary);
    word-break: break-all;
    text-shadow: 0 0 5px var(--brand-glow);
}

/* Intent Matcher */
.intent-viz {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 30px;
    align-items: start;
}

.intent-panel {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.intent-option {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.intent-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.intent-option.selected {
    background: rgba(14, 165, 233, 0.1);
    border-left-color: var(--brand-primary);
}

.intent-name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brand-primary);
    margin-bottom: 4px;
}

.intent-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.intent-option.selected .intent-desc {
    color: var(--text-primary);
}

.match-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 60px;
    color: var(--text-muted);
}

.match-arrow i {
    font-size: 2rem;
    color: var(--brand-primary);
    text-shadow: 0 0 15px var(--brand-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.match-score-display {
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--brand-primary);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--brand-glow);
}

.ad-result {
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.ad-result.visible {
    opacity: 1;
    transform: translateX(0);
}

.ad-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1rem;
}

.ad-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ad-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    color: var(--success);
}

.score-bar {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-subtle);
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 80px;
    background: rgba(0, 0, 0, 0.4);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--brand-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .waterfall-comparison {
        grid-template-columns: 1fr;
    }

    .intent-viz {
        grid-template-columns: 1fr;
    }

    .match-arrow {
        transform: rotate(90deg);
        padding: 20px 0;
    }

    .signature-parts {
        grid-template-columns: 1fr;
    }
}