/* -------------------------------------------------------------------
 *  HERO BUILDER SECTION - FULL STYLES
 * ------------------------------------------------------------------- */

.hero-builder-section {
    position: relative;
    padding: 160px 0 220px 0;
    background-color: #ffffff;
    overflow: hidden;
}

/* Background Effects */
.hero-mesh-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
}

.mesh-blob {
    position: absolute;
    filter: blur(90px);
    opacity: 0.35;
    border-radius: 50%;
    animation: blobFloat 12s infinite alternate;
}

.blob-1 {
    top: -15%; left: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, var(--hero-primary-blob) 0%, rgba(59, 130, 246, 0.15) 100%);
}

.blob-2 {
    bottom: -15%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, var(--hero-primary-border) 100%);
    animation-delay: -6s;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-grid-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
    z-index: 1;
    pointer-events: none;
}

/* Content Wrapper */
.hero-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Badge */
.ai-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 24px;
    background-color: var(--hero-primary-soft); 
    border: 1px solid var(--hero-primary-border);
    border-radius: 50px;
    color: var(--hero-primary); 
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: default;
}

.ai-pill-badge:hover {
    background-color: var(--hero-primary-soft);
    transform: translateY(-2px);
    border-color: var(--hero-primary);
}

.pill-icon {
    color: var(--hero-primary); 
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography */
.hero-main-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 25px;
    color: #111827;
}

.gradient-text {
    background: linear-gradient(135deg, #111827 0%, var(--hero-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-main-subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* Simulator Box */
.builder-simulator-box {
    position: relative;
    max-width: 780px;
    margin: 0 auto 50px auto;
    perspective: 1000px;
}

.simulator-glass-panel {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,1);
    border-radius: 18px;
    padding: 10px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.sim-icon {
    width: 54px;
    height: 54px;
    background: var(--hero-primary-soft);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-primary);
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.sim-input-wrapper {
    flex-grow: 1;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.sim-static { color: #9ca3af; margin-right: 10px; font-weight: 500; }
.sim-typing { color: #111827; font-weight: 700; }
.sim-cursor { color: var(--hero-primary); animation: blink 1s infinite; font-weight: 100; margin-left: 2px; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.btn-builder-action {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-builder-action:hover {
    background: var(--hero-primary);
    color: #fff;
    transform: translateY(-1px);
}

.simulator-shadow {
    position: absolute;
    bottom: -20px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, transparent 70%);
    z-index: 1;
    border-radius: 50%;
}

/* Floating UI Cards */
.floating-ui-container {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ui-float-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 18px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06), 0 0 0 1px rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: floatCard 8s ease-in-out infinite;
    transition: all 0.3s ease;
    max-width: 200px;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.ui-icon-box {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.ui-icon-box.success { background: var(--hero-primary); }
.ui-icon-box.warning { background: #f59e0b; }

.ui-text-col { display: flex; flex-direction: column; }
.ui-label { font-size: 0.7rem; color: #6b7280; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.ui-value { font-size: 1rem; font-weight: 800; color: #111827; }

.ui-badge {
    background: var(--hero-primary-soft); color: var(--hero-primary); padding: 3px 6px;
    border-radius: 4px; font-weight: 700; font-size: 0.8rem; margin-left: auto;
}

.ui-avatar {
    width: 36px; height: 36px; background: #e0e7ff; color: #4f46e5;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 0.9rem; flex-shrink: 0;
}

.ui-status { font-size: 0.8rem; color: #4f46e5; font-weight: 600; }

.code-lines { display: flex; flex-direction: column; gap: 5px; width: 80px; }
.code-lines .line { height: 5px; background: #e5e7eb; border-radius: 4px; }

.ui-check-circle {
    width: 22px; height: 22px; background: #2563eb; color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.65rem;
}

.ui-progress-bar {
    width: 70px; height: 5px; background: #e5e7eb; border-radius: 10px; margin-top: 4px; overflow: hidden;
}

.ui-progress-bar .fill { height: 100%; background: var(--hero-primary); }

.hero-footer-badges {
    display: flex; justify-content: center; gap: 30px;
    color: #6b7280; font-weight: 500; font-size: 0.95rem;
}

.hero-footer-badges i { color: var(--hero-primary); margin-right: 8px; }

/* Responsive */
@media (max-width: 992px) {
    .hero-main-title { font-size: 3rem; }
    .floating-ui-container { display: none; }
    .hero-builder-section { padding: 100px 0; }
}

@media (max-width: 768px) {
    .simulator-glass-panel { flex-direction: column; gap: 15px; padding: 20px; }
    .sim-input-wrapper { width: 100%; justify-content: center; margin-bottom: 5px; }
    .sim-action, .btn-builder-action { width: 100%; text-align: center; }
    .sim-icon { display: none; }
    .hero-footer-badges { flex-direction: column; gap: 10px; }
}