/* ============================================
   Hero Impact Section - High Converting Design
   GPU Optimized Animations
   ============================================ */

/* Section Container */
.hero-impact {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
}

/* Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Content - Left Side */
.hero-content {
    max-width: 600px;
}

/* Rotating Headline */
.hero-headline {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: #0f172a;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.headline-static {
    display: block;
    margin-bottom: 8px;
}

.headline-rotator {
    display: block;
    position: relative;
    height: 1.2em;
    overflow: hidden;
}

.rotate-word {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rotate-word.active {
    opacity: 1;
    transform: translateY(0);
}

.rotate-word.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* Subheading */
.hero-subheading {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #64748b;
    margin-bottom: 32px;
    max-width: 520px;
}

/* Benefit Points */
.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #334155;
}

.benefit-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border-radius: 8px;
    color: #3b82f6;
}

/* CTA Buttons */
.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-primary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 28px;
    background: #fff;
    color: #334155;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary-cta:hover {
    border-color: #3b82f6;
    background: #f8fafc;
}

/* Social Proof */
.hero-proof {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.proof-stars {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proof-stars .stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.star-text {
    font-size: 0.85rem;
    color: #64748b;
}

.proof-divider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
}

.proof-logos {
    display: flex;
    align-items: center;
    gap: 8px;
}

.proof-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mini-logos {
    display: flex;
    gap: 6px;
}

.mini-logo {
    font-size: 1.25rem;
}

/* Hero Visual - Right Side */
.hero-visual {
    position: relative;
    height: 500px;
}

.dashboard-preview {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Floating Elements */
.float-element {
    position: absolute;
    opacity: 0;
    animation: floatIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    will-change: transform, opacity;
}

.float-1 {
    top: 0;
    left: 0;
    animation-delay: 0.1s;
}

.float-2 {
    top: 60px;
    right: 20px;
    animation-delay: 0.2s;
}

.float-3 {
    bottom: 80px;
    left: 40px;
    animation-delay: 0.3s;
}

.float-4 {
    bottom: 20px;
    right: 60px;
    animation-delay: 0.4s;
}

@keyframes floatIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }

    from {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* Floating Animation */
.float-1 {
    animation: floatIn 0.5s 0.1s forwards, float1 6s 0.6s ease-in-out infinite;
}

.float-2 {
    animation: floatIn 0.5s 0.2s forwards, float2 7s 0.7s ease-in-out infinite;
}

.float-3 {
    animation: floatIn 0.5s 0.3s forwards, float3 5s 0.8s ease-in-out infinite;
}

.float-4 {
    animation: floatIn 0.5s 0.4s forwards, float4 8s 0.9s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(8px, -12px, 0);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-10px, 8px, 0);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(12px, 6px, 0);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(-6px, -10px, 0);
    }
}

/* Element Cards */
.element-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
}

/* Stats Card */
.card-stats {
    width: 220px;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stat-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

.stat-badge {
    font-size: 0.7rem;
    color: #10b981;
}

.stat-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.stat-value .value {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.stat-value .trend {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
}

.stat-chart {
    height: 40px;
}

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

/* Notification Card */
.card-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.notif-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecfdf5;
    border-radius: 6px;
}

.notif-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notif-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
}

.notif-result {
    font-size: 0.75rem;
    color: #10b981;
}

/* Workflow Card */
.card-workflow {
    width: 180px;
}

.workflow-header {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
}

.workflow-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wf-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #64748b;
}

.wf-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.wf-dot.active {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Code Card */
.card-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    padding: 12px 16px;
}

.code-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.code-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.code-snippet {
    font-size: 0.75rem;
    margin: 0;
    color: #64748b;
}

.code-snippet .kw {
    color: #8b5cf6;
}

.code-snippet .var {
    color: #0f172a;
}

.code-snippet .fn {
    color: #06b6d4;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.conn-line {
    stroke: #c7d2fe;
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 8, 4;
    stroke-linecap: round;
    opacity: 0.6;
}

/* Animated Background */
.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-gradient {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
}

.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero-impact {
        padding: 100px 0 60px;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

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

    .hero-proof {
        flex-direction: column;
        align-items: flex-start;
    }

    .proof-divider {
        display: none;
    }

    .hero-visual {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .rotate-word {
        transition: none;
    }

    .float-element {
        animation: none;
        opacity: 1;
    }
}