/* ===================================================================
   WARUM-ICH/ICEBERG.CSS - Eisberg (Iceberg) Architecture Section
   =================================================================== */

.iceberg-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* ===== Above Water Section ===== */
.iceberg-above {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.1) 100%);
    border-radius: 24px 24px 0 0;
    padding: 40px 32px;
    position: relative;
}

.iceberg-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 32px;
    justify-content: center;
}

.iceberg-label .label-icon {
    font-size: 1.25rem;
}

.user-experience-showcase {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Phone Mockup ===== */
.phone-mockup {
    flex-shrink: 0;
}

.phone-frame {
    width: 200px;
    height: 400px;
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    border-radius: 32px;
    padding: 8px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
}

.phone-notch {
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 0 0 16px 16px;
    margin: 0 auto 8px;
}

.phone-screen {
    background: linear-gradient(180deg, #1e1e2e 0%, #12121a 100%);
    border-radius: 24px;
    height: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.app-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.app-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.success-state {
    text-align: center;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 16px;
    animation: checkPulse 2s ease-in-out infinite;
}

@keyframes checkPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(16, 185, 129, 0); }
}

.success-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--success);
}

.app-footer {
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
}

.iceberg-above .response-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.time-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--success);
    font-family: 'JetBrains Mono', monospace;
}

.time-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Benefit Cards ===== */
.benefit-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.08);
}

.benefit-icon-large {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.benefit-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.benefit-card.instant { border-left: 3px solid var(--warning); }
.benefit-card.reliable { border-left: 3px solid var(--primary); }
.benefit-card.happy { border-left: 3px solid var(--success); }

/* ===== Water Line ===== */
.waterline {
    position: relative;
    height: 80px;
    overflow: visible;
}

.wave-container {
    position: absolute;
    width: 100%;
    height: 60px;
    top: 0;
}

.wave {
    width: 100%;
    height: 100%;
    color: rgba(59, 130, 246, 0.3);
}

.waterline-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: white;
    padding: 8px 24px;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* ===== Below Water Section ===== */
.iceberg-below {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.2) 0%, rgba(30, 58, 138, 0.4) 100%);
    border-radius: 0 0 24px 24px;
    padding: 40px 32px;
    position: relative;
}

.iceberg-below::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 0 0 24px 24px;
}

.below-label {
    color: rgba(147, 197, 253, 0.8);
}

/* ===== Tech Infrastructure Components ===== */
.tech-infrastructure {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.infra-component {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.infra-component:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.component-visual {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.component-icon {
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.component-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

.component-glow.orange { background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%); }
.component-glow.blue { background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%); }

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
}

.component-info { flex: 1; }
.component-info h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.component-benefit { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.5; }

.tech-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
}

.component-stats { text-align: center; min-width: 80px; }
.component-stats .stat-value { display: block; font-size: 1.75rem; font-weight: 800; color: var(--success); font-family: 'JetBrains Mono', monospace; }
.component-stats .stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }

.infra-component.accelerator .stat-value { color: var(--success); }
.infra-component.workhorse .stat-value { color: var(--warning); }
.infra-component.memory .stat-value { color: var(--primary); }

/* ===== Speed Comparison ===== */
.speed-comparison {
    margin-top: 60px;
    text-align: center;
}

.speed-comparison h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.speed-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.speed-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    min-width: 220px;
    text-align: center;
}

.speed-card.slow { border-color: rgba(239, 68, 68, 0.3); }
.speed-card.fast { border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05); }

.speed-visual {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(239, 68, 68, 0.2);
    border-top-color: #ef4444;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.instant-check {
    width: 60px;
    height: 60px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.speed-info { display: flex; flex-direction: column; gap: 8px; }
.speed-label { font-size: 0.875rem; color: var(--text-muted); }
.speed-time { font-size: 1.5rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.speed-card.slow .speed-time { color: #ef4444; }
.speed-card.fast .speed-time { color: var(--success); }

.speed-result {
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 100px;
    margin-top: 8px;
}

.speed-result.bad { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.speed-result.good { background: rgba(16, 185, 129, 0.1); color: var(--success); }
.speed-vs { font-size: 2rem; color: var(--text-muted); font-weight: 300; }
