/* WF Chat page */

/* Hero grid with card stack */
.wfc-hero-grid { display: grid; grid-template-columns: 1fr 480px; gap: 48px; align-items: center; }
@media (max-width: 1100px) { .wfc-hero-grid { grid-template-columns: 1fr; } .wfc-hero-cards { display: none; } }
.wfc-hero-text { text-align: left; }
.wfc-hero-text .hero-title-ultra { text-align: left; }
.wfc-hero-text .hero-subtitle-ultra { text-align: left; }
.wfc-hero-text .wfc-hero-badges { justify-content: flex-start; }
.wfc-hero-text .hero-cta-group { justify-content: flex-start; text-align: left; }
@media (max-width: 1100px) { .wfc-hero-text .hero-cta-group { justify-content: center; } }

.wfc-hero-cards { position: relative; height: 380px; }

.wfc-hero-card {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.4s ease;
}

.wfc-hero-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Desktop screenshot - bakre kortet */
.wfc-hero-card-1 {
    width: 400px; height: 260px;
    top: 0; left: 0;
    transform: rotate(-3deg);
    z-index: 1;
}

/* Video call - mellersta */
.wfc-hero-card-2 {
    width: 340px; height: 220px;
    top: 40px; left: 100px;
    transform: rotate(2deg);
    z-index: 2;
}

/* Android - främsta kortet */
.wfc-hero-card-3 {
    width: 160px; height: 300px;
    top: 50px; right: 20px;
    transform: rotate(5deg);
    z-index: 3;
    border-radius: 20px;
}

.wfc-hero-cards:hover .wfc-hero-card-1 { transform: rotate(-1deg) translateY(-4px); }
.wfc-hero-cards:hover .wfc-hero-card-2 { transform: rotate(0deg) translateY(-6px); }
.wfc-hero-cards:hover .wfc-hero-card-3 { transform: rotate(2deg) translateY(-8px); }

html[data-theme="light"] .wfc-hero-card { box-shadow: 0 16px 48px rgba(0,0,0,0.15); border-color: rgba(0,0,0,0.1); }

.wfc-hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 8px 16px; border-radius: 50px; margin-bottom: 24px; border: 1px solid rgba(255,255,255,0.2); }
.wfc-hero-badge svg { width: 18px; height: 18px; color: var(--gold-light); }
.wfc-hero-badge span { font-size: 14px; color: var(--gray-300); }
.wfc-hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.wfc-badge { background: rgba(255,255,255,0.08); padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--gray-300); }

.wfc-screenshot { width: 100%; border-radius: 12px; border: 1px solid var(--gray-800); box-shadow: 0 8px 30px rgba(0,0,0,0.2); }

/* Overview */
.wfc-overview { padding: 80px 0; }
.wfc-overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 992px) { .wfc-overview-grid { grid-template-columns: 1fr; gap: 40px; } }
.wfc-overview .section-title,
.wfc-overview .section-label { text-align: left; }
.wfc-overview p { color: var(--gray-400); line-height: 1.7; margin-bottom: 16px; font-size: 1.05rem; }

.wfc-platforms .section-title,
.wfc-platforms .section-label { text-align: left; }

.wfc-login .section-title { text-align: left; }
.wfc-free-note { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); border-radius: 10px; padding: 16px; color: #10b981; font-weight: 600; }

