/* ========================================
   THE INFINITE CONTENT PIPELINE
   Dark Mode / Cyberpunk Professional
   ======================================== */

/* Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --bg-card-hover: #1a1a25;

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --accent-glow: rgba(99, 102, 241, 0.3);

    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 14px;
}

.logo .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

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

.btn-nav {
    padding: 10px 20px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    color: white !important;
    font-weight: 600;
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge-viral {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--success);
    margin-bottom: 24px;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-sub strong {
    color: var(--text-primary);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: white;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--accent-glow);
}

.btn-primary.large {
    padding: 18px 36px;
    font-size: 16px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 16px 28px;
    background: transparent;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Terminal Visual */
.hero-visual {
    position: relative;
}

.terminal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px var(--accent-glow);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'SF Mono', Monaco, monospace;
}

.terminal-body {
    padding: 24px;
}

.terminal-body code {
    display: block;
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre;
    color: var(--text-secondary);
}

.code-keyword { color: #c792ea; }
.code-function { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-comment { color: #546e7a; }
.code-boolean { color: #ff9cac; }

/* ========================================
   AUTHORITY SECTION
   ======================================== */
.authority {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.authority-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.authority-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.authority-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.authority-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border-color: rgba(99, 102, 241, 0.3);
}

.authority-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.authority-icon svg {
    stroke: white;
}

.authority-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.authority-card .role {
    font-size: 13px;
    color: var(--accent-primary);
    margin-bottom: 12px;
}

.authority-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   PROBLEM / SOLUTION
   ======================================== */
.problem-solution {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.comparison-card {
    padding: 40px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
}

.comparison-card.problem {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, var(--bg-card) 100%);
    border-color: rgba(239, 68, 68, 0.2);
}

.comparison-card.solution {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-card) 100%);
    border-color: rgba(16, 185, 129, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 20px;
    font-weight: 700;
}

.card-icon.problem-icon {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.card-icon.solution-icon {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.card-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.comparison-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.comparison-card li {
    display: flex;
    gap: 16px;
}

.comparison-card .icon {
    font-size: 24px;
    flex-shrink: 0;
}

.comparison-card li strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.comparison-card li p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   SYSTEM / ARCHITECTURE
   ======================================== */
.system {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.tech-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
}

/* ========================================
   ANIMATED ARCHITECTURE DIAGRAM
   ======================================== */
.architecture-diagram {
    margin-bottom: 60px;
}

.diagram-container {
    position: relative;
    width: 100%;
    height: 600px;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* Partículas de fondo */
.particles-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particles-bg .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: floatParticle 15s infinite ease-in-out;
}

.particles-bg .particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particles-bg .particle:nth-child(2) { left: 20%; top: 80%; animation-delay: 2s; }
.particles-bg .particle:nth-child(3) { left: 40%; top: 40%; animation-delay: 4s; }
.particles-bg .particle:nth-child(4) { left: 60%; top: 70%; animation-delay: 6s; }
.particles-bg .particle:nth-child(5) { left: 80%; top: 30%; animation-delay: 8s; }
.particles-bg .particle:nth-child(6) { left: 90%; top: 60%; animation-delay: 10s; }
.particles-bg .particle:nth-child(7) { left: 30%; top: 10%; animation-delay: 12s; }
.particles-bg .particle:nth-child(8) { left: 70%; top: 90%; animation-delay: 14s; }

@keyframes floatParticle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(30px, -30px) scale(1.5); opacity: 0.6; }
    50% { transform: translate(-20px, 20px) scale(1); opacity: 0.3; }
    75% { transform: translate(10px, -10px) scale(1.2); opacity: 0.5; }
}

/* SVG Diagram */
.diagram-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-line {
    stroke-dasharray: 8 4;
    animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
    to { stroke-dashoffset: -24; }
}

.data-particle {
    filter: drop-shadow(0 0 6px currentColor);
}

/* Nodos del diagrama */
.diagram-nodes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.diagram-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.diagram-node:hover {
    transform: scale(1.1);
    z-index: 10;
}

.diagram-node:hover .node-glow {
    opacity: 1;
    transform: scale(1.3);
}

.diagram-node:hover .node-inner {
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px var(--accent-glow);
}

/* Posiciones de nodos */
.input-node { left: 5%; top: 50%; transform: translateY(-50%); }
.gemini-node { left: 22%; top: 50%; transform: translateY(-50%); }
.elevenlabs-node { left: 45%; top: 18%; transform: translateY(-50%); }
.runway-node { left: 45%; top: 82%; transform: translateY(-50%); }
.ffmpeg-node { left: 68%; top: 50%; transform: translateY(-50%); }
.output-node { left: 88%; top: 50%; transform: translateY(-50%); }

/* Node styling */
.node-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-hover);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    z-index: 2;
}

.node-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0.5;
    transition: var(--transition);
    z-index: 1;
}

