/* ===================================
   Hero Sections
   =================================== */

.hero {
    min-height: 100vh;
    display: block;
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-right: 680px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: rgba(255, 61, 61, 0.05);
    border: 1px solid rgba(255, 61, 61, 0.2);
    border-radius: 50px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s forwards 0.3s;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

/* Breadcrumb in Hero */
.hero .breadcrumb {
    margin-bottom: 32px;
    opacity: 1;
    animation: none;
    transform: none;
}

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

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-title-seo {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 24px;
}

.hero-title-seo .hero-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    font-size: clamp(20px, 3.5vw, 40px);
    margin-top: 8px;
}

.hero-description {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-description strong {
    color: var(--text);
    font-weight: 600;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 48px;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s forwards 0.7s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s forwards 0.9s;
    flex-wrap: wrap;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-secondary {
    opacity: 0;
    animation: heroFadeUp 0.8s forwards 0.9s;
}

.hero-buttons .btn-secondary {
    animation-delay: 1s;
}

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

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-right: 680px;
}

@media (max-width: 1200px) {
    .hero-content {
        margin-right: 0;
        max-width: 100%;
    }
}

/* Hero Visual */
.hero-visual {
    position: absolute;
    right: 48px;
    top: 50%;
    transform: translateY(-50%);
    width: 620px;
    height: 420px;
    opacity: 0;
    animation: fadeIn 1s forwards 1.2s;
}

@media (max-width: 1200px) {
    .hero-visual {
        display: none;
    }
}
    
@keyframes fadeIn {
    to { opacity: 1; }
}

.code-editor {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 61, 61, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(255, 61, 61, 0.1);
    height: 100%;
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: rgba(255, 61, 61, 0.05);
    border-bottom: 1px solid rgba(255, 61, 61, 0.1);
}

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

.editor-dot.red { background: #ff5f57; }
.editor-dot.yellow { background: #ffbd2e; }
.editor-dot.green { background: #28ca42; }

.editor-title {
    margin-left: 12px;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text-muted);
}

.editor-body {
    padding: 24px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.8;
}

.code-line {
    display: flex;
    align-items: center;
}

.line-number {
    color: var(--text-muted);
    width: 30px;
    flex-shrink: 0;
}

.code-content { color: var(--text-secondary); }
.code-keyword { color: var(--accent); }
.code-string { color: var(--accent-warm); }
.code-function { color: #a78bfa; }
.code-comment { color: var(--text-muted); }
.code-property { color: #38bdf8; }

.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: cursorBlink 1s infinite;
    margin-left: 4px;
}

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

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 100px;
    opacity: 0;
    animation: heroFadeUp 0.8s forwards 1.1s;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 61, 61, 0.1);
    padding: 40px 28px;
    text-align: center;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.stat-card:hover {
    border-color: rgba(255, 61, 61, 0.4);
    transform: translateY(-4px);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

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

/* Responsive */
@media (max-width: 1400px) {
    .hero-content {
        margin-right: 640px;
    }
    
    .hero-visual {
        right: 32px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        margin-right: 0;
        max-width: 100%;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-card {
        padding: 32px 24px;
    }
    
    .stat-value {
        font-size: 44px;
    }
}
    
@media (max-width: 768px) {
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-title-seo {
        font-size: clamp(20px, 7vw, 32px);
        margin-bottom: 20px;
    }
    
    .hero-title-seo .hero-accent {
        font-size: clamp(16px, 6vw, 26px);
        margin-top: 6px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 16px 24px;
    }
    
    .hero h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .hero p {
        font-size: 15px;
        margin-bottom: 24px;
    }
    
    .hero-badge {
        padding: 8px 16px;
        font-size: 10px;
        margin-bottom: 24px;
    }
    
    .stats {
        margin-top: 40px;
        gap: 12px;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 70px 0 40px;
    }
    
    .hero-title-seo {
        font-size: clamp(18px, 8vw, 28px);
    }
    
    .hero-title-seo .hero-accent {
        font-size: clamp(14px, 7vw, 22px);
    }
    
    .hero-description {
        font-size: 13px;
        line-height: 1.55;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 24px 20px;
    }
    
    .stat-value {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 11px;
    }
}
