/* Hero Section */
.hero-section {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.grid-background {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(128, 128, 128, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(128, 128, 128, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-light));
}

.dark-mode .gradient-overlay {
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
}

.glow-effect {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    filter: blur(120px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.hero-text {
    text-align: center;
    max-width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: var(--primary);
    animation: pulse 2s infinite;
}

.hero-visual {
    position: relative;
    width: 100%;
    min-width: 400px;
    height: 500px;
    perspective: 1000px;
    flex-shrink: 0;
}

.visual-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1), transparent);
    filter: blur(80px);
    animation: pulse 4s infinite;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-web {
    position: absolute;
    right: 0;
    top: 1rem;
    width: 90%;
    max-width: 420px;
    height: 280px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.5s;
}

.dark-mode .card-web {
    background: rgba(15, 15, 15, 0.9);
    border-color: var(--border-dark);
}

.card-web:hover {
    transform: translateZ(10px);
}

.browser-bar {
    height: 2rem;
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.dark-mode .browser-bar {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--border-dark);
}

.browser-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
}

.browser-dot.red { background: #ef4444; }
.browser-dot.yellow { background: #fbbf24; }
.browser-dot.green { background: #22c55e; }

.browser-content {
    flex: 1;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.content-block {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.content-block.large {
    grid-column: span 3;
    height: 6rem;
}

.content-block.small {
    height: 5rem;
}

.content-row {
    grid-column: span 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.card-mobile {
    position: absolute;
    left: 0;
    bottom: 1rem;
    width: 180px;
    height: 370px;
    background: #1f2937;
    border: 8px solid #111827;
    border-radius: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.5s;
    z-index: 20;
}

.card-mobile:hover {
    transform: translateZ(30px);
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1.5rem;
    background: #111827;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
    z-index: 20;
}

.mobile-screen {
    flex: 1;
    background: #0f172a;
    padding: 0.75rem;
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.mobile-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-icon {
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-hero {
    width: 100%;
    height: 6rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 0.75rem;
    margin-bottom: 0.25rem;
}

.mobile-item {
    width: 100%;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
}

.mobile-indicator {
    height: 0.25rem;
    width: 33%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    margin: 0 auto 0.5rem;
}

.code-badge {
    position: absolute;
    top: 45%;
    right: 10%;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-light);
    animation: bounce 3s infinite;
}

.dark-mode .code-badge {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

.code-badge code {
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    color: var(--primary);
}