.node-glow.success {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
}

.node-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    color: white;
}

.node-icon svg {
    width: 24px;
    height: 24px;
}

.node-icon.gemini {
    background: linear-gradient(135deg, #4285F4, #8b5cf6);
}

.node-icon.eleven {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    font-size: 20px;
    font-weight: 800;
}

.node-icon.runway {
    background: linear-gradient(135deg, #6366f1, #ec4899);
}

.node-icon.ffmpeg {
    background: linear-gradient(135deg, #007808, #00a010);
    font-size: 16px;
    font-weight: 800;
}

.node-icon.output {
    background: linear-gradient(135deg, #10b981, #059669);
}

.node-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.node-sublabel {
    font-size: 10px;
    color: var(--text-muted);
}

/* Node pulse animation */
.node-pulse {
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent-primary);
    border-radius: calc(var(--radius-lg) + 4px);
    opacity: 0;
    animation: nodePulse 2s infinite;
    z-index: 0;
}

.node-pulse.success {
    border-color: var(--success);
}

@keyframes nodePulse {
    0% { opacity: 0.8; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.4); }
}

/* Ring animation for Gemini */
.node-ring {
    position: absolute;
    inset: -30px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50%;
    animation: ringRotate 10s linear infinite;
}

.node-ring::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--accent-secondary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--accent-secondary);
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

/* Audio waves for ElevenLabs */
.audio-waves {
    position: absolute;
    bottom: -20px;
    display: flex;
    gap: 3px;
    align-items: flex-end;
}

.audio-waves span {
    width: 4px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: audioWave 1s ease-in-out infinite;
}

.audio-waves span:nth-child(1) { height: 8px; animation-delay: 0s; }
.audio-waves span:nth-child(2) { height: 16px; animation-delay: 0.1s; }
.audio-waves span:nth-child(3) { height: 12px; animation-delay: 0.2s; }
.audio-waves span:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.audio-waves span:nth-child(5) { height: 10px; animation-delay: 0.4s; }

@keyframes audioWave {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

/* Video frames for Runway */
.video-frames {
    position: absolute;
    bottom: -25px;
    display: flex;
    gap: 4px;
}

.video-frames span {
    width: 20px;
    height: 14px;
    background: var(--bg-card);
    border: 1px solid var(--accent-primary);
    border-radius: 2px;
    animation: frameFlash 2s infinite;
}

.video-frames span:nth-child(1) { animation-delay: 0s; }
.video-frames span:nth-child(2) { animation-delay: 0.3s; }
.video-frames span:nth-child(3) { animation-delay: 0.6s; }

@keyframes frameFlash {
    0%, 70%, 100% { background: var(--bg-card); }
    35% { background: var(--accent-primary); }
}

/* Processing indicator for FFmpeg */
.processing-indicator {
    position: absolute;
    bottom: -15px;
    width: 60px;
    height: 4px;
    background: var(--bg-primary);
    border-radius: 2px;
    overflow: hidden;
}

.processing-bar {
    height: 100%;
    width: 30%;
    background: var(--accent-gradient);
    border-radius: 2px;
    animation: processingSlide 1.5s ease-in-out infinite;
}

@keyframes processingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* Success burst for output */
.success-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.success-burst span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: burstOut 2s infinite;
}

.success-burst span:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.success-burst span:nth-child(2) { top: 50%; right: 0; animation-delay: 0.5s; }
.success-burst span:nth-child(3) { bottom: 0; left: 50%; animation-delay: 1s; }
.success-burst span:nth-child(4) { top: 50%; left: 0; animation-delay: 1.5s; }

@keyframes burstOut {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* Floating stats */
.floating-stats {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-stat {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 16px;
    background: rgba(22, 22, 31, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    animation: floatStat 6s ease-in-out infinite;
}

.floating-stat.stat-1 { top: 15%; right: 8%; animation-delay: 0s; }
.floating-stat.stat-2 { bottom: 25%; left: 8%; animation-delay: 2s; }
.floating-stat.stat-3 { top: 70%; right: 25%; animation-delay: 4s; }

@keyframes floatStat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-stat .stat-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.floating-stat .stat-value {
    font-size: 18px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.floating-stat .stat-desc {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Architecture cards */
.architecture-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.arch-card {
    padding: 24px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    cursor: pointer;
}

.arch-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
}

.arch-card-number {
    font-size: 32px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.5;
    margin-bottom: 12px;
}

.arch-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.arch-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

/* Responsive diagram */
@media (max-width: 1024px) {
    .diagram-container {
        height: 500px;
    }

    .input-node { left: 2%; }
    .output-node { left: 85%; }

    .architecture-cards {
        grid-template-columns: repeat(3, 1fr);
    }

    .architecture-cards .arch-card:nth-child(4),
    .architecture-cards .arch-card:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .diagram-container {
        height: auto;
        min-height: 400px;
        padding: 40px 20px;
    }

    .diagram-svg {
        display: none;
    }

    .diagram-nodes {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .diagram-node {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
    }

    .floating-stats {
        display: none;
    }

    .architecture-cards {
        grid-template-columns: 1fr;
    }
}

/* Old flow styles - keep for fallback */
.architecture-flow {
    display: none;
}

/* Node highlight state */
.diagram-node.highlight .node-inner {
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 60px var(--accent-glow), 0 0 100px rgba(139, 92, 246, 0.2) !important;
}

.diagram-node.highlight .node-glow {
    opacity: 1 !important;
    transform: scale(1.5) !important;
}

.diagram-node.active-flow .node-inner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
    border-color: var(--accent-primary) !important;
}

.diagram-node.active-flow .node-pulse {
    animation: nodePulseActive 0.3s ease-out;
}

@keyframes nodePulseActive {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(2); }
}

/* Card highlight state */
.arch-card.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
}

.arch-card.highlight .arch-card-number {
    opacity: 1;
}

/* Grid lines decoration */
.diagram-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Animated border for diagram container */
.diagram-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.5),
        transparent
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    animation: borderGlow 4s linear infinite;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Tooltip for nodes */
.diagram-node::after {
    content: 'Click to interact';
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.diagram-node:hover::after {
    opacity: 1;
}

/* Extra glow effects */
.gemini-node:hover .node-ring {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.output-node:hover .success-burst span {
    animation-duration: 1s;
}

/* Scanning line effect */
.diagram-container .scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    animation: scanDown 4s linear infinite;
    pointer-events: none;
    opacity: 0.3;
}

@keyframes scanDown {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

/* Tech Stack */
.tech-stack {
    text-align: center;
}

.tech-stack h3 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.tech-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.tech-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-icon.gemini { color: #4285F4; }
.tech-icon.elevenlabs { color: #ffffff; background: linear-gradient(135deg, #1a1a2e, #16213e); border-radius: 8px; }
.tech-icon.runway { color: var(--accent-primary); }
.tech-icon.ffmpeg { color: #007808; background: #eeeeee; border-radius: 8px; }

.tech-item span:last-child {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ========================================
   PRICING
   ======================================== */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

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

.pricing-card.featured {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.1) 0%, var(--bg-card) 100%);
    border-color: var(--accent-primary);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: var(--accent-gradient);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-price {
    margin-bottom: 32px;
}

.pricing-price .currency {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price .period {
    font-size: 16px;
    color: var(--text-muted);
}

.pricing-price.custom .amount {
    font-size: 36px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features .check {
    color: var(--success);
    font-weight: 700;
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.btn-pricing:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-pricing.primary {
    background: var(--accent-gradient);
    border: none;
}

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

.pricing-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ========================================
   FINAL CTA
   ======================================== */
.final-cta {
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.final-cta p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-buttons {
    margin-bottom: 32px;
}

.cta-guarantee {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 50px;
    font-size: 14px;
    color: var(--success);
}

.cta-guarantee svg {
    stroke: var(--success);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 60px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-tagline {
    margin-top: 8px;
    color: var(--text-secondary) !important;
}

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

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

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

    .mobile-menu {
        display: flex;
    }

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

    .hero h1 {
        font-size: 32px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .comparison-card {
        padding: 24px;
    }

    .flow-step {
        flex-direction: column;
        gap: 16px;
    }

    .flow-connector {
        margin-left: 24px;
    }

    .pricing-card {
        padding: 28px;
    }
}

/* ========================================
   YOUTUBE LINK
   ======================================== */
.youtube-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #ff4444;
    transition: var(--transition);
}

.youtube-link:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateY(-2px);
}

.youtube-link svg {
    fill: #ff4444;
}

/* ========================================
   BUY BUTTONS
   ======================================== */
.btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
}

.btn-buy svg {
    stroke: currentColor;
}

/* ========================================
   CHECKOUT MODAL
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 20px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* Checkout Header */
.checkout-header {
    text-align: center;
    margin-bottom: 32px;
}

.checkout-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg);
    color: white;
}

.checkout-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.checkout-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Checkout Summary */
.checkout-summary {
    padding: 20px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.summary-item.total {
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--border-color);
}

.summary-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-item.total .summary-value {
    font-size: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Checkout Form */
.checkout-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-error {
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--error);
    margin-top: 16px;
}

/* PayPal Container */
#paypal-button-container {
    min-height: 150px;
    margin-bottom: 20px;
}

.paypal-error {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.paypal-error button {
    margin-top: 12px;
}

/* Checkout Security */
.checkout-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--success);
    margin-bottom: 16px;
}

.checkout-security svg {
    flex-shrink: 0;
}

/* Checkout Methods */
.checkout-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.checkout-methods img {
    height: 24px;
    border-radius: 4px;
}

/* ========================================
   SUCCESS MODAL
   ======================================== */
.modal-content.success {
    text-align: center;
    max-width: 400px;
}

.success-animation {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--success);
    stroke-miterlimit: 10;
    animation: scaleUp 0.4s ease-in-out forwards;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke: var(--success);
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke: var(--success);
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.4s forwards;
}

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

@keyframes scaleUp {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

.modal-content.success h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--success);
    margin-bottom: 16px;
}

.modal-content.success p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-email {
    font-size: 14px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.success-email strong {
    color: var(--text-primary);
}

/* ========================================
   RESPONSIVE MODAL
   ======================================== */
@media (max-width: 480px) {
    .modal-content {
        padding: 24px;
        margin: 12px;
    }

    .checkout-icon {
        width: 56px;
        height: 56px;
    }

    .checkout-header h3 {
        font-size: 20px;
    }

    .summary-item.total .summary-value {
        font-size: 20px;
    }
}
