/* Proofwerk - Control Center Hero */

:root {
    --hero-bg: #0c1622;
    --hero-accent: #1FA6A0;
    --hero-accent-light: #2dd4bf;
    --hero-text: #e2e8f0;
    --hero-muted: #64748b;
}

/* ==================== BODY ==================== */
body.has-control-hero {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ==================== CONTROL HERO ==================== */
.control-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 700px;
    background: var(--hero-bg);
    overflow: hidden;
    z-index: 10;
}

#controlCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== OVERLAY ==================== */
.control-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(12, 22, 34, 0.5) 100%);
    pointer-events: none;
}

.control-content {
    text-align: center;
    pointer-events: auto;
    max-width: 800px;
    padding: 0 2rem;
}

.control-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(31, 166, 160, 0.15);
    border: 1px solid rgba(31, 166, 160, 0.3);
    border-radius: 9999px;
    color: var(--hero-accent-light);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.control-badge svg {
    width: 18px;
    height: 18px;
}

.control-title {
    font-size: 5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
    margin: 0 0 1rem 0;
    text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.4s;
}

.control-subtitle {
    font-size: 1.375rem;
    color: var(--hero-text);
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

/* Stats */
.control-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

.control-stat {
    text-align: center;
}

.control-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: rgba(31, 166, 160, 0.15);
    border-radius: 12px;
}

.control-stat-icon svg {
    color: var(--hero-accent-light);
}

.control-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    font-variant-numeric: tabular-nums;
}

.control-stat-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--hero-muted);
    margin-top: 0.25rem;
}

/* CTA */
.control-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--hero-accent);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 1s;
}

.control-cta:hover {
    background: var(--hero-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(31, 166, 160, 0.3);
}

.control-cta svg {
    animation: bounce 2s ease-in-out infinite;
}

/* ==================== FLOATING CARDS ==================== */
.control-floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 15;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
}

.floating-card svg {
    color: var(--hero-accent-light);
    flex-shrink: 0;
}

.floating-card.card-1 {
    top: 20%;
    left: 8%;
    animation: floatCard1 20s ease-in-out infinite, fadeIn 0.5s ease forwards 1.5s;
}

.floating-card.card-2 {
    top: 35%;
    right: 10%;
    animation: floatCard2 18s ease-in-out infinite, fadeIn 0.5s ease forwards 1.8s;
}

.floating-card.card-3 {
    bottom: 25%;
    left: 12%;
    animation: floatCard3 22s ease-in-out infinite, fadeIn 0.5s ease forwards 2.1s;
}

@keyframes floatCard1 {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    50% { transform: translate(10px, -15px) rotate(1deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translate(0, 0) rotate(2deg); }
    50% { transform: translate(-15px, 10px) rotate(-1deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translate(0, 0) rotate(1deg); }
    50% { transform: translate(20px, -10px) rotate(-2deg); }
}

/* ==================== SCROLL INDICATOR ==================== */
.control-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--hero-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    z-index: 25;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.5s;
    transition: color 0.2s;
}

.control-scroll-indicator:hover {
    color: white;
}

.control-scroll-indicator svg {
    animation: bounce 2s ease-in-out infinite;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ==================== MAIN SECTION ==================== */
.main-section {
    position: relative;
    background: #fff;
    z-index: 5;
}

.topbar-hero {
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

.topbar-hero .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.topbar-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.topbar-hero .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 1.125rem;
}

.topbar-hero .proofwerk-logo {
    width: 32px;
    height: 32px;
}

.topbar-hero .navbar-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.topbar-hero .nav-link {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.topbar-hero .nav-link:hover,
.topbar-hero .nav-link.active {
    color: var(--hero-accent);
}

.topbar-hero .navbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.topbar-hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.topbar-hero .btn-sm {
    padding: 0.5rem 1rem;
}

.topbar-hero .btn-outline {
    background: transparent;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.topbar-hero .btn-outline:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.topbar-hero .btn-primary {
    background: var(--hero-accent);
    border: 1px solid var(--hero-accent);
    color: white;
}

.topbar-hero .btn-primary:hover {
    background: #178781;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    padding: 3rem 0 1.5rem;
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: #64748b;
    font-size: 0.9375rem;
    margin-top: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
}

.footer-links h4 {
    color: #1e293b;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links a {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--hero-accent);
}

.footer-bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .control-title {
        font-size: 3.5rem;
    }
    
    .control-stats {
        gap: 2rem;
    }
    
    .floating-card {
        display: none;
    }
}

@media (max-width: 768px) {
    .control-hero {
        min-height: 100vh;
    }
    
    .control-title {
        font-size: 2.5rem;
    }
    
    .control-subtitle {
        font-size: 1.125rem;
    }
    
    .control-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .control-stat-value {
        font-size: 1.75rem;
    }
    
    .topbar-hero .navbar-menu {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
