/* index.html style block 1 */
:root { --bg-color:#ffffff; --text-color:#111111; --text-secondary:#666666; --accent-color:#007bff; --border-color:#eaeaea; --card-bg:#ffffff; --card-shadow:0 12px 32px rgba(0, 0, 0, 0.05); --header-height:64px; --banner-height:40px; }
    * { margin:0; padding:0; box-sizing:border-box; }
    body { font-family:"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background-color:#ffffff; color:var(--text-color); line-height:1.6; }
    .navbar { position:fixed; top:var(--banner-height); left:0; right:0; height:var(--header-height); background:rgba(255, 255, 255, 0.85); backdrop-filter:blur(12px); display:flex; align-items:center; justify-content:space-between; padding:0 40px; z-index:1000; }
    .nav-left { display:flex; align-items:center; gap:40px; }
    .nav-brand { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text-color); font-weight:700; font-size:20px; margin-top:4px; }
    .nav-brand img { height:32px; }
    .nav-links { display:flex; gap:32px; margin-top:5px; }
    .nav-link { text-decoration:none; color:var(--text-secondary); font-weight:500; font-size:15px; transition:color 0.2s; }
    .nav-link:hover, .nav-link.active { color:var(--text-color); }
    .nav-actions { display:flex; gap:16px; align-items:center; }
    .user-profile { display:flex; align-items:center; color:var(--text-secondary); margin-top:15px; gap:12px; font-size:14px; font-weight:500; text-decoration:none; padding:6px 12px; border-radius:100px; transition:background 0.2s; line-height:1.2; }
    .user-profile:hover { background:#f1f5f9; color:var(--text-color); }
    .user-avatar { width:36px; height:36px; background:#e2e8f0; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#94a3b8; font-size:18px; flex-shrink:0; }
    .mobile-menu-btn { display:none; background:none; border:none; font-size:24px; color:var(--text-color); cursor:pointer; }
    .hero { padding:calc(var(--header-height) + var(--banner-height) + 80px) 20px 18px; max-width:1480px; margin:0 auto; }
    .hero-surface { position:relative; overflow:hidden; border-radius:44px; padding:40px 40px 55px; margin-top:40px; background:border-box; isolation:isolate; }
    .hero-surface::before { content:""; position:absolute; inset:0; background:radial-gradient(circle at 7% 22%, rgba(255, 255, 255, 0.8) 0 0.55%, transparent 0.2%), radial-gradient(circle at 18% 52%, rgba(255, 255, 255, 0.7) 0 0.42%, transparent 0.2%), radial-gradient(circle at 56% 16%, rgba(255, 255, 255, 0.76) 0 0.33%, transparent 0.2%), radial-gradient(circle at 71% 35%, rgba(255, 255, 255, 0.64) 0 0.36%, transparent 0.2%), radial-gradient(circle at 92% 18%, rgba(255, 255, 255, 0.75) 0 0.3%, transparent 0.2%); pointer-events:none; }
    .hero-surface::after { content:""; position:absolute; inset:auto -8% -22% auto; width:400px; height:400px; border-radius:50%; background:none; pointer-events:none; z-index:0; filter:blur(12px); }
    .hero-copy { position:relative; z-index:2; text-align:center; max-width:940px; margin:0 auto; margin-bottom:80px; }
    .hero-chip { display:inline-flex; align-items:center; gap:8px; padding:7px 12px; margin-bottom:14px; border-radius:999px; background:rgba(255, 250, 244, 0.72); border:1px solid rgba(246, 214, 183, 0.88); color:#9e6239; font-size:11px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; backdrop-filter:blur(14px); box-shadow:0 12px 30px rgba(172, 110, 49, 0.10); }
    .hero-chip::before { content:""; width:7px; height:7px; border-radius:999px; background:linear-gradient(135deg, #efb26d 0%, #d67632 100%); }
    .hero-script { position:absolute; left:50%; top:12px; transform:translateX(-50%); font-family:"Georgia", "Times New Roman", serif; font-size:clamp(72px, 13vw, 150px); line-height:0.9; color:rgba(148, 163, 184, 0.14); letter-spacing:0.02em; white-space:nowrap; pointer-events:none; user-select:none; font-style:italic; }
    .hero-title { position:relative; z-index:2; font-size:50px; font-weight:800; color:#21140b; margin:0 0 10px; letter-spacing:-0.04em; line-height:1.04; margin-bottom:20px; }
    .hero-subtitle { position:relative; z-index:2; font-size:15px; color:#64748b; max-width:760px; margin:0 auto; font-weight:600; line-height:1.62; }
    .hero-actions { position:relative; z-index:2; display:flex; justify-content:center; align-items:center; gap:12px; flex-wrap:wrap; margin-top:35px; }
    .hero-primary-action { position:relative; z-index:2; display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 28px; margin-top:0; border-radius:999px; background:#0b0f19; color:#ffffff; text-decoration:none; font-size:15px; font-weight:800; line-height:1; box-shadow:0 16px 34px rgba(15, 23, 42, 0.18); transition:transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
    .hero-primary-action:hover { transform:translateY(-2px); background:#111827; box-shadow:0 20px 42px rgba(15, 23, 42, 0.22); }
    .hero-free-badge { position:absolute; top:-12px; right:-10px; z-index:3; display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:23px; padding:0 9px; border-radius:999px; border:0; background:linear-gradient(135deg, #ff6a3d 0%, #ff3d6e 54%, #9b5cff 100%); color:#fff; font-size:10px; font-weight:900; line-height:1; white-space:nowrap; box-shadow:0 10px 24px rgba(255, 61, 110, 0.32); pointer-events:none; }
    .hero-free-badge i { font-size:9px; color:#fff8cc; transform:translateY(-0.5px); }
    .hero-secondary-action { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:0 24px; border-radius:999px; background:#ffffff; border:1px solid #e5e7eb; color:#111827; text-decoration:none; font-size:15px; font-weight:800; line-height:1; box-shadow:0 12px 28px rgba(15, 23, 42, 0.06); transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
    .hero-secondary-action:hover { transform:translateY(-2px); border-color:#d1d5db; box-shadow:0 18px 34px rgba(15, 23, 42, 0.1); }
    .matrix-section { max-width:1400px; margin:110px auto 80px; padding:0 20px; }
    .agent-matrix-section { margin-top:28px; }
    .matrix-header { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:40px; }
    .matrix-header h2 { font-size:32px; font-weight:800; color:#111; margin-bottom:12px; letter-spacing:-0.5px; }
    .matrix-header p { font-size:15px; color:var(--text-secondary); }
    .nav-arrows { display:flex; gap:12px; }
    .arrow-btn { width:40px; height:40px; border-radius:50%; border:1px solid #eaeaea; background:#fff; display:flex; align-items:center; justify-content:center; color:#111; cursor:pointer; transition:all 0.2s; }
    .arrow-btn:hover { border-color:#111; }
    .matrix-cards { display:grid; grid-template-columns:repeat(4, 1fr); gap:20px; }
    .agent-matrix-layout { grid-template-columns:repeat(12, minmax(0, 1fr)); grid-template-rows:132px 112px 132px; gap:16px; align-items:stretch; }
    .m-card { border-radius:24px; padding:32px 24px; height:420px; position:relative; display:flex; flex-direction:column; color:#fff; overflow:hidden; text-decoration:none; transition:all 0.3s ease; }
    .agent-matrix-layout .m-card { height:auto; min-height:0; border-radius:24px; box-shadow:none; }
    .agent-matrix-layout .m-card:hover { transform:translateY(-4px); box-shadow:0 18px 42px rgba(15, 23, 42, 0.12); }
    .agent-matrix-layout .m-card:first-child { grid-column:1 / span 6; grid-row:1 / span 3; padding:30px 32px; border-radius:26px; }
    .agent-matrix-layout .m-card.agent-card-clone { grid-column:7 / span 6; grid-row:1; }
    .agent-matrix-layout .m-card.agent-card-product { grid-column:7 / span 3; grid-row:2; }
    .agent-matrix-layout .m-card.agent-card-fashion { grid-column:10 / span 3; grid-row:2; }
    .agent-matrix-layout .m-card.agent-card-image { grid-column:7 / span 6; grid-row:3; }
    .agent-matrix-layout .m-card:not(:first-child) { padding:18px 20px 16px; }
    .agent-matrix-layout .m-card:not(:first-child) .m-card-top { align-items:flex-start; gap:10px; }
    .agent-matrix-layout .m-card:not(:first-child) .m-card-huge { margin-top:0; font-size:21px; line-height:1.1; letter-spacing:0; white-space:nowrap; }
    .agent-matrix-layout .m-card.agent-card-product .m-card-huge, .agent-matrix-layout .m-card.agent-card-fashion .m-card-huge { font-size:18px; }
    .agent-matrix-layout .m-card:not(:first-child) .m-card-bottom-header { margin-bottom:6px; }
    .agent-matrix-layout .m-card:not(:first-child) .m-card-desc { font-size:11px; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .agent-matrix-section { max-width:1360px; }
    .agent-matrix-layout { position:relative; overflow:hidden; isolation:isolate; padding:10px; border-radius:34px; background:linear-gradient(135deg, rgba(245, 247, 251, 0.94), rgba(232, 238, 248, 0.82) 48%, rgba(247, 244, 250, 0.92)); border:1px solid rgba(255, 255, 255, 0.76); box-shadow:0 30px 90px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92); }
    .agent-matrix-layout::before { content:""; position:absolute; inset:0; z-index:0; pointer-events:none; background:linear-gradient(115deg, rgba(255, 255, 255, 0.62) 0 18%, transparent 18% 44%, rgba(255, 255, 255, 0.34) 44% 45%, transparent 45% 100%), linear-gradient(28deg, rgba(255, 227, 196, 0.34), transparent 34%, rgba(199, 233, 255, 0.28) 68%, rgba(242, 215, 255, 0.24)); }
    .agent-matrix-layout .m-card { z-index:1; border-radius:26px; border:1px solid rgba(255, 255, 255, 0.58); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.92), inset 0 -1px 0 rgba(255, 255, 255, 0.18), 0 18px 46px rgba(15, 23, 42, 0.08); }
    .agent-matrix-layout .m-card:hover { transform:translateY(-3px); box-shadow:0 20px 44px rgba(15, 23, 42, 0.1); }
    .agent-matrix-layout .m-card:not(:first-child) { background:#fff !important; color:#111827; }
    .agent-matrix-layout .m-card:not(:first-child)::before { background:linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.4)) !important; opacity:1; }
    .agent-matrix-layout .m-card:not(:first-child) .agent-card-visual::before { background:linear-gradient(135deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0)); opacity:1; }
    .agent-matrix-layout .m-card:not(:first-child) .agent-card-visual::after { background:transparent; box-shadow:none; border:1px solid rgba(15, 23, 42, 0.06); opacity:1; }
    .agent-matrix-layout .m-card:not(:first-child) .m-card-huge { color:#111827; font-weight:820; }
    .agent-matrix-layout .m-card:not(:first-child) .m-card-title-small { color:#334155; }
    .agent-matrix-layout .m-card:not(:first-child) .m-card-desc { color:#64748b !important; opacity:1; }
    .agent-matrix-layout .m-card:not(:first-child) .badge-new { background:#f5f5f7 !important; color:#111827 !important; border:1px solid rgba(15, 23, 42, 0.06); }
    .agent-matrix-layout .m-card:not(:first-child) .tag-small { background:#f1f5f9 !important; color:#475569 !important; }
    .agent-matrix-layout .m-card:not(:first-child) .card-arrow { background:#111827 !important; color:#fff !important; width:30px; height:30px; }
    .agent-matrix-layout .m-card.agent-card-clone { background:linear-gradient(180deg, #ffffff 0%, #fbfaff 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-product { background:linear-gradient(180deg, #ffffff 0%, #fffaf0 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-fashion { background:linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-image { background:linear-gradient(180deg, #ffffff 0%, #fff7f7 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-clone { background:#111827 !important; border-color:rgba(255, 255, 255, 0.2); color:#fff !important; }
    .agent-matrix-layout .m-card.agent-card-clone::before { background:linear-gradient(90deg, rgba(8, 13, 24, 0.92) 0%, rgba(8, 13, 24, 0.64) 46%, rgba(8, 13, 24, 0.18) 100%) !important; opacity:1; z-index:1; }
    .agent-matrix-layout .m-card.agent-card-clone::after { content:""; position:absolute; inset:1px; border-radius:25px; border:1px solid rgba(255, 255, 255, 0.13); pointer-events:none; z-index:2; }
    .agent-matrix-layout .m-card.agent-card-clone .m-card-content { width:100%; max-width:none; z-index:3; }
    .agent-matrix-layout .m-card.agent-card-clone .m-card-top,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-title-small,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-desc { max-width:68%; }
    .agent-matrix-layout .m-card.agent-card-clone .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-title-small,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-desc { color:#fff !important; }
    .agent-matrix-layout .m-card.agent-card-clone .m-card-desc { opacity:0.92; }
    .agent-matrix-layout .m-card.agent-card-clone .badge-new,
    .agent-matrix-layout .m-card.agent-card-clone .tag-small { background:rgba(255, 255, 255, 0.18) !important; color:#fff !important; border:1px solid rgba(255, 255, 255, 0.24) !important; }
    .agent-matrix-layout .m-card.agent-card-clone .card-arrow { position:absolute; right:0; bottom:0; background:#fff !important; color:#111827 !important; z-index:4; }
    .clone-card-video { position:absolute; inset:-1px; width:auto; z-index:0; overflow:hidden; pointer-events:none; border-radius:inherit; }
    .clone-card-video video { width:100%; height:100%; object-fit:cover; display:block; filter:saturate(1.06) contrast(1.02); }
    .clone-card-video::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(8, 13, 24, 0.42), rgba(8, 13, 24, 0.05)); }
    .agent-matrix-layout .m-card.agent-card-product { background:linear-gradient(145deg, rgba(255, 255, 255, 0.48), rgba(255, 241, 190, 0.2)) !important; border-color:rgba(255, 255, 255, 0.7); backdrop-filter:blur(30px) saturate(1.35); -webkit-backdrop-filter:blur(30px) saturate(1.35); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 0 rgba(255, 255, 255, 0.24), 0 18px 46px rgba(120, 53, 15, 0.1); }
    .agent-matrix-layout .m-card.agent-card-fashion { background:linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(196, 241, 233, 0.2)) !important; border-color:rgba(255, 255, 255, 0.68); backdrop-filter:blur(30px) saturate(1.35); -webkit-backdrop-filter:blur(30px) saturate(1.35); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 0 rgba(255, 255, 255, 0.24), 0 18px 46px rgba(15, 118, 110, 0.1); }
    .agent-matrix-layout .m-card.agent-card-image { background:linear-gradient(145deg, rgba(255, 255, 255, 0.47), rgba(248, 211, 226, 0.22)) !important; border-color:rgba(255, 255, 255, 0.68); backdrop-filter:blur(30px) saturate(1.35); -webkit-backdrop-filter:blur(30px) saturate(1.35); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.96), inset 0 -1px 0 rgba(255, 255, 255, 0.24), 0 18px 46px rgba(190, 18, 60, 0.08); }
    .agent-matrix-layout .m-card.agent-card-product::before,
    .agent-matrix-layout .m-card.agent-card-fashion::before,
    .agent-matrix-layout .m-card.agent-card-image::before { background:linear-gradient(118deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.24) 31%, rgba(255, 255, 255, 0.04) 58%), linear-gradient(25deg, transparent 0 62%, rgba(255, 255, 255, 0.34) 62% 63%, transparent 63% 100%) !important; opacity:1; }
    .agent-matrix-layout .m-card.agent-card-product::after,
    .agent-matrix-layout .m-card.agent-card-fashion::after,
    .agent-matrix-layout .m-card.agent-card-image::after { content:""; position:absolute; inset:1px; border-radius:25px; border:1px solid rgba(255, 255, 255, 0.78); pointer-events:none; z-index:0; box-shadow:inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
    .agent-matrix-layout .m-card.agent-card-product .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-product .m-card-title-small,
    .agent-matrix-layout .m-card.agent-card-product .m-card-desc { color:#5f4114 !important; }
    .agent-matrix-layout .m-card.agent-card-fashion .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-fashion .m-card-title-small,
    .agent-matrix-layout .m-card.agent-card-fashion .m-card-desc,
    .agent-matrix-layout .m-card.agent-card-image .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-image .m-card-title-small,
    .agent-matrix-layout .m-card.agent-card-image .m-card-desc { color:#334155 !important; }
    .agent-matrix-layout .m-card.agent-card-product .badge-new,
    .agent-matrix-layout .m-card.agent-card-product .tag-small { background:rgba(255, 255, 255, 0.42) !important; color:#5f4114 !important; border:1px solid rgba(255, 255, 255, 0.62) !important; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.72); }
    .agent-matrix-layout .m-card.agent-card-fashion .badge-new,
    .agent-matrix-layout .m-card.agent-card-fashion .tag-small,
    .agent-matrix-layout .m-card.agent-card-image .badge-new,
    .agent-matrix-layout .m-card.agent-card-image .tag-small { background:rgba(255, 255, 255, 0.42) !important; color:#334155 !important; border:1px solid rgba(255, 255, 255, 0.62) !important; backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.72); }
    .agent-matrix-layout .m-card.agent-card-product .card-arrow { background:rgba(255, 255, 255, 0.48) !important; color:#5f4114 !important; border:1px solid rgba(255, 255, 255, 0.68); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 22px rgba(120, 53, 15, 0.08); }
    .agent-matrix-layout .m-card.agent-card-fashion .card-arrow,
    .agent-matrix-layout .m-card.agent-card-image .card-arrow { background:rgba(255, 255, 255, 0.48) !important; color:#334155 !important; border:1px solid rgba(255, 255, 255, 0.68); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 22px rgba(15, 23, 42, 0.08); }
    .m-card:hover { transform:translateY(-8px); box-shadow:0 20px 40px rgba(0, 0, 0, 0.1); }
    .m-card.red { background:linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%); }
    .m-card.red::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%), linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 40%, rgba(255, 255, 255, 0.05) 60%, transparent 60%); z-index:0; pointer-events:none; }
    .m-card.purple { background:linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); }
    .m-card.purple::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.1) 0%, transparent 60%), linear-gradient(to right, rgba(255, 255, 255, 0.05) 50%, transparent 50%); z-index:0; pointer-events:none; }
    .m-card.video-bg { background:url('../images/home/agent-product-1.png') center/cover; background-color:#1f2937; }
    .m-card.video-bg::before { content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%); z-index:0; }
    .m-card.yellow { background:linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); }
    .m-card.yellow::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 0% 50%, transparent 40%, rgba(255, 255, 255, 0.1) 41%, rgba(255, 255, 255, 0.1) 42%, transparent 43%), radial-gradient(circle at 0% 50%, transparent 60%, rgba(255, 255, 255, 0.05) 61%, rgba(255, 255, 255, 0.05) 62%, transparent 63%); z-index:0; pointer-events:none; }
    .m-card.teal { background:linear-gradient(135deg, #0f766e 0%, #14b8a6 100%); }
    .m-card.teal::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 88% 14%, rgba(255,255,255,0.18) 0%, transparent 42%), linear-gradient(135deg, transparent 0 44%, rgba(255,255,255,0.08) 44% 58%, transparent 58% 100%); z-index:0; pointer-events:none; }
    .m-card-content { position:relative; z-index:1; height:100%; display:flex; flex-direction:column; }
    .agent-card-kicker { position:relative; z-index:1; display:inline-flex; align-items:center; gap:8px; width:max-content; min-height:28px; padding:0 12px; border-radius:999px; background:rgba(255,255,255,0.18); color:rgba(255,255,255,0.92); font-size:12px; font-weight:760; backdrop-filter:blur(12px); }
    .agent-card-kicker::before { content:""; width:7px; height:7px; border-radius:50%; background:#fff; opacity:0.9; }
    .agent-matrix-layout .m-card:first-child { background:linear-gradient(145deg, #050505 0%, #141416 52%, #242426 100%) !important; border-color:rgba(255, 255, 255, 0.08); box-shadow:0 22px 54px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
    .agent-matrix-layout .m-card:first-child::before { background:radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.1), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)) !important; opacity:1; }
    .agent-matrix-layout .m-card:first-child .agent-card-visual::before { inset:12% -8% auto auto; width:45%; height:46%; background:rgba(255, 255, 255, 0.08); clip-path:polygon(26% 0, 100% 0, 76% 100%, 0 100%); }
    .agent-matrix-layout .m-card:first-child .agent-card-lines { opacity:0.32; background:linear-gradient(112deg, transparent 0 22%, rgba(255,255,255,0.14) 22% 22.4%, transparent 22.4% 100%), linear-gradient(63deg, transparent 0 51%, rgba(255,255,255,0.12) 51% 51.35%, transparent 51.35% 100%); }
    .agent-matrix-layout .m-card:first-child .m-card-content { max-width:560px; }
    .agent-matrix-layout .m-card:first-child .m-card-huge { margin-top:0; font-size:clamp(25px, 2.2vw, 40px); letter-spacing:0; max-width:680px; white-space:nowrap; }
    .agent-matrix-layout .m-card:first-child .m-card-bottom { margin-top:22px; max-width:620px; }
    .agent-matrix-layout .m-card:first-child .card-arrow { position:absolute; right:0; bottom:0; width:34px; height:34px; background:rgba(255, 255, 255, 0.12) !important; color:#fff !important; border:1px solid rgba(255, 255, 255, 0.18); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 34px rgba(0, 0, 0, 0.22); }
    .agent-card-visual { position:absolute; inset:0; z-index:0; pointer-events:none; overflow:hidden; }
    .agent-card-visual::before { content:""; position:absolute; inset:-18% -10% auto auto; width:54%; height:72%; background:rgba(255,255,255,0.16); clip-path:polygon(28% 0, 100% 0, 72% 100%, 0 100%); }
    .agent-card-visual::after { content:""; position:absolute; right:9%; bottom:5%; width:32%; aspect-ratio:1; border-radius:50%; background:rgba(255,255,255,0.12); box-shadow:inset 0 0 0 10px rgba(255,255,255,0.08), inset 0 0 0 38px rgba(255,255,255,0.06); }
    .agent-matrix-layout .m-card:first-child .agent-card-visual::after { display:none; }
    .agent-card-lines { position:absolute; inset:0; background:linear-gradient(118deg, transparent 0 18%, rgba(255,255,255,0.15) 18% 18.6%, transparent 18.6% 100%), linear-gradient(64deg, transparent 0 52%, rgba(255,255,255,0.12) 52% 52.5%, transparent 52.5% 100%); opacity:0.85; }
    .agent-card-dot { display:none; position:absolute; width:18px; height:18px; border-radius:50%; background:#fff; opacity:0.86; box-shadow:0 0 0 7px rgba(255,255,255,0.16); }
    .agent-card-dot.one { left:18%; top:34%; }
    .agent-card-dot.two { right:12%; top:68%; }
    .agent-card-visual.compact::before { inset:-16% -14% auto auto; width:58%; height:82%; opacity:0.75; }
    .agent-card-visual.compact::after { right:-8%; bottom:-34%; width:44%; opacity:0.8; }
    .agent-card-visual.light::before, .agent-card-visual.light::after { background:rgba(17,24,39,0.08); box-shadow:inset 0 0 0 8px rgba(17,24,39,0.05), inset 0 0 0 30px rgba(17,24,39,0.035); }
    .m-card-top { display:flex; justify-content:space-between; align-items:flex-start; }
    .m-card-huge { font-size:35px; line-height:1.1; margin-top:40px; letter-spacing:0; }
    .badge-new { background:#fff; color:#111; font-size:11px; font-weight:800; padding:4px 10px; border-radius:100px; }
    .m-card-bottom { margin-top:auto; }
    .m-card-bottom-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
    .m-card-title-small { font-size:13px; font-weight:700; display:flex; align-items:center; gap:8px; white-space:nowrap; min-width:0; }
    .tag-small { background:rgba(255, 255, 255, 0.25); padding:2px 8px; border-radius:4px; font-size:10px; font-weight:600; }
    .m-card-desc { font-size:12px; opacity:0.95; line-height:1.45; font-weight:500; }
    .card-arrow { width:28px; height:28px; background:#fff; color:#111; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; }
    .agent-matrix-section { max-width:1280px; margin-top:30px; }
    .agent-matrix-layout {
      display:grid !important;
      grid-template-columns:repeat(6, minmax(0, 1fr)) !important;
      grid-template-rows:none !important;
      gap:18px;
      align-items:stretch;
      padding:0 !important;
      overflow:visible;
      border:0 !important;
      border-radius:0 !important;
      background:transparent !important;
      box-shadow:none !important;
    }
    .agent-matrix-layout::before { display:none !important; }
    .agent-matrix-layout .m-card,
    .agent-matrix-layout .m-card:first-child,
    .agent-matrix-layout .m-card.agent-card-clone,
    .agent-matrix-layout .m-card.agent-card-product,
    .agent-matrix-layout .m-card.agent-card-fashion,
    .agent-matrix-layout .m-card.agent-card-image {
      grid-column:auto !important;
      grid-row:auto !important;
      aspect-ratio:9 / 16;
      min-height:0 !important;
      height:auto !important;
      padding:18px 16px 16px !important;
      border-radius:26px !important;
      color:#111827 !important;
      border:1px solid rgba(255, 255, 255, 0.68) !important;
      background:linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.38)) !important;
      backdrop-filter:blur(26px) saturate(1.18);
      -webkit-backdrop-filter:blur(26px) saturate(1.18);
      box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 22px 54px rgba(15, 23, 42, 0.1) !important;
    }
    .agent-matrix-layout .m-card:hover {
      transform:translateY(-4px);
      border-color:rgba(255, 255, 255, 0.88) !important;
      box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 28px 68px rgba(15, 23, 42, 0.15) !important;
    }
    .agent-matrix-layout .m-card::before {
      content:"" !important;
      position:absolute;
      inset:0;
      z-index:0;
      pointer-events:none;
      opacity:1 !important;
      background:linear-gradient(152deg, rgba(255, 255, 255, 0.88) 0 36%, rgba(255, 255, 255, 0.16) 36% 100%) !important;
    }
    .agent-matrix-layout .m-card::after {
      content:"";
      position:absolute;
      inset:1px;
      z-index:0;
      pointer-events:none;
      border-radius:25px;
      border:1px solid rgba(255, 255, 255, 0.55);
    }
    .agent-matrix-layout .m-card.video-bg {
      background:linear-gradient(145deg, rgba(16, 20, 28, 0.9), rgba(31, 41, 55, 0.66)) !important;
      color:#fff !important;
      border-color:rgba(255, 255, 255, 0.16) !important;
      box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 62px rgba(15, 23, 42, 0.22) !important;
    }
    .agent-matrix-layout .m-card.video-bg::before {
      background:linear-gradient(180deg, rgba(4, 7, 13, 0.28), rgba(4, 7, 13, 0.86)) !important;
      z-index:1;
    }
    .agent-matrix-layout .m-card.agent-card-clone { background:linear-gradient(145deg, rgba(238, 242, 255, 0.78), rgba(255, 255, 255, 0.46)) !important; }
    .agent-matrix-layout .m-card.agent-card-product { background:linear-gradient(145deg, rgba(255, 248, 232, 0.82), rgba(255, 255, 255, 0.44)) !important; }
    .agent-matrix-layout .m-card.agent-card-fashion { background:linear-gradient(145deg, rgba(230, 250, 247, 0.8), rgba(255, 255, 255, 0.44)) !important; }
    .agent-matrix-layout .m-card.agent-card-image { background:linear-gradient(145deg, rgba(255, 237, 242, 0.82), rgba(255, 255, 255, 0.44)) !important; }
    .agent-matrix-layout .m-card.agent-card-aplus { background:linear-gradient(145deg, rgba(239, 246, 255, 0.82), rgba(255, 255, 255, 0.48)) !important; cursor:not-allowed; }
    .agent-matrix-layout .clone-card-video { z-index:0; opacity:0.55; }
    .agent-matrix-layout .clone-card-video::after { background:linear-gradient(180deg, rgba(4, 7, 13, 0.1), rgba(4, 7, 13, 0.78)); }
    .agent-matrix-layout .agent-card-visual { z-index:0; opacity:1; }
    .agent-matrix-layout .agent-card-visual::before {
      inset:8% -16% auto auto;
      width:74%;
      height:34%;
      background:rgba(255, 255, 255, 0.34) !important;
      clip-path:polygon(26% 0, 100% 0, 78% 100%, 0 100%);
    }
    .agent-matrix-layout .agent-card-visual::after {
      right:-22%;
      bottom:-8%;
      width:82%;
      background:rgba(255, 255, 255, 0.24) !important;
      box-shadow:inset 0 0 0 12px rgba(255, 255, 255, 0.14), inset 0 0 0 36px rgba(255, 255, 255, 0.1) !important;
    }
    .agent-matrix-layout .m-card-content {
      position:relative;
      z-index:3;
      height:100%;
      max-width:none !important;
    }
    .agent-matrix-layout .m-card-top {
      align-items:flex-start !important;
      gap:12px;
    }
    .agent-feature-main {
      display:flex;
      flex-direction:column;
      align-items:flex-start;
      gap:14px;
      min-width:0;
    }
    .agent-feature-icon {
      width:44px;
      height:44px;
      display:inline-flex;
      align-items:center;
      justify-content:center;
      border-radius:15px;
      background:#111827;
      color:#fff;
      box-shadow:0 16px 34px rgba(15, 23, 42, 0.16);
      flex:0 0 auto;
    }
    .agent-card-clone .agent-feature-icon { background:#5b4cf0; }
    .agent-card-product .agent-feature-icon { background:#f59e0b; }
    .agent-card-fashion .agent-feature-icon { background:#0f8b7f; }
    .agent-card-image .agent-feature-icon { background:#e91e4d; }
    .agent-matrix-layout .m-card.video-bg .agent-feature-icon { background:rgba(255, 255, 255, 0.12); border:1px solid rgba(255, 255, 255, 0.16); color:#fff; backdrop-filter:blur(16px); }
    .agent-matrix-layout .m-card .m-card-huge,
    .agent-matrix-layout .m-card:first-child .m-card-huge,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-product .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-fashion .m-card-huge {
      margin:0 !important;
      max-width:100% !important;
      color:inherit !important;
      font-size:clamp(22px, 1.55vw, 30px) !important;
      line-height:1.08 !important;
      font-weight:860;
      letter-spacing:0 !important;
      white-space:normal !important;
    }
    .agent-matrix-layout .badge-new {
      min-height:26px;
      padding:0 10px;
      display:inline-flex;
      align-items:center;
      border-radius:999px;
      border:1px solid rgba(255, 255, 255, 0.58) !important;
      background:rgba(255, 255, 255, 0.45) !important;
      color:#334155 !important;
      font-size:11px;
      font-weight:760;
      backdrop-filter:blur(14px);
      -webkit-backdrop-filter:blur(14px);
      box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }
    .agent-matrix-layout .m-card.video-bg .badge-new {
      background:rgba(255, 255, 255, 0.15) !important;
      color:#fff !important;
      border-color:rgba(255, 255, 255, 0.2) !important;
    }
    .agent-matrix-layout .m-card-bottom {
      margin-top:auto !important;
    }
    .agent-matrix-layout .m-card-bottom-header {
      align-items:flex-end;
      gap:12px;
      margin-bottom:10px !important;
    }
    .agent-matrix-layout .m-card-title-small,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-title-small {
      color:inherit !important;
      font-size:13px;
      line-height:1.2;
      font-weight:780;
      white-space:normal;
      flex-wrap:wrap;
    }
    .agent-matrix-layout .tag-small,
    .agent-matrix-layout .m-card:not(:first-child) .tag-small {
      border-radius:999px;
      padding:3px 8px;
      background:rgba(255, 255, 255, 0.46) !important;
      color:inherit !important;
      border:1px solid rgba(255, 255, 255, 0.54) !important;
      font-size:10px;
    }
    .agent-matrix-layout .m-card-desc,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-desc,
    .agent-matrix-layout .m-card:first-child .m-card-desc {
      max-width:100% !important;
      color:inherit !important;
      opacity:0.72 !important;
      font-size:12px !important;
      line-height:1.55 !important;
      white-space:normal !important;
      overflow:hidden;
      display:-webkit-box;
      -webkit-line-clamp:2;
      -webkit-box-orient:vertical;
    }
    .agent-matrix-layout .card-arrow,
    .agent-matrix-layout .m-card:not(:first-child) .card-arrow,
    .agent-matrix-layout .m-card:first-child .card-arrow,
    .agent-matrix-layout .m-card.agent-card-clone .card-arrow {
      position:static !important;
      flex:0 0 auto;
      width:34px;
      height:34px;
      border-radius:50%;
      background:rgba(255, 255, 255, 0.56) !important;
      color:#111827 !important;
      border:1px solid rgba(255, 255, 255, 0.68);
      backdrop-filter:blur(16px);
      -webkit-backdrop-filter:blur(16px);
      box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 26px rgba(15, 23, 42, 0.08);
    }
    .agent-matrix-layout .m-card.video-bg .card-arrow {
      background:#fff !important;
      color:#111827 !important;
      border-color:rgba(255, 255, 255, 0.2);
    }
    .bottom-section { background:#000; color:#fff; margin-top:80px; position:relative; overflow:hidden; }
    .starry-bg { position:absolute; inset:0; background-image:radial-gradient(#fff 1px, transparent 1px), radial-gradient(#fff 1px, transparent 1px); background-size:50px 50px; background-position:0 0, 25px 25px; opacity:0.15; z-index:1; animation:stars 60s linear infinite; }
    @keyframes stars {
      0% { transform:translateY(0); }
      100% { transform:translateY(-50px); }
    }
    .footer { padding:40px 40px 30px; position:relative; z-index:2; border-top:1px solid rgba(255, 255, 255, 0.05); }
    .footer-content { max-width:1200px; margin:0 auto; display:flex; justify-content:space-between; gap:40px; }
    .footer-brand { flex:2; }
    .footer-links-wrapper { flex:3; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:34px; }
    .footer-brand h3 { color:#fff; font-size:24px; margin-bottom:16px; }
    .footer-brand p { color:#888; font-size:14px; margin-bottom:24px; max-width:300px; }
    .footer-col h4 { color:#fff; font-size:16px; margin-bottom:20px; font-weight:600; }
    .footer-col ul { list-style:none; }
    .footer-col ul li { margin-bottom:12px; }
    .footer-col ul a { color:#888; text-decoration:none; font-size:14px; transition:color 0.2s; }
    .footer-col ul a:hover { color:#fff; }
    .footer-bottom { max-width:1200px; margin:40px auto 0; padding-top:20px; border-top:1px solid #333; display:flex; align-items:center; justify-content:center; gap:18px; flex-wrap:wrap; color:#666; font-size:13px; }
    @media (max-width: 1024px) {
      .hero-graphic { padding:40px 20px; }
      .feature-pills { flex-direction:column; align-items:center; }
      .matrix-cards { grid-template-columns:repeat(2, 1fr); }
      .agent-matrix-layout { grid-template-columns:repeat(2, minmax(0, 1fr)); grid-template-rows:260px 150px 150px; }
      .agent-matrix-layout .m-card:first-child { grid-column:1 / -1; grid-row:1; }
      .agent-matrix-layout .m-card.agent-card-clone { grid-column:1; grid-row:2; }
      .agent-matrix-layout .m-card.agent-card-image { grid-column:2; grid-row:2; }
      .agent-matrix-layout .m-card.agent-card-product { grid-column:1; grid-row:3; }
      .agent-matrix-layout .m-card.agent-card-fashion { grid-column:2; grid-row:3; }
      .matrix-pills { grid-template-columns:repeat(2, 1fr) !important; }
      .hero-surface { padding:30px 24px 20px; border-radius:34px; }
      .hero-chip { margin-bottom:12px; }
      .hero-script { font-size:clamp(62px, 12vw, 118px); top:12px; }
      .hero-title { font-size:42px; }
    }
    @media (max-width: 768px) {
      .navbar { padding:0 20px; }
      .nav-links, .nav-actions { display:none; }
      .mobile-menu-btn { display:block; }
      .footer-content { flex-direction:column; gap:40px; }
      .footer-brand { text-align:left; }
      .footer-links-wrapper { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:20px; }
      .hero { padding:calc(var(--header-height) + var(--banner-height) - 40px) 12px 8px; }
      .hero-surface { padding:24px 16px 18px; border-radius:28px; }
      .hero-chip { font-size:11px; padding:6px 10px; margin-bottom:10px; }
      .hero-script { font-size:58px; top:12px; opacity:0.58; }
      .hero-title { font-size:30px; line-height:1.12; margin-bottom:8px; }
      .hero-subtitle { font-size:13px; max-width:100%; }
      .matrix-header { flex-direction:column; align-items:flex-start; gap:16px; }
      .matrix-cards { grid-template-columns:1fr !important; }
      .agent-matrix-layout { grid-template-columns:1fr !important; grid-template-rows:none; }
      .agent-matrix-layout .m-card:first-child,
      .agent-matrix-layout .m-card.agent-card-clone,
      .agent-matrix-layout .m-card.agent-card-product,
      .agent-matrix-layout .m-card.agent-card-fashion,
      .agent-matrix-layout .m-card.agent-card-image { grid-column:auto; grid-row:auto; }
      .agent-matrix-layout .m-card:first-child { min-height:320px; padding:28px 22px; }
      .agent-matrix-layout .m-card:not(:first-child) { min-height:152px; }
      .matrix-pills { grid-template-columns:1fr !important; }
      .graphic-bg { border-radius:32px; padding:32px 0; }
      .feature-pill { width:100%; max-width:100%; box-sizing:border-box; }
      .feature-pills { padding:0 20px; }
      .matrix-section { margin-top:92px; }
      .agent-matrix-section { margin-top:28px; }
    }
    .stats-section { max-width:1400px; margin:100px auto; padding:0 20px; display:flex; justify-content:space-between; align-items:flex-start; gap:60px; }
    .stats-left { flex:1; max-width:700px; }
    .stats-left h2 { font-size:28px; font-weight:800;  margin-bottom:16px; }
    .stats-left h3 { font-size:24px; font-weight:600; color:#333; margin-bottom:32px; }
    .stats-left p { font-size:15px; color:#666; line-height:1.8; margin-bottom:24px; }
    .stats-right { display:flex; flex-direction:column; gap:40px; text-align:right; min-width:240px; }
    .stat-item { display:flex; flex-direction:column; }
    .stat-item .stat-num { font-size:40px; font-weight:800;  margin-bottom:8px; letter-spacing:-1px; }
    .stat-item .stat-desc { font-size:14px; color:#888; }
    @media (max-width: 1180px) {
      .stats-section { flex-direction:column; gap:60px; }
      .stats-right { text-align:left; width:100%; display:grid; grid-template-columns:repeat(2, 1fr); gap:40px; }
    }
    @media (max-width: 768px) {
      .stats-right { grid-template-columns:1fr; }
    }
    .home-workflow-section { max-width:1360px; margin:88px auto 84px; padding:0 20px; }
    .home-section-head { max-width:760px; margin:0 auto 28px; text-align:center; }
    .home-section-kicker { display:inline-flex; align-items:center; gap:8px; min-height:28px; padding:0 12px; border-radius:999px; background:#eef6ff; color:#0c4a6e; border:1px solid #d7ebff; font-size:12px; font-weight:800; margin-bottom:12px; }
    .home-section-kicker::before { content:""; width:7px; height:7px; border-radius:50%; background:#f97316; }
    .home-section-head h2 { color:#0f172a; font-size:34px; line-height:1.15; letter-spacing:0; margin-bottom:10px; }
    .home-section-head p { color:#64748b; font-size:15px; line-height:1.8; font-weight:520; }
    .workflow-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; }
    .workflow-card { position:relative; min-height:238px; padding:24px; border-radius:26px; background:#fff; border:1px solid #e2e8f0; box-shadow:0 22px 58px rgba(15, 23, 42, 0.065); overflow:hidden; }
    .workflow-card::after { content:""; position:absolute; right:-42px; bottom:-42px; width:130px; height:130px; border-radius:50%; background:#f0f9ff; border:24px solid #e0f2fe; opacity:0.82; }
    .workflow-card b { position:relative; z-index:1; display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:14px; background:#111827; color:#fff; font-size:14px; margin-bottom:18px; }
    .workflow-card h3 { position:relative; z-index:1; color:#111827; font-size:20px; line-height:1.25; margin-bottom:10px; letter-spacing:0; }
    .workflow-card p { position:relative; z-index:1; color:#64748b; font-size:14px; line-height:1.75; font-weight:520; }
    .home-faq-section { max-width:1180px; margin:82px auto 0; padding:0 20px; }
    .faq-list { border:1px solid #dbe8f5; border-radius:24px; background:#fff; overflow:hidden; box-shadow:0 20px 64px rgba(15, 23, 42, 0.07); }
    .faq-item { border-bottom:1px solid #e2e8f0; background:#fff; }
    .faq-item:last-child { border-bottom:0; }
    .faq-item summary { list-style:none; cursor:pointer; min-height:78px; padding:0 26px; display:flex; align-items:center; justify-content:space-between; gap:18px; color:#111827; font-size:18px; font-weight:800; }
    .faq-item summary::-webkit-details-marker { display:none; }
    .faq-item summary::after { content:""; width:11px; height:11px; border-right:2px solid #64748b; border-bottom:2px solid #64748b; transform:rotate(45deg); transition:transform 0.18s ease; flex:0 0 11px; }
    .faq-item[open] summary::after { transform:rotate(225deg); }
    .faq-item p { color:#64748b; font-size:14px; line-height:1.85; padding:0 58px 24px 26px; max-width:960px; }
    .matrix-section { scroll-margin-top:120px; }
    .matrix-header { padding:0 4px; }
    .matrix-header h2, .stats-left h2, .stats-left h3 { letter-spacing:0; }
    .stats-section { padding:38px; border-radius:32px; background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); border:1px solid #e5eef8; box-shadow:0 24px 68px rgba(15, 23, 42, 0.06); }
    .agent-matrix-section { max-width:1360px; margin:22px auto 92px; padding:0 20px; }
    .agent-matrix-layout { grid-template-columns:minmax(420px, 1.28fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows:184px 184px; gap:18px; padding:0; border-radius:0; background:transparent; border:0; box-shadow:none; overflow:visible; }
    .agent-matrix-layout::before { display:none; }
    .agent-matrix-layout .m-card { min-height:0; border-radius:22px; border:1px solid #e2e8f0; background:#fff !important; color:#111827; box-shadow:0 18px 48px rgba(15, 23, 42, 0.07); transition:transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease; }
    .agent-matrix-layout .m-card:hover { transform:translateY(-5px); border-color:#cbd5e1; box-shadow:0 26px 62px rgba(15, 23, 42, 0.12); }
    .agent-matrix-layout .m-card:first-child { grid-column:1; grid-row:1 / span 2; padding:30px 32px; border-radius:24px; background:linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-clone { grid-column:2; grid-row:1; padding:26px 28px 22px; border-radius:22px; }
    .agent-matrix-layout .m-card.agent-card-product { grid-column:3; grid-row:1; }
    .agent-matrix-layout .m-card.agent-card-fashion { grid-column:2; grid-row:2; }
    .agent-matrix-layout .m-card.agent-card-image { grid-column:3; grid-row:2; }
    .agent-matrix-layout .m-card:not(:first-child) { padding:24px 26px 22px; color:#111827; background:#fff !important; }
    .agent-matrix-layout .m-card.agent-card-clone { background:linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%) !important; color:#111827 !important; }
    .agent-matrix-layout .m-card.agent-card-product { background:linear-gradient(180deg, #ffffff 0%, #fffaf0 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-fashion { background:linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-image { background:linear-gradient(180deg, #ffffff 0%, #fff7f7 100%) !important; }
    .agent-matrix-layout .m-card::before { opacity:1; }
    .agent-matrix-layout .m-card:first-child::before { background:linear-gradient(90deg, rgba(226, 232, 240, 0.45) 1px, transparent 1px), linear-gradient(180deg, rgba(226, 232, 240, 0.45) 1px, transparent 1px), radial-gradient(circle at 78% 28%, rgba(17, 24, 39, 0.08), transparent 32%) !important; background-size:84px 84px, 84px 84px, auto; opacity:1; }
    .agent-matrix-layout .m-card.agent-card-clone::before { background:linear-gradient(135deg, rgba(99, 102, 241, 0.10), transparent 58%) !important; z-index:1; }
    .agent-matrix-layout .m-card.agent-card-product::before,
    .agent-matrix-layout .m-card.agent-card-fashion::before,
    .agent-matrix-layout .m-card.agent-card-image::before { background:linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.2) 52%, transparent) !important; }
    .agent-matrix-layout .m-card::after { display:none; }
    .agent-matrix-layout .m-card-content { position:relative; z-index:3; width:100%; max-width:none; }
    .agent-matrix-layout .m-card:first-child .m-card-content { max-width:none; }
    .agent-matrix-layout .m-card .m-card-top { align-items:flex-start; gap:14px; }
    .agent-feature-main { display:flex; align-items:center; gap:12px; min-width:0; }
    .agent-feature-icon { width:36px; height:36px; border-radius:12px; display:inline-flex; align-items:center; justify-content:center; flex:0 0 36px; background:#111827; color:#fff; font-size:16px; box-shadow:0 12px 24px rgba(15, 23, 42, 0.12); }
    .agent-matrix-layout .m-card:first-child .agent-feature-icon { width:44px; height:44px; flex-basis:44px; border-radius:15px; }
    .agent-matrix-layout .m-card.agent-card-clone .agent-feature-icon { background:#4f46e5; }
    .agent-matrix-layout .m-card.agent-card-product .agent-feature-icon { background:#f59e0b; }
    .agent-matrix-layout .m-card.agent-card-fashion .agent-feature-icon { background:#0f766e; }
    .agent-matrix-layout .m-card.agent-card-image .agent-feature-icon { background:#e11d48; }
    .agent-matrix-layout .m-card:not(:first-child) .m-card-top { align-items:flex-start; gap:12px; }
    .agent-matrix-layout .m-card:first-child .m-card-huge { margin-top:0; color:#111827; font-size:clamp(36px, 3vw, 48px); line-height:1.04; font-weight:860; white-space:normal; }
    .agent-matrix-layout .m-card.agent-card-clone .m-card-huge,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-huge { margin-top:0; color:#111827; font-size:24px; line-height:1.1; font-weight:830; white-space:normal; }
    .agent-matrix-layout .m-card.agent-card-product .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-fashion .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-image .m-card-huge { font-size:24px; }
    .agent-matrix-layout .m-card.agent-card-clone .m-card-top,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-title-small,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-desc { max-width:88%; color:#111827 !important; }
    .agent-matrix-layout .m-card:not(:first-child) .m-card-bottom-header { margin-bottom:8px; }
    .agent-matrix-layout .m-card-title-small { color:inherit; font-size:13px; line-height:1.4; }
    .agent-matrix-layout .m-card-desc { max-width:96%; color:#64748b !important; font-size:13px; line-height:1.65; font-weight:560; opacity:1; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    .agent-matrix-layout .m-card:first-child .m-card-desc,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-desc { color:#64748b !important; }
    .agent-matrix-layout .badge-new,
    .agent-matrix-layout .tag-small { border-radius:999px; border:1px solid rgba(15, 23, 42, 0.08); background:#f8fafc !important; color:#475569 !important; font-weight:760; }
    .agent-matrix-layout .m-card:first-child .badge-new { background:#111827 !important; color:#fff !important; border-color:#111827; }
    .agent-matrix-layout .m-card:first-child .tag-small,
    .agent-matrix-layout .m-card.agent-card-clone .tag-small { background:#f1f5f9 !important; color:#475569 !important; border-color:#e2e8f0; }
    .agent-matrix-layout .m-card:first-child { background:#111827 !important; border-color:rgba(15, 23, 42, 0.18); overflow:hidden; }
    .agent-matrix-layout .m-card:first-child::before { background:linear-gradient(90deg, rgba(8, 13, 24, 0.92) 0%, rgba(8, 13, 24, 0.72) 52%, rgba(8, 13, 24, 0.24) 100%) !important; opacity:1; z-index:1; }
    .agent-matrix-layout .m-card:first-child .m-card-huge,
    .agent-matrix-layout .m-card:first-child .m-card-title-small,
    .agent-matrix-layout .m-card:first-child .m-card-desc { color:#ffffff !important; text-shadow:0 2px 14px rgba(0, 0, 0, 0.35); }
    .agent-matrix-layout .m-card:first-child .m-card-desc { color:rgba(255, 255, 255, 0.88) !important; }
    .agent-matrix-layout .m-card:first-child .badge-new,
    .agent-matrix-layout .m-card:first-child .tag-small { background:rgba(255, 255, 255, 0.16) !important; color:#ffffff !important; border-color:rgba(255, 255, 255, 0.26) !important; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
    .agent-matrix-layout .m-card:first-child .agent-feature-icon { background:rgba(255, 255, 255, 0.16); color:#fff; border:1px solid rgba(255, 255, 255, 0.22); box-shadow:none; backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); }
    .agent-matrix-layout .m-card.agent-card-clone { background:linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%) !important; border-color:#e2e8f0; overflow:hidden; }
    .agent-matrix-layout .m-card.agent-card-clone::before { background:linear-gradient(135deg, rgba(99, 102, 241, 0.10), transparent 58%) !important; opacity:1; z-index:1; }
    .agent-matrix-layout .m-card.agent-card-clone .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-title-small { color:#111827 !important; text-shadow:none; }
    .agent-matrix-layout .m-card.agent-card-clone .m-card-desc { color:#64748b !important; text-shadow:none; }
    .agent-matrix-layout .m-card.agent-card-clone .badge-new,
    .agent-matrix-layout .m-card.agent-card-clone .tag-small { background:#f1f5f9 !important; color:#475569 !important; border-color:#e2e8f0 !important; backdrop-filter:none; -webkit-backdrop-filter:none; }
    .agent-matrix-layout .m-card.agent-card-clone .agent-feature-icon { background:#4f46e5; color:#fff; border:0; box-shadow:0 12px 24px rgba(15, 23, 42, 0.12); backdrop-filter:none; -webkit-backdrop-filter:none; }
    .agent-matrix-layout .card-arrow { width:32px; height:32px; flex:0 0 32px; background:#111827 !important; color:#fff !important; box-shadow:none; }
    .agent-matrix-layout .m-card:first-child .card-arrow,
    .agent-matrix-layout .m-card.agent-card-clone .card-arrow { background:#111827 !important; color:#fff !important; }
    .agent-matrix-layout .m-card:first-child .card-arrow { background:#ffffff !important; color:#111827 !important; }
    .agent-matrix-layout .m-card.agent-card-clone .clone-card-video { display:none !important; }
    .agent-matrix-layout .m-card:first-child .clone-card-video { display:block !important; }
    .agent-matrix-layout .clone-card-video::after { background:linear-gradient(90deg, rgba(8, 13, 24, 0.54), rgba(8, 13, 24, 0.18)) !important; }
    .agent-matrix-layout .agent-card-visual::before { opacity:0.6; }
    .agent-matrix-layout .agent-card-visual::after { opacity:0.55; }
    .agent-matrix-layout .m-card.agent-card-product .agent-card-visual::before,
    .agent-matrix-layout .m-card.agent-card-product .agent-card-visual::after { background:rgba(245, 158, 11, 0.12); box-shadow:inset 0 0 0 8px rgba(245, 158, 11, 0.06), inset 0 0 0 30px rgba(245, 158, 11, 0.035); }
    .agent-matrix-layout .m-card.agent-card-fashion .agent-card-visual::before,
    .agent-matrix-layout .m-card.agent-card-fashion .agent-card-visual::after { background:rgba(20, 184, 166, 0.12); box-shadow:inset 0 0 0 8px rgba(20, 184, 166, 0.06), inset 0 0 0 30px rgba(20, 184, 166, 0.035); }
    .agent-matrix-layout .m-card.agent-card-image .agent-card-visual::before,
    .agent-matrix-layout .m-card.agent-card-image .agent-card-visual::after { background:rgba(244, 63, 94, 0.12); box-shadow:inset 0 0 0 8px rgba(244, 63, 94, 0.06), inset 0 0 0 30px rgba(244, 63, 94, 0.035); }
    .agent-matrix-section { max-width:1280px; margin:30px auto 92px; padding:0 20px; }
    .agent-matrix-layout {
      display:grid !important;
      grid-template-columns:repeat(6, minmax(0, 1fr)) !important;
      grid-template-rows:none !important;
      gap:18px !important;
      padding:0 !important;
      border:0 !important;
      border-radius:0 !important;
      background:transparent !important;
      box-shadow:none !important;
      overflow:visible !important;
    }
    .agent-matrix-layout::before { display:none !important; }
    .agent-matrix-layout .m-card,
    .agent-matrix-layout .m-card:first-child,
    .agent-matrix-layout .m-card.agent-card-clone,
    .agent-matrix-layout .m-card.agent-card-product,
    .agent-matrix-layout .m-card.agent-card-fashion,
    .agent-matrix-layout .m-card.agent-card-image,
    .agent-matrix-layout .m-card.agent-card-aplus {
      grid-column:auto !important;
      grid-row:auto !important;
      aspect-ratio:9 / 16 !important;
      min-height:0 !important;
      height:auto !important;
      padding:18px 16px 16px !important;
      border-radius:26px !important;
      border:1px solid rgba(255, 255, 255, 0.68) !important;
      background:linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.38)) !important;
      color:#111827 !important;
      backdrop-filter:blur(26px) saturate(1.18);
      -webkit-backdrop-filter:blur(26px) saturate(1.18);
      box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 22px 54px rgba(15, 23, 42, 0.1) !important;
    }
    .agent-matrix-layout .m-card:hover { transform:translateY(-4px) !important; box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 28px 68px rgba(15, 23, 42, 0.15) !important; }
    .agent-matrix-layout .m-card::before {
      content:"" !important;
      position:absolute;
      inset:0;
      z-index:0;
      display:block !important;
      opacity:1 !important;
      pointer-events:none;
      background:linear-gradient(152deg, rgba(255, 255, 255, 0.88) 0 36%, rgba(255, 255, 255, 0.16) 36% 100%) !important;
    }
    .agent-matrix-layout .m-card::after {
      content:"" !important;
      display:block !important;
      position:absolute;
      inset:1px;
      z-index:0;
      border-radius:25px;
      border:1px solid rgba(255, 255, 255, 0.55);
      pointer-events:none;
    }
    .agent-matrix-layout .m-card.video-bg {
      background:linear-gradient(145deg, rgba(16, 20, 28, 0.9), rgba(31, 41, 55, 0.66)) !important;
      color:#fff !important;
      border-color:rgba(255, 255, 255, 0.16) !important;
    }
    .agent-matrix-layout .m-card.video-bg::before { background:linear-gradient(180deg, rgba(4, 7, 13, 0.28), rgba(4, 7, 13, 0.86)) !important; z-index:1; }
    .agent-matrix-layout .m-card.agent-card-clone { background:linear-gradient(145deg, rgba(238, 242, 255, 0.78), rgba(255, 255, 255, 0.46)) !important; }
    .agent-matrix-layout .m-card.agent-card-product { background:linear-gradient(145deg, rgba(255, 248, 232, 0.82), rgba(255, 255, 255, 0.44)) !important; }
    .agent-matrix-layout .m-card.agent-card-fashion { background:linear-gradient(145deg, rgba(230, 250, 247, 0.8), rgba(255, 255, 255, 0.44)) !important; }
    .agent-matrix-layout .m-card.agent-card-image { background:linear-gradient(145deg, rgba(255, 237, 242, 0.82), rgba(255, 255, 255, 0.44)) !important; }
    .agent-matrix-layout .clone-card-video { z-index:0; opacity:0.55; }
    .agent-matrix-layout .clone-card-video::after { background:linear-gradient(180deg, rgba(4, 7, 13, 0.1), rgba(4, 7, 13, 0.78)) !important; }
    .agent-matrix-layout .agent-card-visual { z-index:0; opacity:1; }
    .agent-matrix-layout .agent-card-visual::before { inset:8% -16% auto auto; width:74%; height:34%; background:rgba(255, 255, 255, 0.34) !important; clip-path:polygon(26% 0, 100% 0, 78% 100%, 0 100%); }
    .agent-matrix-layout .agent-card-visual::after { right:-22%; bottom:-8%; width:82%; background:rgba(255, 255, 255, 0.24) !important; box-shadow:inset 0 0 0 12px rgba(255, 255, 255, 0.14), inset 0 0 0 36px rgba(255, 255, 255, 0.1) !important; }
    .agent-matrix-layout .m-card-content { z-index:3; max-width:none !important; }
    .agent-matrix-layout .m-card-top { align-items:flex-start !important; gap:12px !important; }
    .agent-feature-main { flex-direction:column !important; align-items:flex-start !important; gap:14px !important; }
    .agent-feature-icon { width:44px !important; height:44px !important; flex:0 0 44px !important; border-radius:15px !important; box-shadow:0 16px 34px rgba(15, 23, 42, 0.16) !important; }
    .agent-matrix-layout .m-card.video-bg .agent-feature-icon { background:rgba(255, 255, 255, 0.12) !important; border:1px solid rgba(255, 255, 255, 0.16) !important; color:#fff !important; backdrop-filter:blur(16px); }
    .agent-matrix-layout .m-card .m-card-huge,
    .agent-matrix-layout .m-card:first-child .m-card-huge,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-product .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-fashion .m-card-huge {
      margin:0 !important;
      color:inherit !important;
      font-size:clamp(22px, 1.55vw, 30px) !important;
      line-height:1.08 !important;
      font-weight:860 !important;
      letter-spacing:0 !important;
      white-space:normal !important;
      text-shadow:none !important;
    }
    .agent-matrix-layout .badge-new { background:rgba(255, 255, 255, 0.45) !important; color:#334155 !important; border:1px solid rgba(255, 255, 255, 0.58) !important; }
    .agent-matrix-layout .m-card.video-bg .badge-new { background:rgba(255, 255, 255, 0.15) !important; color:#fff !important; border-color:rgba(255, 255, 255, 0.2) !important; }
    .agent-matrix-layout .m-card-bottom { margin-top:auto !important; }
    .agent-matrix-layout .m-card-title-small { color:inherit !important; font-size:13px !important; line-height:1.2 !important; white-space:normal !important; flex-wrap:wrap !important; }
    .agent-matrix-layout .tag-small { background:rgba(255, 255, 255, 0.46) !important; color:inherit !important; border:1px solid rgba(255, 255, 255, 0.54) !important; border-radius:999px !important; }
    .agent-matrix-layout .m-card-desc,
    .agent-matrix-layout .m-card:first-child .m-card-desc,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-desc,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-desc {
      max-width:100% !important;
      color:inherit !important;
      opacity:0.72 !important;
      font-size:12px !important;
      line-height:1.55 !important;
      white-space:normal !important;
      text-shadow:none !important;
      -webkit-line-clamp:2 !important;
    }
    .agent-matrix-layout .card-arrow,
    .agent-matrix-layout .m-card:first-child .card-arrow,
    .agent-matrix-layout .m-card.agent-card-clone .card-arrow,
    .agent-matrix-layout .m-card:not(:first-child) .card-arrow {
      position:static !important;
      width:34px !important;
      height:34px !important;
      flex:0 0 34px !important;
      background:rgba(255, 255, 255, 0.56) !important;
      color:#111827 !important;
      border:1px solid rgba(255, 255, 255, 0.68) !important;
      box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 26px rgba(15, 23, 42, 0.08) !important;
    }
    .agent-matrix-layout .m-card.video-bg .card-arrow { background:#fff !important; color:#111827 !important; }
    .agent-matrix-section, .home-workflow-section, .home-faq-section { scroll-margin-top:150px; }
    .header-dropdown-style { position:relative; display:inline-block; }
    .header-user-menu { position:absolute; top:100%; right:0; width:240px; background:white; border-radius:12px; padding:16px; margin-top:10px; box-shadow:0 10px 30px rgba(0, 0, 0, 0.15); border:1px solid #eee; opacity:0; visibility:hidden; transform:translateY(-10px); transition:all 0.3s ease; z-index:1000; color:#333; text-align:left; }
    .header-dropdown-style:not(.not-logged-in):hover .header-user-menu { opacity:1; visibility:visible; transform:translateY(0); }
    .popup-header { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding-bottom:16px; border-bottom:1px solid #eee; }
    .popup-avatar { width:40px; height:40px; background:#000; color:white; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:bold; }
    .popup-info { flex:1; }
    .popup-name { font-weight:700; font-size:15px; color:#333; }
    .popup-email { font-size:11px; color:#666; margin-top:2px; }
    .popup-stats-single { margin-bottom:16px; }
    .stat-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; font-size:13px; }
    .stat-label { color:#666; }
    .stat-value { font-weight:700; color:#333; }
    .stat-bar { height:6px; background-color:#f1f3f4; border-radius:3px; overflow:hidden; }
    .stat-progress { height:100%; background-color:#000; border-radius:3px; width:0%; }
    .popup-menu { display:flex; flex-direction:column; gap:4px; }
    .menu-item { display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:6px; cursor:pointer; font-size:14px; color:#333; transition:background 0.2s; text-decoration:none; }
    .menu-item:hover { background-color:#f1f3f4; }
    .menu-item svg { color:#666; }
    .menu-divider { height:1px; background-color:#eee; margin:4px 0; }
    .text-red { color:#d93025 !important; }
    .text-red svg { color:#d93025 !important; }
    .top-banner { position:fixed; top:0; left:0; width:100%; height:var(--banner-height); background:linear-gradient(135deg, #ff9a44 0%, #ff5e62 100%); color:#ffffff; display:flex; align-items:center; justify-content:center; font-size:14px; z-index:1001; box-shadow:0 4px 15px rgba(255, 94, 98, 0.25); font-weight:500; text-shadow:0 1px 2px rgba(0, 0, 0, 0.1); overflow:hidden; }
    .top-banner::before { content:''; position:absolute; top:0; left:-100%; width:50%; height:100%; background:linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transform:skewX(-20deg); animation:shimmer 5s infinite; }
    @keyframes shimmer {
      0% { left:-100%; }
      20% { left:200%; }
      100% { left:200%; }
    }
    .top-banner .banner-content { display:flex; align-items:center; gap:12px; position:relative; z-index:1; }
    .top-banner .banner-link { color:#ff5e62; text-decoration:none; font-weight:700; background:#ffffff; padding:4px 14px; border-radius:20px; transition:all 0.3s ease; box-shadow:0 2px 6px rgba(0, 0, 0, 0.1); text-shadow:none; }
    .top-banner .banner-link:hover { transform:translateY(-1px); box-shadow:0 4px 10px rgba(0, 0, 0, 0.15); background:#fdfdfd; color:#ff3b3f; }
    .top-banner { background:#111827; box-shadow:none; text-shadow:none; }
    .top-banner::before { display:none; }
    .top-banner .banner-content { gap:10px; font-weight:720; letter-spacing:0; }
    .top-banner .banner-badge { display:inline-flex; align-items:center; min-height:22px; padding:0 9px; border-radius:999px; background:#ff5a3d; color:#fff; font-size:11px; font-weight:800; line-height:1; }
    .top-banner .banner-link { color:#111827; box-shadow:none; }
    .top-banner .banner-link:hover { color:#111827; box-shadow:none; background:#f5f5f5; }
    :root { --bg-color:#ffffff; --text-color:#111827; --text-secondary:#64748b; --border-color:rgba(15,23,42,0.1); --card-bg:#ffffff; --header-height:78px; --banner-height:44px; }
    body { background:#fff; color:#111827; }
    .nav-brand { color:#111827; font-size:18px; font-weight:760; margin-top:0; letter-spacing:0; }
    .nav-brand img { height:30px; filter:drop-shadow(0 10px 18px rgba(239, 68, 68, 0.18)); }
    .nav-links { gap:34px; margin-top:0; align-items:center; }
    .nav-link { color:#64748b; font-size:14px; font-weight:620; letter-spacing:0; }
    .nav-link:hover, .nav-link.active { color:#111827; }
    .nav-links > .nav-link { display:inline-flex; align-items:center; min-height:44px; }
    .nav-dropdown { position:relative; display:flex; align-items:center; }
    .nav-dropdown-trigger { display:inline-flex; align-items:center; gap:6px; min-height:44px; }
    .nav-dropdown-trigger::after { content:""; width:6px; height:6px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); margin-top:-3px; opacity:0.7; transition:transform 0.2s ease; }
    .nav-dropdown:hover .nav-dropdown-trigger::after { transform:rotate(225deg); margin-top:3px; }
    .nav-mega { position:absolute; top:calc(100% + 10px); left:50%; width:260px; padding:8px; border-radius:16px; background:rgba(255, 255, 255, 0.98); border:1px solid rgba(226, 232, 240, 0.95); box-shadow:0 18px 48px rgba(15, 23, 42, 0.12); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); opacity:0; visibility:hidden; transform:translate(-50%, -8px); transition:opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; pointer-events:none; z-index:1100; }
    .nav-dropdown:hover .nav-mega { opacity:1; visibility:visible; transform:translate(-50%, 0); pointer-events:auto; }
    .nav-dropdown:first-child .nav-mega { left:0; transform:translate(0, -8px); }
    .nav-dropdown:first-child:hover .nav-mega { transform:translate(0, 0); }
    .nav-mega::before { content:""; position:absolute; left:0; right:0; top:-16px; height:16px; }
    .nav-mega-grid { display:grid; grid-template-columns:1fr; gap:6px; }
    .nav-mega-card { position:relative; display:flex; align-items:center; gap:10px; min-height:46px; padding:9px 10px; border-radius:11px; color:#111827; text-decoration:none; background:#fff; border:1px solid transparent; overflow:hidden; transition:background 0.2s ease, border-color 0.2s ease; }
    .nav-mega-card:hover { background:#f8fafc; border-color:#e2e8f0; transform:none; box-shadow:none; }
    .nav-mega-card::after { display:none; }
    .nav-mega-icon { width:28px; height:28px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex:0 0 28px; background:var(--mega-accent, #111827); color:#fff; font-size:13px; font-weight:800; }
    .nav-mega-copy { position:relative; z-index:1; min-width:0; }
    .nav-mega-title { display:flex; align-items:center; gap:8px; color:#111827; font-size:14px; font-weight:760; line-height:1.25; margin-bottom:0; }
    .nav-mega-title span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .nav-mega-badge, .nav-mega-desc, .nav-mega-tags { display:none; }
    .nav-mega-desc { color:#64748b; font-size:12px; line-height:1.55; margin-bottom:9px; }
    .nav-mega-tags { flex-wrap:wrap; gap:6px; }
    .nav-mega-tags em { display:inline-flex; align-items:center; min-height:20px; padding:0 7px; border-radius:999px; background:#f1f5f9; color:#475569; font-size:10px; font-style:normal; font-weight:700; }
    .model-mega { width:240px; left:50%; }
    .model-mega .nav-mega-grid { grid-template-columns:1fr; }
    .model-mega .nav-mega-card { min-height:46px; }
    .nav-mega { top:calc(100% + 12px); width:226px; padding:8px; border-radius:16px; border-color:#e5e7eb; box-shadow:0 18px 44px rgba(15, 23, 42, 0.12); z-index:1400; }
    .nav-mega-grid { grid-template-columns:1fr; gap:4px; }
    .nav-mega-card { align-items:center; min-height:44px; padding:8px 10px; border-radius:11px; gap:10px; border-color:transparent; transition:background 0.18s ease, border-color 0.18s ease; }
    .nav-mega-card:hover { background:#f8fafc; border-color:#e2e8f0; transform:none; box-shadow:none; }
    .nav-mega-card::after { display:none; }
    .nav-mega-icon { width:28px; height:28px; flex-basis:28px; border-radius:9px; background:#f8fafc; color:var(--mega-accent, #111827); }
    .nav-mega-title { margin-bottom:0; font-size:14px; font-weight:760; }
    .nav-mega-badge, .nav-mega-desc, .nav-mega-tags { display:none; }
    .model-mega { width:226px; }
    .model-mega .nav-mega-card { min-height:44px; }
    .user-profile { margin-top:0; color:#111827; background:#fff; min-height:36px; padding:0 16px; border-radius:999px; font-size:13px; font-weight:680; border:1px solid #e5e7eb; box-shadow:0 10px 26px rgba(15, 23, 42, 0.08); }
    .user-profile:hover { background:#f8fafc; color:#111827; }
    .user-avatar { display:none; }
    .mobile-menu-btn { color:#111827; }
    .hero-surface { max-width:1480px; margin:0 auto; padding:0; border-radius:0; overflow:visible; background:transparent; }
    .hero-surface::before { display:none; }
    .hero-surface::after { display:none; }
    .hero-copy { max-width:960px; margin:0 auto 28px; text-align:center; }
    .hero-orb { position:relative; z-index:2; width:112px; height:112px; margin:0 auto 20px; border-radius:50%; background:conic-gradient(from 210deg, #4f19d7 0deg, #a22cff 120deg, #6d39ff 250deg, #4f19d7 360deg); box-shadow:0 0 38px rgba(132, 48, 255, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
    .hero-orb::before { content:""; position:absolute; inset:16px; border-radius:50%; background:#000; box-shadow:inset 0 9px 18px rgba(0, 0, 0, 0.88), 0 0 0 10px rgba(0, 0, 0, 0.2); }
    .hero-orb::after { content:""; position:absolute; inset:8px; border-radius:50%; border:12px solid rgba(255, 255, 255, 0.12); border-left-color:rgba(255,255,255,0.02); transform:rotate(-22deg); }
    .hero-badge { position:relative; z-index:2; display:inline-flex; align-items:center; justify-content:center; min-height:28px; padding:0 14px; margin-bottom:18px; border-radius:999px; background:rgba(22, 24, 36, 0.82); border:1px solid rgba(255, 255, 255, 0.12); color:rgba(255, 255, 255, 0.82); font-size:11px; font-weight:620; letter-spacing:0; box-shadow:inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 34px rgba(0,0,0,0.22); }
    .hero-title { color:#111827; font-size:clamp(28px, 3.05vw, 45px); font-weight:720; line-height:1.06; letter-spacing:0; margin-bottom:16px; text-shadow:none; }
    .hero-subtitle { color:#526173; max-width:750px; margin:0 auto; font-size:clamp(14px, 1.25vw, 18px); line-height:1.55; font-weight:520; letter-spacing:0; }
    .hero-actions { justify-content:center; margin-top:22px; gap:10px; }
    .hero-primary-action { min-height:42px; padding:0 22px; border-radius:999px; background:#111111; color:#fff; font-size:14px; font-weight:680; box-shadow:none; }
    .hero-primary-action:hover { background:#000000; box-shadow:none; }
    .hero-secondary-action { min-height:42px; padding:0 20px; border-radius:999px; background:#fff; border:1px solid #e5e7eb; color:#111827; font-size:14px; font-weight:680; box-shadow:none; }
    .hero-secondary-action:hover { border-color:#cbd5e1; background:#f8fafc; box-shadow:none; }
    .matrix-section { color:#111827; }
    .matrix-header h2 { color:#111827; }
    .matrix-header p { color:#64748b; }
    .bottom-section { margin-top:96px; background:#000; border-top:none; color:#fff; }
    .footer { padding:72px 40px 34px; border-top:1px solid rgba(255, 255, 255, 0.05); }
    .footer-content { max-width:1240px; gap:68px; }
    .footer-brand h3 { color:#fff; font-size:22px; font-weight:760; letter-spacing:-0.02em; margin-bottom:12px; }
    .footer-brand p { color:#888; font-size:13px; line-height:1.8; max-width:360px; }
    .footer-col h4 { color:#fff; font-size:13px; font-weight:720; letter-spacing:0; margin-bottom:14px; }
    .footer-col ul li { margin-bottom:9px; }
    .footer-col ul a { color:#888; font-size:13px; }
    .footer-col ul a:hover { color:#fff; }
    .footer-bottom { max-width:1240px; margin:52px auto 0; padding-top:22px; border-top:1px solid #333; color:#666; font-size:12px; gap:14px; }
    @media (max-width: 1024px) {
      .navbar { padding:0 24px; }
      .hero { padding-top:calc(var(--header-height) + 48px); }
      .hero-orb { width:92px; height:92px; }
      .workflow-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 768px) {
      .hero { padding:calc(var(--header-height) + 32px) 14px 0; }
      .hero-copy { margin-bottom:22px; }
      .agent-matrix-section { margin-top:22px; }
      .top-banner { min-height:42px; height:auto; padding:8px 14px; text-align:center; }
      .top-banner .banner-content { flex-wrap:wrap; justify-content:center; line-height:1.35; font-size:12px; }
      .top-banner .banner-link { padding:3px 10px; }
      .hero-orb { width:74px; height:74px; margin-bottom:16px; }
      .hero-orb::before { inset:12px; }
      .hero-badge { min-height:26px; padding:0 12px; font-size:10.5px; margin-bottom:14px; }
      .hero-title { font-size:29px; line-height:1.08; margin-bottom:12px; letter-spacing:0; }
      .hero-subtitle { font-size:13px; line-height:1.5; max-width:92%; letter-spacing:0; }
      .hero-primary-action, .hero-secondary-action { width:100%; max-width:260px; min-height:40px; font-size:13px; border-radius:999px; }
      .bottom-section { width:100%; max-width:none; margin:58px 0 0; background:#000; }
      .footer { width:100%; max-width:none; box-sizing:border-box; padding:34px 18px 24px; }
      .footer * { box-sizing:border-box; }
      .footer-content { width:100%; max-width:none; display:grid; grid-template-columns:1fr; gap:26px; margin:0; }
      .footer-brand { text-align:left; }
      .footer-brand h3 { font-size:20px; margin-bottom:8px; }
      .footer-brand p { max-width:none; margin-bottom:0; font-size:12px; line-height:1.72; color:#888; }
      .footer-links-wrapper { width:100%; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:18px 16px; }
      .footer-col { min-width:0; }
      .footer-col h4 { font-size:12px; margin-bottom:10px; }
      .footer-col ul li { margin-bottom:8px; }
      .footer-col ul a { font-size:12px; color:#888; }
      .footer-col:nth-child(4) { grid-column:1 / -1; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px; border:1px solid rgba(255, 255, 255, 0.12); border-radius:18px; background:rgba(255, 255, 255, 0.04); }
      .footer-col:nth-child(4) h4 { margin-bottom:0; }
      .footer-col:nth-child(4) img { width:74px !important; height:74px !important; margin-top:0 !important; border-radius:12px; }
      .footer-bottom { width:100%; max-width:none; margin:28px 0 0; padding-top:18px; flex-direction:column; gap:8px; font-size:11px; line-height:1.4; text-align:center; color:#666; }
      .footer-bottom a { font-size:11px !important; }
    }
    @media (max-width: 768px) {
      :root { --header-height:56px; --banner-height:54px; }
      html, body { width:100%; max-width:100%; overflow-x:hidden; }
      .top-banner { height:var(--banner-height); min-height:var(--banner-height); padding:6px 10px; }
      .top-banner .banner-content { width:100%; max-width:360px; gap:7px; row-gap:5px; font-size:11px; line-height:1.2; }
      .top-banner .banner-badge { min-height:18px; padding:0 7px; font-size:10px; }
      .top-banner .banner-link { padding:3px 10px; font-size:11px; line-height:1.2; }
      .navbar { top:var(--banner-height); height:var(--header-height); padding:0 18px; }
      .nav-left { width:100%; gap:0; justify-content:space-between; }
      .nav-brand { font-size:18px; gap:9px; }
      .nav-brand img { height:30px; width:30px; object-fit:contain; }
      .nav-links, .nav-actions, .nav-mega { display:none !important; }
      .mobile-menu-btn { display:flex; align-items:center; justify-content:center; width:40px; height:40px; }
      .hero { padding:calc(var(--header-height) + var(--banner-height) + 28px) 14px 0; }
      .hero-copy { width:100%; max-width:360px; margin:0 auto 24px; }
      .hero-title { font-size:26px; line-height:1.16; font-weight:800; max-width:330px; margin:0 auto 12px; white-space:normal; overflow-wrap:break-word; text-align:center; }
      .hero-subtitle { max-width:330px; font-size:13px; line-height:1.55; margin:0 auto; }
      .hero-actions { width:100%; max-width:320px; margin:24px auto 0; gap:10px; }
      .hero-primary-action, .hero-secondary-action { width:100%; max-width:none; min-height:46px; padding:0 18px; font-size:14px; }
      .matrix-section { width:100%; margin:34px auto 54px; padding:0 14px; }
      .agent-matrix-section { margin-top:30px; }
      .agent-matrix-layout { grid-template-columns:1fr !important; grid-template-rows:none !important; gap:14px; }
      .agent-matrix-layout .m-card:first-child,
      .agent-matrix-layout .m-card.agent-card-clone,
      .agent-matrix-layout .m-card.agent-card-product,
      .agent-matrix-layout .m-card.agent-card-fashion,
      .agent-matrix-layout .m-card.agent-card-image { grid-column:auto !important; grid-row:auto !important; }
      .agent-matrix-layout .m-card:first-child { min-height:340px; padding:26px 22px; border-radius:22px; }
      .agent-matrix-layout .m-card:not(:first-child) { min-height:154px; padding:18px 18px 16px; border-radius:22px; }
      .agent-matrix-layout .m-card.agent-card-clone .m-card-content { max-width:100%; }
      .agent-matrix-layout .m-card:first-child .m-card-huge { font-size:24px; white-space:normal; }
      .agent-matrix-layout .m-card:not(:first-child) .m-card-huge { font-size:24px; white-space:normal; }
      .m-card-title-small { font-size:13px; flex-wrap:wrap; white-space:normal; }
      .m-card-desc, .agent-matrix-layout .m-card:not(:first-child) .m-card-desc { font-size:12px; line-height:1.5; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
      .home-workflow-section, .home-faq-section { margin:52px auto 0; padding:0 14px; }
      .home-section-head { margin-bottom:20px; }
      .home-section-head h2 { font-size:25px; line-height:1.22; }
      .home-section-head p { font-size:13px; line-height:1.7; }
      .workflow-grid { grid-template-columns:1fr; gap:12px; }
      .workflow-card { min-height:auto; padding:20px; border-radius:22px; }
      .faq-item summary { min-height:66px; padding:0 18px; font-size:15px; }
      .faq-item p { padding:0 38px 20px 18px; font-size:13px; line-height:1.75; }
      .stats-section { margin:50px auto; padding:0 18px; gap:28px; }
      .stats-left h2 { font-size:24px; }
      .stats-left h3 { font-size:19px; margin-bottom:18px; }
      .stats-left p { font-size:13px; line-height:1.75; margin-bottom:14px; }
    }
    .agent-matrix-section { max-width:1680px !important; margin:26px auto 76px !important; padding:0 24px !important; }
    .agent-matrix-layout {
      display:grid !important;
      grid-template-columns:repeat(6, minmax(0, 1fr)) !important;
      grid-template-rows:none !important;
      gap:16px !important;
      padding:0 !important;
      border:0 !important;
      border-radius:0 !important;
      background:transparent !important;
      box-shadow:none !important;
      overflow:visible !important;
    }
    .agent-matrix-layout::before { display:none !important; }
    .agent-matrix-layout .m-card,
    .agent-matrix-layout .m-card:first-child,
    .agent-matrix-layout .m-card.agent-card-clone,
    .agent-matrix-layout .m-card.agent-card-product,
    .agent-matrix-layout .m-card.agent-card-fashion,
    .agent-matrix-layout .m-card.agent-card-image {
      grid-column:auto !important;
      grid-row:auto !important;
      display:block !important;
      min-height:118px !important;
      height:118px !important;
      aspect-ratio:auto !important;
      padding:0 !important;
      border-radius:28px !important;
      background:#ffffff !important;
      border:1px solid #e5e7eb !important;
      color:#111827 !important;
      box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
      overflow:hidden !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
    }
    .agent-matrix-layout .m-card:hover {
      transform:translateY(-2px) !important;
      border-color:#d7dce4 !important;
      box-shadow:0 12px 30px rgba(15, 23, 42, 0.08) !important;
    }
    .agent-matrix-layout .m-card.agent-card-aplus:hover {
      transform:none !important;
      border-color:#e5e7eb !important;
      box-shadow:inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    }
    .agent-matrix-layout .m-card::before,
    .agent-matrix-layout .m-card::after,
    .agent-matrix-layout .agent-card-visual,
    .agent-matrix-layout .clone-card-video,
    .agent-matrix-layout .badge-new,
    .agent-matrix-layout .m-card-title-small,
    .agent-matrix-layout .tag-small,
    .agent-matrix-layout .card-arrow {
      display:none !important;
    }
    .agent-matrix-layout .m-card-content {
      position:relative !important;
      z-index:2 !important;
      display:grid !important;
      grid-template-columns:56px minmax(0, 1fr) !important;
      align-items:center !important;
      gap:16px !important;
      width:100% !important;
      height:100% !important;
      max-width:none !important;
      padding:22px 24px !important;
    }
    .agent-matrix-layout .m-card-top {
      display:contents !important;
    }
    .agent-feature-main {
      display:contents !important;
    }
    .agent-feature-icon,
    .agent-matrix-layout .m-card:first-child .agent-feature-icon {
      grid-column:1 !important;
      width:56px !important;
      height:56px !important;
      flex:0 0 56px !important;
      border-radius:16px !important;
      color:#ffffff !important;
      font-size:20px !important;
      border:0 !important;
      box-shadow:0 12px 24px rgba(15, 23, 42, 0.10) !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
    }
    .agent-matrix-layout .m-card.video-bg .agent-feature-icon { background:linear-gradient(135deg, #ff8a3d, #ef4444, #a855f7) !important; }
    .agent-matrix-layout .m-card.agent-card-clone .agent-feature-icon { background:linear-gradient(135deg, #14c8d8, #2563eb) !important; }
    .agent-matrix-layout .m-card.agent-card-product .agent-feature-icon { background:linear-gradient(135deg, #f97316, #f59e0b) !important; }
    .agent-matrix-layout .m-card.agent-card-fashion .agent-feature-icon { background:linear-gradient(135deg, #10b981, #06b6d4) !important; }
    .agent-matrix-layout .m-card.agent-card-image .agent-feature-icon { background:linear-gradient(135deg, #ec4899, #ef4444) !important; }
    .agent-matrix-layout .m-card.agent-card-aplus .agent-feature-icon { background:linear-gradient(135deg, #38bdf8, #2563eb) !important; }
    .agent-matrix-layout .m-card .m-card-huge,
    .agent-matrix-layout .m-card:first-child .m-card-huge,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-product .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-fashion .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-aplus .m-card-huge {
      grid-column:2 !important;
      align-self:end !important;
      margin:0 0 4px !important;
      color:#111827 !important;
      font-size:22px !important;
      line-height:1.15 !important;
      font-weight:850 !important;
      letter-spacing:0 !important;
      white-space:nowrap !important;
      overflow:hidden !important;
      text-overflow:ellipsis !important;
      text-shadow:none !important;
    }
    .agent-matrix-layout .m-card-bottom {
      grid-column:2 !important;
      align-self:start !important;
      margin:0 !important;
      min-width:0 !important;
    }
    .agent-matrix-layout .m-card-bottom-header {
      display:none !important;
    }
    .agent-matrix-layout .m-card-desc,
    .agent-matrix-layout .m-card:first-child .m-card-desc,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-desc,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-desc {
      display:block !important;
      max-width:100% !important;
      color:#8b8f98 !important;
      opacity:1 !important;
      font-size:17px !important;
      line-height:1.2 !important;
      font-weight:700 !important;
      white-space:nowrap !important;
      overflow:hidden !important;
      text-overflow:ellipsis !important;
      text-shadow:none !important;
    }
    @media (max-width: 1280px) {
      .agent-matrix-layout { grid-template-columns:repeat(3, minmax(0, 1fr)) !important; }
    }
    @media (max-width: 768px) {
      .agent-matrix-section { margin:24px auto 48px !important; padding:0 14px !important; }
      .agent-matrix-layout { grid-template-columns:1fr !important; gap:12px !important; }
      .agent-matrix-layout .m-card,
      .agent-matrix-layout .m-card:first-child,
      .agent-matrix-layout .m-card.agent-card-clone,
      .agent-matrix-layout .m-card.agent-card-product,
      .agent-matrix-layout .m-card.agent-card-fashion,
      .agent-matrix-layout .m-card.agent-card-image,
      .agent-matrix-layout .m-card.agent-card-aplus {
        height:104px !important;
        min-height:104px !important;
        border-radius:24px !important;
      }
      .agent-matrix-layout .m-card-content { grid-template-columns:50px minmax(0, 1fr) !important; gap:14px !important; padding:18px 20px !important; }
      .agent-feature-icon,
      .agent-matrix-layout .m-card:first-child .agent-feature-icon {
        width:50px !important;
        height:50px !important;
        flex-basis:50px !important;
        border-radius:15px !important;
      }
      .agent-matrix-layout .m-card .m-card-huge,
      .agent-matrix-layout .m-card:first-child .m-card-huge,
      .agent-matrix-layout .m-card:not(:first-child) .m-card-huge {
        font-size:20px !important;
      }
      .agent-matrix-layout .m-card-desc,
      .agent-matrix-layout .m-card:first-child .m-card-desc,
      .agent-matrix-layout .m-card:not(:first-child) .m-card-desc {
        font-size:15px !important;
      }
    }
    .hero .agent-matrix-section,
    .agent-matrix-section {
      width:100% !important;
      max-width:1460px !important;
      margin:32px auto 72px !important;
      padding:0 24px !important;
      box-sizing:border-box !important;
    }
    .agent-matrix-layout {
      display:flex !important;
      flex-wrap:wrap !important;
      justify-content:center !important;
      align-items:center !important;
      gap:18px !important;
      width:100% !important;
      margin:0 auto !important;
      padding:0 !important;
      border:0 !important;
      border-radius:0 !important;
      background:transparent !important;
      box-shadow:none !important;
      overflow:visible !important;
      isolation:auto !important;
    }
    .agent-matrix-layout::before { display:none !important; }
    .agent-matrix-layout .m-card,
    .agent-matrix-layout .m-card:first-child,
    .agent-matrix-layout .m-card.agent-card-clone,
    .agent-matrix-layout .m-card.agent-card-product,
    .agent-matrix-layout .m-card.agent-card-fashion,
    .agent-matrix-layout .m-card.agent-card-image,
    .agent-matrix-layout .m-card.agent-card-aplus {
      position:relative !important;
      display:flex !important;
      flex:0 0 220px !important;
      width:220px !important;
      min-width:220px !important;
      max-width:220px !important;
      height:112px !important;
      min-height:112px !important;
      aspect-ratio:auto !important;
      grid-column:auto !important;
      grid-row:auto !important;
      padding:0 !important;
      border-radius:28px !important;
      background:#fff !important;
      border:1px solid #e5e7eb !important;
      color:#111827 !important;
      box-shadow:0 10px 28px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
      overflow:hidden !important;
      text-decoration:none !important;
      transform:none !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
    }
    .agent-matrix-layout .m-card:hover {
      transform:translateY(-2px) !important;
      border-color:#d7dce4 !important;
      box-shadow:0 16px 36px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
    }
    .agent-matrix-layout .m-card.agent-card-aplus,
    .agent-matrix-layout .m-card.agent-card-aplus:hover {
      cursor:not-allowed !important;
      transform:none !important;
    }
    .agent-matrix-layout .m-card::before,
    .agent-matrix-layout .m-card::after,
    .agent-matrix-layout .agent-card-visual,
    .agent-matrix-layout .clone-card-video,
    .agent-matrix-layout .badge-new,
    .agent-matrix-layout .m-card-bottom-header,
    .agent-matrix-layout .m-card-title-small,
    .agent-matrix-layout .tag-small,
    .agent-matrix-layout .card-arrow {
      display:none !important;
    }
    .agent-matrix-layout .m-card-content {
      position:relative !important;
      z-index:2 !important;
      display:grid !important;
      grid-template-columns:52px minmax(0, 1fr) !important;
      grid-template-rows:auto auto !important;
      align-content:center !important;
      align-items:center !important;
      gap:4px 15px !important;
      width:100% !important;
      height:100% !important;
      max-width:none !important;
      padding:22px 23px !important;
      box-sizing:border-box !important;
    }
    .agent-matrix-layout .m-card-top,
    .agent-matrix-layout .agent-feature-main {
      display:contents !important;
    }
    .agent-matrix-layout .agent-feature-icon,
    .agent-matrix-layout .m-card:first-child .agent-feature-icon {
      grid-column:1 !important;
      grid-row:1 / span 2 !important;
      align-self:center !important;
      justify-self:start !important;
      width:52px !important;
      height:52px !important;
      min-width:52px !important;
      flex:0 0 52px !important;
      border-radius:16px !important;
      display:inline-flex !important;
      align-items:center !important;
      justify-content:center !important;
      color:#fff !important;
      font-size:20px !important;
      border:0 !important;
      box-shadow:0 12px 24px rgba(15, 23, 42, 0.10) !important;
      backdrop-filter:none !important;
      -webkit-backdrop-filter:none !important;
    }
    .agent-matrix-layout .m-card.video-bg .agent-feature-icon { background:linear-gradient(135deg, #ff7a45 0%, #ef4444 48%, #a855f7 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-clone .agent-feature-icon { background:linear-gradient(135deg, #18c7dc 0%, #2563eb 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-product .agent-feature-icon { background:linear-gradient(135deg, #fb923c 0%, #f59e0b 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-fashion .agent-feature-icon { background:linear-gradient(135deg, #10b981 0%, #06b6d4 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-image .agent-feature-icon { background:linear-gradient(135deg, #ec4899 0%, #ef4444 100%) !important; }
    .agent-matrix-layout .m-card.agent-card-aplus .agent-feature-icon { background:linear-gradient(135deg, #38bdf8 0%, #2563eb 100%) !important; }
    .agent-matrix-layout .m-card .m-card-huge,
    .agent-matrix-layout .m-card:first-child .m-card-huge,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-product .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-fashion .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-image .m-card-huge,
    .agent-matrix-layout .m-card.agent-card-aplus .m-card-huge {
      grid-column:2 !important;
      grid-row:1 !important;
      align-self:end !important;
      margin:0 !important;
      max-width:100% !important;
      color:#111827 !important;
      font-size:21px !important;
      line-height:1.15 !important;
      font-weight:850 !important;
      letter-spacing:0 !important;
      white-space:nowrap !important;
      overflow:visible !important;
      text-overflow:clip !important;
      text-shadow:none !important;
    }
    .agent-matrix-layout .m-card-bottom {
      grid-column:2 !important;
      grid-row:2 !important;
      align-self:start !important;
      margin:0 !important;
      min-width:0 !important;
    }
    .agent-matrix-layout .m-card-desc,
    .agent-matrix-layout .m-card:first-child .m-card-desc,
    .agent-matrix-layout .m-card.agent-card-clone .m-card-desc,
    .agent-matrix-layout .m-card:not(:first-child) .m-card-desc {
      display:block !important;
      max-width:100% !important;
      color:#8e949f !important;
      opacity:1 !important;
      font-size:15px !important;
      line-height:1.25 !important;
      font-weight:760 !important;
      white-space:nowrap !important;
      overflow:visible !important;
      text-overflow:clip !important;
      text-shadow:none !important;
    }
    @media (max-width: 1500px) {
      .agent-matrix-section { max-width:960px !important; }
    }
    @media (max-width: 768px) {
      .agent-matrix-section { max-width:none !important; margin:24px auto 48px !important; padding:0 14px !important; }
      .agent-matrix-layout { display:grid !important; grid-template-columns:1fr !important; gap:12px !important; }
      .agent-matrix-layout .m-card,
      .agent-matrix-layout .m-card:first-child,
      .agent-matrix-layout .m-card.agent-card-clone,
      .agent-matrix-layout .m-card.agent-card-product,
      .agent-matrix-layout .m-card.agent-card-fashion,
      .agent-matrix-layout .m-card.agent-card-image,
      .agent-matrix-layout .m-card.agent-card-aplus {
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        height:104px !important;
        min-height:104px !important;
        flex:1 1 auto !important;
        border-radius:24px !important;
      }
      .agent-matrix-layout .m-card-content { grid-template-columns:50px minmax(0, 1fr) !important; padding:18px 20px !important; gap:4px 14px !important; }
      .agent-matrix-layout .agent-feature-icon,
      .agent-matrix-layout .m-card:first-child .agent-feature-icon {
        width:50px !important;
        height:50px !important;
        min-width:50px !important;
        flex-basis:50px !important;
        border-radius:15px !important;
      }
      .agent-matrix-layout .m-card .m-card-huge,
      .agent-matrix-layout .m-card:first-child .m-card-huge,
      .agent-matrix-layout .m-card:not(:first-child) .m-card-huge {
        font-size:20px !important;
      }
      .agent-matrix-layout .m-card:not(:first-child) .m-card-desc {
        font-size:14px !important;
      }
    }

    /* ==============================================================
       New Horizontal Cards Layout (Referencing the Dark Theme Picture)
       ============================================================== */
    .feature-pills-section {
      max-width: 1400px;
      margin: 40px auto 60px;
      padding: 0 20px;
    }
    .feature-pills-layout {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
    }
    .h-pill {
      position: relative;
      display: flex;
      flex-direction: column;
      width: calc(33.333% - 11px);
      max-width: 380px;
      min-width: 280px;
      background: #1e1e1e;
      border: 1px solid #2d2d2d;
      border-radius: 16px;
      padding: 24px;
      text-decoration: none;
      transition: all 0.2s ease;
      box-sizing: border-box;
    }
    .h-pill:hover {
      background: #252525;
      border-color: #3d3d3d;
    }
    .h-pill.disabled {
      cursor: not-allowed;
      opacity: 0.6;
    }
    .h-pill.disabled:hover {
      background: #1e1e1e;
      border-color: #2d2d2d;
    }
    .pill-top {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      width: 100%;
      margin-bottom: 24px;
    }
    .pill-icon {
      color: #ffffff;
      font-size: 24px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .pill-badge {
      background: rgba(255, 255, 255, 0.08);
      color: #d4d4d8;
      font-size: 13px;
      font-weight: 500;
      padding: 6px 12px;
      border-radius: 20px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .pill-badge.trending {
      background: #ff2a7a;
      color: #ffffff;
      font-weight: 800;
      font-style: italic;
      padding: 4px 10px;
      border-radius: 6px;
      transform: skewX(-10deg);
      letter-spacing: 0.5px;
    }
    .pill-badge.trending span {
      transform: skewX(10deg);
      display: inline-block;
    }
    .pill-title {
      color: #ffffff;
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 8px;
      letter-spacing: 0.2px;
    }
    .pill-subtitle {
      color: #a1a1aa;
      font-size: 14px;
      font-weight: 400;
      line-height: 1.4;
      position: relative;
      z-index: 1;
    }

    /* Video Pill Special Styling for Background */
    .video-feature-pill, .image-feature-pill {
      overflow: hidden;
    }
    .pill-bg-video, .pill-bg-image {
      position: absolute;
      inset: 0;
      z-index: 0;
    }
    .pill-bg-video video, .pill-bg-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.3;
      transition: opacity 0.3s;
    }
    .video-feature-pill:hover .pill-bg-video video,
    .image-feature-pill:hover .pill-bg-image img {
      opacity: 0.5;
    }
    .pill-bg-video::after, .pill-bg-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(30, 30, 30, 0.4) 0%, rgba(30, 30, 30, 0.9) 100%);
    }

    /* Ensure content stays above video/image */
    .video-feature-pill .pill-top,
    .video-feature-pill .pill-title,
    .video-feature-pill .pill-subtitle,
    .image-feature-pill .pill-top,
    .image-feature-pill .pill-title,
    .image-feature-pill .pill-subtitle {
      position: relative;
      z-index: 1;
    }

    /* Mobile overrides */
    @media (max-width: 768px) {
      .h-pill {
        width: 100%;
        max-width: none;
      }
    }

/* ==============================================================
   Home Redesign - Capsule Nav, Hero, Feature Cards
   ============================================================== */
body {
  background: #ffffff;
}

:root {
  --home-content-max: 1400px;
}

.navbar {
  top: calc(var(--banner-height) + 14px) !important;
  left: 50% !important;
  right: auto !important;
  width: min(var(--home-content-max), calc(100% - 40px)) !important;
  height: 70px !important;
  padding: 0 16px 0 18px !important;
  border: 1px solid rgba(229, 231, 235, 0.92) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.10) !important;
  transform: translateX(-50%) !important;
}

.nav-left {
  gap: 28px !important;
  min-width: 0;
}

.nav-brand {
  margin-top: 0 !important;
  font-size: 18px !important;
  white-space: nowrap;
}

.nav-brand img {
  height: 30px !important;
}

.nav-links {
  gap: 6px !important;
  margin-top: 0 !important;
  align-items: center;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #4b5563 !important;
  font-size: 14px !important;
  font-weight: 760 !important;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover .nav-dropdown-trigger {
  background: #111827;
  color: #ffffff !important;
}

.nav-dropdown-trigger {
  min-height: 38px !important;
}

.nav-actions {
  margin-left: 12px;
}

.user-profile {
  min-height: 42px !important;
  margin-top: 0 !important;
  padding: 3px 10px 3px 4px !important;
  background: #f9fafb;
  border: 1px solid #eef0f3;
}

.user-avatar {
  display: flex !important;
  width: 32px !important;
  height: 32px !important;
  font-size: 15px !important;
}

.nav-mega {
  top: calc(100% + 14px) !important;
}

.home-redesign-hero.hero {
  width: 100%;
  max-width: none !important;
  padding: calc(var(--banner-height) + 108px) 20px 0 !important;
}

.home-redesign-hero .hero-surface {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 34px;
  max-width: var(--home-content-max);
  min-height: 410px;
  margin: 0 auto !important;
  padding: 54px 52px !important;
  overflow: hidden;
  border-radius: 34px !important;
  background-color: #030303 !important;
  isolation: isolate;
}

.home-redesign-hero .hero-surface::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.95) 1.35px, transparent 1.7px),
    radial-gradient(rgba(255, 255, 255, 0.72) 1.15px, transparent 1.55px);
  background-size: 50px 50px;
  background-position: 0 0, 25px 25px;
  opacity: 0.54;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.10) 30%, rgba(0, 0, 0, 0.46) 58%, rgba(0, 0, 0, 0.92) 100%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.10) 30%, rgba(0, 0, 0, 0.46) 58%, rgba(0, 0, 0, 0.92) 100%);
  animation: stars 60s linear infinite;
}

.home-redesign-hero .hero-surface::after {
  content: "";
  position: absolute;
  top: 0;
  right: 5%;
  bottom: 0;
  z-index: 0;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.32) 0 6px, transparent 6px 14px);
  filter: none;
}

.home-redesign-hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px !important;
  margin: 0 !important;
  text-align: left !important;
}

.home-redesign-hero .hero-title {
  max-width: 720px;
  margin: 0 0 24px !important;
  color: #ffffff !important;
  font-size: 32px !important;
  font-weight: 850 !important;
  line-height: 1.28 !important;
  letter-spacing: 0 !important;
}

.home-redesign-hero .hero-subtitle {
  max-width: 560px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 17px !important;
  font-weight: 720 !important;
  line-height: 1.65 !important;
}

.home-redesign-hero .hero-actions {
  justify-content: flex-start !important;
  margin-top: 34px !important;
}

.home-redesign-hero .hero-primary-action {
  position: relative !important;
  min-height: 46px !important;
  padding: 0 25px !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.home-redesign-hero .hero-primary-action:hover {
  background: #f3f4f6 !important;
  box-shadow: none !important;
}

.home-redesign-hero .hero-secondary-action {
  min-height: 46px !important;
  padding: 0 22px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.home-redesign-hero .hero-secondary-action:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  box-shadow: none !important;
}

.hero-collage {
  position: relative;
  z-index: 1;
  height: 306px;
  min-width: 0;
}

.hero-shot {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border-radius: 10px;
  background: #111827;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.28);
}

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

.hero-shot-main {
  right: 2%;
  top: 2px;
  width: 46%;
  height: 150px;
}

.hero-shot-tall {
  left: 11%;
  top: 38px;
  width: 33%;
  height: 148px;
}

.hero-shot-wide {
  left: 2%;
  bottom: 18px;
  width: 43%;
  height: 116px;
}

.hero-shot-small {
  right: 8%;
  bottom: 8px;
  width: 36%;
  height: 122px;
}

.feature-pills-section {
  max-width: var(--home-content-max) !important;
  margin: 46px auto 70px !important;
  padding: 0 20px !important;
}

.feature-section-head {
  position: relative;
  margin-bottom: 24px;
}

.feature-section-head h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.feature-tabs {
  display: flex;
  align-items: center;
  gap: 34px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.feature-tab {
  position: relative;
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: #a1a1aa;
  cursor: default;
  font: inherit;
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: 0;
  padding: 0 0 12px;
}

.feature-tab.active {
  color: #111827;
}

.feature-tab.active::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: #a855f7;
}

.feature-panel {
  display: none;
}

.feature-panel.active {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px !important;
  justify-content: stretch !important;
  align-items: stretch;
  grid-auto-rows: 188px;
}

.h-pill.feature-card {
  --card-accent: #ffffff;
  --card-accent-2: rgba(255, 255, 255, 0.68);
  position: relative;
  display: flex;
  flex-direction: column;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 188px;
  min-height: 0;
  padding: 24px 26px !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.13) 0%, transparent 28%),
    linear-gradient(145deg, #292929 0%, #1d1d1d 48%, #141414 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    0 20px 54px rgba(0, 0, 0, 0.14) !important;
  color: #ffffff;
  overflow: hidden;
  isolation: isolate;
}

.h-pill.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 24px 58px rgba(0, 0, 0, 0.18) !important;
  transform: translateY(-3px);
}

.h-pill.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, transparent 28%, rgba(255, 255, 255, 0.04) 62%, transparent 100%),
    radial-gradient(rgba(255, 255, 255, 0.16) 0.6px, transparent 0.9px);
  background-size: auto, 9px 9px;
  opacity: 0.34;
  pointer-events: none;
}

.h-pill.feature-card::after {
  content: none !important;
  display: none !important;
}

.feature-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  font-size: 21px;
  opacity: 0.94;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  max-width: 142px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feature-card-video-tone {
  background: #171717 !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

.feature-card-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.46;
  filter: saturate(0.92) contrast(1.08);
  pointer-events: none;
}

.feature-card-video-tone::before {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.76)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.36));
  opacity: 1;
}

.feature-card-video-tone .feature-card-top,
.feature-card-video-tone .feature-card-copy {
  z-index: 2;
}

.feature-card-clone-tone .feature-badge {
  background: #ff2d86;
  color: #ffffff;
  border-color: transparent;
  font-style: italic;
}

.feature-card-image-tone .feature-badge {
  background: rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.78);
}

.feature-card-detail-tone .feature-badge {
  background: #ff2d86;
  color: #ffffff;
  border-color: transparent;
}

.feature-card-copy {
  position: relative;
  z-index: 1;
  padding: 0;
  margin-top: auto;
}

.feature-card-title {
  display: flex;
  align-items: center;
  gap: 0;
  color: #ffffff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
}

.feature-card-title i {
  display: none;
}

.feature-card:hover .feature-card-title i {
  opacity: 1;
  transform: translateX(0);
}

.feature-card-copy p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 1180px) {
  .navbar {
    width: min(var(--home-content-max), calc(100% - 36px)) !important;
  }

  .nav-left {
    gap: 18px !important;
  }

  .nav-link {
    padding: 0 11px;
  }

  .home-redesign-hero .hero-surface {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 42px !important;
  }

  .hero-collage {
    height: 270px;
  }

  .feature-panel.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px !important;
    grid-auto-rows: 178px;
  }
}

@media (max-width: 768px) {
  .navbar {
    top: calc(var(--banner-height) + 8px) !important;
    width: calc(100% - 24px) !important;
    height: 54px !important;
    padding: 0 14px !important;
  }

  .nav-brand {
    font-size: 16px !important;
  }

  .nav-brand img {
    height: 28px !important;
  }

  .home-redesign-hero.hero {
    padding: calc(var(--banner-height) + 82px) 14px 0 !important;
  }

  .home-redesign-hero .hero-surface {
    gap: 24px;
    padding: 30px 22px 24px !important;
    border-radius: 26px !important;
  }

  .home-redesign-hero .hero-surface::before {
    background-size: 36px 36px;
  }

  .home-redesign-hero .hero-title {
    font-size: 28px !important;
    line-height: 1.32 !important;
  }

  .home-redesign-hero .hero-subtitle {
    font-size: 15px !important;
  }

  .home-redesign-hero .hero-actions {
    gap: 10px;
  }

  .home-redesign-hero .hero-primary-action,
  .home-redesign-hero .hero-secondary-action {
    width: 100%;
  }

  .hero-collage {
    height: 230px;
  }

  .hero-shot-main {
    right: -10px;
    top: 0;
    width: 48%;
    height: 118px;
  }

  .hero-shot-tall {
    left: 0;
    top: 18px;
    width: 36%;
    height: 132px;
  }

  .hero-shot-wide {
    left: 8%;
    top: 154px;
    width: 38%;
    height: 70px;
  }

  .hero-shot-small {
    right: 0;
    top: 132px;
    width: 34%;
    height: 82px;
  }

  .feature-pills-section {
    margin: 34px auto 54px !important;
    padding: 0 14px !important;
  }

  .feature-tabs {
    gap: 26px;
  }

  .feature-tab {
    font-size: 19px;
  }

  .feature-panel.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px !important;
    grid-auto-rows: 154px;
  }

  .h-pill.feature-card {
    height: 154px;
    min-height: 0;
    padding: 18px !important;
    border-radius: 16px !important;
  }

  .h-pill.feature-card::after {
    content: none !important;
    display: none !important;
  }

  .feature-card-top {
    margin-bottom: 0;
  }

  .feature-icon {
    width: 30px;
    height: 30px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 21px;
  }

  .feature-badge {
    max-width: 104px;
    min-height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .feature-card-title {
    font-size: 16px;
  }

  .feature-card-copy {
    padding-bottom: 0;
  }

  .feature-card-copy p {
    display: -webkit-box;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 12px;
    font-weight: 620;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

}

@media (max-width: 480px) {
  .feature-panel.active {
    grid-template-columns: 1fr;
  }
}

/* FAQ and footer alignment with the redesigned home width */
.home-faq-section {
  max-width: var(--home-content-max) !important;
  margin: 82px auto 0 !important;
  padding: 0 20px !important;
  box-sizing: border-box;
}

.home-faq-section .home-section-head {
  max-width: 780px;
}

.faq-list {
  width: 100%;
  border-radius: 28px !important;
  border-color: rgba(219, 232, 245, 0.9) !important;
  box-shadow: 0 24px 72px rgba(15, 23, 42, 0.08) !important;
}

.bottom-section {
  width: min(var(--home-content-max), calc(100% - 40px)) !important;
  max-width: var(--home-content-max) !important;
  margin: 92px auto 28px !important;
  border-radius: 42px !important;
  background: #000 !important;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.bottom-section .starry-bg {
  border-radius: inherit;
  opacity: 0.15;
}

.bottom-section .footer {
  padding: 58px clamp(32px, 4.2vw, 72px) 30px !important;
  border-top: 0 !important;
}

.bottom-section .footer-content,
.bottom-section .footer-bottom {
  max-width: none !important;
}

.bottom-section .footer-content {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 0.8fr) minmax(620px, 1.8fr) !important;
  align-items: start !important;
  gap: clamp(42px, 6vw, 112px) !important;
}

.bottom-section .footer-brand {
  min-width: 0 !important;
}

.bottom-section .footer-links-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(28px, 4vw, 72px) !important;
  min-width: 0 !important;
}

.bottom-section .footer-brand h3 {
  font-size: 24px !important;
}

.bottom-section .footer-brand p {
  color: rgba(255, 255, 255, 0.56) !important;
}

.bottom-section .footer-col h4 {
  color: rgba(255, 255, 255, 0.94) !important;
}

.bottom-section .footer-col ul a {
  color: rgba(255, 255, 255, 0.52) !important;
}

.bottom-section .footer-col ul a:hover {
  color: #ffffff !important;
}

.bottom-section .footer-col:nth-child(4) img {
  border-radius: 18px;
}

.bottom-section .footer-bottom {
  margin-top: 44px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.42) !important;
}

@media (max-width: 1180px) {
  .bottom-section .footer-content {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  .bottom-section .footer-brand p {
    max-width: 560px !important;
  }

  .bottom-section .footer-links-wrapper {
    gap: 28px !important;
  }
}

@media (max-width: 768px) {
  .home-faq-section {
    margin: 52px auto 0 !important;
    padding: 0 14px !important;
  }

  .faq-list {
    border-radius: 22px !important;
  }

  .bottom-section {
    width: calc(100% - 28px) !important;
    margin: 58px auto 18px !important;
    border-radius: 28px !important;
  }

  .bottom-section .footer {
    padding: 32px 18px 24px !important;
  }

  .bottom-section .footer-content {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .bottom-section .footer-bottom {
    margin-top: 28px !important;
  }
}

/* Hero image layout: 4 images, one 1:1, no overlap */
.hero-collage {
  --hero-collage-gap: 14px;
  --hero-square-size: calc((316px - var(--hero-collage-gap)) / 2);
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-rows: 1fr 1fr;
  gap: var(--hero-collage-gap);
  height: 316px !important;
}

.hero-shot {
  position: relative !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0;
  min-height: 0;
  border-radius: 16px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24) !important;
}

.hero-shot-main {
  grid-column: 2;
  grid-row: 1;
}

.hero-shot-square {
  grid-column: 1;
  grid-row: 1;
  width: var(--hero-square-size) !important;
  height: var(--hero-square-size) !important;
  aspect-ratio: 1 / 1;
  align-self: end;
  justify-self: end;
}

.hero-shot-wide {
  grid-column: 1;
  grid-row: 2;
}

.hero-shot-small {
  grid-column: 2;
  grid-row: 2;
}

.hero-shot img {
  object-fit: cover !important;
}

.hero-shot-square img {
  object-fit: cover !important;
}

@media (max-width: 1180px) {
  .hero-collage {
    --hero-square-size: calc((300px - var(--hero-collage-gap)) / 2);
    height: 300px !important;
  }
}

@media (max-width: 768px) {
  .hero-collage {
    --hero-collage-gap: 10px;
    --hero-square-size: calc((240px - var(--hero-collage-gap)) / 2);
    grid-template-columns: 1fr 1fr;
    height: 240px !important;
  }

  .hero-shot {
    border-radius: 12px !important;
  }
}

/* Mobile hero and feature-card final polish */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between !important;
    gap: 12px;
  }

  .nav-left {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
  }

  .nav-actions {
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
    margin-left: auto !important;
    gap: 0;
  }

  .user-profile-dropdown {
    display: block;
    max-width: 100%;
  }

  .user-profile {
    min-height: 38px !important;
    gap: 7px;
    padding: 3px 9px 3px 4px !important;
    max-width: 148px;
  }

  .user-avatar {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px;
    font-size: 14px !important;
  }

  .header-user-name {
    display: inline-block;
    max-width: 48px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
  }

  .header-user-role-badge {
    flex: 0 0 auto;
    margin-left: 0 !important;
    white-space: nowrap;
  }

  .header-user-menu {
    right: 0;
    max-width: calc(100vw - 32px);
  }

  .home-redesign-hero .hero-surface {
    background:
      radial-gradient(circle at 92% 14%, rgba(96, 165, 250, .20) 0%, transparent 30%),
      radial-gradient(circle at 78% 86%, rgba(244, 63, 94, .15) 0%, transparent 34%),
      #030303 !important;
  }

  .home-redesign-hero .hero-surface::before {
    display: block !important;
    background-image:
      radial-gradient(rgba(255, 255, 255, .94) 1.25px, transparent 1.7px),
      radial-gradient(rgba(255, 255, 255, .56) .9px, transparent 1.45px);
    background-size: 34px 34px, 52px 52px;
    background-position: 0 0, 17px 21px;
    opacity: .66;
    mask-image: linear-gradient(96deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .22) 34%, rgba(0, 0, 0, .62) 66%, rgba(0, 0, 0, .96) 100%);
    -webkit-mask-image: linear-gradient(96deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .22) 34%, rgba(0, 0, 0, .62) 66%, rgba(0, 0, 0, .96) 100%);
  }

  .feature-panel.active {
    grid-auto-rows: 176px;
  }

  .h-pill.feature-card {
    height: 176px;
  }

  .feature-card-copy p {
    display: -webkit-box !important;
  }
}

@media (max-width: 480px) {
  .feature-panel.active {
    grid-auto-rows: 166px;
  }

  .h-pill.feature-card {
    height: 166px;
  }
}

/* Homepage image-to-video entry */
.home-redesign-hero.hero {
  padding: calc(var(--banner-height) + 108px) 20px 0 !important;
}

.home-redesign-hero .hero-surface {
  display: block;
  max-width: var(--home-content-max);
  min-height: 0;
  padding: 56px 68px 28px !important;
  border-radius: 34px !important;
  background: #050505 !important;
}

.home-redesign-hero .hero-surface::before {
  display: block !important;
  background-image: radial-gradient(rgba(255, 255, 255, 0.78) 1.1px, transparent 1.55px);
  background-size: 40px 40px;
  opacity: 0.3;
  mask-image: none;
  -webkit-mask-image: none;
}

.home-redesign-hero .hero-surface::after { display: none; }

.home-redesign-hero .hero-copy {
  width: 100%;
  max-width: 850px !important;
  margin: 0 auto 30px !important;
  text-align: center !important;
}

.home-video-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 27px;
  padding: 0 11px;
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.home-video-kicker span,
.home-model-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #66d7ac;
  box-shadow: 0 0 0 3px rgba(102, 215, 172, 0.12);
}

.home-redesign-hero .hero-title {
  max-width: none;
  margin: 0 0 14px !important;
  color: #ffffff !important;
  font-size: 44px !important;
  font-weight: 850 !important;
  line-height: 1.16 !important;
  letter-spacing: 0 !important;
}

.home-redesign-hero .hero-subtitle {
  display: block;
  width: 100%;
  max-width: 780px !important;
  margin: 0 auto !important;
  color: rgba(255, 255, 255, 0.62) !important;
  font-size: 16px !important;
  font-weight: 550 !important;
  line-height: 1.65 !important;
  text-align: center !important;
}

.home-video-chatbot {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.home-video-input-row { position: relative; }

.home-video-input-row textarea {
  display: block;
  width: 100%;
  min-height: 90px;
  padding: 15px 17px 10px;
  resize: vertical;
  border: 0;
  outline: 0;
  background: transparent;
  color: #14171d;
  font: inherit;
  font-size: 14px;
  line-height: 1.65;
}

.home-video-input-row textarea::placeholder { color: #a1a8b3; }

.home-clone-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
  padding: 0;
}

.home-clone-card {
  position: relative;
  display: grid;
  align-items: center;
  justify-content: center;
  height: 30px;
  min-height: 30px;
  width: 30px;
  min-width: 30px;
  gap: 0;
  overflow: visible;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 8px;
  background: rgba(255, 255, 255, .1);
  color: rgba(248, 250, 252, .92);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.home-clone-card:hover,
.home-clone-card:focus-visible {
  border-color: rgba(255, 255, 255, .62);
  background: rgba(255, 255, 255, .18);
  color: #fff;
}

.home-clone-add {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  flex: 0 0 auto;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  line-height: 1;
  place-items: center;
}

.home-clone-add svg {
  width: 15px;
  height: 15px;
}

.home-clone-copy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.home-clone-copy b {
  overflow: hidden;
  color: currentColor;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-clone-copy small {
  overflow: hidden;
  color: rgba(226, 232, 240, .68);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-clone-video-preview {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  overflow: hidden;
  border-radius: inherit;
  background: #111827;
  pointer-events: none;
}

.home-clone-video-card.has-video {
  border-color: rgba(147, 197, 253, .72);
  color: #fff;
}

.home-clone-video-card.has-video .home-clone-video-preview { display: none; }
.home-clone-video-card.has-video .home-clone-video-preview video { width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.home-clone-card.has-file,
.home-clone-video-card.has-video {
  border-color: rgba(226, 232, 240, .68);
  background: rgba(255, 255, 255, .16);
}

.home-clone-card.has-file::after,
.home-clone-video-card.has-video::after {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f8fafc;
  content: "";
  box-shadow: 0 0 0 2px rgba(15, 23, 42, .38);
}

.home-clone-video-card.has-video .home-clone-add { color: #fff; }
.home-clone-video-card.has-video .home-clone-copy b { color: #fff; }
.home-clone-video-card.has-video .home-clone-copy small { color: rgba(255, 255, 255, .78); }

.home-video-chatbot[data-home-mode="clone"] #homeUploadBtn {
  display: none !important;
}

.home-video-chatbot[data-home-mode="clone"] .home-video-controls-left {
  gap: 8px;
}

.home-preview-strip {
  display: flex;
  gap: 8px;
  min-height: 0;
  padding: 0 14px 10px;
}

.home-preview-strip.is-empty { display: none; }

.home-preview-item {
  position: relative;
  width: 50px;
  height: 50px;
  overflow: visible;
  border-radius: 7px;
  background: #eef0f3;
}

.home-preview-item img,
.home-preview-item video { display: block; width: 100%; height: 100%; border-radius: 7px; object-fit: cover; }
.home-preview-item button {
  position: absolute;
  z-index: 3;
  top: -7px;
  right: -7px;
  display: grid;
  width: 21px;
  height: 21px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1f2937;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 9px rgba(15, 23, 42, .28);
  transition: background .16s ease, transform .16s ease;
}

.home-preview-item button:hover,
.home-preview-item button:focus-visible { background: #ef4444; transform: scale(1.08); }

.home-video-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 7px 8px 7px 10px;
  border-radius: 11px;
  background: #f3f5f7;
}

.home-video-controls-left { display: flex; align-items: center; gap: 7px; min-width: 0; }

.home-upload-button,
.home-settings-button,
.home-language-select,
.home-model-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #e0e4e8;
  border-radius: 8px;
  background: #fff;
  color: #414852;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.home-upload-button { gap: 7px; cursor: pointer; }
.home-upload-button:hover { border-color: #b6bdc6; background: #fbfcfd; }
.home-upload-button i { font-size: 11px; }
.home-model-pill { gap: 7px; color: #252b33; }
.home-model-dot { flex: 0 0 6px; }
.home-settings-wrap { position: relative; }
.home-settings-button { gap: 7px; cursor: pointer; }
.home-settings-button i { font-size: 10px; transition: transform .18s ease; }
.home-settings-wrap.is-open .home-settings-button i { transform: rotate(180deg); }
.home-language-select { max-width: 90px; appearance: none; cursor: pointer; }

.home-settings-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: none;
  width: 300px;
  padding: 14px;
  border: 1px solid #e2e6eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(15, 23, 42, 0.18);
}

.home-settings-wrap.is-open .home-settings-panel { display: grid; gap: 13px; }
.home-setting-group { display: grid; grid-template-columns: 46px 1fr; align-items: center; gap: 8px; }
.home-setting-group b { color: #7a8490; font-size: 12px; }
.home-setting-group > div { display: flex; gap: 5px; }
.home-setting-group button {
  min-width: 42px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid #e2e6eb;
  border-radius: 6px;
  background: #fff;
  color: #5d6671;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.home-setting-group button.is-active { border-color: #15191f; background: #15191f; color: #fff; }

.home-video-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  gap: 9px;
  padding: 0 15px 0 18px;
  border: 0;
  border-radius: 8px;
  background: #15191f;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.home-video-submit:hover { background: #000; transform: translateY(-1px); }
.home-video-submit i { display: grid; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #15191f; font-size: 10px; place-items: center; }

.home-video-error { display: none; margin: 8px 8px 0; color: #ff8f7b; font-size: 12px; }
.home-video-error.is-visible { display: block; }

@media (max-width: 900px) {
  .home-redesign-hero .hero-surface { padding: 46px 34px 25px !important; }
  .home-redesign-hero .hero-title { font-size: 38px !important; }
  .home-video-controls-left { flex-wrap: wrap; }
  .home-video-controls { align-items: flex-end; }
}

@media (max-width: 768px) {
  .home-redesign-hero.hero { padding: calc(var(--banner-height) + 82px) 14px 0 !important; }
  .home-redesign-hero .hero-surface { padding: 36px 16px 22px !important; border-radius: 25px !important; }
  .home-redesign-hero .hero-copy { margin-bottom: 24px !important; }
  .home-redesign-hero .hero-title { font-size: 30px !important; line-height: 1.24 !important; }
  .home-redesign-hero .hero-subtitle { font-size: 13px !important; line-height: 1.65 !important; }
  .home-video-kicker { font-size: 10px; }
  .home-video-chatbot { padding: 7px; border-radius: 14px; }
  .home-video-input-row textarea { min-height: 112px; padding: 13px 11px 8px; font-size: 13px; }
  .home-video-controls { display: block; padding: 7px; }
  .home-video-controls-left { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .home-upload-button, .home-settings-button, .home-language-select, .home-model-pill { width: 100%; min-width: 0; min-height: 36px; }
  .home-model-pill { display: none; }
  .home-video-submit { width: 100%; margin-top: 7px; min-height: 43px; }
  .home-settings-panel { position: fixed; right: 12px; bottom: 12px; left: 12px; width: auto; z-index: 2000; }
}

@media (max-width: 420px) {
  .home-redesign-hero .hero-title { font-size: 27px !important; }
}

/* Keep the home controls aligned with the video generation ChatBot. */
.home-video-chatbot { padding: 14px 18px !important; border-radius: 22px !important; border-color: #e8edf5; box-shadow: 0 18px 58px rgba(15, 23, 42, .07); }
.home-video-input-row textarea { min-height: 92px; padding: 0 0 12px; font-size: 14px; font-weight: 520; color: #1f2937; line-height: 1.65; }
.home-video-input-row textarea::placeholder { color: #aab3c1; font-size: 13px; font-weight: 520; }
.home-video-controls { min-height: 0; padding: 8px 0 0; border-radius: 0; background: transparent; }
.home-video-controls-left { gap: 12px; }

.home-upload-widget,
.home-person-button,
.home-model-trigger,
.home-setting-tag,
.home-mobile-config-button,
.home-prompt-polish {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.home-upload-widget { width: 36px; padding: 0; border-radius: 10px; color: #5f6672; }
.home-person-button { position: relative; width: 36px; padding: 0; border-radius: 10px; color: #5f6672; }
.home-person-button svg { width: 17px; height: 17px; }
.home-person-button.is-locked { color: #a6aebb; background: #f8fafc; }
.home-person-button.is-selected { color: transparent; background-image: var(--home-person-image); background-position: center; background-size: cover; }
.home-person-clear { position: absolute; top: -5px; right: -5px; display: none; width: 16px; height: 16px; border-radius: 50%; background: #111827; color: #fff; font-size: 12px; line-height: 16px; text-align: center; }
.home-person-button.is-selected .home-person-clear { display: block; }
.home-upload-widget svg { width: 14px; height: 14px; }
.home-upload-widget:hover,
.home-person-button:hover,
.home-model-trigger:hover,
.home-setting-tag:hover,
.home-mobile-config-button:hover,
.home-prompt-polish:hover { border-color: #d0d0d0; background: #f8f9fa; color: #111827; }
.home-prompt-polish { white-space: nowrap; }
.home-prompt-polish.loading { color: #94a3b8; cursor: wait; }

.home-model-selector,
.home-settings-container,
.home-language-selector { position: relative; }
.home-model-trigger::after,
.home-setting-tag::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 4px;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  opacity: .5;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease, opacity .18s ease;
}
.home-model-selector.is-open .home-model-trigger::after,
.home-settings-container.is-open .home-setting-tag::after,
.home-language-selector.is-open .home-model-trigger::after { transform: translateY(1px) rotate(-135deg); opacity: .9; }
.home-setting-tag { gap: 6px; }
.home-setting-tag .divider { margin: 0 4px; color: #cbd5e1; font-weight: 300; }

.home-model-panel,
.home-language-panel,
.home-settings-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  z-index: 1100;
  display: none;
  border: 1px solid #ececf1;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .1);
}
.home-model-panel { left: 0; width: 320px; padding: 10px; border-radius: 12px; }
.home-language-panel { left: 0; min-width: 144px; padding: 8px; border-radius: 12px; }
.home-settings-panel { left: 0; width: 328px; min-width: 328px; padding: 18px; border-radius: 16px; }
.home-model-selector.is-open .home-model-panel,
.home-language-selector.is-open .home-language-panel,
.home-settings-container.is-open .home-settings-panel { display: block; }

.home-model-option,
.home-language-panel button {
  width: 100%;
  border: 1px solid transparent;
  background: #fff;
  color: #374151;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.home-model-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; }
.home-model-option + .home-model-option { margin-top: 4px; }
.home-model-option:hover,
.home-model-option.is-selected { border-color: #e2e8f0; background: #f8fafc; }
.home-model-option span { display: grid; gap: 3px; }
.home-model-option b { font-size: 14px; line-height: 1.3; }
.home-model-option small { color: #64748b; font-size: 12px; line-height: 1.4; }
.home-model-option em { padding: 3px 7px; border-radius: 999px; background: #fff7ed; color: #c2410c; font-size: 10px; font-style: normal; font-weight: 750; }
.home-language-panel button { padding: 9px 10px; border-radius: 7px; font-size: 13px; }
.home-language-panel button:hover,
.home-language-panel button.is-selected { background: #f8fafc; color: #111827; }

.home-setting-section + .home-setting-section { margin-top: 16px; }
.home-setting-label { margin-bottom: 9px; color: #374151; font-size: 13px; font-weight: 750; }
.home-resolution-selector { display: flex; gap: 8px; }
.home-resolution-selector button { min-width: 62px; height: 34px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #64748b; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.home-resolution-selector button.is-active { border-color: #15191f; background: #15191f; color: #fff; }
.home-resolution-selector button:disabled,
.home-mobile-choice-row button:disabled { border-color: #edf0f4; background: #f5f6f8; color: #b5bdc8; cursor: not-allowed; opacity: .72; }
.home-ratio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.home-ratio-grid button { display: grid; place-items: center; gap: 6px; height: 76px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #64748b; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.home-ratio-grid button.is-active { border-color: #15191f; color: #15191f; background: #f8fafc; }
.home-ratio-shape { display: block; border: 1.5px solid currentColor; border-radius: 3px; }
.ratio-9-16 { width: 15px; height: 28px; }.ratio-16-9 { width: 30px; height: 17px; }.ratio-1-1 { width: 22px; height: 22px; }

.home-video-controls-right { display: flex; align-items: center; gap: 12px; }
.home-credits-text { display: inline-flex; align-items: center; gap: 7px; color: #64748b; font-size: 13px; font-weight: 650; white-space: nowrap; }
.home-credits-price.is-discounted { color: #a5adba; text-decoration: line-through; }
.home-credits-free { padding: 3px 7px; border-radius: 999px; background: #f0fdf4; color: #15803d; font-size: 10px; font-weight: 780; }
.home-generate-btn { display: grid; width: 36px; height: 36px; padding: 0; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; background: #15191f; color: #fff; cursor: pointer; place-items: center; box-shadow: 0 8px 18px rgba(75, 85, 99, .2); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.home-generate-btn svg { width: 18px; height: 18px; }.home-generate-btn:hover { background: #374151; box-shadow: 0 10px 22px rgba(75, 85, 99, .26); transform: translateY(-1px); }.home-generate-btn:disabled { cursor: wait; opacity: .7; box-shadow: none; }
.home-mobile-config-button { display: none; gap: 8px; }
.home-mobile-config-icon { width: 16px; height: 16px; flex: 0 0 16px; }

.home-mobile-config-panel { display: none; }
.home-person-panel { position: fixed; inset: 0; z-index: 1450; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(15, 23, 42, .45); }
.home-person-panel.is-open { display: flex; }
.home-person-dialog { width: min(620px, calc(100vw - 40px)); max-height: min(620px, calc(100dvh - 40px)); overflow-y: auto; padding: 20px; border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; box-shadow: 0 28px 80px rgba(15, 23, 42, .24); }
.home-person-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.home-person-head > div { display: grid; gap: 4px; }.home-person-head b { color: #111827; font-size: 18px; }.home-person-head span { color: #8a94a3; font-size: 12px; }
.home-person-head button { display: grid; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: #f8fafc; color: #64748b; cursor: pointer; place-items: center; }
.home-person-upload-card { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 54px; padding: 0 14px; border: 1px dashed #cbd5e1; border-radius: 13px; background: #f8fafc; color: #334155; font: inherit; font-size: 13px; font-weight: 730; cursor: pointer; }
.home-person-upload-card small { margin-left: auto; color: #94a3b8; font-size: 11px; font-weight: 520; }.home-person-upload-card.loading { pointer-events: none; opacity: .6; }
.home-person-status { padding: 26px 0; color: #94a3b8; font-size: 13px; text-align: center; }
.home-person-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.home-person-item { position: relative; aspect-ratio: 1; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 12px; background: #f1f5f9; cursor: pointer; }
.home-person-item.is-selected { border-color: #111827; }.home-person-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-person-delete { position: absolute; top: 4px; right: 4px; display: grid; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(15,23,42,.68); color: #fff; font-size: 13px; cursor: pointer; place-items: center; }
.home-mobile-polish { width: 100%; min-height: 44px; margin-top: 18px; border: 0; border-radius: 11px; background: #15191f; color: #fff; font: inherit; font-size: 13px; font-weight: 750; }

@media (max-width: 768px) {
  .home-video-chatbot { padding: 14px !important; }
  .home-video-input-row textarea { min-height: 100px; padding: 0 0 10px; font-size: 13px; line-height: 1.55; }
  .home-video-controls { display: flex; flex-direction: row; align-items: center; padding-top: 10px; border-top: 1px solid #f1f5f9; }
  .home-video-controls-left { display: flex; grid-template-columns: none; flex: 1; gap: 8px; }
  .home-desktop-control { display: none; }
  .home-mobile-config-button { display: inline-flex; }
  .home-video-controls-right { gap: 10px; }
  .home-credits-text { display: none; }
  .home-generate-btn { width: 40px; height: 40px; border-radius: 13px; }
  .home-mobile-config-panel { position: fixed; inset: 0; z-index: 1400; padding: 12px; background: rgba(15, 23, 42, .42); align-items: flex-end; }
  .home-mobile-config-panel.is-open { display: flex; }
  .home-mobile-config-sheet { width: 100%; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px; background: #fff; box-shadow: 0 -18px 48px rgba(15, 23, 42, .18); }
  .home-mobile-config-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; color: #111827; font-size: 17px; }
  .home-mobile-config-head button { display: grid; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: #f8fafc; color: #64748b; place-items: center; }
  .home-mobile-config-section { margin-top: 15px; }
  .home-mobile-config-section > span, .home-mobile-language > span { display: block; margin-bottom: 8px; color: #374151; font-size: 13px; font-weight: 750; }
  .home-mobile-choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .home-mobile-choice-row button { min-height: 40px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #64748b; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
  .home-mobile-choice-row button.is-active { border-color: #15191f; background: #15191f; color: #fff; }
  .home-mobile-language { display: block; margin-top: 17px; }
  .home-mobile-language select { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 9px; background: #fff; color: #374151; font: inherit; font-size: 13px; }
  .home-person-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 16px; border-radius: 20px; }
  .home-person-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Homepage multi-tool selector and interaction polish. */
.home-tool-switcher {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 1020px;
  margin: 0 auto -1px;
  padding: 0 18px;
  position: relative;
  z-index: 5;
}

.home-tool-card {
  position: relative;
  min-height: 74px;
  overflow: hidden;
  padding: 0 22px;
  border: 1px solid rgba(224, 229, 255, .78);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  background-color: #f9faff;
  background-image: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(246,248,255,.88) 66%, rgba(237,241,255,.52) 100%), var(--tool-image);
  background-position: right center;
  background-size: cover;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96);
  color: #20273a;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.home-tool-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(120deg, rgba(95,116,255,.11), transparent 42%);
  opacity: 0;
  transition: opacity .2s ease;
}

.home-tool-card span { position: relative; z-index: 1; display: block; font-size: 17px; font-weight: 780; letter-spacing: -.025em; }
.home-tool-card:hover { border-color: rgba(105,124,245,.55); transform: translateY(-2px); }
.home-tool-card:hover::after { opacity: 1; }
.home-tool-card.is-active { z-index: 2; border-color: #687cf2; background-color: #fff; background-image: linear-gradient(90deg, #fff 0%, #fbfcff 66%, rgba(238,242,255,.74) 100%), var(--tool-image); box-shadow: 0 -7px 19px rgba(87, 104, 210, .12), inset 0 1px 0 rgba(255,255,255,.96); color: #26357f; }
.home-tool-card:focus-visible { outline: 2px solid #7182f4; outline-offset: 3px; }

.home-video-chatbot .home-video-only[hidden],
.home-video-chatbot .home-clone-only[hidden],
.home-video-chatbot .home-credits-text[hidden] { display: none !important; }

/* One compact tooltip treatment for icon-only and compact action buttons. */
button[data-tooltip] { position: relative; }
button[data-tooltip]::before {
  position: absolute;
  z-index: 15020;
  bottom: calc(100% + 9px);
  left: 50%;
  width: max-content;
  max-width: min(360px, calc(100vw - 24px));
  padding: 7px 10px;
  border-radius: 7px;
  background: rgba(17, 24, 39, .96);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .18);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 3px);
  transition: opacity .16s ease, transform .16s ease;
}
button[data-tooltip]:hover::before,
button[data-tooltip]:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }

/* These panels are moved to body by the homepage script, so they always sit above nav and hero layers. */
.home-video-chatbot { overflow: visible !important; }
.home-video-chatbot { border: 2px solid #687cf2 !important; border-radius: 0 0 24px 24px !important; box-shadow: 0 18px 44px rgba(50, 63, 135, .18) !important; }
.home-video-chatbot[data-home-tool="video"] { border-radius: 0 0 24px 24px !important; }
.home-video-chatbot::before { position:absolute; content:""; top:-2px; left:0; right:0; height:2px; background:#687cf2; }
.home-mobile-config-panel { z-index: 13060 !important; }
.home-person-panel { z-index: 13070 !important; }
.home-model-panel { width: 360px; }
.home-language-panel { min-width: 180px; }
.home-model-option small,
.home-language-panel button { white-space: nowrap; }

.home-clone-assets { display:flex; gap:9px; margin:0 0 11px; }
.home-clone-asset-card { display:flex; align-items:center; gap:9px; min-width:0; width:220px; padding:9px 10px; border:1px dashed #cdd5e6; border-radius:11px; background:#fbfcfe; color:#334155; font:inherit; text-align:left; cursor:pointer; transition:border-color .18s ease, background .18s ease; }
.home-clone-asset-card:hover { border-color:#7182f4; background:#f5f7ff; }
.home-clone-asset-card > i { display:grid; width:28px; height:28px; flex:0 0 28px; border-radius:8px; background:#eef2ff; color:#586dda; font-size:13px; place-items:center; }
.home-clone-asset-card span { display:grid; min-width:0; gap:2px; }.home-clone-asset-card b { font-size:12px; }.home-clone-asset-card small { overflow:hidden; color:#8993a4; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.home-specific-controls { display:flex; align-items:center; gap:12px; min-width:0; }
.home-specific-control { position:relative; flex:0 0 auto; }
.home-specific-menu { position:absolute; z-index:1200; bottom:calc(100% + 12px); left:0; display:none; width:330px; padding:9px; border:1px solid #e4e9f2; border-radius:13px; background:#fff; box-shadow:0 14px 34px rgba(15,23,42,.14); }
.home-specific-menu.is-open { display:block; }
.home-specific-option { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; padding:9px 10px; border:1px solid transparent; border-radius:9px; background:#fff; color:#334155; font:inherit; text-align:left; cursor:pointer; }
.home-specific-option:hover,.home-specific-option.is-selected { border-color:#e1e7f4; background:#f7f9fd; }.home-specific-option span { display:grid; gap:3px; }.home-specific-option b { font-size:13px; }.home-specific-option small { color:#758196; font-size:11px; line-height:1.35; white-space:normal; }.home-specific-option em { flex:0 0 auto; padding:3px 6px; border-radius:999px; background:#eff3ff; color:#5268d4; font-size:10px; font-style:normal; white-space:nowrap; }
.home-specific-menu-title { margin:4px 2px 7px; color:#455166; font-size:12px; font-weight:760; }.home-specific-menu-title + .home-specific-chip-list { margin-bottom:12px; }.home-specific-menu-title:last-of-type { margin-top:3px; }
.home-specific-chip-list { display:flex; flex-wrap:wrap; gap:7px; }.home-specific-chip { min-height:31px; padding:0 10px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; color:#64748b; font:inherit; font-size:12px; font-weight:650; cursor:pointer; }.home-specific-chip:hover,.home-specific-chip.is-selected { border-color:#687cf2; background:#eef1ff; color:#3449bf; }
.home-specific-language-menu { width:178px; }.home-specific-language-option { display:block; width:100%; padding:8px 9px; border:0; border-radius:7px; background:#fff; color:#475569; font:inherit; font-size:12px; text-align:left; cursor:pointer; }.home-specific-language-option:hover,.home-specific-language-option.is-selected { background:#f2f5ff; color:#3146bd; }

@media (min-width: 769px) {
  .home-mobile-config-button { display: none !important; }
}

@media (max-width: 768px) {
  .home-tool-switcher { grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px; margin-bottom:-1px; padding:0 8px; }
  .home-tool-card { min-height:56px; padding:0 13px; border-radius:15px 15px 0 0; }
  .home-tool-card span { font-size:13px; }
  .home-video-chatbot { border-width:2px !important; border-radius:0 0 17px 17px !important; }
  .home-clone-assets { flex-direction:column; gap:6px; }.home-clone-asset-card { width:100%; padding:7px 9px; }.home-clone-asset-card > i { width:25px; height:25px; flex-basis:25px; }
  .home-specific-controls { max-width:calc(100vw - 145px); overflow-x:auto; scrollbar-width:none; }.home-specific-controls::-webkit-scrollbar { display:none; }.home-specific-controls > * { flex:0 0 auto; }
  .home-specific-menu { position:fixed; right:12px; bottom:88px; left:12px; width:auto; max-height:calc(100dvh - 120px); overflow-y:auto; z-index:13080; }
  .home-specific-language-menu { width:auto; }
  .home-mobile-config-button:not([hidden]) { display: inline-flex !important; }
  .home-mobile-config-panel.is-open { display: flex !important; }
  .home-mobile-config-panel { z-index: 13060 !important; }
  .home-mobile-config-sheet { position: relative; z-index: 1; }
}

/* Quick creation cards sit directly below the composer, matching the input-first flow. */
.home-video-chatbot .home-specific-controls[hidden],
.home-video-chatbot .home-clone-assets[hidden] {
  display: none !important;
}

.home-video-chatbot {
  border: 1px solid #e8edf5 !important;
  border-radius: 22px !important;
  box-shadow: 0 18px 58px rgba(15, 23, 42, 0.10) !important;
}

.home-video-chatbot::before { display: none !important; }

.home-quick-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 1020px;
  margin: 16px auto 0;
  padding: 0 2px;
}

.home-quick-feature-card {
  --quick-accent: #9eb4ff;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 72px;
  padding: 12px 11px 12px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.home-quick-feature-card::before {
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: var(--quick-accent);
  content: "";
  opacity: 0.76;
}

.home-quick-feature-card:hover,
.home-quick-feature-card.is-active {
  border-color: color-mix(in srgb, var(--quick-accent) 70%, white 30%);
  background: rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
}

.home-quick-feature-card.is-active::before { opacity: 1; }

.home-quick-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--quick-accent);
  font-size: 14px;
}

.home-quick-feature-icon-video { --quick-accent: #a9c6ff; }
.home-quick-feature-icon-clone { --quick-accent: #c8b4ff; }
.home-quick-feature-icon-image { --quick-accent: #ffc078; }
.home-quick-feature-icon-product { --quick-accent: #70dfc1; }

.home-quick-feature-card:has(.home-quick-feature-icon-video) { --quick-accent: #a9c6ff; }
.home-quick-feature-card:has(.home-quick-feature-icon-clone) { --quick-accent: #c8b4ff; }
.home-quick-feature-card:has(.home-quick-feature-icon-image) { --quick-accent: #ffc078; }
.home-quick-feature-card:has(.home-quick-feature-icon-product) { --quick-accent: #70dfc1; }

.home-quick-feature-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  flex: 1 1 auto;
}

.home-quick-feature-copy strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-feature-copy small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-quick-feature-cost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 25px;
  max-width: 68px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb, var(--quick-accent) 38%, transparent);
  border-radius: 999px;
  color: var(--quick-accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.home-quick-feature-card:focus-visible {
  outline: 2px solid var(--quick-accent);
  outline-offset: 3px;
}

@media (max-width: 1024px) {
  .home-quick-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .home-quick-features { gap: 8px; margin-top: 12px; padding: 0; }
  .home-quick-feature-card { min-height: 66px; padding: 10px; border-radius: 14px; }
  .home-quick-feature-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .home-quick-feature-copy strong { font-size: 12px; }
  .home-quick-feature-copy small { font-size: 10px; }
  .home-quick-feature-cost { max-width: 58px; min-height: 23px; padding: 0 6px; font-size: 9px; }
}

@media (max-width: 480px) {
  .home-quick-features { grid-template-columns: 1fr; }
}

/* Final compact overrides must stay after the legacy homepage layers above. */
.home-video-chatbot { padding: 0 12px 12px !important; }
.home-video-input-row,
.home-video-input-row textarea { min-height: 136px !important; }
.home-video-input-row textarea { padding: 16px 9px 10px !important; }
.home-video-controls { min-height: 48px; gap: 10px; padding: 6px 7px 6px 8px; }
.home-upload-widget,
.home-person-button { width: 32px; height: 32px; min-height: 32px; border-radius: 9px; }
.home-upload-widget svg { width: 13px; height: 13px; }
.home-person-button svg { width: 15px; height: 15px; }
.home-person-clear { top: -4px; right: -4px; width: 14px; height: 14px; font-size: 10px; line-height: 14px; }
.home-model-trigger,
.home-setting-tag,
.home-prompt-polish { height: 34px; min-height: 34px; padding-inline: 11px; font-size: 12px; }
.home-preview-strip { gap: 6px; padding: 0 12px 8px; }
.home-preview-item { width: 44px; height: 44px; border-radius: 6px; }
.home-preview-item img { border-radius: 6px; }
.home-preview-item button {
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-width: 1.5px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .22);
}
.home-video-controls-left .home-clone-assets { gap: 5px; }
.home-video-controls-left .home-clone-asset-card {
  flex-basis: 52px;
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 10px;
}
.home-video-controls-left .home-clone-asset-card > i { width: 27px; height: 27px; flex-basis: 27px; border-radius: 8px; }
.home-video-controls-left .home-clone-asset-card > i svg { width: 15px; height: 15px; }
.home-video-controls-left .home-clone-asset-card.has-file::after { top: -4px; right: -4px; width: 15px; height: 15px; font-size: 9px; }
.home-quick-feature-card { height: 56px; min-height: 56px; padding-inline: 12px; border-radius: 11px; }
.home-quick-feature-copy strong { font-size: 14px; }
.home-person-delete { top: 3px; right: 3px; width: 18px; height: 18px; font-size: 11px; }

@media (max-width: 768px) {
  .home-video-input-row,
  .home-video-input-row textarea { min-height: 116px !important; }
  .home-video-input-row textarea { padding: 14px 7px 8px !important; }
  .home-video-controls { min-height: 46px; padding: 5px 6px 5px 7px; }
  .home-mobile-polish { display: none !important; }
  .home-generate-btn { width: 38px; height: 38px; border-radius: 11px; }
  .home-video-controls-left .home-clone-asset-card {
    flex-basis: 50px;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
  }
  .home-video-controls-left .home-clone-asset-card > i { width: 25px; height: 25px; flex-basis: 25px; }
  .home-quick-feature-card { height: 50px; min-height: 50px; padding-inline: 10px; border-radius: 10px; }
  .home-quick-feature-copy strong { font-size: 12px; }
}

/* Final polish: keep the homepage composer quiet, compact, and easy to scan. */
.home-video-chatbot {
  max-width: 980px;
  padding: 7px 10px 9px !important;
  border-radius: 18px !important;
  border-color: #e4e8ee !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07) !important;
}

.home-video-input-row,
.home-video-input-row textarea {
  min-height: 104px !important;
}

.home-video-input-row textarea {
  padding: 13px 9px 7px !important;
  font-size: 12px;
  line-height: 1.5;
}

.home-preview-strip {
  gap: 4px;
  padding: 0 8px 5px;
}

.home-preview-item {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.home-preview-item img { border-radius: 6px; }

.home-preview-item button {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  bottom: auto !important;
  left: auto !important;
  display: grid;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #596579;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  place-items: center;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .2);
}

.home-preview-item button:hover,
.home-preview-item button:focus-visible {
  background: #ef4444;
  transform: scale(1.06);
}

.home-video-controls {
  min-height: 38px;
  gap: 8px;
  padding: 4px 1px 0;
}

.home-video-controls-left { gap: 6px; }

.home-upload-widget,
.home-person-button {
  width: 28px;
  height: 28px;
  min-height: 28px;
  border-radius: 8px;
}

.home-upload-widget svg { width: 11px; height: 11px; }
.home-person-button svg { width: 13px; height: 13px; }

.home-model-trigger,
.home-setting-tag,
.home-prompt-polish,
.home-mobile-config-button {
  height: 30px;
  min-height: 30px;
  padding-inline: 9px;
  font-size: 11px;
}

.home-video-controls-left .home-clone-assets { gap: 5px; }

/* Upload actions are icon-only; details remain available through the tooltip. */
.home-video-controls-left .home-clone-asset-card {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: none;
  place-items: center;
}

.home-video-controls-left .home-clone-asset-card:hover,
.home-video-controls-left .home-clone-asset-card:focus-visible {
  border-color: #a9b7e9;
  background: #f2f5ff;
}

.home-video-controls-left .home-clone-asset-card span { display: none; }
.home-video-controls-left .home-clone-asset-card > i {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-radius: 7px;
  font-size: 11px;
}
.home-video-controls-left .home-clone-asset-card > i svg { width: 12px; height: 12px; }
.home-video-controls-left .home-clone-asset-card.has-file {
  border-color: #8fa5ef;
  background: #eef2ff;
}
.home-video-controls-left .home-clone-asset-card.has-file::after {
  top: -5px;
  right: -5px;
  width: 14px;
  height: 14px;
  border-width: 1.5px;
  font-size: 8px;
}

.home-video-controls-right { gap: 8px; }
.home-credits-text { font-size: 11px; }
.home-generate-btn {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.home-generate-btn svg { width: 16px; height: 16px; }

.home-quick-features {
  gap: 7px;
  max-width: 980px;
  margin-top: 11px;
}

.home-quick-feature-card,
.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  min-width: 100px;
  height: 36px;
  min-height: 36px;
  padding: 0 11px;
  gap: 6px;
  border-radius: 999px;
}

.home-quick-feature-icon {
  flex-basis: 15px;
  width: 15px;
  height: 15px;
}
.home-quick-feature-icon svg { width: 14px; height: 14px; }
.home-quick-feature-copy strong { font-size: 12px; }

@media (max-width: 768px) {
  .home-video-chatbot {
    padding: 6px 8px 8px !important;
    border-radius: 15px !important;
  }

  .home-video-input-row,
  .home-video-input-row textarea { min-height: 94px !important; }
  .home-video-input-row textarea { padding: 11px 7px 6px !important; }
  .home-preview-strip { padding: 0 6px 4px; }
  .home-preview-item { width: 34px; height: 34px; }
  .home-preview-item button { top: -4px !important; right: -4px !important; }
  .home-video-controls { min-height: 36px; padding-top: 3px; }
  .home-generate-btn { width: 32px; height: 32px; }
  .home-video-controls-left .home-clone-asset-card {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }
  .home-video-controls-left .home-clone-asset-card > i { width: 21px; height: 21px; flex-basis: 21px; }
  .home-quick-features { gap: 6px; margin-top: 9px; }
  .home-quick-feature-card,
  .home-quick-feature-card.is-active,
  .home-quick-feature-card.is-active:hover {
    flex-basis: calc(50% - 3px);
    height: 34px;
    min-height: 34px;
    padding-inline: 8px;
  }
  .home-quick-feature-copy strong { font-size: 11px; }
}

/* Refined composer and compact icon actions. */
.home-video-chatbot {
  max-width: 1040px;
  padding: 8px 10px 10px !important;
  border: 1px solid #e2e6ec !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08) !important;
}
.home-video-chatbot::before { display: none !important; }
.home-video-input-row,
.home-video-input-row textarea { min-height: 136px !important; }
.home-video-input-row textarea { padding: 16px 11px 10px !important; font-size: 13px; line-height: 1.6; }
.home-preview-strip { gap: 6px; padding: 0 10px 8px; }
.home-video-controls {
  min-height: 46px;
  padding: 7px 2px 0;
  border-top: 1px solid #f0f2f5;
  border-radius: 0;
  background: transparent;
}
.home-video-controls-left { gap: 8px; }
.home-upload-widget,
.home-person-button { width: 32px; height: 32px; min-height: 32px; border-radius: 9px; }
.home-upload-widget svg { width: 13px; height: 13px; }
.home-person-button svg { width: 15px; height: 15px; }
.home-model-trigger,
.home-setting-tag,
.home-prompt-polish { height: 34px; min-height: 34px; padding-inline: 11px; font-size: 12px; }
.home-video-controls-left .home-clone-assets { gap: 6px; }
.home-video-controls-left .home-clone-asset-card { flex-basis: 48px; width: 48px; min-width: 48px; height: 48px; min-height: 48px; border-radius: 10px; }
.home-video-controls-left .home-clone-asset-card > i { width: 25px; height: 25px; flex-basis: 25px; }
.home-video-controls-left .home-clone-asset-card > i svg { width: 14px; height: 14px; }
.home-video-controls-right { gap: 10px; }
.home-generate-btn { width: 36px; height: 36px; border-radius: 10px; box-shadow: none; }

.home-quick-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1040px;
  margin: 18px auto 0;
  padding: 0;
}
.home-quick-feature-card,
.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 116px;
  height: 44px;
  min-height: 44px;
  padding: 0 15px;
  overflow: hidden;
  border: 1px solid #dfe3e9 !important;
  border-radius: 999px;
  background: #fff !important;
  color: #3f4754;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}
.home-quick-feature-card::before,
.home-quick-feature-card::after { display: none !important; }
.home-quick-feature-card:hover {
  border-color: #b9c2d0 !important;
  background: #fafbfc !important;
  color: #202938;
}
.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  border-color: #8fa5ef !important;
  background: #eef2ff !important;
  color: #3549a5;
}
.home-quick-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: currentColor;
  font-size: 0;
}
.home-quick-feature-icon svg { display: block; width: 17px; height: 17px; }
.home-quick-feature-copy { display: block; min-width: 0; }
.home-quick-feature-copy strong { color: inherit !important; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }

@media (max-width: 768px) {
  .home-video-input-row,
  .home-video-input-row textarea { min-height: 116px !important; }
  .home-video-input-row textarea { padding: 14px 8px 8px !important; }
  .home-video-controls { min-height: 44px; padding-top: 6px; }
  .home-generate-btn { width: 36px; height: 36px; }
  .home-quick-features { gap: 8px; margin-top: 12px; }
  .home-quick-feature-card,
  .home-quick-feature-card.is-active,
  .home-quick-feature-card.is-active:hover { flex: 1 1 calc(50% - 4px); min-width: 0; height: 40px; min-height: 40px; padding: 0 10px; }
  .home-quick-feature-icon { flex-basis: 16px; width: 16px; height: 16px; }
  .home-quick-feature-icon svg { width: 15px; height: 15px; }
  .home-quick-feature-copy strong { font-size: 12px; }
}

.home-quick-features .home-quick-feature-card.is-active,
.home-quick-features .home-quick-feature-card.is-active:hover {
  color: #3549a5 !important;
}

@media (max-width: 480px) {
  .home-quick-feature-card,
  .home-quick-feature-card.is-active,
  .home-quick-feature-card.is-active:hover { flex-basis: calc(50% - 4px); }
}

/* Final compact density pass for a lighter, more polished composer. */
.home-video-chatbot { padding: 0 12px 12px !important; }
.home-video-input-row,
.home-video-input-row textarea { min-height: 136px !important; }
.home-video-input-row textarea { padding: 16px 9px 10px !important; }
.home-video-controls { min-height: 48px; gap: 10px; padding: 6px 7px 6px 8px; }
.home-upload-widget,
.home-person-button { width: 32px; height: 32px; min-height: 32px; border-radius: 9px; }
.home-upload-widget svg { width: 13px; height: 13px; }
.home-person-button svg { width: 15px; height: 15px; }
.home-person-clear { top: -4px; right: -4px; width: 14px; height: 14px; font-size: 10px; line-height: 14px; }
.home-model-trigger,
.home-setting-tag,
.home-prompt-polish { height: 34px; min-height: 34px; padding-inline: 11px; font-size: 12px; }

.home-preview-strip { gap: 6px; padding: 0 12px 8px; }
.home-preview-item { width: 44px; height: 44px; border-radius: 6px; }
.home-preview-item img { border-radius: 6px; }
.home-preview-item button {
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-width: 1.5px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .22);
}

.home-video-controls-left .home-clone-assets { gap: 5px; }
.home-video-controls-left .home-clone-asset-card {
  flex-basis: 52px;
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 10px;
}
.home-video-controls-left .home-clone-asset-card > i { width: 27px; height: 27px; flex-basis: 27px; border-radius: 8px; }
.home-video-controls-left .home-clone-asset-card > i svg { width: 15px; height: 15px; }
.home-video-controls-left .home-clone-asset-card.has-file::after { top: -4px; right: -4px; width: 15px; height: 15px; font-size: 9px; }

.home-quick-feature-card { height: 56px; min-height: 56px; padding-inline: 12px; border-radius: 11px; }
.home-quick-feature-copy strong { font-size: 14px; }

.home-person-delete { top: 3px; right: 3px; width: 18px; height: 18px; font-size: 11px; }

@media (max-width: 768px) {
  .home-video-input-row,
  .home-video-input-row textarea { min-height: 116px !important; }
  .home-video-input-row textarea { padding: 14px 7px 8px !important; }
  .home-video-controls { min-height: 46px; padding: 5px 6px 5px 7px; }
  .home-mobile-polish { display: none !important; }
  .home-generate-btn { width: 38px; height: 38px; border-radius: 11px; }
  .home-video-controls-left .home-clone-asset-card {
    flex-basis: 50px;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
  }
  .home-video-controls-left .home-clone-asset-card > i { width: 25px; height: 25px; flex-basis: 25px; }
  .home-quick-feature-card { height: 50px; min-height: 50px; padding-inline: 10px; border-radius: 10px; }
  .home-quick-feature-copy strong { font-size: 12px; }
}

/* Keep homepage presentation styles in the stylesheet instead of inline HTML attributes. */
.nav-mega-card.mega-tone-ink { --mega-accent: #111827; }
.nav-mega-card.mega-tone-violet { --mega-accent: #7c3aed; }
.nav-mega-card.mega-tone-amber { --mega-accent: #f59e0b; }
.nav-mega-card.mega-tone-teal { --mega-accent: #0f766e; }
.nav-mega-card.mega-tone-blue { --mega-accent: #2563eb; }
.nav-mega-card.mega-tone-pink { --mega-accent: #ec4899; }
.nav-mega-card.mega-tone-red { --mega-accent: #ef4444; }

.header-user-role-badge {
  display: none;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.matrix-video-card { background-color: #111 !important; background-image: none !important; }
.matrix-badge-recommend { background: #0b0b0b !important; color: #fff !important; }
.matrix-title-dark { color: #111 !important; }
.matrix-badge-pro { background: #111 !important; color: #fff !important; }
.matrix-bottom-dark { color: #111 !important; }
.matrix-tag-soft { background: rgba(0, 0, 0, 0.1) !important; }
.matrix-arrow-dark { background: #111 !important; color: #fff !important; }
.matrix-desc-dark { color: #333 !important; }
.matrix-badge-new { background: #cc2727 !important; color: #fff !important; }

.footer-contact-qr {
  display: block;
  width: 100px;
  height: 100px;
  margin-top: 12px;
  object-fit: cover;
}

.footer-record-link {
  color: inherit;
  font-size: 13px;
  text-decoration: none;
}

/* Final homepage composer alignment. The prompt area stays continuous in every mode. */
.home-video-chatbot {
  padding: 0 14px 14px !important;
}

.home-video-input-row {
  min-height: 148px;
}

.home-video-input-row textarea {
  min-height: 148px !important;
  padding: 18px 10px 12px !important;
}

.home-video-chatbot .home-upload-widget[hidden] {
  display: none !important;
}

.home-clone-assets {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  margin: 0 !important;
}

.home-clone-asset-card {
  width: auto;
  min-width: 112px;
  height: 36px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.home-clone-asset-card > i {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  border-radius: 7px;
  background: #eef2ff;
  color: #687cf2;
  font-size: 11px;
}

.home-clone-asset-card span {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.home-clone-asset-card b { font-size: 11px; }
.home-clone-asset-card small { font-size: 10px; }

/* Minimal selection rail: one clear active state, no extra icons or decoration. */
.home-quick-features {
  gap: 8px;
}

.home-quick-feature-card {
  min-height: 60px;
  height: 60px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  transform: none;
}

.home-quick-feature-card::before { display: none; }

.home-quick-feature-card:hover {
  border-color: rgba(255, 255, 255, 0.40);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: none;
  transform: translateY(-1px);
}

.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  border-color: #ffffff;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transform: none;
}

.home-quick-feature-copy {
  display: block;
}

.home-quick-feature-copy strong {
  color: inherit !important;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
}

.home-quick-feature-cost {
  min-height: 0;
  max-width: none;
  padding: 0;
  border: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 11px;
  font-weight: 760;
}

.home-quick-feature-card.is-active .home-quick-feature-cost {
  color: #111827;
}

@media (max-width: 768px) {
  .home-video-chatbot { padding: 0 12px 12px !important; }
  .home-video-input-row,
  .home-video-input-row textarea { min-height: 132px !important; }
  .home-video-input-row textarea { padding: 16px 8px 10px !important; }
  .home-quick-feature-card { height: 54px; min-height: 54px; padding: 0 14px; border-radius: 11px; }
  .home-quick-feature-copy strong { font-size: 13px; }
  .home-quick-feature-cost { font-size: 10px; }
  .home-clone-assets { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .home-clone-assets::-webkit-scrollbar { display: none; }
  .home-clone-asset-card { min-width: 100px; }
}

/* Match video_clone_generate: clone uploads sit in the bottom control row. */
.home-video-chatbot[data-home-tool="video"],
.home-video-chatbot[data-home-tool="clone"] {
  border-radius: 22px !important;
}

.home-video-input-row {
  display: flex;
  flex-direction: column;
}

.home-video-controls-left .home-clone-assets {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  width: auto;
  margin: 0 !important;
}

.home-video-controls-left .home-clone-asset-card {
  display: flex;
  flex: 0 0 220px;
  width: 220px;
  min-width: 0;
  min-height: 56px;
  height: 56px;
  padding: 10px 12px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.home-video-controls-left .home-clone-asset-card > i {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 9px;
  background: #eef2ff;
  color: #687cf2;
  font-size: 13px;
}

.home-video-controls-left .home-clone-asset-card span {
  display: grid;
  align-content: center;
  gap: 3px;
  text-align: left;
}

.home-video-controls-left .home-clone-asset-card b { font-size: 12px; }
.home-video-controls-left .home-clone-asset-card small { font-size: 11px; }

/* Four quiet choices, with the active card identified by a moving light ring. */
.home-quick-feature-card {
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.045) !important;
}

.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  position: relative;
  border-color: rgba(174, 191, 255, 0.86) !important;
  background: rgba(255, 255, 255, 0.075) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(154, 178, 255, 0.2), 0 0 18px rgba(105, 124, 242, 0.2) !important;
  animation: home-card-border-glow 2.2s ease-in-out infinite;
}

.home-quick-feature-card.is-active::after {
  display: none;
}

.home-quick-feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.home-quick-feature-copy strong {
  color: inherit !important;
  font-size: 15px;
  font-weight: 780;
  text-align: center;
}

@keyframes home-card-border-glow {
  0%, 100% {
    border-color: rgba(154, 178, 255, 0.68);
    box-shadow: 0 0 0 1px rgba(154, 178, 255, 0.14), 0 0 12px rgba(105, 124, 242, 0.12);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 0 0 1px rgba(196, 208, 255, 0.36), 0 0 22px rgba(137, 160, 255, 0.3);
  }
}

@media (max-width: 768px) {
  .home-video-controls-left .home-clone-assets {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 100%;
  }

  .home-video-controls-left .home-clone-assets::-webkit-scrollbar { display: none; }
  .home-video-controls-left .home-clone-asset-card {
    flex: 0 0 118px;
    width: 118px;
    padding: 8px;
    gap: 6px;
  }

  .home-video-controls-left .home-clone-asset-card > i {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    border-radius: 7px;
    font-size: 11px;
  }

  .home-video-controls-left .home-clone-asset-card b { font-size: 10px; }
  .home-video-controls-left .home-clone-asset-card small { font-size: 9px; }
}

/* Keep tooltips readable even for long Chinese labels and compact controls. */
button[data-tooltip]::before {
  display: block;
  width: max-content;
  max-width: min(320px, calc(100vw - 28px));
  min-height: 0;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  box-sizing: border-box;
  color: #fff;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.home-preview-item button[data-tooltip]::before {
  left: 50%;
  bottom: calc(100% + 8px);
}

/* The open menu already explains the control; keep its tooltip from sitting on the menu edge. */
.home-model-selector.is-open > .home-model-trigger::before,
.home-settings-container.is-open > .home-setting-tag::before,
.home-language-selector.is-open > .home-model-trigger::before,
.home-specific-control:has(.home-specific-menu.is-open) > button::before {
  opacity: 0;
  transform: translate(-50%, 3px);
}

/* The upload row can wrap on narrow screens; keep the generate action on its bottom edge. */
@media (max-width: 768px) {
  .home-video-controls { align-items: flex-end !important; }
  .home-video-controls-right { align-self: flex-end; }
  .home-video-controls-right .home-generate-btn { margin-bottom: 0; }
}

/* Match the image tool's count popup: title, range control, and a numeric display. */
.home-specific-count-popup { padding: 3px 4px 4px; }
.home-specific-count-popup .home-specific-menu-title { margin: 0 0 10px; }
.home-specific-count-selector { display: flex; align-items: center; gap: 11px; padding: 7px 0; }
.home-specific-count-slider { flex: 1; min-width: 0; height: 4px; margin: 0; appearance: none; border-radius: 2px; outline: none; background: #e0e0e0; cursor: pointer; }
.home-specific-count-slider::-webkit-slider-thumb { width: 13px; height: 13px; appearance: none; border: 2px solid #d1d5db; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); cursor: pointer; }
.home-specific-count-slider::-moz-range-thumb { width: 9px; height: 9px; border: 2px solid #d1d5db; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); cursor: pointer; }
.home-specific-count-display { display: flex; align-items: center; justify-content: center; width: 38px; height: 26px; border: 1px solid #e0e0e0; border-radius: 6px; color: #333; font-size: 12px; font-weight: 500; }

@media (max-width: 768px) {
  .home-specific-count-selector { gap: 10px; }
}

/* Compact clone uploads: the action and its full explanation live in the tooltip. */
.home-video-controls-left .home-clone-asset-card {
  position: relative;
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  place-items: center;
  border-radius: 12px;
}

.home-video-controls-left .home-clone-asset-card span { display: none; }
.home-video-controls-left .home-clone-asset-card > i { width: 30px; height: 30px; flex-basis: 30px; border-radius: 9px; font-size: 14px; }
.home-video-controls-left .home-clone-asset-card > i svg { display: block; width: 17px; height: 17px; }
.home-video-controls-left .home-clone-asset-card.has-file { border-color: #7182f4; background: #f3f5ff; }
.home-video-controls-left .home-clone-asset-card.has-file::after {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 17px;
  height: 17px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #687cf2;
  color: #fff;
  content: "✓";
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  place-items: center;
}

/* Five actions fit the first viewport; the active card gets a moving light around all four edges. */
.home-quick-features { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-quick-feature-card { text-decoration: none; }
.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  border-color: #91a9ff !important;
  animation: none;
  background: rgba(104, 124, 242, .22) !important;
  box-shadow: none !important;
}

.home-quick-feature-card.is-active::before {
  display: none !important;
}

@media (max-width: 1024px) {
  .home-quick-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .home-video-controls-left .home-clone-asset-card {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
  }
  .home-video-controls-left .home-clone-asset-card > i { width: 28px; height: 28px; flex-basis: 28px; }
  .home-quick-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .home-quick-features { grid-template-columns: 1fr; }
}

/* Last-pass compact sizing. */
.home-video-chatbot { padding: 0 12px 12px !important; }
.home-video-input-row,
.home-video-input-row textarea { min-height: 136px !important; }
.home-video-input-row textarea { padding: 16px 9px 10px !important; }
.home-video-controls { min-height: 48px; gap: 10px; padding: 6px 7px 6px 8px; }
.home-upload-widget,
.home-person-button { width: 32px; height: 32px; min-height: 32px; border-radius: 9px; }
.home-upload-widget svg { width: 13px; height: 13px; }
.home-person-button svg { width: 15px; height: 15px; }
.home-person-clear { top: -4px; right: -4px; width: 14px; height: 14px; font-size: 10px; line-height: 14px; }
.home-model-trigger,
.home-setting-tag,
.home-prompt-polish { height: 34px; min-height: 34px; padding-inline: 11px; font-size: 12px; }
.home-preview-strip { gap: 6px; padding: 0 12px 8px; }
.home-preview-item { width: 44px; height: 44px; border-radius: 6px; }
.home-preview-item img { border-radius: 6px; }
.home-preview-item button { top: -5px; right: -5px; width: 18px; height: 18px; border-width: 1.5px; font-size: 12px; box-shadow: 0 2px 6px rgba(15, 23, 42, .22); }
.home-video-controls-left .home-clone-asset-card { flex-basis: 52px; width: 52px; min-width: 52px; height: 52px; min-height: 52px; border-radius: 10px; }
.home-video-controls-left .home-clone-asset-card > i { width: 27px; height: 27px; flex-basis: 27px; border-radius: 8px; }
.home-video-controls-left .home-clone-asset-card > i svg { width: 15px; height: 15px; }
.home-video-controls-left .home-clone-asset-card.has-file::after { top: -4px; right: -4px; width: 15px; height: 15px; font-size: 9px; }
.home-quick-feature-card { height: 56px; min-height: 56px; padding-inline: 12px; border-radius: 11px; }
.home-quick-feature-copy strong { font-size: 14px; }
.home-person-delete { top: 3px; right: 3px; width: 18px; height: 18px; font-size: 11px; }

@media (max-width: 768px) {
  .home-video-input-row,
  .home-video-input-row textarea { min-height: 116px !important; }
  .home-video-input-row textarea { padding: 14px 7px 8px !important; }
  .home-video-controls { min-height: 46px; padding: 5px 6px 5px 7px; }
  .home-mobile-polish { display: none !important; }
  .home-generate-btn { width: 38px; height: 38px; border-radius: 11px; }
  .home-video-controls-left .home-clone-asset-card { flex-basis: 50px; width: 50px; min-width: 50px; height: 50px; min-height: 50px; }
  .home-video-controls-left .home-clone-asset-card > i { width: 25px; height: 25px; flex-basis: 25px; }
  .home-quick-feature-card { height: 50px; min-height: 50px; padding-inline: 10px; border-radius: 10px; }
  .home-quick-feature-copy strong { font-size: 12px; }
}

/* Final homepage composer and action-chip treatment. */
.home-video-chatbot {
  max-width: 1040px;
  padding: 10px 12px 12px !important;
  border: 1px solid #e2e6ec !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08) !important;
}
.home-video-chatbot::before { display: none !important; }
.home-video-input-row,
.home-video-input-row textarea { min-height: 120px !important; }
.home-video-input-row textarea { padding: 14px 10px 8px !important; font-size: 13px; line-height: 1.55; }
.home-preview-strip { gap: 5px; padding: 0 9px 6px; }
.home-preview-item { position: relative !important; width: 40px; height: 40px; border-radius: 6px; overflow: visible !important; }
.home-preview-item img { border-radius: 6px; }
.home-preview-item button { position: absolute !important; top: -4px !important; right: -4px !important; bottom: auto !important; left: auto !important; width: 16px; height: 16px; border-width: 1.5px; font-size: 10px; box-shadow: 0 1px 4px rgba(15, 23, 42, .2); }
.home-video-controls { min-height: 42px; padding: 5px 0 0; border-top: 0; border-radius: 0; background: transparent; }
.home-video-controls-left { gap: 8px; }
.home-upload-widget,
.home-person-button { width: 30px; height: 30px; min-height: 30px; border-radius: 8px; }
.home-upload-widget svg { width: 12px; height: 12px; }
.home-person-button svg { width: 14px; height: 14px; }
.home-model-trigger,
.home-setting-tag,
.home-prompt-polish { height: 32px; min-height: 32px; padding-inline: 10px; font-size: 12px; }
.home-video-controls-left .home-clone-assets { gap: 6px; }
.home-video-controls-left .home-clone-asset-card { flex-basis: 44px; width: 44px; min-width: 44px; height: 44px; min-height: 44px; border-radius: 9px; }
.home-video-controls-left .home-clone-asset-card > i { width: 23px; height: 23px; flex-basis: 23px; }
.home-video-controls-left .home-clone-asset-card > i svg { width: 13px; height: 13px; }
.home-video-controls-right { gap: 10px; }
.home-generate-btn { width: 34px; height: 34px; border-radius: 9px; box-shadow: none; }

.home-quick-features { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: 1040px; margin: 14px auto 0; padding: 0; }
.home-quick-feature-card,
.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  min-width: 108px;
  height: 40px;
  min-height: 40px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid #dfe3e9 !important;
  border-radius: 999px;
  background: #fff !important;
  color: #3f4754;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}
.home-quick-feature-card::before,
.home-quick-feature-card::after { display: none !important; }
.home-quick-feature-card:hover { border-color: #b9c2d0 !important; background: #fafbfc !important; color: #202938; }
.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover { border-color: #8fa5ef !important; background: #eef2ff !important; color: #3549a5 !important; }
.home-quick-feature-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 16px; width: 16px; height: 16px; border: 0; border-radius: 0; background: transparent; color: currentColor; font-size: 0; }
.home-quick-feature-icon svg { display: block; width: 15px; height: 15px; }
.home-quick-feature-copy { display: block; min-width: 0; }
.home-quick-feature-copy strong { color: inherit !important; font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap; }

@media (max-width: 768px) {
  .home-video-input-row,
  .home-video-input-row textarea { min-height: 104px !important; }
  .home-video-input-row textarea { padding: 12px 7px 7px !important; }
  .home-video-controls { min-height: 40px; padding-top: 4px; }
  .home-generate-btn { width: 34px; height: 34px; }
  .home-mobile-polish { display: none !important; }
  .home-quick-features { gap: 6px; margin-top: 10px; }
  .home-video-controls-left .home-clone-asset-card { flex-basis: 42px; width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
  .home-video-controls-left .home-clone-asset-card > i { width: 22px; height: 22px; flex-basis: 22px; }
  .home-quick-feature-card,
  .home-quick-feature-card.is-active,
  .home-quick-feature-card.is-active:hover { flex: 1 1 calc(50% - 3px); min-width: 0; height: 36px; min-height: 36px; padding: 0 8px; }
  .home-quick-feature-icon { flex-basis: 15px; width: 15px; height: 15px; }
  .home-quick-feature-icon svg { width: 14px; height: 14px; }
  .home-quick-feature-copy strong { font-size: 11px; }
}

/* Homepage density pass: small controls, clean uploads, and one calm active state. */
.home-video-chatbot {
  max-width: 980px;
  padding: 7px 10px 9px !important;
  border-radius: 18px !important;
  border-color: #e4e8ee !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07) !important;
}

.home-video-input-row,
.home-video-input-row textarea { min-height: 104px !important; }
.home-video-input-row textarea {
  padding: 13px 9px 7px !important;
  font-size: 12px;
  line-height: 1.5;
}

.home-preview-strip { gap: 4px; padding: 0 8px 5px; }
.home-preview-item { width: 36px; height: 36px; border-radius: 6px; }
.home-preview-item img { border-radius: 6px; }
.home-preview-item button {
  position: absolute !important;
  top: -5px !important;
  right: -5px !important;
  bottom: auto !important;
  left: auto !important;
  display: grid;
  width: 15px;
  height: 15px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: #596579;
  color: #fff;
  font-size: 10px;
  line-height: 1;
  place-items: center;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .2);
}
.home-preview-item button:hover,
.home-preview-item button:focus-visible { background: #ef4444; transform: scale(1.06); }

.home-video-controls { min-height: 38px; gap: 8px; padding: 4px 1px 0; }
.home-video-controls-left { gap: 6px; }
.home-upload-widget,
.home-person-button { width: 28px; height: 28px; min-height: 28px; border-radius: 8px; }
.home-upload-widget svg { width: 11px; height: 11px; }
.home-person-button svg { width: 13px; height: 13px; }
.home-model-trigger,
.home-setting-tag,
.home-prompt-polish { height: 30px; min-height: 30px; padding-inline: 9px; font-size: 11px; }

/* The tooltip carries the copy; the upload action stays a compact icon button. */
.home-video-controls-left .home-clone-assets { gap: 5px; }
.home-video-controls-left .home-clone-asset-card {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: none;
  place-items: center;
}
.home-video-controls-left .home-clone-asset-card:hover,
.home-video-controls-left .home-clone-asset-card:focus-visible { border-color: #a9b7e9; background: #f2f5ff; }
.home-video-controls-left .home-clone-asset-card span { display: none; }
.home-video-controls-left .home-clone-asset-card > i { width: 22px; height: 22px; flex-basis: 22px; border-radius: 7px; font-size: 11px; }
.home-video-controls-left .home-clone-asset-card > i svg { width: 12px; height: 12px; }
.home-video-controls-left .home-clone-asset-card.has-file { border-color: #8fa5ef; background: #eef2ff; }
.home-video-controls-left .home-clone-asset-card.has-file::after { top: -5px; right: -5px; width: 14px; height: 14px; border-width: 1.5px; font-size: 8px; }

.home-video-controls-right { gap: 8px; }
.home-credits-text { font-size: 11px; }
.home-generate-btn { width: 32px; height: 32px; border-radius: 9px; }
.home-generate-btn svg { width: 16px; height: 16px; }

.home-quick-features { gap: 7px; max-width: 980px; margin-top: 11px; }
.home-quick-feature-card,
.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  min-width: 100px;
  height: 36px;
  min-height: 36px;
  padding: 0 11px;
  gap: 6px;
  border-radius: 999px;
}
.home-quick-feature-icon { flex-basis: 15px; width: 15px; height: 15px; }
.home-quick-feature-icon svg { width: 14px; height: 14px; }
.home-quick-feature-copy strong { font-size: 12px; }

@media (max-width: 768px) {
  .home-video-chatbot { padding: 6px 8px 8px !important; border-radius: 15px !important; }
  .home-video-input-row,
  .home-video-input-row textarea { min-height: 94px !important; }
  .home-video-input-row textarea { padding: 11px 7px 6px !important; }
  .home-preview-strip { padding: 0 6px 4px; }
  .home-preview-item { width: 34px; height: 34px; }
  .home-preview-item button { top: -4px !important; right: -4px !important; }
  .home-video-controls { min-height: 36px; padding-top: 3px; }
  .home-generate-btn { width: 32px; height: 32px; }
  .home-video-controls-left .home-clone-asset-card { flex: 0 0 36px; width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
  .home-video-controls-left .home-clone-asset-card > i { width: 21px; height: 21px; flex-basis: 21px; }
  .home-quick-features { gap: 6px; margin-top: 9px; }
  .home-quick-feature-card,
  .home-quick-feature-card.is-active,
  .home-quick-feature-card.is-active:hover {
    flex-basis: calc(50% - 3px);
    height: 34px;
    min-height: 34px;
    padding-inline: 8px;
  }
  .home-quick-feature-copy strong { font-size: 11px; }
}

/* Align each quick action to one visual baseline and keep the active color quiet. */
.home-quick-feature-card,
.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  align-items: center;
}

.home-quick-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  line-height: 0;
}

.home-quick-feature-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

.home-quick-feature-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 15px;
  line-height: 15px;
}

.home-quick-feature-copy strong {
  display: block;
  color: inherit !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 15px;
  white-space: nowrap;
}

.home-quick-feature-card.is-active,
.home-quick-feature-card.is-active:hover {
  border-color: #9bbcf1 !important;
  background: #edf5ff !important;
  color: #285a9f !important;
}

.home-quick-features .home-quick-feature-card.is-active,
.home-quick-features .home-quick-feature-card.is-active:hover {
  color: #285a9f !important;
}

@media (max-width: 768px) {
  .home-quick-features { display: none !important; }
}

/* Match the video generation page's virtual-model asset panel. */
.home-person-panel {
  position: fixed;
  z-index: 13060;
  inset: auto;
  display: none;
  padding: 0;
  background: transparent;
  pointer-events: none;
}

.home-person-panel.is-open { display: block; }

.home-person-dialog {
  width: 100%;
  height: min(404px, calc(100vh - 120px));
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid rgba(17, 17, 17, .1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .2), 0 0 0 1px rgba(17, 17, 17, .06);
  pointer-events: auto;
}

.home-person-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 58px;
  height: 58px;
  margin: 0;
  padding: 0 20px;
  border-bottom: 1px solid #ededed;
  background: #fff;
  color: #111;
}

.home-person-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 800;
}

.home-person-head > .home-person-title { display: flex; }
.home-person-head > .home-person-title > span { color: #111; font-size: 15px; font-weight: 800; }

.home-person-title svg { width: 20px; height: 20px; }

.home-person-head button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #525252;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.home-person-head button:hover,
.home-person-head button:focus-visible {
  border-color: #e5e5e5;
  background: #f6f6f6;
  color: #000;
}

.home-person-head button svg { width: 18px; height: 18px; }

.home-person-body {
  display: grid;
  grid-template-columns: minmax(220px, 26%) 1fr;
  flex: 1;
  min-height: 0;
  background: #fff;
}

.home-person-upload-panel {
  display: flex;
  padding: 18px;
  border-right: 1px solid #ededed;
  background: #fbfbfb;
}

.home-person-upload-card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1.5px dashed #d6d6d6;
  border-radius: 16px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font: inherit;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.home-person-upload-card:hover,
.home-person-upload-card:focus-visible {
  border-color: #111;
  background: #fafafa;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .08);
}

.home-person-upload-card.loading { pointer-events: none; opacity: .72; }
.home-person-upload-icon {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 42px;
  border-radius: 14px;
  background: #111;
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
}
.home-person-upload-icon svg { width: 23px; height: 23px; }
.home-person-upload-title { position: relative; z-index: 1; font-size: 16px; font-weight: 850; line-height: 1.2; }
.home-person-upload-sub { position: relative; z-index: 1; color: #737373; font-size: 12px; }

.home-person-list-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  align-content: start;
  flex: 1;
  min-height: 0;
  gap: 12px;
  overflow: auto;
  margin: 0;
  padding: 18px;
}

.home-person-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #f7f7f7;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.home-person-item:hover,
.home-person-item.is-selected { border-color: #111; box-shadow: 0 10px 24px rgba(0, 0, 0, .1); }
.home-person-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.home-person-delete { top: 8px; right: 8px; width: 26px; height: 26px; opacity: 0; transition: opacity .18s ease, background .18s ease; }
.home-person-item:hover .home-person-delete { opacity: 1; }
.home-person-delete:hover { background: #111; }

.home-person-status {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8a8a8a;
  font-size: 16px;
  font-weight: 700;
  pointer-events: none;
}

.home-person-status svg { width: 52px; height: 52px; stroke: #c9c9c9; }

@media (max-width: 768px) {
  .home-person-panel {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: 12px !important;
    width: auto !important;
  }

  .home-person-dialog {
    height: min(78dvh, 560px) !important;
    max-height: calc(100dvh - 24px);
  }

  .home-person-body {
    grid-template-columns: 1fr;
    grid-template-rows: 160px 1fr;
  }

  .home-person-upload-panel {
    border-right: 0;
    border-bottom: 1px solid #ededed;
  }
}

/* Soft glass composer: transparent enough to reveal the hero, solid enough to read. */
.home-video-chatbot {
  background: rgba(255, 255, 255, .26) !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
}

.home-video-input-row textarea {
  background: rgba(255, 255, 255, .06) !important;
  border-color: rgba(255, 255, 255, .3) !important;
  color: #1f2937;
}

.home-video-input-row textarea::placeholder { color: #64748b; }

.home-video-controls {
  background: transparent !important;
  border-color: transparent !important;
}

.home-upload-widget,
.home-person-button,
.home-model-trigger,
.home-setting-tag,
.home-prompt-polish,
.home-mobile-config-button {
  border-color: rgba(255, 255, 255, .6) !important;
  background: rgba(255, 255, 255, .18) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .07), inset 0 1px 0 rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.home-upload-widget:hover,
.home-person-button:hover,
.home-model-trigger:hover,
.home-setting-tag:hover,
.home-prompt-polish:hover,
.home-mobile-config-button:hover,
.home-mobile-config-button:hover,
.home-model-selector.is-open > .home-model-trigger,
.home-settings-container.is-open > .home-setting-tag,
.home-language-selector.is-open > .home-model-trigger {
  border-color: rgba(255, 255, 255, .84) !important;
  background: rgba(255, 255, 255, .34) !important;
}

.home-person-button.is-selected {
  border-color: rgba(122, 162, 248, .72) !important;
  background: rgba(219, 234, 254, .56) !important;
  color: #285a9f;
}

.home-credits-text { color: #334155; }

.home-generate-btn {
  background: rgba(17, 24, 39, .9) !important;
  border-color: rgba(255, 255, 255, .55) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.home-generate-btn:hover { background: rgba(31, 41, 55, .96) !important; }

@media (max-width: 768px) {
  .home-video-chatbot {
    background: rgba(255, 255, 255, .34) !important;
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    backdrop-filter: blur(18px) saturate(125%);
  }
}

/* Dark glass variant for the black hero surface. */
.home-video-chatbot {
  background: rgba(255, 255, 255, .1) !important;
  border-color: rgba(255, 255, 255, .42) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .24) !important;
}

.home-video-input-row textarea {
  background: rgba(255, 255, 255, .035) !important;
  border-color: rgba(255, 255, 255, .18) !important;
  color: #f8fafc;
}

.home-video-input-row textarea::placeholder { color: rgba(226, 232, 240, .72); }

.home-upload-widget,
.home-person-button,
.home-model-trigger,
.home-setting-tag,
.home-prompt-polish {
  border-color: rgba(255, 255, 255, .34) !important;
  background: rgba(255, 255, 255, .1) !important;
  color: rgba(248, 250, 252, .92) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.home-upload-widget:hover,
.home-person-button:hover,
.home-model-trigger:hover,
.home-setting-tag:hover,
.home-prompt-polish:hover,
.home-model-selector.is-open > .home-model-trigger,
.home-settings-container.is-open > .home-setting-tag,
.home-language-selector.is-open > .home-model-trigger {
  border-color: rgba(255, 255, 255, .62) !important;
  background: rgba(255, 255, 255, .18) !important;
  color: #fff !important;
}

.home-person-button.is-selected {
  border-color: rgba(147, 197, 253, .78) !important;
  background: rgba(59, 130, 246, .24) !important;
  color: #dbeafe !important;
}

.home-credits-text { color: rgba(226, 232, 240, .82); }

@media (max-width: 768px) {
  .home-video-chatbot { background: rgba(255, 255, 255, .14) !important; }
}

/* Final dark composer surface: one consistent black tone inside and out. */
.home-video-chatbot {
  background: #1f1f1f !important;
  border: 1px solid #3a3a3a !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-video-input-row textarea {
  background: #1f1f1f !important;
  border-color: transparent !important;
  color: #f4f4f5;
}

.home-video-input-row textarea::placeholder { color: #858585; }
.home-video-controls { background: #1f1f1f !important; }

.home-upload-widget,
.home-person-button,
.home-model-trigger,
.home-setting-tag,
.home-prompt-polish {
  border-color: #3f3f3f !important;
  background: #1f1f1f !important;
  color: #d4d4d8 !important;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.home-upload-widget:hover,
.home-person-button:hover,
.home-model-trigger:hover,
.home-setting-tag:hover,
.home-prompt-polish:hover,
.home-model-selector.is-open > .home-model-trigger,
.home-settings-container.is-open > .home-setting-tag,
.home-language-selector.is-open > .home-model-trigger {
  border-color: #606060 !important;
  background: #292929 !important;
  color: #fff !important;
}

.home-person-button.is-selected {
  border-color: #6b8edb !important;
  background: #263552 !important;
  color: #dbeafe !important;
}

.home-credits-text { color: #a3a3a3; }

.home-generate-btn {
  width: 34px;
  height: 34px;
  border: 0 !important;
  border-radius: 50% !important;
  background: #e5e7eb !important;
  color: #111827 !important;
  box-shadow: none !important;
}

.home-generate-btn:hover {
  background: #fff !important;
  color: #111827 !important;
}

@media (max-width: 768px) {
  .home-video-chatbot { background: #1f1f1f !important; }
  .home-generate-btn { width: 34px; height: 34px; }
}

/* The mobile configuration control uses the same dark glass treatment. */
.home-mobile-config-button {
  border-color: #3f3f3f !important;
  background: #1f1f1f !important;
  color: #d4d4d8 !important;
  box-shadow: none;
}

.home-mobile-config-button:hover,
.home-mobile-config-button:focus-visible {
  border-color: #606060 !important;
  background: #292929 !important;
  color: #fff !important;
}

/* Keep the composer aligned with its input and controls. */
.home-video-chatbot { position: relative; }
.home-video-input-row textarea { padding-right: 10px !important; }

.home-generate-btn:hover,
.home-generate-btn:focus-visible {
  background: #e5e7eb !important;
  color: #111827 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

@media (max-width: 768px) { .home-video-input-row textarea { padding-right: 10px !important; } }

/* Quick-start examples: compact product thumbnails directly below the composer. */
.home-experience-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: min(1020px, 100%);
  margin: 17px auto 6px;
  overflow: hidden;
}

.home-experience-card {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 auto;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  max-width: 230px;
  padding: 5px 14px 5px 6px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(31, 31, 31, .82);
  color: #d9d9dd;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 5px 14px rgba(0, 0, 0, .1);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.home-experience-card.is-hidden { display: none !important; }

.home-experience-card img {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #2a2a2a;
}

.home-experience-card-title {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-experience-card:hover {
  border-color: rgba(255, 255, 255, .36);
  background: #292929;
  color: #fff;
}

.home-experience-card.is-selected,
.home-experience-card.is-selected:hover {
  border-color: #a7b7e8;
  background: #2d3340;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(167, 183, 232, .24), 0 5px 14px rgba(0, 0, 0, .14);
}

.home-experience-card.is-loading {
  cursor: wait;
  opacity: .62;
  transform: none;
}

.home-experience-card:focus-visible {
  outline: 2px solid #a7b7e8;
  outline-offset: 3px;
}

.home-experience-random {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  gap: 0;
  flex: 0 0 auto;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #bfc3ce;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.home-experience-random svg { width: 15px; height: 15px; }

.home-experience-random:hover {
  border-color: rgba(255, 255, 255, .36);
  background: #292929;
  color: #fff;
}

.home-experience-random.is-loading {
  cursor: wait;
  opacity: .62;
}

.home-experience-random:focus-visible {
  outline: 2px solid #a7b7e8;
  outline-offset: 3px;
}

/* Keep the member-only virtual model visibly unavailable for guests and free users. */
.home-person-button.is-locked,
.home-person-button.is-locked:hover,
.home-person-button.is-locked:focus-visible {
  border-color: #303030 !important;
  background: #252525 !important;
  color: #686868 !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: .72;
}

.home-person-button.is-locked svg { opacity: .65; }

@media (max-width: 600px) {
  .home-experience-cards {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    margin-bottom: 4px;
    padding: 0 2px 3px;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .home-experience-cards::-webkit-scrollbar { display: none; }

  .home-experience-card {
    flex: 0 0 auto;
    height: 40px;
    min-height: 40px;
    max-width: 210px;
    padding: 4px 12px 4px 5px;
  }

  .home-experience-random {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 11px;
  }

  .home-experience-card img {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .home-experience-card-title { font-size: 11px; }
}

/* Homepage mode switcher and the black-themed universal image mode. */
.home-composer-shell {
  position: relative;
  width: min(1020px, 100%);
  margin: 0 auto;
}

.home-mode-switcher {
  position: absolute;
  top: 28px;
  left: -48px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 5px;
  border: 1px solid #363636;
  border-radius: 22px;
  background: #171717;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .05);
}

.home-mode-switch {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #777;
  place-items: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.home-mode-switch svg { width: 18px; height: 18px; }

.home-mode-switch:hover { color: #d4d4d4; }

.home-mode-switch.is-active {
  background: #3a3d49;
  color: #f5f5f5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.home-mode-switch:focus-visible {
  outline: 2px solid #9aa9d8;
  outline-offset: 2px;
}

.home-image-model-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #3f3f3f;
  border-radius: 8px;
  background: #1f1f1f;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.home-image-model-mark {
  display: inline-grid;
  width: 16px;
  height: 16px;
  border: 1px solid #9a9a9a;
  border-radius: 50%;
  color: #d4d4d8;
  font-size: 10px;
  line-height: 1;
  place-items: center;
}

.home-image-model-control > i,
.home-image-param > i { color: #8d8d8d; font-size: 10px; }

.home-image-param {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid #3f3f3f;
  border-radius: 8px;
  background: #1f1f1f;
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.home-image-param select {
  max-width: 78px;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.home-image-param-divider { color: #686868; }
.home-image-language select { max-width: 72px; }

.home-image-model-control:hover,
.home-image-param:hover {
  border-color: #606060;
  background: #292929;
}

.home-video-only[hidden],
.home-clone-only[hidden],
.home-image-only[hidden],
.home-experience-cards[hidden] { display: none !important; }

.home-video-chatbot[data-home-mode="image"] .home-video-controls-left { gap: 9px; }

.home-video-chatbot[data-home-mode="image"] .home-video-controls {
  border-top-color: transparent;
}

.home-preview-item video {
  border-radius: 6px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .home-composer-shell { margin-top: 44px; }

  .home-mode-switcher {
    top: -43px;
    left: 24px;
    width: min(260px, calc(100vw - 82px));
    flex-direction: row;
    gap: 3px;
    padding: 4px;
    border-radius: 20px;
  }

  .home-mode-switch { width: auto; height: 34px; flex: 1 1 0; }
  .home-mode-switch svg { width: 16px; height: 16px; }
  .home-image-model-control { height: 34px; min-height: 34px; padding-inline: 10px; font-size: 11px; }
  .home-image-param { height: 34px; min-height: 34px; padding-inline: 9px; font-size: 11px; }
  .home-mode-switch[data-tooltip]::before { display: none; }
  .home-clone-panel { flex: 0 0 auto; gap: 6px; }
  .home-clone-card { flex: 0 0 34px; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 9px; }
  .home-clone-add svg { width: 15px; height: 15px; }
}

/* Interactive image-mode controls share the image tool's picker pattern. */
.home-image-picker { position: relative; display: inline-flex; flex: 0 0 auto; }
.home-image-control { cursor: pointer; }
.home-image-control > i { margin-left: 2px; color: #777; font-size: 9px; }
.home-image-menu {
  position: fixed;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 13080;
  display: none;
  width: 320px;
  max-height: min(520px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 10px;
  border: 1px solid #3b3b3b;
  border-radius: 14px;
  background: #242424;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.home-image-menu.is-open { display: block; animation: home-image-menu-in .16s ease-out; }
.home-image-picker:has(.home-image-menu.is-open) > .home-image-control::before,
.home-image-control.is-open::before { opacity: 0 !important; transform: translate(-50%, 3px) !important; }
@keyframes home-image-menu-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.home-image-menu-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 3px 4px 9px; color: #f1f1f1; font-size: 12px; font-weight: 760; }
.home-image-menu-title small { color: #8d8d8d; font-size: 10px; font-weight: 500; }
.home-image-menu-tabs { display: flex; gap: 4px; padding: 3px; margin-bottom: 8px; border-radius: 9px; background: #191919; }
.home-image-menu-tabs button { flex: 1; height: 30px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: #777; font: inherit; font-size: 11px; cursor: pointer; }
.home-image-menu-tabs button.is-active { background: #353a4b; color: #fff; }
.home-image-menu-tabs button:disabled { cursor: not-allowed; opacity: .42; }
.home-image-model-list { display: grid; gap: 6px; }
.home-image-model-option { display: flex; align-items: flex-start; gap: 8px; width: 100%; min-height: 58px; padding: 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #d8d8dc; font: inherit; text-align: left; cursor: pointer; }
.home-image-model-option:hover { border-color: #454b5b; background: #2b2e38; }
.home-image-model-option.is-selected { border-color: #6978b0; background: #303548; }
.home-image-model-option-icon { display: inline-grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border: 1px solid #555; border-radius: 8px; background: #303030; color: #eee; font-size: 14px; }
.home-image-model-option[data-image-model="6"] .home-image-model-option-icon { border-radius: 50%; background: #38333b; }
.home-image-model-option-copy { display: grid; min-width: 0; gap: 3px; }
.home-image-model-option-copy b { color: #f5f5f5; font-size: 12px; line-height: 1.25; }
.home-image-model-option-copy small { color: #8f9199; font-size: 10px; line-height: 1.4; white-space: normal; }
.home-image-model-option em { margin-left: auto; color: #8e95ad; font-size: 10px; font-style: normal; white-space: nowrap; }
.home-image-count-menu { width: 260px; }
.home-image-count-row { display: flex; align-items: center; gap: 11px; padding: 8px 2px 4px; }
.home-image-count-row input[type="range"] { flex: 1; min-width: 0; height: 4px; appearance: none; border-radius: 99px; outline: none; background: #4a4d55; cursor: pointer; }
.home-image-count-row input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; appearance: none; border: 2px solid #d9def0; border-radius: 50%; background: #687cf2; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.home-image-count-row input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border: 2px solid #d9def0; border-radius: 50%; background: #687cf2; }
.home-image-count-row output { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 27px; border: 1px solid #454545; border-radius: 7px; color: #f1f1f1; font-size: 12px; font-weight: 700; }
.home-image-resolution-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.home-image-resolution-grid button,
.home-image-clarity-row button { min-height: 34px; padding: 0 8px; border: 1px solid #3d3d3d; border-radius: 8px; background: #2c2c2c; color: #b9bbc3; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.home-image-resolution-grid button:hover,
.home-image-clarity-row button:hover { border-color: #687cf2; background: #34394b; color: #fff; }
.home-image-resolution-grid button.is-active,
.home-image-clarity-row button.is-active { border-color: transparent; background: #3b4568; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .18); }
.home-image-clarity-title { margin-top: 13px; }
.home-image-clarity-row { display: flex; }
.home-image-clarity-row button { min-width: 82px; }
.home-image-language-menu { width: 190px; max-height: 320px; }
.home-image-language-menu button { display: block; width: 100%; min-height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #c5c6cb; font: inherit; font-size: 11px; text-align: left; cursor: pointer; }
.home-image-language-menu button:hover,
.home-image-language-menu button.is-selected { border-color: #454b5b; background: #303548; color: #fff; }
.home-image-settings-menu { width: 520px; }
.home-image-settings-section + .home-image-settings-section { margin-top: 16px; }
.home-image-settings-section[hidden] { display: none; }
.home-image-ratio-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.home-image-ratio-grid button { display: grid; align-content: center; justify-items: center; gap: 6px; min-height: 66px; padding: 7px 4px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #b9bbc3; font: inherit; font-size: 11px; cursor: pointer; }
.home-image-ratio-grid button:hover,
.home-image-ratio-grid button.is-active { border-color: #687cf2; background: #303548; color: #fff; }
.home-image-ratio-shape { display: block; width: 24px; height: 24px; border: 2px solid currentColor; border-radius: 4px; }
.home-image-ratio-shape.ratio-3-4,
.home-image-ratio-shape.ratio-2-3 { width: 18px; height: 25px; }
.home-image-ratio-shape.ratio-4-5 { width: 19px; height: 24px; }
.home-image-ratio-shape.ratio-9-16 { width: 14px; height: 26px; }
.home-image-ratio-shape.ratio-4-3,
.home-image-ratio-shape.ratio-5-4 { width: 27px; height: 20px; }
.home-image-ratio-shape.ratio-3-2 { width: 29px; height: 19px; }
.home-image-ratio-shape.ratio-16-9 { width: 31px; height: 18px; }
.home-image-ratio-shape.ratio-21-9 { width: 34px; height: 14px; }
.home-image-dimensions { display: flex; align-items: center; gap: 10px; }
.home-image-dimensions input { width: 100%; height: 42px; min-width: 0; padding: 0 12px; border: 1px solid #474747; border-radius: 11px; outline: 0; background: #2c2c2c; color: #f1f1f1; font: inherit; font-size: 13px; text-align: center; }
.home-image-dimensions input:focus { border-color: #687cf2; box-shadow: 0 0 0 2px rgba(104, 124, 242, .18); }
.home-image-dimensions > i { flex: 0 0 auto; color: #8d8d8d; font-size: 12px; }

@media (max-width: 768px) {
  .home-mode-switcher { display: none !important; }
  .home-composer-shell { margin-top: 0; }
  .home-image-menu {
    position: fixed;
    right: 12px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    width: auto;
    max-width: none;
    max-height: min(72dvh, 560px);
    padding: 14px;
    border-radius: 18px;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .5);
  }
  .home-image-menu-tabs button { height: 36px; }
  .home-image-model-option { min-height: 60px; padding: 9px; }
  .home-image-model-option-copy small { white-space: normal; }
  .home-image-resolution-grid { gap: 8px; }
  .home-image-settings-menu { width: auto; }
  .home-image-ratio-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .home-image-ratio-grid button { min-height: 62px; }
  .home-image-resolution-grid button,
  .home-image-clarity-row button,
  .home-image-language-menu button { min-height: 40px; }
}

/* Video configuration uses the same dark picker language as image mode. */
.home-model-panel,
.home-language-panel,
.home-settings-panel {
  z-index: 13070;
  border-color: #3b3b3b;
  background: #242424;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.home-model-option,
.home-language-panel button {
  border-color: transparent;
  background: transparent;
  color: #d8d8dc;
}
.home-model-option:hover,
.home-model-option.is-selected,
.home-language-panel button:hover,
.home-language-panel button.is-selected {
  border-color: #454b5b;
  background: #303548;
  color: #fff;
}
.home-model-option small { color: #8f9199; }
.home-model-option b { color: #f5f5f5; }
.home-model-option em { background: #3a3028; color: #e8a66f; }
.home-setting-label,
.home-setting-group b { color: #d8d8dc; }
.home-resolution-selector button,
.home-ratio-grid button,
.home-setting-group button {
  border-color: #3d3d3d;
  background: #2c2c2c;
  color: #b9bbc3;
}
.home-resolution-selector button:hover,
.home-ratio-grid button:hover,
.home-setting-group button:hover { border-color: #687cf2; background: #34394b; color: #fff; }
.home-resolution-selector button.is-active,
.home-setting-group button.is-active { border-color: transparent; background: #3b4568; color: #fff; }
.home-ratio-grid button.is-active { border-color: #687cf2; background: #303548; color: #fff; }
.home-mobile-config-panel { background: rgba(0, 0, 0, .62); }
.home-mobile-config-sheet {
  border: 1px solid #3b3b3b;
  background: #242424;
  box-shadow: 0 -18px 48px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.home-mobile-config-head { color: #f1f1f1; }
.home-mobile-config-head button { background: #303030; color: #bfc1c8; }
.home-mobile-config-section > span,
.home-mobile-language > span { color: #d8d8dc; }
.home-mobile-choice-row button,
.home-mobile-language select {
  border-color: #3d3d3d;
  background: #2c2c2c;
  color: #b9bbc3;
}
.home-mobile-choice-row button:hover { border-color: #687cf2; background: #34394b; color: #fff; }
.home-mobile-choice-row button.is-active { border-color: transparent; background: #3b4568; color: #fff; }

/* Shared header entry into the video workbench. */
.workbench-entry { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; border: 1px solid #e5e7eb; border-radius: 999px; background: #fff; color: #111827; font-size: 13px; font-weight: 720; text-decoration: none; white-space: nowrap; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.workbench-entry i { font-size: 13px; }
.workbench-entry:hover { border-color: #111827; background: #111827; color: #fff; transform: translateY(-1px); }
@media (max-width: 768px) {
  .workbench-entry { width: auto; min-width: 62px; height: 34px; min-height: 34px; padding: 0 12px; border-radius: 999px; }
}

/* Header navigation polish: compact mega menu for all marketing top navs. */
.navbar {
  height: 66px !important;
  padding: 0 14px 0 16px !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.09) !important;
}

.nav-left { gap: 24px !important; }

.nav-links {
  gap: 4px !important;
  padding: 4px;
  border: 1px solid #eef2f7;
  border-radius: 999px;
  background: #f8fafc;
}

.nav-link {
  min-height: 34px !important;
  padding: 0 13px;
  color: #526173 !important;
  font-size: 13px !important;
  line-height: 1;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover .nav-dropdown-trigger {
  background: #111827;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.nav-mega {
  top: calc(100% + 12px) !important;
  left: 0 !important;
  width: min(640px, calc(100vw - 48px)) !important;
  max-height: calc(100vh - 150px);
  padding: 10px !important;
  overflow-y: auto;
  border: 1px solid rgba(226, 232, 240, .96) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .16) !important;
  transform: translate(0, -6px) !important;
}

.nav-dropdown:hover .nav-mega {
  transform: translate(0, 0) !important;
}

.nav-dropdown:not(:first-child) .nav-mega {
  left: 50% !important;
  transform: translate(-50%, -6px) !important;
}

.nav-dropdown:not(:first-child):hover .nav-mega {
  transform: translate(-50%, 0) !important;
}

.nav-mega-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.nav-mega-card {
  min-height: 66px !important;
  align-items: flex-start;
  gap: 11px !important;
  padding: 10px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;
  background: #fff !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.nav-mega-card:hover {
  border-color: color-mix(in srgb, var(--mega-accent, #111827) 26%, #e2e8f0);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .08) !important;
  transform: translateY(-1px) !important;
}

.nav-mega-icon {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--mega-accent, #111827) 12%, #fff) !important;
  color: var(--mega-accent, #111827) !important;
  font-size: 13px !important;
}

.nav-mega-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.nav-mega-title {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 820 !important;
}

.nav-mega-badge {
  display: inline-flex !important;
  max-width: 104px;
  height: 18px;
  align-items: center;
  padding: 0 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-mega-desc {
  display: -webkit-box !important;
  margin: 0 !important;
  overflow: hidden;
  color: #64748b;
  font-size: 12px !important;
  font-weight: 560;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nav-mega-tags { display: none !important; }

.model-mega {
  width: min(380px, calc(100vw - 48px)) !important;
}

.model-mega .nav-mega-grid {
  grid-template-columns: 1fr !important;
}

.model-mega .nav-mega-card {
  min-height: 70px !important;
}

.workbench-entry {
  min-height: 36px;
  border-color: #111827;
  background: #111827;
  color: #fff;
  font-weight: 760;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
}

.workbench-entry:hover {
  background: #000;
  box-shadow: 0 12px 26px rgba(15, 23, 42, .2);
}

@media (max-width: 980px) {
  .nav-links {
    padding: 0;
    border: 0;
    background: transparent;
  }
}

/* Homepage video/image switcher: compact text tabs at the top of the composer. */
.home-video-chatbot > .home-mode-switcher {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: 2;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  width: 100%;
  height: 36px;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 0 12px;
  gap: 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.home-video-chatbot > .home-mode-switcher::-webkit-scrollbar { display: none; }

.home-video-chatbot > .home-mode-switcher .home-mode-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  flex: 0 0 auto;
  height: 36px;
  min-width: 0;
  padding: 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #7f7f82;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.home-video-chatbot > .home-mode-switcher .home-mode-switch:hover {
  color: #d9d9dc;
}

.home-video-chatbot > .home-mode-switcher .home-mode-switch.is-active {
  color: #f7f7f8;
}

.home-video-chatbot > .home-mode-switcher + .home-video-input-row textarea {
  padding-top: 8px !important;
}

.home-video-chatbot > .home-mode-switcher .home-mode-switch.is-active::after {
  position: absolute;
  right: 7px;
  bottom: -1px;
  left: 7px;
  height: 2px;
  border-radius: 999px;
  background: #f3f4f6;
  content: "";
}

.home-video-chatbot > .home-mode-switcher .home-mode-switch:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: -6px;
}

@media (max-width: 768px) {
  .home-video-chatbot > .home-mode-switcher {
    display: flex !important;
    flex-direction: row !important;
    height: 34px;
    margin-bottom: 0;
    padding: 0 6px;
    gap: 2px;
  }

  .home-video-chatbot > .home-mode-switcher .home-mode-switch {
    height: 34px;
    padding: 0 3px;
    font-size: 11px;
  }

  .home-video-chatbot > .home-mode-switcher .home-mode-switch.is-active::after {
    right: 5px;
    left: 5px;
    height: 2px;
  }
}

/* Compact the first screen as one rhythm: less empty space above the title,
   tighter copy-to-composer spacing, and a shorter tab/input transition. */
.home-redesign-hero.hero {
  padding-top: calc(var(--banner-height) + 64px) !important;
}

.home-redesign-hero .hero-surface {
  padding-top: 34px !important;
  padding-bottom: 36px !important;
}

.home-redesign-hero .hero-copy {
  margin-bottom: 18px !important;
}

.home-redesign-hero .hero-title {
  margin-bottom: 8px !important;
}

.home-video-chatbot > .home-mode-switcher,
.home-video-chatbot > .home-mode-switcher .home-mode-switch {
  height: 32px;
}

.home-video-chatbot > .home-mode-switcher + .home-video-input-row textarea {
  min-height: 110px !important;
  padding-top: 7px !important;
  padding-bottom: 18px !important;
}

.home-video-controls {
  padding-top: 2px;
}

.home-experience-cards {
  margin-top: 12px;
  margin-bottom: 2px;
}

/* The capsule navigation is fixed above the hero. Reserve its full footprint
   so the black surface starts below it instead of sliding underneath. */
.home-redesign-hero.hero {
  padding-top: calc(var(--banner-height) + var(--header-height) + 20px) !important;
}

@media (max-width: 768px) {
  .home-redesign-hero.hero {
    padding-top: calc(var(--banner-height) + var(--header-height) + 16px) !important;
  }

  .home-redesign-hero .hero-surface {
    padding-top: 26px !important;
    padding-bottom: 24px !important;
  }

  .home-redesign-hero .hero-copy {
    margin-bottom: 14px !important;
  }

  .home-video-chatbot > .home-mode-switcher,
  .home-video-chatbot > .home-mode-switcher .home-mode-switch {
    height: 30px;
  }

  .home-video-chatbot > .home-mode-switcher + .home-video-input-row textarea {
    min-height: 96px !important;
    padding-top: 6px !important;
    padding-bottom: 14px !important;
  }

  .home-experience-cards {
    display: none !important;
  }
}

/* Use the same layered dark texture as the clone card, softened for the hero. */
.home-redesign-hero .hero-surface {
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.13) 0%, transparent 28%),
    linear-gradient(145deg, #292929 0%, #1d1d1d 48%, #141414 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(0, 0, 0, 0.42),
    0 20px 54px rgba(0, 0, 0, 0.14) !important;
}

.home-redesign-hero .hero-surface::before {
  display: block !important;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, transparent 28%, rgba(255, 255, 255, 0.04) 62%, transparent 100%),
    radial-gradient(rgba(255, 255, 255, 0.16) 0.6px, transparent 0.9px) !important;
  background-size: auto, 9px 9px !important;
  opacity: 0.24 !important;
  animation: none !important;
}

/* The homepage uses one configuration entry in both creation modes. */
.home-video-chatbot .home-image-picker,
.home-video-chatbot .home-model-selector.home-desktop-control,
.home-video-chatbot .home-settings-container.home-desktop-control,
.home-video-chatbot .home-language-selector.home-desktop-control {
  display: none !important;
}

.home-mobile-config-button:not([hidden]) {
  display: inline-flex !important;
}

.home-mobile-config-panel {
  position: fixed;
  inset: 0;
  z-index: 14000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .62);
}

.home-mobile-config-panel.is-open { display: flex !important; }

.home-mobile-config-sheet {
  width: min(560px, 100%);
  height: min(640px, calc(100dvh - 40px));
  max-height: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 20px;
  border: 1px solid #3b3b3b;
  border-radius: 18px;
  background: #242424;
  box-shadow: 0 24px 68px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.home-config-mode[hidden],
.home-image-config-panel[hidden],
.home-video-config-panel[hidden] { display: none !important; }
.home-config-mode {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 16px;
  overflow-y: auto;
  padding-right: 2px;
}

.home-config-mode[data-config-mode="image"] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-config-mode[data-config-mode="video"] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-image-config-panel:not([hidden]),
.home-video-config-panel:not([hidden]) {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 2px;
}

.home-mobile-config-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  width: 100%;
  margin-bottom: 16px;
}

.home-config-close {
  width: 32px !important;
  height: 32px !important;
  border: 1px solid #424242 !important;
  border-radius: 50% !important;
  background: #2f2f2f !important;
  color: #d4d4d8 !important;
  font-family: Arial, sans-serif;
  font-size: 23px !important;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.home-config-close:hover,
.home-config-close:focus-visible {
  border-color: #666 !important;
  background: #3a3a3a !important;
  color: #fff !important;
}

.home-image-config-tabs,
.home-video-config-tabs {
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: #303030;
}

.home-image-config-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-video-config-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.home-image-config-tabs button,
.home-video-config-tabs button {
  min-height: 42px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #a7a7ae;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.home-image-config-tabs button.is-active,
.home-video-config-tabs button.is-active {
  background: #f4f4f5;
  color: #18181b;
}

.home-image-config-options {
  display: grid;
  gap: 8px;
}

.home-image-config-option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-image-config-option {
  display: grid;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #3d3d3d;
  border-radius: 9px;
  background: #2c2c2c;
  color: #d8d8dc;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-image-config-option b { font-size: 13px; line-height: 1.25; }
.home-image-config-option small { margin-top: 4px; color: #8f9199; font-size: 11px; line-height: 1.3; }
.home-image-config-option:hover { border-color: #687cf2; background: #34394b; color: #fff; }
.home-image-config-option.is-selected { border-color: transparent; background: #3b4568; color: #fff; }
.home-image-config-option.is-selected small { color: rgba(255, 255, 255, .7); }
.home-image-config-subhead { margin: 10px 0 2px; color: #d8d8dc; font-size: 13px; font-weight: 750; }

.home-image-category-panel {
  display: grid;
  gap: 10px;
}

.home-image-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: #f1f1f1;
}

.home-image-category-head b {
  font-size: 13px;
  line-height: 1.25;
}

.home-image-category-head span {
  color: #9aa0ad;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.home-image-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-image-category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #3f4350;
  border-radius: 10px;
  background: #2c2f38;
  color: #e6e7eb;
}

.home-image-category-card > span {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.home-image-category-card b {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-image-category-card small {
  overflow: hidden;
  color: #9299aa;
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-image-category-stepper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.home-image-category-stepper button,
.home-image-category-stepper strong {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
}

.home-image-category-stepper button {
  border: 1px solid #586176;
  background: #303746;
  color: #dce4f5;
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  cursor: pointer;
}

.home-image-category-stepper button:hover { border-color: #7d91e8; background: #3a4568; color: #fff; }
.home-image-category-stepper button:disabled { cursor: not-allowed; opacity: .38; }
.home-image-category-stepper strong { color: #fff; font-size: 13px; font-weight: 800; }

.home-image-config-summary {
  display: none !important;
  align-items: center;
  min-width: 0;
  overflow: hidden;
  color: #a7a7ae;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-video-config-summary {
  display: none !important;
  min-width: 0;
  overflow: hidden;
  color: #a7a7ae;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-mobile-config-section,
.home-mobile-language {
  display: grid;
  gap: 8px;
  margin: 0;
}

.home-mobile-config-section > span,
.home-mobile-language > span {
  margin: 0;
  color: #d8d8dc;
  font-size: 13px;
  font-weight: 750;
}

.home-mobile-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-mobile-choice-row button,
.home-mobile-language select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #3d3d3d;
  border-radius: 9px;
  background: #2c2c2c;
  color: #d8d8dc;
  font: inherit;
  font-size: 13px;
}

.home-mobile-choice-row button {
  font-weight: 650;
  cursor: pointer;
}

.home-mobile-choice-row button.is-active {
  border-color: transparent;
  background: #3b4568;
  color: #fff;
}

/* Shared configuration canvas: compact groups, consistent selection treatment. */
.home-mobile-config-panel[data-config-mode="video"] .home-mobile-config-sheet {
  height: min(540px, calc(100dvh - 40px));
}

.home-mobile-config-panel[data-config-mode="video"][data-video-tab="language"] .home-mobile-config-sheet {
  height: min(480px, calc(100dvh - 40px));
}

.home-mobile-config-panel[data-config-mode="image"][data-image-tab="model"] .home-mobile-config-sheet {
  height: min(420px, calc(100dvh - 40px));
}

.home-mobile-config-panel[data-config-mode="image"][data-image-tab="count"] .home-mobile-config-sheet {
  height: min(440px, calc(100dvh - 40px));
}

.home-video-config-parameters,
.home-video-config-language {
  padding-bottom: 2px;
}

.home-config-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-config-choice-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #373737;
  border-radius: 12px;
  background: #292929;
}

.home-config-choice-card-wide { grid-column: 1 / -1; }

.home-config-choice-card > span {
  color: #e3e4e8;
  font-size: 12px;
  font-weight: 750;
}

.home-config-choice-grid,
.home-config-language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-config-video-models { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-config-duration-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.home-config-choice-grid button,
.home-config-language-grid button,
.home-config-ratio-grid button {
  display: grid;
  min-width: 0;
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #414141;
  border-radius: 8px;
  background: #303030;
  color: #d9dae0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.home-config-choice-grid button b,
.home-config-language-grid button b,
.home-config-ratio-grid button b {
  font-size: 12px;
  line-height: 1.25;
}

.home-config-choice-grid button small,
.home-config-language-grid button small,
.home-config-ratio-grid button small {
  margin-top: 3px;
  color: #92949d;
  font-size: 10px;
  line-height: 1.2;
}

.home-config-choice-grid button:hover,
.home-config-language-grid button:hover,
.home-config-ratio-grid button:hover {
  border-color: #6578d2;
  background: #34394b;
  color: #fff;
}

.home-config-choice-grid button.is-active,
.home-config-language-grid button.is-selected,
.home-config-ratio-grid button.is-active,
.home-config-ratio-grid button.is-selected {
  border-color: #7084e5;
  background: #3b486e;
  color: #fff;
}

.home-config-choice-grid button.is-active small,
.home-config-language-grid button.is-selected small,
.home-config-ratio-grid button.is-active small,
.home-config-ratio-grid button.is-selected small { color: #d3dcff; }

.home-config-ratio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-config-ratio-grid button {
  min-height: 88px;
  text-align: center;
  place-items: center;
}

.home-config-ratio-grid button small { margin-top: 1px; }

.home-config-ratio-shape {
  display: block;
  max-width: 38px;
  max-height: 33px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  opacity: .84;
}

.home-config-ratio-grid .ratio-1-1 { width: 24px; height: 24px; }
.home-config-ratio-grid .ratio-3-4 { width: 18px; height: 24px; }
.home-config-ratio-grid .ratio-4-3 { width: 30px; height: 23px; }
.home-config-ratio-grid .ratio-4-5 { width: 19px; height: 24px; }
.home-config-ratio-grid .ratio-5-4 { width: 30px; height: 24px; }
.home-config-ratio-grid .ratio-9-16 { width: 17px; height: 30px; }
.home-config-ratio-grid .ratio-16-9 { width: 34px; height: 19px; }
.home-config-ratio-grid .ratio-2-3 { width: 19px; height: 28px; }
.home-config-ratio-grid .ratio-3-2 { width: 32px; height: 21px; }
.home-config-ratio-grid .ratio-21-9 { width: 38px; height: 16px; }

.home-image-config-ratio-grid { margin-top: 0; }
.home-image-config-ratio-grid button { min-height: 72px; }
.home-image-config-ratio-grid button b { margin-top: 4px; }

.home-config-language-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-config-language-grid button { min-height: 62px; }
.home-config-native-select { display: none; }

/* Homepage output showcase: use real generated A+ visuals as the first-screen proof. */
.home-redesign-hero.hero {
  padding-top: calc(var(--banner-height) + var(--header-height) + 20px) !important;
}

.home-redesign-hero .hero-surface {
  display: grid !important;
  grid-template-columns: minmax(330px, .8fr) minmax(560px, 1.2fr) !important;
  place-items: stretch;
  align-items: center;
  gap: 58px !important;
  min-height: 432px;
  padding: 36px 44px !important;
  border: 1px solid #242424 !important;
  border-radius: 14px !important;
  background: #0b0b0b !important;
  box-shadow: none !important;
}

.home-redesign-hero .hero-surface::before {
  background-image: radial-gradient(rgba(255, 255, 255, .2) .7px, transparent .8px) !important;
  background-size: 12px 12px !important;
  background-position: center !important;
  opacity: .28 !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.home-redesign-hero .hero-surface::after {
  content: "";
  display: block !important;
  position: absolute;
  top: 32px;
  bottom: 32px;
  left: 41.2%;
  z-index: 1;
  width: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 1px 0 rgba(255, 255, 255, .06), 0 0 24px rgba(255, 255, 255, .025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.home-redesign-hero .hero-copy {
  z-index: 3;
  align-self: center;
  max-width: 410px !important;
  margin: 0 !important;
  text-align: left !important;
}

.home-redesign-hero .hero-title {
  margin-bottom: 16px !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  white-space: normal;
}

.home-redesign-hero .hero-subtitle {
  max-width: 400px !important;
  margin: 0 !important;
  text-align: left !important;
  color: rgba(255, 255, 255, .64) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.75 !important;
}

.home-redesign-hero .home-showcase-actions {
  justify-content: flex-start !important;
  gap: 10px;
  margin: 28px 0 0 !important;
}

.home-redesign-hero .home-showcase-actions a {
  position: relative;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 42px !important;
  padding: 0 17px !important;
  border-radius: 6px !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.home-redesign-hero .hero-primary-action,
.home-redesign-hero .hero-secondary-action {
  border: 1px solid rgba(255, 255, 255, .22) !important;
  background: rgba(255, 255, 255, .1) !important;
  color: #fff !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .15) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-redesign-hero .hero-primary-action { background: rgba(255, 255, 255, .16) !important; }
.home-redesign-hero .hero-primary-action:hover,
.home-redesign-hero .hero-secondary-action:hover { background: rgba(255, 255, 255, .2) !important; }

.home-output-showcase {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-self: center;
  gap: 12px;
  width: 100%;
  padding: 0;
  opacity: 1;
}

.home-photo-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px rgba(255, 255, 255, .06);
}

.home-output-card {
  width: 100%;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background-color: #181818;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(.94) brightness(.92);
}

@media (max-width: 1180px) {
  .home-redesign-hero .hero-surface {
    grid-template-columns: minmax(290px, .78fr) minmax(470px, 1.22fr) !important;
    gap: 38px !important;
    padding: 34px 30px !important;
  }

  .home-redesign-hero .hero-surface::after { left: 39.5%; }
}

@media (max-width: 860px) {
  .home-redesign-hero .hero-surface {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    min-height: 0;
    padding: 34px 26px !important;
  }

  .home-redesign-hero .hero-surface::after { display: none !important; }
  .home-redesign-hero .hero-copy { max-width: 620px !important; text-align: center !important; }
  .home-redesign-hero .hero-subtitle { max-width: 500px !important; margin-right: auto !important; margin-left: auto !important; }
  .home-redesign-hero .home-showcase-actions { justify-content: center !important; }
  .home-output-showcase { width: min(620px, 100%); margin: 0 auto; }
}

@media (max-width: 768px) {
  .home-redesign-hero.hero {
    padding: calc(var(--banner-height) + var(--header-height) + 14px) 12px 0 !important;
  }

  .home-redesign-hero .hero-surface {
    min-height: 0;
    padding: 30px 18px 24px !important;
    border-radius: 10px !important;
  }

  .home-redesign-hero .hero-title { font-size: 27px !important; white-space: nowrap; }
  .home-redesign-hero .hero-subtitle { font-size: 14px !important; line-height: 1.65 !important; }
  .home-redesign-hero .home-showcase-actions { margin-top: 24px !important; }
  .home-redesign-hero .home-showcase-actions a { flex: 1; min-width: 0; }
  .home-output-showcase {
    gap: 8px;
    margin-top: 20px;
  }
  .home-photo-wall { gap: 5px; padding: 6px; border-radius: 6px; }
  .home-output-card { border-radius: 3px; }
}

@media (max-width: 768px) {
  .home-mobile-config-panel {
    align-items: flex-end;
    padding: 12px;
  }

  .home-mobile-config-sheet {
    width: 100%;
    height: min(680px, calc(100dvh - 24px));
    max-height: none;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px;
  }

  .home-mobile-config-panel[data-config-mode="video"] .home-mobile-config-sheet { height: min(600px, calc(100dvh - 24px)); }
  .home-mobile-config-panel[data-config-mode="video"][data-video-tab="language"] .home-mobile-config-sheet { height: min(440px, calc(100dvh - 24px)); }
  .home-mobile-config-panel[data-config-mode="image"][data-image-tab="model"] .home-mobile-config-sheet { height: min(400px, calc(100dvh - 24px)); }
  .home-mobile-config-panel[data-config-mode="image"][data-image-tab="category"] .home-mobile-config-sheet { height: min(620px, calc(100dvh - 24px)); }
  .home-config-settings-grid { grid-template-columns: 1fr; }
  .home-config-choice-card-wide { grid-column: auto; }
  .home-config-video-models { grid-template-columns: 1fr; }
  .home-config-choice-grid button { min-height: 52px; }

  .home-image-config-option-grid { grid-template-columns: 1fr; }
  .home-image-config-option { min-height: 54px; }
  .home-image-category-grid { grid-template-columns: 1fr; }
  .home-image-category-card { min-height: 56px; }

  .home-image-config-summary,
  .home-video-config-summary {
    display: none !important;
  }
}

/* Reference homepage composition: editorial copy at left with a four-piece result collage. */
.home-redesign-hero .hero-surface {
  display: grid !important;
  grid-template-columns: minmax(360px, .82fr) minmax(620px, 1.18fr) !important;
  align-items: center;
  gap: 52px !important;
  min-height: 430px;
  padding: 34px 58px !important;
  background: #080808 !important;
}

.home-redesign-hero .hero-surface::after { display: none !important; }

.home-redesign-hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 450px !important;
  margin: 0 !important;
  text-align: left !important;
}

.home-redesign-hero .hero-title {
  display: table;
  margin: 0 0 18px !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  line-height: 1.18 !important;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.home-redesign-hero .hero-subtitle {
  max-width: 420px !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, .66) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

.home-redesign-hero .home-showcase-actions {
  justify-content: flex-start !important;
  gap: 12px;
  margin: 26px 0 0 !important;
  position: relative;
}

.home-redesign-hero .home-showcase-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 128px;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 8px !important;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.home-redesign-hero .hero-primary-action {
  border-color: rgba(112, 147, 255, .62) !important;
  background: linear-gradient(135deg, rgba(52, 91, 224, .95), rgba(91, 126, 255, .9)) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .22), 0 10px 28px rgba(62, 97, 230, .22) !important;
}

.home-redesign-hero .hero-secondary-action {
  border-color: rgba(255, 255, 255, .18) !important;
  background: rgba(255, 255, 255, .08) !important;
}

.home-redesign-hero .hero-primary-action:hover {
  background: linear-gradient(135deg, rgba(62, 103, 244, .98), rgba(108, 139, 255, .94)) !important;
}

.home-redesign-hero .hero-free-note {
  margin: 12px 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.4;
  letter-spacing: 0;
}

.home-output-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin: 0;
  padding-bottom: 24px;
}

.home-output-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto auto;
  align-content: center;
  gap: 16px;
  width: 100%;
  height: auto;
  margin: 0;
}

.home-output-grid::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -72px -64px;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .42) .8px, transparent 1px);
  background-size: 16px 16px;
  opacity: .5;
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 18%, #000 64%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .5) 18%, #000 64%, transparent 100%);
}

.home-output-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  background-color: #151515;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .24);
  transition: opacity .36s ease, transform .36s ease, filter .36s ease;
  will-change: opacity, transform;
}

.home-output-grid.is-switching .home-output-card {
  opacity: .58;
  filter: saturate(.86) brightness(.78);
  transform: translateY(2px) scale(.992);
}

.home-output-grid .home-output-card:nth-child(2),
.home-output-grid .home-output-card:nth-child(4) {
  transition-delay: .035s;
}

.home-output-grid .home-output-card:nth-child(3),
.home-output-grid .home-output-card:nth-child(5) {
  transition-delay: .07s;
}

.home-output-dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.home-output-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .36);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1);
  cursor: pointer;
  transition: width .22s ease, background-color .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.home-output-dot.is-active {
  width: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 12px rgba(0, 0, 0, .18);
}

.home-output-dot:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 4px;
}

.home-output-card-top-left { grid-column: 1 / span 3; grid-row: 1; width: 100%; aspect-ratio: 1958 / 803; }
.home-output-card-top-right { grid-column: 4 / span 3; grid-row: 1; width: 100%; aspect-ratio: 1958 / 803; }
.home-output-card-bottom-left { grid-column: 1 / span 2; grid-row: 2; width: 100%; aspect-ratio: 1958 / 803; }
.home-output-card-bottom-center { grid-column: 3 / span 2; grid-row: 2; width: 100%; aspect-ratio: 1958 / 803; }
.home-output-card-bottom-right { grid-column: 5 / span 2; grid-row: 2; width: 100%; aspect-ratio: 1958 / 803; }

@media (max-width: 1180px) {
  .home-redesign-hero .hero-surface {
    grid-template-columns: minmax(330px, .8fr) minmax(500px, 1.2fr) !important;
    gap: 34px !important;
    padding: 42px 38px !important;
  }

  .home-output-grid { gap: 12px; }
}

@media (max-width: 860px) {
  .home-redesign-hero .hero-surface {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    min-height: 0;
    padding: 40px 30px !important;
  }

  .home-redesign-hero .hero-copy { max-width: 620px !important; text-align: center !important; }
  .home-redesign-hero .hero-subtitle { max-width: 560px !important; margin-right: auto !important; margin-left: auto !important; text-align: center !important; }
  .home-redesign-hero .home-showcase-actions { justify-content: center !important; }
  .home-redesign-hero .hero-free-note { text-align: center; }
  .home-output-showcase { width: min(620px, 100%); margin: 0 auto; }
}

@media (max-width: 768px) {
  .home-redesign-hero.hero { padding: calc(var(--banner-height) + var(--header-height) + 14px) 12px 0 !important; }
  .home-redesign-hero .hero-surface { gap: 24px !important; padding: 32px 18px 24px !important; border-radius: 10px !important; }
  .home-redesign-hero .hero-title { font-size: 27px !important; white-space: nowrap; }
  .home-redesign-hero .hero-subtitle { font-size: 14px !important; line-height: 1.65 !important; }
  .home-redesign-hero .home-showcase-actions { margin-top: 26px !important; }
  .home-redesign-hero .home-showcase-actions a { flex: 1; min-width: 0; min-height: 42px !important; padding: 0 12px !important; border-radius: 8px !important; font-size: 14px; }
  .home-redesign-hero .hero-free-note { margin-top: 10px; font-size: 12px; }
  .home-output-showcase { padding-bottom: 22px; }
  .home-output-grid { gap: 8px; }
  .home-output-card { border-radius: 8px; }
}
