/* ============================================================
   BELLO Platform — Global Stylesheet
   Light & Dark themes · Professional design · Smooth transitions
   ============================================================ */

/* ---------- Theme Variables ---------- */
:root {
    --primary: #2563eb;
    --primary-2: #0f6ca8;
    --primary-3: #1d4ed8;
    --primary-grad: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #0f9cd8 100%);
    --primary-grad-soft: linear-gradient(135deg, #2563eb, #0f9cd8);
    --accent: #0ea5e9;
    --success: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;

    --bg: #f0f4f8;
    --bg-alt: #e4eaf3;
    --surface: #ffffff;
    --surface-2: #f5f7fb;
    --surface-3: #e8ecf4;
    --text: #0f172a;
    --text-muted: #4b5e78;
    --border: #dce3ef;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --shadow-glow: 0 12px 40px rgba(37, 99, 235, 0.28);
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.5);
    --ring: rgba(37, 99, 235, 0.13);
    --ring-strong: rgba(37, 99, 235, 0.22);
    --hero-glow: rgba(37, 99, 235, 0.25);
    --logo-opacity: 0.65;
}

html[data-theme="dark"] {
    --bg: #060e1e;
    --bg-alt: #0a1530;
    --surface: #0f1d3a;
    --surface-2: #142548;
    --surface-3: #1a3055;
    --text: #e9eefb;
    --text-muted: #8fa3c4;
    --border: #1e3158;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 12px 40px rgba(37, 99, 235, 0.42);
    --glass: rgba(16, 29, 58, 0.75);
    --glass-border: rgba(34, 52, 95, 0.6);
    --ring: rgba(96, 165, 250, 0.16);
    --ring-strong: rgba(96, 165, 250, 0.26);
    --hero-glow: rgba(15, 108, 168, 0.35);
    --logo-opacity: 0.7;
}

/* ---------- Reset & Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { vertical-align: middle; }

h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; letter-spacing: -0.4px; }

.container { width: min(1200px, 92%); margin: 0 auto; }
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); transition: background-color 0.4s ease; }
section { scroll-margin-top: 70px; }

/* ---------- Animated Background Orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.3; animation: orbFloat 20s ease-in-out infinite; }
.orb-1 { width: 520px; height: 520px; background: #2563eb; top: -160px; left: -140px; }
.orb-2 { width: 480px; height: 480px; background: #0f6ca8; bottom: -140px; right: -100px; animation-delay: -6s; }
.orb-3 { width: 380px; height: 380px; background: #0ea5e9; top: 40%; left: 58%; opacity: 0.15; animation-delay: -11s; }
.orb-4 { width: 280px; height: 280px; background: #0b7aa8; bottom: 20%; left: 10%; opacity: 0.12; animation-delay: -3s; }

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.1); }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 0.95rem;
    padding: 13px 24px; border-radius: 12px; border: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center; white-space: nowrap; position: relative; overflow: hidden;
}
.btn-primary { background: var(--primary-grad); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, 0.4); }
.btn-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 36px rgba(79, 70, 229, 0.5); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-glass { background: rgba(255,255,255,0.14); color: #fff; border: 1.5px solid rgba(255,255,255,0.45); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255,255,255,0.24); border-color: #fff; transform: translateY(-3px); box-shadow: 0 16px 36px rgba(11,21,38,0.4); }
.btn-success { background: linear-gradient(135deg, #10b981, #14b8a6); color: #fff; box-shadow: 0 8px 20px rgba(16,185,129,0.35); }
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(16,185,129,0.45); }
.btn-danger { background: linear-gradient(135deg, #ef4444, #f43f5e); color: #fff; }
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(239,68,68,0.35); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-soft { background: var(--ring); color: var(--primary); }
.btn-soft:hover { background: var(--ring-strong); transform: translateY(-2px); }

/* Shine sweep effect */
.btn.shine::before {
    content: ""; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg); transition: left 0.7s ease;
}
.btn.shine:hover::before { left: 130%; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(16px) saturate(140%);
    background: var(--glass); border-bottom: 1px solid var(--glass-border);
    transition: box-shadow 0.35s ease, background 0.35s ease;
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.5px; }
.brand-logo {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    background: var(--primary-grad); color: #fff;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.45);
    transition: transform 0.4s ease;
}
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.06); }
.brand-name { background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); position: relative; transition: color 0.25s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2.5px; background: var(--primary-grad); border-radius: 2px; transition: width 0.35s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switcher { display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 10px; }
.lang-btn { border: none; background: transparent; font-weight: 700; font-size: 0.8rem; padding: 5px 11px; border-radius: 7px; color: var(--text-muted); transition: all 0.3s ease; }
.lang-btn.active { background: var(--primary-grad); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,0.4); }
.lang-divider { width: 1px; height: 16px; background: var(--border); }

