/* ============================================
   Homepage Styles
   ============================================ */

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(244, 217, 102, 0.15);
    color: var(--gold);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

.hero .highlight {
    background: linear-gradient(180deg, transparent 60%, rgba(244, 217, 102, 0.3) 60%);
}

.hero-subtitle {
    color: var(--gray-400);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-content {
    animation: fadeInLeft 0.8s ease both;
}

.hero h1 {
    animation: fadeInUp 0.7s ease both;
    animation-delay: 0.15s;
}

.hero-subtitle {
    animation: fadeInUp 0.7s ease both;
    animation-delay: 0.3s;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease both;
    animation-delay: 0.45s;
}

/* Hero UI Mockup */
.hero-visual {
    animation: fadeInRight 0.9s ease both;
    animation-delay: 0.3s;
}

.hero-ui-mockup {
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 32px 64px rgba(0,0,0,0.4);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-800);
    border-bottom: 1px solid var(--gray-700);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-600);
}

.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:last-child { background: #27ca40; }

.mockup-title {
    font-size: 0.75rem;
    color: var(--gray-400);
    font-weight: 500;
}

.mockup-body {
    display: grid;
    grid-template-columns: 140px 1fr 160px;
    min-height: 280px;
}

.mockup-sidebar {
    background: var(--gray-800);
    border-right: 1px solid var(--gray-700);
    padding: 12px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.75rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: all var(--transition);
}

.sidebar-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.sidebar-item.active {
    background: rgba(244, 217, 102, 0.1);
    color: var(--gold);
    border-left: 2px solid var(--gold);
}

.sidebar-icon {
    font-size: 1rem;
}

.mockup-canvas {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
}

/* 3D Cube Animation */
.canvas-3d-object {
    perspective: 400px;
}

.cube {
    width: 80px;
    height: 80px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 12s linear infinite;
}

.cube-face {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid var(--gold);
    background: rgba(244, 217, 102, 0.05);
}

.cube-face.front  { transform: translateZ(40px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(40px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(40px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(40px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(40px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(40px); }

@keyframes rotateCube {
    0% { transform: rotateX(-15deg) rotateY(0deg); }
    100% { transform: rotateX(-15deg) rotateY(360deg); }
}

.canvas-hotspot {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
}

.canvas-hotspot.h1 {
    top: 30%;
    right: 20%;
}

.canvas-hotspot.h2 {
    bottom: 25%;
    left: 15%;
}

.hotspot-pulse {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 217, 102, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(244, 217, 102, 0); }
}

.hotspot-label {
    background: rgba(244, 217, 102, 0.15);
    color: var(--gold);
    font-size: 0.625rem;
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 600;
    white-space: nowrap;
}

.mockup-panel {
    background: var(--gray-800);
    border-left: 1px solid var(--gray-700);
    padding: 16px;
}

.panel-title {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.6875rem;
    color: var(--gray-400);
    margin-bottom: 10px;
}

.panel-row span:last-child {
    color: var(--white);
    font-weight: 500;
}

.panel-bar {
    height: 4px;
    background: var(--gray-700);
    border-radius: 2px;
    margin: 12px 0 8px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width 1s ease;
}

/* Section: What Is */
.section-what {
    background: var(--gray-50);
}

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

.value-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
}

.value-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-icon {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.15) rotate(-5deg);
}

.value-card h3 {
    margin-bottom: 12px;
}

.value-card p {
    font-size: 0.9375rem;
}

/* Section: Who Is It For */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.persona-card {
    text-align: center;
    padding: 36px 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.persona-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.persona-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.persona-card:hover .persona-icon {
    transform: scale(1.2);
    animation: gentleBounce 0.6s ease;
}

.persona-card h4 {
    margin-bottom: 10px;
}

.persona-card p {
    font-size: 0.875rem;
}

/* Section: Capabilities Steps */
.section-capabilities {
    background: var(--gray-50);
}

.capability-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.step-card {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    gap: 32px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    letter-spacing: -0.03em;
    transition: transform 0.3s ease, color 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
}

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

.step-content p {
    font-size: 0.9375rem;
}

.step-visual {
    display: flex;
    justify-content: center;
}

.step-ui {
    background: var(--gray-900);
    border-radius: var(--radius-md);
    padding: 20px;
    width: 100%;
    max-width: 320px;
}

/* Upload zone */
.ui-upload-zone {
    border: 2px dashed var(--gray-600);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    color: var(--gray-400);
    font-size: 0.8125rem;
}

.upload-icon {
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 8px;
}

.upload-formats {
    margin-top: 8px;
    font-size: 0.6875rem;
    color: var(--gray-600);
}

/* Layers UI */
.ui-layers {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.layer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--gray-300);
    background: var(--gray-800);
}

.layer.active {
    background: rgba(244, 217, 102, 0.1);
    color: var(--gold);
    border: 1px solid rgba(244, 217, 102, 0.2);
}

.layer.dimmed {
    opacity: 0.4;
}

.layer-eye {
    font-size: 0.75rem;
}

/* Variants UI */
.ui-variants {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--gray-400);
    background: var(--gray-800);
    cursor: pointer;
}

.variant-option.selected {
    background: rgba(244, 217, 102, 0.1);
    color: var(--gold);
    border: 1px solid rgba(244, 217, 102, 0.3);
}

.variant-check {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--gray-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

.variant-option.selected .variant-check {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--black);
}

/* Deploy UI */
.ui-deploy {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.deploy-channel {
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.6875rem;
    background: var(--gray-800);
    color: var(--gray-500);
}

.deploy-channel.active {
    background: rgba(244, 217, 102, 0.15);
    color: var(--gold);
}

/* Analytics UI */
.ui-analytics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analytics-bar {
    display: grid;
    grid-template-columns: 60px 1fr 30px;
    align-items: center;
    gap: 10px;
}

.bar-label {
    font-size: 0.6875rem;
    color: var(--gray-400);
}

.bar-track {
    height: 6px;
    background: var(--gray-700);
    border-radius: 3px;
    overflow: hidden;
}

.bar-value {
    height: 100%;
    background: var(--gold);
    border-radius: 3px;
}

.analytics-bar span {
    font-size: 0.6875rem;
    color: var(--gold);
    font-weight: 600;
}

/* CTA Section */
.section-cta {
    background: var(--gold);
    padding: 80px 0;
}

.cta-block {
    text-align: center;
}

.cta-block h2 {
    color: var(--black);
    margin-bottom: 12px;
}

.cta-block p {
    color: var(--gray-700);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 600px;
    }

    .mockup-body {
        grid-template-columns: 120px 1fr 140px;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .step-card {
        grid-template-columns: 60px 1fr;
    }

    .step-visual {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 64px;
    }

    .mockup-body {
        grid-template-columns: 1fr;
    }

    .mockup-sidebar {
        display: flex;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--gray-700);
    }

    .sidebar-item {
        white-space: nowrap;
    }

    .sidebar-item.active {
        border-left: none;
        border-bottom: 2px solid var(--gold);
    }

    .mockup-panel {
        border-left: none;
        border-top: 1px solid var(--gray-700);
    }

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