/* Video demo */
.wfc-video { padding: 80px 0; background: #0f0f0f; }
.wfc-video-wrap { max-width: 960px; margin: 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid #2d2d2d; box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.wfc-video-player { width: 100%; display: block; }
html[data-theme="light"] .wfc-video { background: #f5f8fc; }
html[data-theme="light"] .wfc-video-wrap { border-color: #e5e7eb; box-shadow: 0 12px 40px rgba(0,0,0,0.08); }

/* Features */
.wfc-features { padding: 80px 0; background: var(--gray-900); }
.wfc-feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--gray-800); }
.wfc-feature-row:last-child { border-bottom: none; }
@media (max-width: 992px) { .wfc-feature-row, .wfc-feature-row-reverse { grid-template-columns: 1fr; gap: 32px; } }
.wfc-feature-row h3 { font-size: 1.5rem; font-weight: 700; color: var(--gray-100); margin-bottom: 12px; }
.wfc-feature-row p { font-size: 1.05rem; color: var(--gray-400); line-height: 1.7; }
.wfc-feature-row-reverse { direction: rtl; }
.wfc-feature-row-reverse > * { direction: ltr; }

/* Security */
.wfc-security { padding: 80px 0; }
.wfc-security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 768px) { .wfc-security-grid { grid-template-columns: 1fr; } }
.wfc-sec-item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--gray-900); border: 1px solid var(--gray-800); border-radius: 12px; }
.wfc-sec-item svg { width: 24px; height: 24px; color: #10b981; flex-shrink: 0; margin-top: 2px; }
.wfc-sec-item strong { display: block; font-size: 0.95rem; color: var(--gray-100); margin-bottom: 2px; }
.wfc-sec-item span { font-size: 0.85rem; color: var(--gray-500); }

/* Platforms */
.wfc-platforms { padding: 80px 0; background: var(--gray-900); }
.wfc-platforms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 992px) { .wfc-platforms-grid { grid-template-columns: 1fr; } }
.wfc-platforms p { color: var(--gray-400); line-height: 1.7; margin-bottom: 20px; }
.wfc-platform-links { display: flex; flex-wrap: wrap; gap: 12px; }
.wfc-platform-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--gray-800); border: 1px solid var(--gray-700); border-radius: 10px; color: var(--gray-200); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: all 0.2s; }
.wfc-platform-btn:hover { background: var(--wf-blue-light); border-color: var(--wf-blue-light); color: #fff; }
.wfc-platform-btn svg { width: 20px; height: 20px; }
.wfc-platform-soon { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; color: var(--gray-500); font-size: 0.9rem; }
.wfc-platform-soon svg { width: 20px; height: 20px; }

.wfc-platform-images { position: relative; }
.wfc-android-preview {
    position: absolute; bottom: -20px; right: -20px; width: 140px;
    border-radius: 16px; border: 2px solid #2d2d2d;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
html[data-theme="light"] .wfc-android-preview { border-color: #d1d5db; box-shadow: 0 12px 32px rgba(0,0,0,0.1); }

/* Login */
.wfc-login { padding: 80px 0; }
.wfc-login-grid { display: grid; grid-template-columns: 400px 1fr; gap: 64px; align-items: center; }
@media (max-width: 992px) { .wfc-login-grid { grid-template-columns: 1fr; } }
.wfc-login-img { max-width: 400px; }
.wfc-login p { color: var(--gray-400); line-height: 1.7; margin-bottom: 24px; }
.wfc-start-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.wfc-step { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--gray-900); border: 1px solid var(--gray-800); border-radius: 10px; }
.wfc-step-num { width: 36px; height: 36px; min-width: 36px; background: var(--wf-blue-light); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.wfc-step strong { display: block; font-size: 0.95rem; color: var(--gray-100); }
.wfc-step span { font-size: 0.85rem; color: var(--gray-500); }

/* CTA */
.wfc-cta { padding: 80px 0; background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.wfc-cta-content { text-align: center; max-width: 600px; margin: 0 auto; }
.wfc-cta-content h2 { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.wfc-cta-content p { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 28px; }

/* Light mode */
html[data-theme="light"] .wfc-hero-badge { background: rgba(0,0,0,0.05); border-color: rgba(0,0,0,0.1); }
html[data-theme="light"] .wfc-hero-badge span { color: var(--gray-700); }
html[data-theme="light"] .wfc-badge { background: rgba(0,0,0,0.05); color: var(--gray-700); }
html[data-theme="light"] .wfc-screenshot { border-color: #e5e7eb; box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
html[data-theme="light"] .wfc-overview p { color: var(--gray-600); }
html[data-theme="light"] .wfc-features { background: #f5f8fc; }
html[data-theme="light"] .wfc-feature-row { border-bottom-color: #e5e7eb; }
html[data-theme="light"] .wfc-feature-row h3 { color: var(--gray-900); }
html[data-theme="light"] .wfc-feature-row p { color: var(--gray-600); }
html[data-theme="light"] .wfc-sec-item { background: #fff; border-color: #e5e7eb; }
html[data-theme="light"] .wfc-sec-item strong { color: var(--gray-900); }
html[data-theme="light"] .wfc-platforms { background: #f5f8fc; }
html[data-theme="light"] .wfc-platforms p { color: var(--gray-600); }
html[data-theme="light"] .wfc-platform-btn { background: #fff; border-color: #d1d5db; color: var(--gray-800); }
html[data-theme="light"] .wfc-login p { color: var(--gray-600); }
html[data-theme="light"] .wfc-step { background: #f9fafb; border-color: #e5e7eb; }
html[data-theme="light"] .wfc-step-num { background: #2563eb; color: #ffffff; }
html[data-theme="light"] .wfc-step strong { color: #111; }

/* ========================================
   DARK MODE EXPLICIT OVERRIDES
   ======================================== */
html[data-theme="dark"] .wfc-hero-badge { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
html[data-theme="dark"] .wfc-hero-badge span { color: #ccc; }
html[data-theme="dark"] .wfc-badge { background: rgba(255,255,255,0.08); color: #ccc; }

html[data-theme="dark"] .wfc-features { background: #0f0f0f; }
html[data-theme="dark"] .wfc-feature-row { border-bottom-color: #2d2d2d; }
html[data-theme="dark"] .wfc-feature-row h3 { color: #f0f0f0; }
html[data-theme="dark"] .wfc-feature-row p { color: #adadad; }

html[data-theme="dark"] .wfc-platforms { background: #0f0f0f; }
html[data-theme="dark"] .wfc-platforms p { color: #adadad; }
html[data-theme="dark"] .wfc-platform-btn { background: #1a1a1a; border-color: #3d3d3d; color: #e0e0e0; }

html[data-theme="dark"] .wfc-login p { color: #adadad; }
html[data-theme="dark"] .wfc-step { background: #1a1a1a; border-color: #2d2d2d; }
html[data-theme="dark"] .wfc-step-num { background: #2563eb; color: #fff; }
html[data-theme="dark"] .wfc-step strong { color: #f0f0f0; }
html[data-theme="dark"] .wfc-step span { color: #8d8d8d; }
