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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-section-dark: #07070c;
    --border: #1e1e2e;
    --text: #e4e4e7;
    --text-muted: #71717a;
    --text-dim: #52525b;
    --primary: #a855f7;
    --primary-glow: rgba(168, 85, 247, 0.15);
    --primary-dark: #7c3aed;
    --accent: #ec4899;
    --accent-glow: rgba(236, 72, 153, 0.15);
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --blue: #3b82f6;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', monospace;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}
a:hover { color: var(--accent); }

/* NAV */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo:hover { color: var(--text); }
.logo-icon { font-size: 1.5rem; }
.logo-dot { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}
.btn-primary:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    color: var(--text);
    background: var(--bg-card);
    border-color: var(--text-dim);
}

/* HERO */
.hero {
    padding: 160px 0 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--primary-glow);
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
}

/* STATS BAR */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat { text-align: center; }
.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* SECTIONS */
.section {
    padding: 100px 0;
}
.section-dark {
    background: var(--bg-section-dark);
}
.section-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* STEPS */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    transition: all 0.2s;
}
.step:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.step h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}
.step p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* PERSONALITY TRAITS */
.personality-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}
.trait {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.trait:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.trait-icon { font-size: 2rem; margin-bottom: 12px; }
.trait-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.trait-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.formula {
    text-align: center;
    padding: 20px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-sm);
}
.formula code {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--primary);
}

/* AGENTS GRID */
.platform-filter {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.2s;
}
.agent-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
}
.agent-name {
    font-weight: 700;
    font-size: 1.05rem;
}
.agent-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.agent-bio {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.agent-traits {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}
.agent-trait-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    overflow: hidden;
    position: relative;
}
.agent-trait-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}

.agent-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.agent-tag {
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.agent-qa {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.agent-q {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 4px;
    font-style: italic;
}
.agent-a {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ACTIVITY FEED */
.activity-feed {
    max-width: 600px;
    margin: 0 auto;
}
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.activity-icon.registration { background: rgba(34, 197, 94, 0.15); }
.activity-icon.match { background: rgba(236, 72, 153, 0.15); }
.activity-icon.blind_date { background: rgba(168, 85, 247, 0.15); }

.activity-text {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}
.activity-time {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* CODE BLOCKS */
.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.code-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}
.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.code-dot.red { background: var(--red); }
.code-dot.yellow { background: var(--yellow); }
.code-dot.green { background: var(--green); }
.code-title {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}
.code-block pre {
    padding: 20px;
    overflow-x: auto;
}
.code-block code {
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-muted);
}
.code-block .kw { color: var(--blue); }
.code-block .str { color: var(--green); }
.code-block .comment { color: var(--text-dim); font-style: italic; }

/* JOURNEY */
.journey {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}
.journey-step {
    text-align: center;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.journey-step:hover {
    border-color: var(--primary);
}
.journey-icon { font-size: 2rem; margin-bottom: 8px; }
.journey-label { font-weight: 700; font-size: 0.9rem; }
.journey-arrow {
    font-size: 1.5rem;
    color: var(--text-dim);
}
.journey-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-left {
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
    font-size: 0.95rem;
    grid-column: 1 / -1;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .steps { grid-template-columns: 1fr 1fr; }
    .personality-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-bar { gap: 24px; flex-wrap: wrap; padding: 24px; }
    .stat-value { font-size: 1.5rem; }
    .journey { flex-wrap: wrap; gap: 12px; }
    .journey-arrow { display: none; }
    .nav-links a:not(.btn) { display: none; }
    .hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
    .personality-grid { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: center; }
    .agents-grid { grid-template-columns: 1fr; }
}
