/* ===== ZooGent Page Styles ===== */

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

* {
    box-sizing: border-box;
}

/* ===== ZooGent Hero ===== */
.zg-hero {
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
}

.zg-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.zg-hero-gradient {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 70%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(232, 93, 69, 0.08) 0%, transparent 70%);
}

.zg-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
}

.zg-hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: center;
}

.zg-hero-text {
    animation: fade-up 0.8s var(--ease-out) 0.1s both;
}

.zg-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.zg-hero .highlight {
    color: var(--color-accent);
}

.zg-hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin-bottom: var(--space-xl);
}

.zg-hero-buttons {
    display: flex;
    gap: var(--space-sm);
    animation: fade-up 0.8s var(--ease-out) 0.2s both;
}

.btn-github {
    background: var(--color-bg-pure);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-github:hover {
    background: var(--color-bg-subtle);
    border-color: var(--color-border-hover);
    transform: translateY(-2px);
}

.btn-github svg {
    width: 20px;
    height: 20px;
}

/* Hero visual */
.zg-hero-visual {
    animation: fade-up 0.8s var(--ease-out) 0.2s both;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zg-orchestrator-diagram {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
}

/* Pulse animation for orchestrator */
@keyframes zg-pulse {
    0%, 100% { opacity: 0.15; r: 60; }
    50% { opacity: 0; r: 80; }
}

@keyframes zg-signal {
    0% { stroke-dashoffset: 20; }
    100% { stroke-dashoffset: 0; }
}

/* ===== What Section ===== */
.zg-what {
    background: var(--color-bg-pure);
}

.zg-what-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.zg-what-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zg-architecture-diagram {
    width: 100%;
    max-width: 440px;
}

.zg-what h2 {
    margin-bottom: var(--space-md);
}

.zg-what .lead {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
}

.zg-principles {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.zg-principle {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    transition: background 0.2s;
}

.zg-principle:hover {
    background: var(--color-bg);
}

.zg-principle-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.zg-principle-icon svg {
    width: 14px;
    height: 14px;
    color: white;
}

/* ===== Channels Section ===== */
.zg-channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.zg-channel-card {
    background: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all 0.3s var(--ease-out);
    position: relative;
}

.zg-channel-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.zg-channel-number {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.zg-channel-icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-md);
    background: var(--color-accent-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zg-channel-icon svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent);
}

.zg-channel-card h3 {
    font-size: 1.0625rem;
    margin-bottom: var(--space-xs);
}

.zg-channel-card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
}

.zg-channel-meta {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

/* ===== Use Cases Section ===== */
.zg-cases {
    background: var(--color-bg-pure);
}

.zg-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.zg-case-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    transition: all 0.3s var(--ease-out);
}

.zg-case-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
    transform: translateY(-4px);
}

.zg-case-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.zg-case-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zg-case-icon svg {
    width: 28px;
    height: 28px;
}

.zg-case-header h3 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.zg-case-subtitle {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent);
}

.zg-case-card > p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.zg-case-agents {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.zg-agent-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: border-color 0.2s;
}

.zg-agent-tag:hover {
    border-color: var(--color-accent);
}

.zg-agent-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* ===== Open Source Section ===== */
.zg-oss {
    text-align: center;
}

.zg-oss-content {
    max-width: 640px;
    margin: 0 auto;
}

.zg-oss h2 {
    margin-bottom: var(--space-md);
}

.zg-oss .lead {
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
}

.zg-oss-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.zg-oss-tag {
    padding: 0.5rem 1rem;
    background: var(--color-bg-pure);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s var(--ease-out);
}

.zg-oss-tag:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .zg-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .zg-hero-text {
        max-width: 600px;
        margin: 0 auto;
    }

    .zg-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .zg-hero-buttons {
        justify-content: center;
    }

    .zg-hero-visual {
        max-width: 360px;
        margin: 0 auto;
    }

    .zg-what-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .zg-what-visual {
        order: -1;
        max-width: 360px;
        margin: 0 auto;
    }

    .zg-channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .zg-hero {
        padding: 120px 0 40px;
        min-height: auto;
    }

    .zg-hero h1 {
        font-size: 2rem;
    }

    .zg-hero-subtitle {
        font-size: 1rem;
    }

    .zg-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .zg-channels-grid {
        grid-template-columns: 1fr;
    }

    .zg-cases-grid {
        grid-template-columns: 1fr;
    }

    .zg-orchestrator-diagram {
        max-width: 280px;
    }
}
