/* 
    STYLE GUIDE: ElevenLabs AI Interface 
    Palette: Minimalist High-Contrast (Pure White, Deep Black, Soft Greys)
    Animation: Cubic-Bezier Organic Motion
    Reference: Marcus Vane Structure + ElevenLabs Visuals
*/

:root {
    /* Palette */
    --color-bg: #FFFFFF;
    --color-text-main: #000000;
    --color-text-muted: #666666;
    --color-accent: #000000;
    --color-border: #E5E5E5;
    --color-card-bg: #F9F9F9;
    --color-code-bg: #F5F5F5;
    
    /* Border Beam Specific (Dark Mode Fragment) */
    --beam-bg: #0A0A0A;
    --beam-card: #1A1A1A;
    --beam-text: #EDEDED;
    --beam-accent: linear-gradient(90deg, #ff00cc, #3333ff, #00ffcc);

    /* Spacing & Radius */
    --radius-lg: 24px;
    --radius-md: 16px;
    --container-width: 1200px;

    /* Animations */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.6s var(--ease-out-expo);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

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

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.8);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Buttons */
.btn-pill {
    background: var(--color-accent);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-pill:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.btn-ghost {
    color: var(--color-text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

.btn-ghost:hover {
    color: var(--color-text-muted);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.hero-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.col-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.media-ph {
    width: 100%;
    transition: var(--transition-smooth);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Creative Section - Asymmetric Grid */
.creative-section {
    padding: 100px 0;
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-bottom: 6rem;
}

.card-ui {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.card-header {
    padding: 12px;
    background: #F1F1F1;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid var(--color-border);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-body {
    padding: 2rem;
    position: relative;
    min-height: 300px;
}

.gradient-blob {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0,100,255,0.1), transparent);
    filter: blur(40px);
    z-index: 0;
}

.placeholder-text {
    position: relative;
    z-index: 1;
    font-family: monospace;
    color: var(--color-text-muted);
}

.player-ui {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--color-bg);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 40%;
    height: 100%;
    background: var(--color-accent);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--color-text-main);
    transform: translateY(-5px);
}

.feature-card svg {
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Agents Section (Border Beam Integration) */
.agents-section {
    padding: 120px 0;
    background: #FCFCFC;
}

.agents-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.agents-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
}

/* Border Beam Implementation */
.border-beam-container {
    position: relative;
    padding: 3px; /* Beam thickness */
    border-radius: var(--radius-lg);
    background: var(--beam-bg);
    overflow: hidden;
}

.border-beam-card {
    position: relative;
    background: var(--beam-card);
    border-radius: calc(var(--radius-lg) - 3px);
    height: 100%;
    min-height: 400px;
    z-index: 1;
}

.beam-light {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--beam-accent), transparent 30%);
    animation: rotateBeam 4s linear infinite;
    z-index: 0;
}

@keyframes rotateBeam {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chat-interface {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 16px;
    font-size: 0.9rem;
    color: var(--beam-text);
}

.msg-ai {
    background: #2A2A2A;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.msg-user {
    background: #3A3A3A;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-input-wrapper {
    margin-top: 2rem;
    display: flex;
    gap: 10px;
    background: #222;
    padding: 8px;
    border-radius: 100px;
    border: 1px solid #333;
}

.chat-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0 1rem;
    outline: none;
}

.btn-send {
    background: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Analytics Card */
.analytics-card .card-ui {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-placeholder {
    margin: 2rem 0;
    height: 150px;
    background: #FBFBFB;
    border-radius: 12px;
}

.line-chart {
    width: 100%;
    height: 100%;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .val {
    font-size: 1.5rem;
    font-weight: 700;
}

.stat .lbl {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* API Section */
.api-section {
    padding: 120px 0;
}

.api-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.api-text {
    max-width: 500px;
}

.code-block {
    background: var(--color-code-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.code-header {
    background: #EEE;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-header .dot {
    width: 6px;
    height: 6px;
    background: #CCC;
}

.file-name {
    margin-left: auto;
    font-size: 0.75rem;
    font-family: monospace;
    color: #888;
}

pre {
    padding: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.keyword { color: #C678DD; }
.string { color: #98C379; }

/* Impact Section */
.impact-section {
    padding: 120px 0;
}

.center-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.impact-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.impact-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.9);
    transition: var(--transition-smooth);
}

.impact-card:hover img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.05);
}

.impact-card.large {
    grid-column: span 2;
}

.impact-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.partner-logo {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Footer Section */
.footer-section {
    padding: 100px 0 40px;
}

.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 120px;
}

.promo-card {
    height: 400px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    color: white;
}

.promo-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.safety-section {
    margin-top: 100px;
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.safety-card {
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.wireframe-icon {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    color: var(--color-text-muted);
}

/* Voice Chat FAB */
.voice-chat-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--color-accent);
    color: white;
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    z-index: 2000;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

.voice-chat-fab:hover {
    transform: scale(1.05);
    background: #222;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

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

/* Responsiveness */
@media (max-width: 992px) {
    .hero-grid, .asymmetric-grid, .agents-grid, .api-layout, .promo-grid {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .impact-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .impact-card.large {
        grid-column: auto;
    }
    .safety-grid {
        grid-template-columns: 1fr;
    }
    .agents-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .agents-header .section-desc {
        margin: 0 auto;
    }
}