@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #050505;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --secondary-color: #8b5cf6;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
    --nav-height: 80px;
    --nav-bg: rgba(5, 5, 5, 0.8);
    --card-hover-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    --transition-speed: 0.4s;
}

.light-theme {
    --bg-color: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --nav-bg: rgba(248, 250, 252, 0.8);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Background gradient nodes */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
}

a {
    text-decoration: none;
    transition: 0.3s ease;
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
}

.btn.primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 14px var(--accent-glow);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn.secondary {
    background: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.nav-logo span {
    color: var(--accent-color);
}

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

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

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

.nav-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background: var(--text-main);
}


/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 span {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Sections */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: auto;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: var(--card-hover-shadow);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Improved Agent Card Styles */
.agent-card {
    border: 1px solid var(--glass-border);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.agent-header {
    margin-bottom: 12px;
}

.agent-role {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: -8px;
}

.agent-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--text-main);
}

.agent-details {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.detail-section ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.detail-section li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    position: relative;
    padding-left: 15px;
}

.detail-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
}

.ideal {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ideal p {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 0;
}

.agent-card .btn {
    width: 100%;
}


/* Columns */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--glass-bg);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--accent-color);
    border: 1px solid var(--glass-border);
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 20px;
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-nav a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--text-main);
}

/* ── Light-theme fixes for hardcoded dark values ── */
.light-theme .agent-details {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.07);
}
.light-theme .ideal {
    border-top-color: rgba(15, 23, 42, 0.07);
}

/* ── Register / Candidati page ── */

.register-hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
}

.register-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.register-headline {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Command block */
.command-wrapper {
    max-width: 620px;
    margin: 0 auto;
}

.command-block {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 18px 22px;
    backdrop-filter: blur(12px);
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
    position: relative;
}

.light-theme .command-block {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.command-prompt {
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 700;
    user-select: none;
    flex-shrink: 0;
}

.command-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-main);
    background: none;
    letter-spacing: 0.01em;
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
    border-color: rgba(34, 197, 94, 0.3);
}

.light-theme .copy-btn.copied {
    color: #15803d;
}

.command-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
    text-align: center;
}

.inline-code {
    font-family: 'SFMono-Regular', 'Consolas', monospace;
    font-size: 0.9em;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    padding: 2px 7px;
    border-radius: 5px;
}

/* Why cards */
.why-section {
    padding-top: 20px;
    padding-bottom: 80px;
}

.why-card {
    gap: 16px;
}

.why-icon {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 4px;
}

/* CDP box */
.cdp-section {
    padding-top: 0;
    padding-bottom: 80px;
}

.cdp-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 52px;
    backdrop-filter: blur(12px);
}

.light-theme .cdp-box {
    background: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.cdp-box-header {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--glass-border);
}

.cdp-label-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cdp-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cdp-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 28px;
    line-height: 1.7;
}

.cdp-desc strong {
    color: var(--text-main);
}

.caps-heading {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 600;
}

.caps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.cap-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px;
    background: rgba(59, 130, 246, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.08);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.cap-item:hover {
    border-color: rgba(59, 130, 246, 0.25);
}

.light-theme .cap-item {
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.06);
}

.light-theme .cap-item:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.cap-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--accent-color);
    opacity: 0.5;
    flex-shrink: 0;
    width: 24px;
    line-height: 1.4;
}

.cap-content strong {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.cap-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Developer CTA */
.dev-cta-section {
    padding-top: 0;
    padding-bottom: 120px;
}

.dev-cta {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 24px;
    padding: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.light-theme .dev-cta {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-color: rgba(59, 130, 246, 0.15);
}

.dev-cta-text {
    flex: 1;
}

.dev-cta-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.dev-cta-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.dev-cta-command {
    flex-shrink: 0;
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.dev-cta-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 12px;
    font-style: italic;
}

@media (max-width: 768px) {
    .cdp-box {
        padding: 28px 20px;
    }

    .dev-cta {
        flex-direction: column;
        padding: 32px 20px;
        text-align: center;
    }

    .dev-cta-command {
        max-width: 100%;
    }

    .command-text {
        font-size: 0.85rem;
    }
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--nav-height);
        flex-direction: column;
        background: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        left: 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero h1 {
        font-size: 3rem;
    }
}