.theme-toggle { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); display: grid; place-items: center; overflow: hidden; transition: all 0.4s ease; }
.theme-toggle:hover { transform: rotate(15deg) scale(1.05); border-color: var(--primary); box-shadow: var(--shadow); }
.theme-toggle svg { position: absolute; transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease; }
.icon-moon { opacity: 0; transform: translateY(22px) rotate(-90deg); }
html[data-theme="dark"] .icon-moon { opacity: 1; transform: translateY(0) rotate(0); }
html[data-theme="dark"] .icon-sun { opacity: 0; transform: translateY(-22px) rotate(90deg); }

.mobile-menu-btn { display: none; background: transparent; border: none; color: var(--text); }

/* ---------- Hero ---------- */
.hero {
    position: relative; isolation: isolate;
    padding-top: 190px; padding-bottom: 110px;
    overflow: hidden;
}
/* Immersive full-background image */
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background-image: url("../assets/IMG-20260318-WA0037.jpg");
    background-size: cover; background-position: center;
    transform: scale(1.06);
    animation: heroZoom 18s ease-in-out infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.06) translateY(0); } to { transform: scale(1.14) translateY(-12px); } }
/* Dark gradient overlay for legibility */
.hero-overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(11,21,38,0.82) 0%, rgba(11,21,38,0.66) 50%, var(--bg) 100%),
        linear-gradient(to right, rgba(11,21,38,0.7), rgba(11,21,38,0.4));
}
.hero-glass {
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(11,21,38,0.55), rgba(11,21,38,0.45));
}
.hero-center {
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}
.hero-center .hero-content { max-width: 860px; }
.hero-center .hero-title, .hero-center .hero-subtitle, .hero-center .hero-actions { margin-inline: auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px; border-radius: 999px;
    background: var(--ring); color: var(--primary);
    font-weight: 600; font-size: 0.85rem; margin-bottom: 24px;
    border: 1px solid var(--ring-strong);
}
.hero .hero-badge { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); backdrop-filter: blur(8px); }
.badge-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(16,185,129,0.6); animation: pulseRing 1.8s infinite; }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.6); } 70% { box-shadow: 0 0 0 12px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.hero-title { font-size: clamp(2.3rem, 4.8vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 24px; }
.gradient-text { background: var(--primary-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .hero-title { color: #fff; }
.hero .gradient-text { background: linear-gradient(135deg, #7fb3ff 0%, #4fd1ff 50%, #9af0ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: 1.12rem; color: var(--text-muted); max-width: 560px; margin-bottom: 34px; }
.hero .hero-subtitle { color: rgba(255,255,255,0.85); max-width: 640px; margin-inline: auto; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero .hero-actions { justify-content: center; }

.hero-trust { display: flex; align-items: center; gap: 16px; }
.hero .hero-trust { justify-content: center; }
.hero .hero-trust .avatar { border-color: rgba(255,255,255,0.25); }
.hero .trust-text span { color: rgba(255,255,255,0.8); }
.avatars { display: flex; }
.avatar { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--bg); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: #fff; margin-left: -10px; }
.avatar:first-child { margin-left: 0; }
.a1 { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.a2 { background: linear-gradient(135deg,#06b6d4,#3b82f6); }
.a3 { background: linear-gradient(135deg,#10b981,#14b8a6); }
.a4 { background: linear-gradient(135deg,#2563eb,#0ea5e9); }
.trust-text { display: flex; flex-direction: column; }
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.9rem; }
.trust-text span { font-size: 0.85rem; color: var(--text-muted); }

/* Hero product-window mockup (repositioned picture) */
.hero-window {
    position: relative; width: min(560px, 100%); margin: 46px auto 44px;
    border-radius: 20px; overflow: hidden;
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgba(11,21,38,0.45);
}
.win-bar {
    display: flex; align-items: center; gap: 8px; padding: 13px 16px;
    background: rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.14);
}
.win-dot { width: 12px; height: 12px; border-radius: 50%; }
.win-dot.r { background: #ff5f57; } .win-dot.y { background: #febc2e; } .win-dot.g { background: #28c840; }
.win-title { margin-left: 10px; font-size: 0.8rem; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: 0.3px; }
.win-body { position: relative; padding: 10px; }
.win-img { width: 100%; border-radius: 12px; display: block; aspect-ratio: 3/4; object-fit: cover; }
.win-float-card {
    position: absolute; display: flex; align-items: center; gap: 11px;
    background: var(--glass); backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border); box-shadow: 0 18px 44px rgba(11,21,38,0.4);
    border-radius: 14px; padding: 11px 15px; font-size: 0.8rem;
    animation: popIn 0.6s backwards cubic-bezier(0.16,1,0.3,1);
}
.win-float-card strong { display: block; font-size: 0.84rem; }
.win-float-card div > span { color: rgba(255,255,255,0.78); font-size: 0.73rem; }
.win-float-card .fc-icon {
    width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
    background: rgba(16,185,129,0.18); color: #4ade80; display: grid; place-items: center;
}
.win-float-card .warn-icon { background: rgba(245,158,11,0.18); color: #fbbf24; }
.win-float-card .success-icon { background: rgba(99,102,241,0.2); color: #93c5fd; }
.wf-1 { top: 20px; left: -26px; animation-delay: 0.4s; }
.wf-2 { bottom: 26px; left: -30px; animation-delay: 0.7s; }
.wf-3 { top: 38%; right: -26px; animation-delay: 1s; }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(0.9);} to { opacity: 1; transform: translateY(0) scale(1);} }

/* Marquee logos */
.marquee { margin-top: 70px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-label { text-align: center; color: var(--text-muted); font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; font-weight: 600; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--text-muted); opacity: var(--logo-opacity); white-space: nowrap; transition: opacity 0.3s ease, color 0.3s ease; }
.logo-item svg { width: 22px; height: 22px; opacity: 0.7; }
.logo-item:hover { opacity: 1; color: var(--text); }
.hero .marquee-label { color: rgba(255,255,255,0.7); }
.hero .logo-item { color: rgba(255,255,255,0.75); }
.hero .logo-item:hover { color: #fff; opacity: 1; }

/* ---------- Stats Band ---------- */
.stats-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-box { display: flex; align-items: center; gap: 18px; }
.stat-icon { width: 58px; height: 58px; flex-shrink: 0; border-radius: 16px; background: var(--primary-grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); }
.stat-bignum { font-size: 1.9rem; font-weight: 800; font-family: 'Sora', sans-serif; }
.stat-caption { color: var(--text-muted); font-size: 0.88rem; }

/* ---------- Section headings ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-tag { display: inline-block; padding: 7px 18px; border-radius: 999px; background: var(--ring); color: var(--primary); font-weight: 700; font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -1px; line-height: 1.18; margin-bottom: 16px; }
.section-title.left { text-align: left; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 36px 32px;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s ease, border-color 0.45s ease; position: relative; overflow: hidden;
}
.feature-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.feature-card::after { content: ""; position: absolute; top: -90px; right: -90px; width: 180px; height: 180px; border-radius: 50%; background: var(--ring); opacity: 0; transition: opacity 0.5s ease; }
.feature-card:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-color: var(--ring-strong); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-card:hover::after { opacity: 1; }
.feature-icon { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 24px; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s ease; position: relative; z-index: 1; color: #fff; }
.fi-blue { background: linear-gradient(135deg, #2563eb, #0ea5e9); box-shadow: 0 8px 24px rgba(37,99,235,0.25); }
.fi-red { background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 8px 24px rgba(239,68,68,0.25); }
.fi-purple { background: linear-gradient(135deg, #8b5cf6, #a78bfa); box-shadow: 0 8px 24px rgba(139,92,246,0.25); }
.fi-green { background: linear-gradient(135deg, #10b981, #14b8a6); box-shadow: 0 8px 24px rgba(16,185,129,0.25); }
.fi-orange { background: linear-gradient(135deg, #f59e0b, #f97316); box-shadow: 0 8px 24px rgba(245,158,11,0.25); }
.fi-indigo { background: linear-gradient(135deg, #6366f1, #818cf8); box-shadow: 0 8px 24px rgba(99,102,241,0.25); }
.feature-card:hover .feature-icon { transform: rotate(-8deg) scale(1.1); box-shadow: 0 12px 32px rgba(0,0,0,0.2); }
.feature-card h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 10px; position: relative; z-index: 1; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; position: relative; z-index: 1; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.service-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 36px 28px;
    position: relative; overflow: hidden; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s ease;
}
.service-card:hover { transform: translateY(-12px) rotateX(2deg); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.service-num { position: absolute; top: 18px; right: 22px; font-size: 3.2rem; font-weight: 800; font-family: 'Sora', sans-serif; background: var(--primary-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.15; transition: opacity 0.4s ease; }
.service-card:hover .service-num { opacity: 0.35; }
.service-icon { width: 66px; height: 66px; border-radius: 18px; background: var(--primary-grad); color: #fff; display: grid; place-items: center; margin-bottom: 26px; box-shadow: 0 10px 28px rgba(16,133,247,0.3); transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.08); box-shadow: 0 14px 36px rgba(16,133,247,0.4); }
.service-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin-bottom: 20px; }
.service-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 4px; transition: transform 0.3s ease, gap 0.3s ease; }
.service-link:hover { transform: translateX(5px); gap: 8px; }

/* ---------- Steps ---------- */
.steps { display: flex; align-items: stretch; gap: 24px; justify-content: space-between; }
.step { flex: 1; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 42px 28px; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s ease; position: relative; }
.step:hover { transform: translateY(-12px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.step-num { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-grad); color: #fff; font-size: 1.6rem; font-weight: 800; box-shadow: 0 10px 28px rgba(16,133,247,0.35); position: relative; z-index: 1; }
.step-num::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px dashed var(--ring-strong); opacity: 0.5; animation: spinSlow 20s linear infinite; }
@keyframes spinSlow { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.step-icon { width: 50px; height: 50px; margin: 0 auto 20px; border-radius: 14px; background: var(--ring); color: var(--primary); display: grid; place-items: center; }
.step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.step-connector { width: 60px; align-self: center; display: flex; align-items: center; justify-content: center; position: relative; }
.step-connector::before { content: ""; width: 100%; height: 2px; background: var(--primary-grad); opacity: 0.35; border-radius: 999px; }
.step-connector::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--primary); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.6; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-content p { color: var(--text-muted); margin-bottom: 16px; }
.about-features { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.about-check { display: flex; align-items: flex-start; gap: 12px; }
.about-check span { width: 25px; height: 25px; flex-shrink: 0; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; font-size: 0.82rem; font-weight: 700; box-shadow: 0 4px 12px rgba(16,185,129,0.35); }
.about-check p { color: var(--text); font-weight: 500; margin: 0; }

.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.collage img { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); transition: transform 0.5s ease; }
.collage img:hover { transform: scale(1.03); }
.col-l { min-height: 340px; }
.col-r { min-height: 340px; }

/* ---------- Testimonials ---------- */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.testimonial-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 36px 32px;
    position: relative; overflow: hidden; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s ease;
}
.testimonial-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary-grad); opacity: 0; transition: opacity 0.4s ease; }
.testimonial-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.testimonial-card:hover::before { opacity: 1; }
.quote-mark { position: absolute; top: 10px; right: 24px; font-size: 5.5rem; font-family: 'Georgia', serif; background: var(--primary-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; opacity: 0.18; line-height: 1; }
.testimonial-card .stars { margin-bottom: 16px; color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-card p { color: var(--text); font-size: 0.98rem; line-height: 1.7; margin-bottom: 26px; position: relative; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span:not(.avatar) { color: var(--text-muted); font-size: 0.82rem; }
.avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 0.85rem; font-weight: 800; color: #fff; flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.a1 { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.a2 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.a3 { background: linear-gradient(135deg, #f59e0b, #f97316); }

/* ---------- Contact ---------- */
.contact-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 44px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.ci-card { display: flex; flex-direction: column; gap: 14px; }
.ci-item { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); }
.ci-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--ring-strong); }
.ci-icon { width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,0.15); transition: transform 0.4s ease; }
.ci-item:hover .ci-icon { transform: scale(1.08) rotate(-4deg); }
.ci-email { background: linear-gradient(135deg, #2563eb, #0ea5e9); }
.ci-location { background: linear-gradient(135deg, #10b981, #14b8a6); }
.ci-phone { background: linear-gradient(135deg, #f59e0b, #f97316); }
.ci-text { display: flex; flex-direction: column; gap: 2px; }
.ci-text strong { font-size: 0.95rem; color: var(--text); }
.ci-text p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

.ci-socials { display: flex; gap: 12px; margin-top: 4px; }
.social-link { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; transition: all 0.35s cubic-bezier(0.4,0,0.2,1); box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.social-link:hover { transform: translateY(-5px) scale(1.08); box-shadow: 0 12px 28px rgba(0,0,0,0.2); }
.social-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }
.social-facebook { background: linear-gradient(135deg, #1877f2, #0d47a1); }
.social-instagram { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-twitter { background: linear-gradient(135deg, #1d1d1f, #333); }

.contact-form-wrap { position: relative; }
.contact-form-wrap::before { content: ""; position: absolute; top: -20px; right: -20px; width: 120px; height: 120px; border-radius: 50%; background: var(--ring); opacity: 0.5; z-index: -1; filter: blur(30px); }
.contact-form-wrap::after { content: ""; position: absolute; bottom: -16px; left: -16px; width: 90px; height: 90px; border-radius: 50%; background: rgba(16,185,129,0.12); z-index: -1; filter: blur(25px); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 38px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.contact-form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary-grad); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; color: var(--text); }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px;
    background: var(--surface-2); color: var(--text); font-family: inherit; font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--ring); background: var(--surface); transform: translateY(-1px);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-status { min-height: 22px; font-size: 0.9rem; font-weight: 500; margin-bottom: 12px; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* ---------- CTA ---------- */
.cta-band { padding: 90px 0; background: var(--primary-grad); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; top: -50%; left: -20%; width: 400px; height: 400px; border-radius: 50%; background: rgba(255,255,255,0.12); filter: blur(40px); animation: orbFloat 12s infinite; }
.cta-band::after { content: ""; position: absolute; bottom: -60%; right: -10%; width: 350px; height: 350px; border-radius: 50%; background: rgba(255,255,255,0.12); filter: blur(40px); animation: orbFloat 14s infinite reverse; }
.cta-inner { text-align: center; position: relative; z-index: 1; }
.cta-inner h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -1px; }
.cta-inner p { font-size: 1.1rem; opacity: 0.92; margin-bottom: 34px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 64px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-desc { color: var(--text-muted); margin-top: 16px; max-width: 300px; font-size: 0.95rem; line-height: 1.7; }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); transition: all 0.35s cubic-bezier(0.4,0,0.2,1); }
.socials a:hover { background: var(--primary-grad); color: #fff; border-color: transparent; transform: translateY(-5px); box-shadow: 0 10px 24px rgba(16,133,247,0.3); }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 8px; color: var(--text); font-weight: 700; }
.footer-col a { color: var(--text-muted); font-size: 0.92rem; transition: all 0.3s ease; width: fit-content; position: relative; padding-left: 0; }
.footer-col a:hover { color: var(--primary); transform: translateX(6px); padding-left: 4px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.85rem; flex-wrap: wrap; gap: 10px; }
#health-status { display: inline-flex; align-items: center; gap: 6px; }
.health-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.health-dot.ok { background: var(--success); }
.health-dot.down { background: var(--danger); }

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Auth (Login) page ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 100px 20px 40px; position: relative; }
.auth-card { width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-lg); animation: rise 0.6s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: translateY(0); } }
.auth-card .brand { justify-content: center; margin-bottom: 10px; }
.auth-title { text-align: center; font-size: 1.55rem; font-weight: 800; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 0.92rem; margin-bottom: 28px; }
.auth-toggle { text-align: center; margin-top: 20px; font-size: 0.92rem; color: var(--text-muted); }
.auth-toggle a { color: var(--primary); font-weight: 600; }
.auth-toggle a:hover { text-decoration: underline; }
#form-status-msg { min-height: 22px; font-size: 0.88rem; font-weight: 500; margin-bottom: 14px; }
#form-status-msg.success { color: var(--success); }
#form-status-msg.error { color: var(--danger); }

/* ============================================================
   DASHBOARD LAYOUT (Teacher & Student)
   ============================================================ */
.dash-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.dash-nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.dash-nav-actions { display: flex; align-items: center; gap: 12px; }
.dash-user { font-size: 0.88rem; color: var(--text-muted); font-weight: 600; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dash-main { padding: 120px 0 70px; }

/* Dashboard shell with sidebar */
.dash-shell { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.dash-sidebar {
    background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
    padding: 18px; position: sticky; top: 96px; box-shadow: var(--shadow);
}
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-item {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px;
    color: var(--text-muted); font-weight: 600; font-size: 0.93rem; border: none; background: transparent;
    transition: all 0.3s ease; text-align: left; width: 100%;
}
.side-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.active { background: var(--primary-grad); color: #fff; box-shadow: var(--shadow-glow); }
.side-badge { margin-left: auto; background: var(--danger); color: #fff; font-size: 0.72rem; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.side-item.active .side-badge { background: rgba(255,255,255,0.9); color: var(--danger); }

.dash-content { min-width: 0; }
.dash-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.dash-header h1 { font-size: 1.7rem; font-weight: 800; }
.dash-header .section-sub { margin: 0; }

.panel { display: none; animation: panelIn 0.5s ease; }
.panel.active { display: block; }
@keyframes panelIn { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: translateY(0);} }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.card.h-full { grid-column: 1 / -1; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 26px; }
.stat-mini {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px;
    display: flex; align-items: center; gap: 16px; transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.stat-mini:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.stat-mini .stat-icon { width: 50px; height: 50px; }
.stat-mini .stat-bignum { font-size: 1.5rem; }
.stat-mini .stat-caption { font-size: 0.8rem; }

table { width: 100%; border-collapse: collapse; margin-top: 8px; }
table th, table td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
table th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
table tr:hover td { background: var(--surface-2); }

.badge { padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; color: #fff; }
.badge-pending, .badge-draft { background: var(--warn); }
.badge-approved, .badge-success, .badge-published { background: var(--success); }
.badge-info { background: var(--primary); }

.empty-state { color: var(--text-muted); text-align: center; padding: 26px; font-size: 0.92rem; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
    background: rgba(9, 15, 36, 0.6); backdrop-filter: blur(6px); padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
    width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; padding: 34px;
    box-shadow: var(--shadow-lg); animation: modalIn 0.4s cubic-bezier(0.16,1,0.3,1);
}
.modal.wide { max-width: 780px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.96);} to { opacity: 1; transform: translateY(0) scale(1);} }
.modal h2 { font-size: 1.4rem; margin-bottom: 20px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-header h2 { margin: 0; }
.modal-close { background: var(--surface-2); border: 1px solid var(--border); color: var(--text); width: 38px; height: 38px; border-radius: 10px; font-size: 1.2rem; display: grid; place-items: center; transition: all 0.3s ease; }
.modal-close:hover { background: var(--danger); color: #fff; border-color: transparent; transform: rotate(90deg); }

.question-row {
    display: grid; grid-template-columns: 1fr 1fr 40px; gap: 12px; align-items: start;
    background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 12px;
}
.question-row .form-field { margin-bottom: 0; }
.q-remove { width: 36px; height: 36px; border-radius: 9px; background: var(--ring); border: none; color: var(--danger); font-size: 1.1rem; display: grid; place-items: center; }
.q-remove:hover { background: var(--danger); color: #fff; }

/* Teacher exam management extras */
.hint { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin: 14px 0; }
.exam-window { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; font-weight: 500; opacity: 0.85; }
.question-row input:disabled, .question-row select:disabled { opacity: 0.65; cursor: not-allowed; }

/* Student exam timer */
.exam-timer-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    margin-bottom: 20px; padding: 12px 16px; border-radius: 12px;
    background: var(--surface-2); border: 1px solid var(--border);
}
.exam-timer-label { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.exam-timer { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--primary); font-size: 1.2rem; }
.exam-timer.warn { color: var(--danger); animation: pulseRing 1.2s ease infinite; }

/* Toast notifications */
.toast {
    position: fixed; top: 86px; left: 50%; z-index: 400; max-width: min(92vw, 480px);
    padding: 15px 20px; border-radius: 14px; background: var(--danger); color: #fff;
    box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.95rem; line-height: 1.5;
    display: flex; align-items: flex-start; gap: 11px;
    transform: translate(-50%, -180%); opacity: 0; transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), opacity 0.45s ease;
    pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.success { background: var(--success); }
.toast.info { background: var(--primary); }
.toast.warn { background: var(--warn); color: #1f2937; }

/* Message list */
.msg-list { display: flex; flex-direction: column; gap: 14px; }
.message-item {
    border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: var(--surface);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.message-item:hover { transform: translateX(5px); box-shadow: var(--shadow); }
.message-item.unread { border-left: 4px solid var(--primary); background: linear-gradient(90deg, var(--ring), var(--surface) 40%); }
.message-item .msg-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.message-item .msg-head strong { font-size: 1rem; }
.message-item .msg-meta { color: var(--text-muted); font-size: 0.78rem; }
.message-item p { color: var(--text-muted); font-size: 0.92rem; }
.msg-tag { font-size: 0.72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.msg-tag.broadcast { background: var(--ring); color: var(--primary); }

/* Student list (for messaging picker) */
.student-picker { max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 6px; margin-bottom: 16px; }
.student-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; cursor: pointer; transition: background 0.2s ease; }
.student-opt:hover { background: var(--surface-2); }
.student-opt input { accent-color: var(--primary); width: 17px; height: 17px; }

/* Q-A modal for student exam taking */
.qa-item { margin-bottom: 18px; }
.qa-item .q-text { font-weight: 600; margin-bottom: 10px; }
.qa-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; margin-bottom: 8px; cursor: pointer; transition: all 0.2s ease; }
.qa-option:hover { border-color: var(--primary); background: var(--ring); }
.qa-option.selected { border-color: var(--primary); background: var(--ring); box-shadow: 0 0 0 3px var(--ring); }
.qa-option input { accent-color: var(--primary); }
.qa-textarea { width: 100%; min-height: 90px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font-family: inherit; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: 1fr; gap: 50px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
    .dash-shell { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }
    .side-nav { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
    .section { padding: 74px 0; }
    .nav-links {
        position: fixed; top: 76px; left: 0; right: 0;
        flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--border);
        padding: 22px; gap: 18px; transform: translateY(-130%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1); box-shadow: var(--shadow);
    }
    .nav-links.open { transform: translateY(0); }
    .mobile-menu-btn { display: block; }
    .navbar .btn-primary.btn-sm { display: none; }
    .features-grid, .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .steps { flex-direction: column; }
    .step-connector { width: 2px; height: 40px; align-self: center; }
    .form-row { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .hero { padding-top: 150px; padding-bottom: 90px; }
    .hero-window { width: min(440px, 100%); margin-top: 38px; margin-bottom: 36px; }
    .wf-1, .wf-2, .wf-3 { position: static; margin-top: 10px; }
    .hero .hero-window .win-float-card { flex-direction: row; }
    .collage { grid-template-columns: 1fr; }
    .question-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .stats-grid, .stat-cards { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
