/* ============================================================
   AIKOL Homepage Styles
   独立样式表 — 不导入应用 CSS，hp- 前缀避免冲突
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--hp-text);
    background: var(--hp-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv01', 'cv02', 'cv03', 'cv04';
    letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* --- Variables --- */
:root {
    --hp-bg: #FFFFFF;
    --hp-bg-alt: #FFFFFF;
    --hp-text: #1A1D2E;
    --hp-text-muted: #6B7194;
    --hp-text-light: #9CA3BF;
    --hp-accent: #1565C0;
    --hp-accent-rgb: 21, 101, 192;
    --hp-accent-hover: #0D47A1;
    --hp-accent-light: rgba(21, 101, 192, 0.08);
    --hp-gradient: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #FF9900 100%);
    --hp-gradient-warm: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
    --hp-gradient-cool: linear-gradient(135deg, #06B6D4 0%, #3B82F6 100%);
    --hp-gradient-green: linear-gradient(135deg, #10B981 0%, #059669 100%);
    --hp-surface: #FFFFFF;
    --hp-border: #E5E7EB;
    --hp-border-light: #F3F4F6;
    --hp-radius: 16px;
    --hp-radius-sm: 10px;
    --hp-radius-lg: 24px;
    --hp-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --hp-shadow: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --hp-shadow-lg: 0 20px 48px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
    --hp-shadow-xl: 0 32px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
    --hp-nav-height: 72px;
    --hp-announce-height: 36px;
}

/* --- Layout --- */
.hp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
.hp-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.hp-section:last-of-type {
    border-bottom: none;
}
.hp-section-alt {
    background: var(--hp-bg-alt);
}
.hp-section-alt::before,
.hp-section-alt::after {
    display: none;
}
/* 深紫色区块 */
.hp-section-dark {
    background: linear-gradient(180deg, #2e1f5e 0%, #3b2d6b 50%, #2e1f5e 100%);
    position: relative;
}
.hp-section-dark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hp-section-dark .hp-section-header h2 {
    color: #fff;
}
.hp-section-dark .hp-section-header p {
    color: rgba(255,255,255,0.65);
}
.hp-section-dark .hp-product-title {
    color: #fff;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.hp-section-dark .hp-product-desc {
    color: rgba(255,255,255,0.6);
}
.hp-section-dark .hp-product-features li {
    color: rgba(255,255,255,0.8);
}
.hp-section-dark .hp-product-features li::before {
    background: rgba(167,139,250,0.5);
}
.hp-section-dark .hp-product-zone + .hp-product-zone {
    border-top-color: rgba(255,255,255,0.08);
}
.hp-section-dark .hp-product-label {
    background: rgba(255,255,255,0.1);
}
.hp-section-dark .hp-product-label.purple { color: #c4b5fd; }
.hp-section-dark .hp-product-label.blue   { color: #93c5fd; }
.hp-section-dark .hp-product-label.orange { color: #fde68a; }
.hp-section-dark .hp-product-label.cyan   { color: #a5f3fc; }
.hp-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 48px;
}
.hp-section-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: #0B163F;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.hp-section-header p {
    font-size: 1.05rem;
    color: var(--hp-text-muted);
    line-height: 1.7;
}

/* Typewriter effect */
.hp-typewriter {
    display: inline;
    border-right: 2px solid var(--hp-accent);
    animation: typewriterBlink 0.7s step-end infinite;
    min-height: 1.2em;
}
.hp-typewriter.done {
    border-right-color: transparent;
    animation: none;
}
.hp-typewriter-sub {
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
    color: #6B7194;
    text-shadow: none;
}
.hp-typewriter-sub.visible {
    opacity: 1;
}
.hp-typewriter-sub.typing {
    border-right: 2px solid var(--hp-text-muted);
    animation: typewriterBlink 0.7s step-end infinite;
    display: block;
}
.hp-typewriter-sub.typing.done {
    border-right-color: transparent;
    animation: none;
}
@keyframes typewriterBlink {
    0%, 100% { border-right-color: currentColor; }
    50% { border-right-color: transparent; }
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.hp-announce {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    background: var(--announce-bg, linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #0D47A1 100%));
    background-size: 200% 100%;
    animation: hpAnnounceShimmer 6s ease-in-out infinite;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 500;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.hp-announce.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}
@keyframes hpAnnounceShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hp-announce-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}
.hp-announce-sparkle {
    color: #FCD34D;
    font-size: 0.9rem;
    animation: hpSparklePulse 2s ease-in-out infinite;
}
@keyframes hpSparklePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.8); }
}
.hp-announce-link {
    color: #E0E7FF;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: color 0.2s, border-color 0.2s;
    margin-left: 4px;
}
.hp-announce-link:hover {
    color: #fff;
    border-bottom-color: #fff;
}
.hp-announce-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.hp-announce-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.hp-nav {
    position: fixed;
    top: var(--hp-announce-height);
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--hp-nav-height);
    transition: top 0.4s ease, border-color 0.4s, box-shadow 0.4s, background 0.4s;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.hp-nav.scrolled {
    border-bottom-color: rgba(0,0,0,0.06);
    box-shadow: 0 1px 24px rgba(0,0,0,0.06);
    background: rgba(255, 255, 255, 0.95);
}
.hp-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}
.hp-nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.hp-logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.hp-logo-text {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--hp-text);
    letter-spacing: -0.03em;
}
.hp-nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border-radius: 10px;
    padding: 4px;
}
.hp-nav-mobile-login { display: none; }
.hp-nav-links a {
    padding: 7px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hp-text-muted);
    border-radius: 7px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.hp-nav-links a:hover {
    color: var(--hp-text);
    background: rgba(255,255,255,0.7);
}
.hp-nav-links a.active {
    color: var(--hp-text);
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.hp-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.hp-lang-toggle {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--hp-text-muted);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
}
.hp-lang-toggle:hover {
    border-color: var(--hp-accent);
    color: var(--hp-accent);
    background: var(--hp-accent-light);
}

/* Download App Button */
.hp-download-wrap {
    position: relative;
}
.hp-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--hp-text-muted);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    transition: all 0.2s;
    background: transparent;
}
.hp-btn-download:hover,
.hp-download-wrap:hover .hp-btn-download {
    color: var(--hp-accent);
    border-color: var(--hp-accent);
    background: var(--hp-accent-light);
}
.hp-download-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    box-shadow: var(--hp-shadow-lg);
    padding: 6px;
    z-index: 200;
    transform: translateY(-4px);
    transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}
.hp-download-wrap:hover .hp-download-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.hp-download-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    transition: background 0.15s;
    cursor: pointer;
}
.hp-download-item:hover {
    background: var(--hp-accent-light);
}
.hp-dl-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: 800;
    flex-shrink: 0;
}
.hp-download-item div {
    display: flex;
    flex-direction: column;
}
.hp-download-item strong {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--hp-text);
    line-height: 1.2;
}
.hp-download-item span {
    font-size: 0.72rem;
    color: var(--hp-text-muted);
}
.hp-dl-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Download menu — click toggle (supplement hover) */
.hp-download-menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* APK Download Modal */
.hp-apk-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
}
.hp-apk-modal-overlay.is-visible {
    display: flex;
    animation: hpFadeIn 0.2s ease;
}
@keyframes hpFadeIn { from { opacity: 0; } to { opacity: 1; } }

.hp-apk-modal {
    position: relative;
    background: var(--hp-surface, #fff);
    border-radius: 16px;
    padding: 36px 32px 28px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: hpSlideUp 0.25s ease;
}
@keyframes hpSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.hp-apk-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--hp-text-muted, #999);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-apk-modal-close:hover { background: rgba(0,0,0,0.06); }

.hp-apk-modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.hp-apk-modal h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--hp-text, #1a1a2e);
    margin-bottom: 12px;
}
.hp-apk-modal .hp-apk-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--hp-text-muted, #666);
    margin-bottom: 20px;
}
.hp-apk-actions {
    display: flex;
    justify-content: center;
}
.hp-apk-btn-primary {
    padding: 10px 32px;
    border: none;
    border-radius: 10px;
    background: var(--hp-accent, #6C5CE7);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
}
.hp-apk-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.hp-apk-qr {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}
.hp-apk-qr canvas {
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
}
.hp-apk-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: var(--hp-text-muted, #999);
    font-size: 0.78rem;
}
.hp-apk-divider::before,
.hp-apk-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.08);
}
.hp-apk-btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1.5px solid #3DDC84;
    border-radius: 10px;
    color: #2da866;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
    margin-bottom: 16px;
}
.hp-apk-btn-download:hover {
    background: #3DDC84;
    color: #fff;
}
.hp-apk-no-apk {
    font-size: 0.82rem;
    color: var(--hp-text-muted, #999);
    margin-bottom: 16px;
}

/* Mobile hamburger */
.hp-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}
.hp-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--hp-text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.hp-mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hp-mobile-toggle.active span:nth-child(2) { opacity: 0; }
.hp-mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   BUTTONS
   ============================================================ */
.hp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--hp-accent);
    border-radius: 9px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(var(--hp-accent-rgb), 0.25);
}
.hp-btn-primary:hover {
    transform: translateY(-1px);
    background: var(--hp-accent-hover);
    box-shadow: 0 6px 20px rgba(var(--hp-accent-rgb), 0.3);
}
.hp-btn-primary:active { transform: translateY(0); }

.hp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hp-text);
    background: transparent;
    border: 1.5px solid var(--hp-border);
    border-radius: var(--hp-radius-sm);
    transition: all 0.2s;
}
.hp-btn-outline:hover {
    border-color: var(--hp-accent);
    color: var(--hp-accent);
    background: var(--hp-accent-light);
}

.hp-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--hp-text);
    border-radius: 9px;
    transition: color 0.2s, background 0.2s;
}
.hp-btn-ghost:hover {
    color: var(--hp-text);
    background: var(--hp-accent-light);
}

.hp-btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: 12px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hp-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--hp-nav-height) + var(--hp-announce-height) + 32px);
    padding-bottom: 64px;
    overflow: hidden;
}
.hp-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(99,102,241,0.06) 0%, transparent 40%, rgba(139,92,246,0.04) 70%, rgba(6,182,212,0.03) 100%);
    pointer-events: none;
    overflow: hidden;
}

/* ── Aurora mesh blobs — 大面积高饱和 ── */
.hp-hero-bg::before,
.hp-hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.7;
    will-change: transform;
}
.hp-hero-bg::before {
    width: 750px; height: 750px;
    top: -20%; left: -12%;
    background: radial-gradient(circle, rgba(13,71,161,0.4) 0%, rgba(25,118,210,0.12) 50%, transparent 70%);
    animation: auroraA 12s ease-in-out infinite;
}
.hp-hero-bg::after {
    width: 650px; height: 650px;
    bottom: -15%; right: -8%;
    background: radial-gradient(circle, rgba(6,182,212,0.3) 0%, rgba(59,130,246,0.1) 50%, transparent 70%);
    animation: auroraB 14s ease-in-out infinite;
}
@keyframes auroraA {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 50px) scale(1.12); }
    66% { transform: translate(-40px, 30px) scale(0.93); }
}
@keyframes auroraB {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(-70px, -40px) scale(1.15); }
    70% { transform: translate(50px, -25px) scale(0.9); }
}

/* ── Third aurora blob — 玫粉色 ── */
.hp-hero-orb {
    position: absolute;
    width: 550px; height: 550px;
    top: 20%; left: 45%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,153,0,0.2) 0%, rgba(245,158,11,0.08) 50%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
    pointer-events: none;
    animation: auroraC 16s ease-in-out infinite;
    will-change: transform;
}
@keyframes auroraC {
    0%, 100% { transform: translate(-50%, 0) scale(1); }
    35% { transform: translate(-55%, -50px) scale(1.15); }
    65% { transform: translate(-45%, 30px) scale(0.92); }
}

/* ── Dot grid pattern — 柔和 ── */
.hp-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(13,71,161,0.07) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, black 15%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 40%, black 15%, transparent 70%);
    opacity: 0.5;
}

/* ── Floating accent orbs — 更大更亮 ── */
.hp-hero-float-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    animation: orbFadeFloat 20s ease-in-out infinite;
}
.hp-hero-float-orb:nth-child(1) {
    width: 14px; height: 14px;
    top: 22%; left: 12%;
    background: #6366f1;
    box-shadow: 0 0 20px 8px rgba(99,102,241,0.5);
    animation-delay: 0s;
    animation-duration: 14s;
}
.hp-hero-float-orb:nth-child(2) {
    width: 10px; height: 10px;
    top: 55%; left: 78%;
    background: #8b5cf6;
    box-shadow: 0 0 18px 6px rgba(139,92,246,0.45);
    animation-delay: 3s;
    animation-duration: 18s;
}
.hp-hero-float-orb:nth-child(3) {
    width: 12px; height: 12px;
    top: 38%; left: 52%;
    background: #0891b2;
    box-shadow: 0 0 16px 6px rgba(8,145,178,0.4);
    animation-delay: 6s;
    animation-duration: 16s;
}
.hp-hero-float-orb:nth-child(4) {
    width: 11px; height: 11px;
    top: 12%; left: 68%;
    background: #06b6d4;
    box-shadow: 0 0 18px 6px rgba(6,182,212,0.45);
    animation-delay: 2s;
    animation-duration: 15s;
}
.hp-hero-float-orb:nth-child(5) {
    width: 9px; height: 9px;
    top: 70%; left: 25%;
    background: #f59e0b;
    box-shadow: 0 0 16px 5px rgba(245,158,11,0.4);
    animation-delay: 5s;
    animation-duration: 20s;
}
.hp-hero-float-orb:nth-child(6) {
    width: 8px; height: 8px;
    top: 80%; left: 60%;
    background: #1565C0;
    box-shadow: 0 0 16px 5px rgba(21,101,192,0.4);
    animation-delay: 1s;
    animation-duration: 17s;
}
.hp-hero-float-orb:nth-child(7) {
    width: 13px; height: 13px;
    top: 30%; left: 85%;
    background: #3b82f6;
    box-shadow: 0 0 20px 7px rgba(59,130,246,0.4);
    animation-delay: 7s;
    animation-duration: 19s;
}
.hp-hero-float-orb:nth-child(8) {
    width: 7px; height: 7px;
    top: 65%; left: 10%;
    background: #10b981;
    box-shadow: 0 0 14px 5px rgba(16,185,129,0.4);
    animation-delay: 4s;
    animation-duration: 21s;
}
.hp-hero-float-orb:nth-child(9) {
    width: 10px; height: 10px;
    top: 48%; left: 35%;
    background: #d97706;
    box-shadow: 0 0 18px 6px rgba(217,119,6,0.35);
    animation-delay: 9s;
    animation-duration: 16s;
}
.hp-hero-float-orb:nth-child(10) {
    width: 6px; height: 6px;
    top: 18%; left: 42%;
    background: #eab308;
    box-shadow: 0 0 12px 4px rgba(234,179,8,0.4);
    animation-delay: 11s;
    animation-duration: 23s;
}
@keyframes orbFadeFloat {
    0% { opacity: 0; transform: translateY(0) scale(0.6); }
    10% { opacity: 1; transform: translateY(-15px) scale(1); }
    50% { opacity: 0.6; transform: translateY(-60px) scale(0.85); }
    85% { opacity: 0.9; transform: translateY(-25px) scale(1.15); }
    100% { opacity: 0; transform: translateY(0) scale(0.6); }
}

/* ── Mockup glow ring — 常驻可见 + hover 加强 ── */
.hp-hero-mockup {
    position: relative;
    isolation: isolate;
}
.hp-hero-mockup::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: calc(var(--hp-radius-lg) + 3px);
    background: conic-gradient(from 0deg, #6366f1, rgba(13,71,161,0.3), #f59e0b, #10b981, #06b6d4, #6366f1);
    opacity: 0.35;
    transition: opacity 0.4s ease;
    z-index: -1;
    filter: blur(10px);
    animation: mockupGlowSpin 5s linear infinite;
}
.hp-hero-mockup:hover::before {
    opacity: 0.75;
    filter: blur(14px);
}
@keyframes mockupGlowSpin {
    to { transform: rotate(360deg); }
}

/* ── Mouse parallax container ── */
.hp-hero-visual {
    transition: transform 0.3s ease-out;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}
.hp-hero .hp-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hp-hero-content {
    max-width: 560px;
}
.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: var(--hp-accent-light);
    border: 1px solid rgba(var(--hp-accent-rgb), 0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hp-accent);
    margin-bottom: 20px;
}
.hp-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hp-accent);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
.hp-hero-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2.75rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: var(--hp-text);
    margin-bottom: 16px;
}
.hp-gradient-text {
    background: var(--hp-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hp-tw-cursor {
    font-weight: 300;
    color: var(--hp-accent);
    animation: twBlink 0.8s step-end infinite;
    -webkit-text-fill-color: var(--hp-accent);
}
@keyframes twBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.hp-hero-subtitle {
    font-size: 1.1rem;
    color: var(--hp-text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
    max-width: 460px;
}
.hp-hero-ctas {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.hp-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}
.hp-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.hp-stat-num {
    font-family: 'DM Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hp-text);
}
.hp-stat-label {
    font-size: 0.78rem;
    color: var(--hp-text-light);
    font-weight: 500;
}
.hp-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--hp-border);
}

/* Hero Visual — Browser Mockup */
.hp-hero-visual {
    display: flex;
    justify-content: center;
}
.hp-hero-mockup {
    width: 100%;
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    box-shadow: var(--hp-shadow-xl);
    border: 1px solid var(--hp-border);
    background: var(--hp-surface);
}
.hp-mockup-header {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--hp-bg-alt);
    border-bottom: 1px solid var(--hp-border-light);
    align-items: center;
}
.hp-mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hp-border);
}
.hp-mockup-dot:first-child { background: #FF5F57; }
.hp-mockup-dot:nth-child(2) { background: #FEBC2E; }
.hp-mockup-dot:nth-child(3) { background: #28C840; }
.hp-mockup-title {
    margin-left: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--hp-text-light);
}
.hp-mockup-body {
    padding: 0;
}

/* Hero 仪表盘 */
.hp-hero-dash {
    padding: 20px;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
/* KPI 行 */
.hp-hd-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.hp-hd-kpi {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transform: translateY(10px);
}
.hp-hero-dash.is-visible .hp-hd-kpi {
    animation: hdFadeIn 0.5s ease forwards;
}
.hp-hero-dash.is-visible .hp-hd-kpi:nth-child(1) { animation-delay: 0.3s; }
.hp-hero-dash.is-visible .hp-hd-kpi:nth-child(2) { animation-delay: 0.45s; }
.hp-hero-dash.is-visible .hp-hd-kpi:nth-child(3) { animation-delay: 0.6s; }
.hp-hero-dash.is-visible .hp-hd-kpi:nth-child(4) { animation-delay: 0.75s; }
@keyframes hdFadeIn {
    to { opacity: 1; transform: translateY(0); }
}
.hp-hd-kpi-label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}
.hp-hd-kpi-val {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.3px;
}
.hp-hd-kpi-tag {
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    padding: 2px 6px;
    width: fit-content;
}
.hp-hd-kpi-tag.up { color: #16a34a; background: rgba(22,163,74,0.08); }
.hp-hd-kpi-tag.down { color: #dc2626; background: rgba(220,38,38,0.08); }
/* 图表区 */
.hp-hd-charts {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 10px;
}
.hp-hd-chart-main, .hp-hd-chart-side {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
    padding: 12px;
    opacity: 0;
}
.hp-hero-dash.is-visible .hp-hd-chart-main {
    animation: hdFadeIn 0.5s ease forwards 0.9s;
}
.hp-hero-dash.is-visible .hp-hd-chart-side {
    animation: hdFadeIn 0.5s ease forwards 1s;
}
.hp-hd-chart-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}
.hp-hd-svg {
    width: 100%;
    height: 90px;
}
.hp-hd-line {
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}
.hp-hero-dash.is-visible .hp-hd-line {
    animation: hdDraw 2s ease forwards 1.2s;
}
.hp-hd-area {
    opacity: 0;
}
.hp-hero-dash.is-visible .hp-hd-area {
    animation: hdFadeIn 1s ease forwards 2s;
}
@keyframes hdDraw {
    to { stroke-dashoffset: 0; }
}
.hp-hd-dot-pulse {
    opacity: 0;
}
.hp-hero-dash.is-visible .hp-hd-dot-pulse {
    animation: hdFadeIn 0.3s ease forwards 3s, hdPulse 1.5s ease infinite 3.3s;
}
@keyframes hdPulse {
    0%, 100% { r: 4; opacity: 1; }
    50% { r: 6; opacity: 0.6; }
}
/* 横向条形图 */
.hp-hd-bars { display: flex; flex-direction: column; gap: 8px; }
.hp-hd-bar { display: flex; align-items: center; gap: 6px; }
.hp-hd-bar-label { font-size: 11px; color: #64748b; width: 28px; flex-shrink: 0; }
.hp-hd-bar-track { flex: 1; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.hp-hd-bar-fill {
    height: 100%;
    border-radius: 5px;
    width: 0;
}
.hp-hd-bar-fill.b1 { background: #6366f1; }
.hp-hd-bar-fill.b2 { background: #8b5cf6; }
.hp-hd-bar-fill.b3 { background: #a78bfa; }
.hp-hd-bar-fill.b4 { background: #c4b5fd; }
.hp-hero-dash.is-visible .hp-hd-bar-fill { animation: hdBarGrow 1s ease forwards; }
.hp-hero-dash.is-visible .hp-hd-bar-fill.b1 { animation-delay: 1.2s; }
.hp-hero-dash.is-visible .hp-hd-bar-fill.b2 { animation-delay: 1.35s; }
.hp-hero-dash.is-visible .hp-hd-bar-fill.b3 { animation-delay: 1.5s; }
.hp-hero-dash.is-visible .hp-hd-bar-fill.b4 { animation-delay: 1.65s; }
@keyframes hdBarGrow {
    to { width: var(--w); }
}
/* AI 洞察 */
.hp-hd-insight {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.04));
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 10px;
    padding: 10px 14px;
    min-height: 36px;
    opacity: 0;
}
.hp-hero-dash.is-visible .hp-hd-insight {
    animation: hdFadeIn 0.5s ease forwards 2.5s;
}
.hp-hd-insight-icon { font-size: 16px; flex-shrink: 0; }
.hp-hd-insight-text {
    font-size: 12px;
    line-height: 1.6;
    color: #475569;
}

/* ============================================================
   LOGO WALL
   ============================================================ */
.hp-logo-wall {
    padding: 48px 0 56px;
    background: var(--hp-bg);
    overflow: hidden;
    position: relative;
}
.hp-logo-wall-label {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--hp-text-light);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 28px;
}
.hp-logo-track-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.hp-logo-track {
    display: flex;
    align-items: center;
    gap: 64px;
    width: max-content;
    animation: logoScroll 35s linear infinite;
}
.hp-logo-track:hover {
    animation-play-state: paused;
}
.hp-logo-item {
    flex-shrink: 0;
    opacity: 0.45;
    transition: opacity 0.3s;
    height: 32px;
}
.hp-logo-item:hover {
    opacity: 0.8;
}
.hp-logo-item svg {
    height: 100%;
    width: auto;
    display: block;
}

@keyframes logoScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================================
   VALUE CARDS (6-grid)
   ============================================================ */
.hp-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.hp-value-card {
    padding: 32px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--hp-radius);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.hp-value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
/* Light gradient backgrounds */
.hp-value-card.grad-card-purple {
    background: linear-gradient(135deg, #fff 0%, #faf9ff 40%, #f5f3ff 100%);
}
.hp-value-card.grad-card-blue {
    background: linear-gradient(135deg, #fff 0%, #f8fbff 40%, #eff6ff 100%);
}
.hp-value-card.grad-card-orange {
    background: linear-gradient(135deg, #fff 0%, #fffcf8 40%, #fff7ed 100%);
}
.hp-value-card.grad-card-green {
    background: linear-gradient(135deg, #fff 0%, #f9fefb 40%, #f0fdf4 100%);
}
.hp-value-card.grad-card-red {
    background: linear-gradient(135deg, #fff 0%, #fffafb 40%, #fff1f2 100%);
}
.hp-value-card.grad-card-cyan {
    background: linear-gradient(135deg, #fff 0%, #f9feff 40%, #ecfeff 100%);
}
.hp-value-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 22px;
}
.hp-value-card-icon.purple { background: rgba(21, 101, 192, 0.12); color: #1565C0; }
.hp-value-card-icon.blue   { background: rgba(59, 130, 246, 0.12); color: #3B82F6; }
.hp-value-card-icon.orange { background: rgba(245, 158, 11, 0.12); color: #F59E0B; }
.hp-value-card-icon.green  { background: rgba(16, 185, 129, 0.12); color: #10B981; }
.hp-value-card-icon.red    { background: rgba(239, 68, 68, 0.12);  color: #EF4444; }
.hp-value-card-icon.cyan   { background: rgba(6, 182, 212, 0.12);  color: #06B6D4; }
.hp-value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hp-text);
    margin-bottom: 8px;
}
.hp-value-card p {
    font-size: 0.875rem;
    color: var(--hp-text-muted);
    line-height: 1.65;
}

/* ============================================================
   PRODUCT ZONES (alternating layout)
   ============================================================ */
.hp-product-zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 48px 0;
}
.hp-product-zone + .hp-product-zone {
    border-top: 1px solid var(--hp-border-light);
}
.hp-product-zone:nth-child(even) .hp-product-text { order: 2; }
.hp-product-zone:nth-child(even) .hp-product-visual { order: 1; }

.hp-product-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hp-product-label {
    display: inline-flex;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
    margin-bottom: 8px;
    align-self: flex-start;
}
.hp-product-label.purple { background: rgba(21,101,192,0.1); color: #1565C0; }
.hp-product-label.blue   { background: rgba(59,130,246,0.1); color: #3B82F6; }
.hp-product-label.orange { background: rgba(245,158,11,0.1); color: #F59E0B; }
.hp-product-label.cyan   { background: rgba(6,182,212,0.1); color: #06B6D4; }

.hp-product-features + .hp-product-title {
    margin-top: 32px;
}
.hp-product-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    background-size: 200% 200%;
    animation: titleShimmer 3s ease infinite;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 16px rgba(99,102,241,0.2);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.hp-product-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: titleSweep 3s ease-in-out infinite;
}
@keyframes titleShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes titleSweep {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
}
.hp-product-title.purple {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
    background-size: 200% 200%;
    box-shadow: 0 4px 16px rgba(99,102,241,0.2);
}
.hp-product-title.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #818cf8 100%);
    background-size: 200% 200%;
    box-shadow: 0 4px 16px rgba(59,130,246,0.2);
}
.hp-product-title.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 50%, #fb923c 100%);
    background-size: 200% 200%;
    box-shadow: 0 4px 16px rgba(245,158,11,0.2);
}
.hp-product-title.cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #38bdf8 100%);
    background-size: 200% 200%;
    box-shadow: 0 4px 16px rgba(6,182,212,0.2);
}
.hp-product-desc {
    font-size: 0.95rem;
    color: var(--hp-text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}
.hp-product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.hp-product-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--hp-text);
    line-height: 1.5;
}
.hp-product-features li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 50%;
    background: rgba(var(--hp-accent-rgb), 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M10 3L4.5 8.5 2 6' fill='none' stroke='%236366F1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}
.hp-product-visual {
    border-radius: var(--hp-radius-lg);
    overflow: hidden;
    box-shadow: var(--hp-shadow-lg);
    border: 1px solid var(--hp-border);
}
.hp-product-screenshot {
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--hp-text-light);
    font-weight: 500;
}
.hp-product-screenshot.grad-purple { background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.1)); }
.hp-product-screenshot.grad-blue   { background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(6,182,212,0.1)); }
.hp-product-screenshot.grad-orange { background: linear-gradient(135deg, rgba(71,85,105,0.04), rgba(100,116,139,0.08)); }
.hp-product-screenshot.grad-cyan   { background: linear-gradient(135deg, rgba(6,182,212,0.06), rgba(16,185,129,0.1)); }

/* ============================================================
   LIVE DEMO v3 — Photoroom/Jasper 风格
   ============================================================ */
/* --- 在 .hp-product-screenshot 内部布局 --- */
.hp-live-demo {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0;
    gap: 0;
    font-family: -apple-system, 'Segoe UI', sans-serif;
    color: var(--hp-text);
    font-size: 12px;
    position: relative;
    overflow: hidden;
}
/* Mac 窗口栏 */
.hp-demo-winbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.hp-dot-r, .hp-dot-y, .hp-dot-g {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hp-dot-r { background: #ff5f57; }
.hp-dot-y { background: #ffbd2e; }
.hp-dot-g { background: #28c840; }
.hp-demo-winbar-title {
    flex: 1;
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #9ca3af;
    margin-right: 48px;
}
/* 内容区 */
.hp-live-demo .hp-demo-metrics,
.hp-live-demo .hp-demo-chart-card,
.hp-live-demo .hp-demo-insight {
    margin-left: 14px;
    margin-right: 14px;
}
.hp-live-demo .hp-demo-metrics { margin-top: 12px; }
.hp-live-demo .hp-demo-chart-card { margin-top: 8px; }
.hp-live-demo .hp-demo-insight { margin-top: 8px; margin-bottom: 14px; }

/* --- 指标卡片 --- */
.hp-demo-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.hp-demo-metric-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    backdrop-filter: blur(8px);
}
.hp-live-demo.is-active .hp-demo-metric-card { opacity: 1; transform: translateY(0); }
.hp-live-demo.is-active .hp-demo-metric-card:nth-child(2) { transition-delay: 0.1s; }
.hp-live-demo.is-active .hp-demo-metric-card:nth-child(3) { transition-delay: 0.2s; }

.hp-dm-label {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}
.hp-dm-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.hp-dm-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--hp-text);
    line-height: 1;
    letter-spacing: -0.5px;
}
.hp-dm-change {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.hp-dm-change.up { color: #059669; }
.hp-dm-change.up::before { content: "\2191 "; }
.hp-dm-change.down { color: #dc2626; }
.hp-dm-change.down::before { content: "\2193 "; }

/* 迷你趋势线 */
.hp-dm-spark {
    height: 24px;
    opacity: 0.5;
}
.hp-dm-spark svg { width: 100%; height: 100%; }

/* 评分条 */
.hp-dm-score-bar {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 2px;
}
.hp-dm-score-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    border-radius: 3px;
    transition: width 1.5s ease 0.5s;
}
.hp-live-demo.is-active .hp-dm-score-fill {
    width: 92%;
}

/* --- 趋势图卡片 --- */
.hp-demo-chart-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease 0.25s, transform 0.6s ease 0.25s;
    backdrop-filter: blur(8px);
}
.hp-live-demo.is-active .hp-demo-chart-card {
    opacity: 1;
    transform: translateY(0);
}
.hp-demo-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hp-text);
}
.hp-demo-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(16,185,129,0.1);
    color: #059669;
    font-weight: 600;
    animation: hpPulse 2s ease infinite;
}
@keyframes hpPulse { 0%,100%{opacity:1} 50%{opacity:0.5} }

.hp-demo-line-svg {
    width: 100%;
    flex: 1;
    min-height: 60px;
}
.hp-demo-line {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 2.5s cubic-bezier(0.4,0,0.2,1);
}
.hp-demo-area {
    opacity: 0;
    transition: opacity 1.5s ease 1.2s;
}
.hp-live-demo.is-active .hp-demo-line { stroke-dashoffset: 0; }
.hp-live-demo.is-active .hp-demo-area { opacity: 1; }

.hp-demo-dot {
    opacity: 0;
    transition: opacity 0.3s ease 2.5s;
}
.hp-live-demo.is-active .hp-demo-dot {
    opacity: 1;
    animation: hpDotPulse 1.5s ease infinite 2.5s;
}
@keyframes hpDotPulse {
    0%,100% { r: 4.5; }
    50% { r: 6.5; }
}
.hp-demo-x-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #c0c4cc;
    padding: 6px 2px 0;
    font-weight: 500;
}

/* --- 环形图 + 竞品排行行 --- */
.hp-demo-row {
    display: flex;
    gap: 10px;
    margin: 8px 14px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}
.hp-live-demo.is-active .hp-demo-row {
    opacity: 1;
    transform: translateY(0);
}
.hp-demo-sub-card {
    flex: 1;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 10px 12px;
    backdrop-filter: blur(8px);
}
.hp-demo-sub-card .hp-demo-card-head {
    margin-bottom: 6px;
    font-size: 11px;
}
.hp-demo-donut-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hp-demo-donut-svg {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
}
.hp-demo-arc {
    stroke-dashoffset: 226.2 !important;
    transition: stroke-dashoffset 1s ease;
}
.hp-live-demo.is-active .hp-demo-arc.a1 { stroke-dashoffset: 0 !important; transition-delay: 0.9s; }
.hp-live-demo.is-active .hp-demo-arc.a2 { stroke-dashoffset: -79 !important; transition-delay: 1.1s; }
.hp-live-demo.is-active .hp-demo-arc.a3 { stroke-dashoffset: -135.5 !important; transition-delay: 1.3s; }
.hp-live-demo.is-active .hp-demo-arc.a4 { stroke-dashoffset: -180.7 !important; transition-delay: 1.5s; }
.hp-demo-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 9px;
    color: var(--hp-text-muted);
}
.hp-demo-donut-legend i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

/* 竞品排行 */
.hp-demo-rank-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.hp-demo-rank-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}
.hp-demo-rank-pos {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(129,140,248,0.12);
    color: #818cf8;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}
.hp-demo-rank-pos.gold {
    background: rgba(251,191,36,0.15);
    color: #d97706;
}
.hp-demo-rank-name {
    width: 62px;
    color: var(--hp-text);
    font-size: 10px;
    flex-shrink: 0;
}
.hp-demo-rank-bar {
    flex: 1;
    height: 5px;
    background: #f0f0f5;
    border-radius: 3px;
    overflow: hidden;
}
.hp-demo-rank-bar::after {
    content: "";
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #818cf8, #a78bfa);
    border-radius: 3px;
    transition: width 0.8s ease;
}
.hp-live-demo.is-active .hp-demo-rank-bar::after { width: var(--w); }
.hp-live-demo.is-active .hp-demo-rank-item:nth-child(1) .hp-demo-rank-bar::after { transition-delay: 1s; }
.hp-live-demo.is-active .hp-demo-rank-item:nth-child(2) .hp-demo-rank-bar::after { transition-delay: 1.15s; }
.hp-live-demo.is-active .hp-demo-rank-item:nth-child(3) .hp-demo-rank-bar::after { transition-delay: 1.3s; }
.hp-live-demo.is-active .hp-demo-rank-item:nth-child(4) .hp-demo-rank-bar::after { transition-delay: 1.45s; }
.hp-demo-rank-val {
    font-size: 10px;
    color: var(--hp-text-muted);
    width: 26px;
    text-align: right;
    flex-shrink: 0;
}

/* --- AI 洞察 --- */
.hp-demo-insight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 10px;
    padding: 10px 12px;
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease 1.2s, transform 0.5s ease 1.2s;
}
.hp-live-demo.is-active .hp-demo-insight {
    opacity: 1;
    transform: translateY(0);
}
.hp-demo-insight-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--hp-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-demo-insight-text {
    font-size: 11px;
    line-height: 1.55;
    color: var(--hp-text-muted);
    min-height: 20px;
}
.hp-demo-typewriter::after {
    content: "|";
    color: var(--hp-accent);
    animation: hpBlink 0.7s step-end infinite;
}
@keyframes hpBlink { 50%{opacity:0} }

/* --- 移动端 --- */
@media (max-width: 768px) {
    .hp-live-demo .hp-demo-metrics,
    .hp-live-demo .hp-demo-chart-card,
    .hp-live-demo .hp-demo-row,
    .hp-live-demo .hp-demo-insight { margin-left: 10px; margin-right: 10px; }
    .hp-demo-metrics { grid-template-columns: 1fr 1fr; }
    .hp-demo-metric-card:nth-child(3) { grid-column: 1 / -1; }
    .hp-dm-value { font-size: 16px; }
    .hp-demo-line-svg { min-height: 50px; }
    .hp-demo-row { flex-direction: column; }
    .hp-demo-donut-svg { width: 50px; height: 50px; }
}

/* ============================================================
   视觉工坊 DEMO — 扫描变换 + 炸开散落 + 收回
   ============================================================ */

/* -- 扫描变换阶段 -- */
.hp-vis-scan {
    position: absolute;
    inset: 0;
    top: 28px;
    z-index: 10;
    overflow: hidden;
    border-radius: 0 0 12px 12px;
    opacity: 1;
    transition: opacity 0.6s ease;
    pointer-events: none;
}
.hp-vis-demo.is-scanned .hp-vis-scan {
    opacity: 0;
    transition-delay: 0.3s;
}

.hp-scan-before, .hp-scan-after {
    position: absolute;
    inset: 0;
}
.hp-scan-before {
    opacity: 1;
    transition: opacity 0.4s ease;
}
.hp-vis-demo.is-scanning .hp-scan-before {
    opacity: 0;
    transition-delay: 1.8s;
}
.hp-scan-after {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.hp-vis-demo.is-scanning .hp-scan-after {
    opacity: 1;
    transform: scale(1);
    transition-delay: 2s;
}

.hp-scan-product, .hp-scan-model {
    width: 100%;
    height: 100%;
}
.hp-scan-product img, .hp-scan-model img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.hp-scan-model img {
    box-shadow: none;
}

.hp-scan-label-before, .hp-scan-label-after {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
}
.hp-scan-label-after { background: rgba(124,58,237,0.7); }

/* 扫描光线 */
.hp-scan-line {
    position: absolute;
    left: 10%;
    top: 10%;
    width: 2px;
    height: 80%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(99,102,241,0.1) 20%,
        rgba(99,102,241,0.8) 50%,
        rgba(99,102,241,0.1) 80%,
        transparent 100%
    );
    box-shadow: 0 0 12px rgba(99,102,241,0.5), 0 0 30px rgba(99,102,241,0.2);
    border-radius: 2px;
    opacity: 0;
    transform: translateX(0);
    transition: none;
}
.hp-vis-demo.is-scanning .hp-scan-line {
    opacity: 1;
    animation: scanSweep 3.4s ease-in-out 0.2s forwards;
}
@keyframes scanSweep {
    0%    { left: 5%;  opacity: 0; }
    3%    { opacity: 1; }
    22%   { left: 95%; opacity: 1; }
    25%   { left: 95%; opacity: 0.5; }
    28%   { left: 95%; opacity: 1; }
    47%   { left: 5%;  opacity: 1; }
    50%   { left: 5%;  opacity: 0.5; }
    53%   { left: 5%;  opacity: 1; }
    72%   { left: 95%; opacity: 1; }
    75%   { left: 95%; opacity: 0.5; }
    78%   { left: 95%; opacity: 1; }
    97%   { left: 5%;  opacity: 1; }
    100%  { left: 5%;  opacity: 0; }
}

.hp-vis-demo {
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    padding: 0 !important;
    font-size: unset !important;
    color: unset !important;
    position: relative;
    overflow: visible !important;
}
.hp-vis-demo .hp-demo-winbar {
    position: relative;
    z-index: 2;
}
.hp-vis-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 2.55;
    overflow: visible;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.hp-vis-demo.is-scanned .hp-vis-stage { opacity: 1; }
.hp-vis-tags {
    opacity: 0 !important;
    transition: opacity 0.5s ease;
}
.hp-vis-demo.is-scanned .hp-vis-tags { opacity: 1 !important; }
/* 连接线 */
.hp-vis-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hp-vis-line {
    stroke: rgba(99,102,241,0.15);
    stroke-width: 1.5;
    stroke-dasharray: 6 4;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease 0.3s;
}
.hp-vis-demo.is-active .hp-vis-line {
    stroke-dashoffset: 0;
}

/* 中心原图 */
.hp-vis-origin {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.hp-vis-origin-img {
    width: 64px;
    height: 64px;
    background: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 2px solid #e5e7eb;
}
.hp-vis-origin-img svg { width: 40px; height: 40px; }
.hp-vis-origin-label {
    font-size: 10px;
    color: var(--hp-text-muted);
    font-weight: 500;
    background: rgba(255,255,255,0.85);
    padding: 2px 8px;
    border-radius: 6px;
}

/* 散射图卡片 */
.hp-vis-card {
    position: absolute;
    width: 90px;
    z-index: 2;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    overflow: hidden;
    /* 初始状态：缩在中心 */
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    left: 50%;
    top: 50%;
    transition: all 1.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hp-vc-img {
    width: 100%;
    aspect-ratio: 1;
}
.hp-vc-label {
    display: block;
    text-align: center;
    font-size: 9px;
    padding: 5px 4px;
    color: var(--hp-text);
    font-weight: 500;
}

/* 炸开位置 — 散落各处 */
.hp-vis-demo.is-active .hp-vis-card { opacity: 1; }

.hp-vis-demo.is-active .hp-vc-1 {
    transform: translate(-50%,-50%) scale(1) rotate(-8deg);
    left: 12%; top: 22%;
    transition-delay: 0.3s;
}
.hp-vis-demo.is-active .hp-vc-2 {
    transform: translate(-50%,-50%) scale(1) rotate(6deg);
    left: 85%; top: 18%;
    transition-delay: 0.7s;
}
.hp-vis-demo.is-active .hp-vc-3 {
    transform: translate(-50%,-50%) scale(1) rotate(-4deg);
    left: 50%; top: 5%;
    transition-delay: 0.15s;
}
.hp-vis-demo.is-active .hp-vc-4 {
    transform: translate(-50%,-50%) scale(1) rotate(10deg);
    left: 10%; top: 72%;
    transition-delay: 1.0s;
}
.hp-vis-demo.is-active .hp-vc-5 {
    transform: translate(-50%,-50%) scale(1) rotate(-6deg);
    left: 88%; top: 75%;
    transition-delay: 1.3s;
}
.hp-vis-demo.is-active .hp-vc-6 {
    transform: translate(-50%,-50%) scale(1) rotate(5deg);
    left: 50%; top: 78%;
    transition-delay: 1.6s;
}

/* 收回阶段 — 延迟后收回卡片内 */
.hp-vis-demo.is-settled .hp-vis-card {
    transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hp-vis-demo.is-settled .hp-vc-1 {
    transform: translate(-50%,-50%) scale(0.85) rotate(-3deg);
    left: 15%; top: 28%;
}
.hp-vis-demo.is-settled .hp-vc-2 {
    transform: translate(-50%,-50%) scale(0.85) rotate(3deg);
    left: 82%; top: 22%;
}
.hp-vis-demo.is-settled .hp-vc-3 {
    transform: translate(-50%,-50%) scale(0.85) rotate(-2deg);
    left: 50%; top: 12%;
}
.hp-vis-demo.is-settled .hp-vc-4 {
    transform: translate(-50%,-50%) scale(0.85) rotate(4deg);
    left: 16%; top: 68%;
}
.hp-vis-demo.is-settled .hp-vc-5 {
    transform: translate(-50%,-50%) scale(0.85) rotate(-3deg);
    left: 84%; top: 70%;
}
.hp-vis-demo.is-settled .hp-vc-6 {
    transform: translate(-50%,-50%) scale(0.85) rotate(2deg);
    left: 50%; top: 72%;
}

/* 浮动功能标签 */
.hp-vis-tags {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}
.hp-vis-tag {
    position: absolute;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: var(--hp-accent);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.hp-vis-demo.is-active .hp-vis-tag { opacity: 1; transform: translateY(0); }
.hp-vis-tag.t1 { left: 8%;  top: 30%;  transition-delay: 1.6s; }
.hp-vis-tag.t2 { right: 8%; top: 28%;  transition-delay: 1.9s; }
.hp-vis-tag.t3 { left: 38%; top: 16%;  transition-delay: 2.2s; }
.hp-vis-tag.t4 { right: 15%; top: 60%; transition-delay: 2.5s; }
.hp-vis-tag.t5 { left: 10%;  top: 60%; transition-delay: 2.8s; }

/* 收回后标签也缩进卡片内 */
.hp-vis-demo.is-settled .hp-vis-tag {
    opacity: 0.7;
    font-size: 8px;
    transition: all 1s ease;
}

/* 溢出效果 — 炸开时可超出，收回后裁切 */
.hp-product-visual:has(.hp-vis-demo) {
    overflow: visible;
    transition: overflow 0s 0s;
}
.hp-product-visual:has(.hp-vis-demo.is-settled) {
    overflow: hidden;
}

@media (max-width: 768px) {
    .hp-vis-card { width: 70px; }
    .hp-vis-origin-img { width: 50px; height: 50px; }
    .hp-vis-tag { font-size: 9px; padding: 3px 8px; }
}

/* ============================================================
   ERP DEMO — 浅色专业面板（Stripe/Linear 风格）
   ============================================================ */
.hp-erp-demo {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    overflow: hidden;
    font-size: 11px;
    color: #1e293b;
    background: #fafbfc !important;
}
.hp-erp-demo .hp-demo-winbar {
    position: relative; z-index: 2;
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
}

/* -- 指标卡 -- */
.hp-erp-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px 10px 6px;
}
.hp-erp-kpi {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    padding: 8px 8px 6px;
    text-align: left;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hp-erp-demo.is-active .hp-erp-kpi { opacity: 1; transform: translateY(0); }
.hp-erp-demo.is-active .hp-erp-kpi:nth-child(1) { transition-delay: 0.2s; }
.hp-erp-demo.is-active .hp-erp-kpi:nth-child(2) { transition-delay: 0.45s; }
.hp-erp-demo.is-active .hp-erp-kpi:nth-child(3) { transition-delay: 0.7s; }
.hp-erp-demo.is-active .hp-erp-kpi:nth-child(4) { transition-delay: 0.95s; }

.hp-erp-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}
.hp-erp-kpi-label {
    font-size: 8px;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.hp-erp-kpi-icon {
    width: 16px; height: 16px;
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px;
}
.hp-erp-kpi-icon.ic-order  { background: #f0ebff; }
.hp-erp-kpi-icon.ic-stock  { background: #e8f4fd; }
.hp-erp-kpi-icon.ic-profit { background: #e7f9ee; }
.hp-erp-kpi-icon.ic-settle { background: #fef6e7; }

.hp-erp-kpi-val {
    display: block;
    font-size: 18px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.5px;
    font-family: 'Inter', -apple-system, sans-serif;
}
.hp-erp-kpi-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3px;
}
.hp-erp-kpi-trend {
    font-size: 8px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
}
.hp-erp-kpi-trend.up      { color: #059669; background: #ecfdf5; }
.hp-erp-kpi-trend.down    { color: #dc2626; background: #fef2f2; }
.hp-erp-kpi-trend.neutral { color: #6b7280; background: #f3f4f6; }

/* 迷你 sparkline */
.hp-erp-spark { width: 36px; height: 14px; }
.hp-erp-spark polyline {
    fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 60; stroke-dashoffset: 60;
    transition: stroke-dashoffset 1.5s ease;
}
.hp-erp-demo.is-active .hp-erp-spark polyline { stroke-dashoffset: 0; }
.hp-erp-spark.spark-up polyline   { stroke: #059669; }
.hp-erp-spark.spark-down polyline { stroke: #dc2626; }

/* -- 订单列表 -- */
.hp-erp-table { padding: 2px 10px; }
.hp-erp-row {
    display: grid;
    grid-template-columns: 2fr 2.8fr 0.8fr 1.4fr;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 9px;
    align-items: center;
}
.hp-erp-header {
    font-weight: 600;
    color: #9ca3af;
    font-size: 7px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding-bottom: 3px;
    border-bottom: 1px solid #f0f1f3;
    opacity: 0;
    transition: opacity 0.6s ease 0.8s;
}
.hp-erp-demo.is-active .hp-erp-header { opacity: 1; }

.hp-erp-r1, .hp-erp-r2, .hp-erp-r3, .hp-erp-r4 {
    background: #fff;
    border: 1px solid #f0f1f3;
    margin-top: 3px;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hp-erp-demo.is-active .hp-erp-r1 { opacity: 1; transform: translateX(0); transition-delay: 1.4s; }
.hp-erp-demo.is-active .hp-erp-r2 { opacity: 1; transform: translateX(0); transition-delay: 1.7s; }
.hp-erp-demo.is-active .hp-erp-r3 { opacity: 1; transform: translateX(0); transition-delay: 2.0s; }
.hp-erp-demo.is-active .hp-erp-r4 { opacity: 1; transform: translateX(0); transition-delay: 2.3s; }
.hp-erp-row span:first-child {
    font-weight: 600;
    color: #374151;
    font-family: 'SF Mono', 'Cascadia Code', 'Courier New', monospace;
    font-size: 8px;
}
.hp-erp-row span:nth-child(2) { color: #1f2937; font-weight: 500; }
.hp-erp-row span:nth-child(3) { color: #6b7280; font-weight: 600; }

.hp-erp-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 7px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3px;
}
.hp-erp-badge.shipped { background: #eef2ff; color: #4338ca; border: 1px solid #e0e7ff; }
.hp-erp-badge.pending { background: #fffbeb; color: #b45309; border: 1px solid #fef3c7; }
.hp-erp-badge.done    { background: #f0fdf4; color: #15803d; border: 1px solid #dcfce7; }

/* -- 库存预警 -- */
.hp-erp-stock {
    padding: 4px 10px 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 2.8s, transform 0.6s ease 2.8s;
}
.hp-erp-demo.is-active .hp-erp-stock { opacity: 1; transform: translateY(0); }

.hp-erp-stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1f2937;
}
.hp-erp-stock-hint {
    color: #dc2626;
    font-weight: 600;
    font-size: 7px;
    padding: 2px 6px;
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 3px;
}
.hp-erp-stock-bars { display: flex; flex-direction: column; gap: 4px; }
.hp-erp-bar { display: flex; align-items: center; gap: 6px; }
.hp-erp-bar-name {
    font-size: 8px;
    color: #6b7280;
    width: 72px;
    flex-shrink: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.hp-erp-bar-track {
    flex: 1;
    height: 5px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}
.hp-erp-bar-fill {
    height: 100%;
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.2s;
}
.hp-erp-demo.is-active .hp-erp-bar-fill { width: var(--w); }
.hp-erp-bar-fill.safe   { background: #22c55e; }
.hp-erp-bar-fill.warn   { background: #f59e0b; }
.hp-erp-bar-fill.danger { background: #ef4444; }
.hp-erp-bar-pct {
    font-size: 8px;
    font-weight: 700;
    width: 26px;
    text-align: right;
    opacity: 0;
    transition: opacity 0.4s ease 4.2s;
}
.hp-erp-demo.is-active .hp-erp-bar-pct { opacity: 1; }
.hp-erp-bar-pct.safe   { color: #16a34a; }
.hp-erp-bar-pct.warn   { color: #d97706; }
.hp-erp-bar-pct.danger { color: #dc2626; }

@media (max-width: 768px) {
    .hp-erp-metrics { grid-template-columns: repeat(2, 1fr); }
    .hp-erp-kpi-val { font-size: 14px; }
    .hp-erp-row { font-size: 8px; }
    .hp-erp-bar-name { width: 55px; }
}

/* ============================================================
   DTC / SHOPIFY DEMO — 店铺预览
   ============================================================ */
.hp-dtc-demo {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 0 !important;
    overflow: hidden;
    font-size: 11px;
    color: #1e293b;
    background: #fff !important;
}
.hp-dtc-demo .hp-demo-winbar {
    position: relative; z-index: 2;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

/* 店铺导航 */
.hp-dtc-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 14px;
    border-bottom: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}
.hp-dtc-demo.is-active .hp-dtc-nav { opacity: 1; transform: translateY(0); }

.hp-dtc-logo {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
}
.hp-dtc-nav-links {
    display: flex;
    gap: 12px;
    font-size: 9px;
    color: #6b7280;
    font-weight: 500;
}
.hp-dtc-cart {
    font-size: 11px;
    position: relative;
}
.hp-dtc-cart em {
    font-style: normal;
    font-size: 7px;
    background: #059669;
    color: #fff;
    border-radius: 50%;
    padding: 1px 4px;
    font-weight: 700;
    position: relative;
    top: -3px;
}

/* Hero Banner */
.hp-dtc-hero {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    padding: 10px 14px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}
.hp-dtc-demo.is-active .hp-dtc-hero { opacity: 1; transform: translateY(0); }

.hp-dtc-hero::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(16,185,129,0.15), transparent 70%);
    border-radius: 50%;
}
.hp-dtc-hero-text h4 {
    font-size: 12px;
    font-weight: 800;
    color: #064e3b;
    margin: 0 0 2px;
}
.hp-dtc-hero-text p {
    font-size: 9px;
    color: #047857;
    margin: 0;
}
.hp-dtc-cta {
    display: inline-block;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    white-space: nowrap;
    background: #059669;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 5px;
    letter-spacing: 0.3px;
}

/* 产品网格 */
.hp-dtc-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 14px;
}
.hp-dtc-prod {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hp-dtc-demo.is-active .hp-dtc-p1 { opacity: 1; transform: translateY(0); transition-delay: 1s; }
.hp-dtc-demo.is-active .hp-dtc-p2 { opacity: 1; transform: translateY(0); transition-delay: 1.25s; }
.hp-dtc-demo.is-active .hp-dtc-p3 { opacity: 1; transform: translateY(0); transition-delay: 1.5s; }

.hp-dtc-prod-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.hp-dtc-prod-name {
    display: block;
    font-size: 8px;
    font-weight: 600;
    color: #374151;
    padding: 5px 6px 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hp-dtc-prod-price {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: #059669;
    padding: 0 6px 5px;
}

/* AI 客服气泡 */
.hp-dtc-chat {
    padding: 6px 14px 10px;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    transition: opacity 0.5s ease 2s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 2s;
}
.hp-dtc-demo.is-active .hp-dtc-chat { opacity: 1; transform: translateY(0) scale(1); }

.hp-dtc-chat-bubble {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #059669;
    color: #fff;
    padding: 6px 10px;
    border-radius: 12px 12px 2px 12px;
    font-size: 9px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(5,150,105,0.25);
}
.hp-dtc-chat-avatar {
    font-size: 12px;
}

@media (max-width: 768px) {
    .hp-dtc-hero-text h4 { font-size: 12px; }
    .hp-dtc-prod-name { font-size: 7px; }
    .hp-dtc-prod-price { font-size: 8px; }
}

/* ============================================================
   AI AGENTS GRID
   ============================================================ */
.hp-agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}
.hp-agent-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border-light);
    border-radius: var(--hp-radius);
    transition: transform 0.25s, box-shadow 0.25s;
}
.hp-agent-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow);
}
.hp-agent-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: var(--hp-accent-light);
}
.hp-agent-info h4 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--hp-text);
    margin-bottom: 4px;
}
.hp-agent-info p {
    font-size: 0.78rem;
    color: var(--hp-text-muted);
    line-height: 1.5;
}

/* -- 智能体动画 stage -- */
.hp-agents-stage { position: relative; }

/* 弹跳 */
.hp-agents-stage.is-bounce .hp-agent-card {
    animation: agentBounce 0.5s ease;
}
@keyframes agentBounce {
    0%, 100% { transform: translateY(0); }
    30%  { transform: translateY(-8px); }
    60%  { transform: translateY(3px); }
}
.hp-agents-stage.is-bounce .hp-agent-card:nth-child(odd)  { animation-delay: 0s; }
.hp-agents-stage.is-bounce .hp-agent-card:nth-child(even) { animation-delay: 0.15s; }

/* 漩涡吸入 */
.hp-agents-stage.is-vortex .hp-agents-grid {
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 1s ease 0.4s;
    transform: scale(0.05) rotate(180deg);
    opacity: 0;
}
.hp-agents-stage.is-vortex .hp-agent-card {
    transition: transform 0.8s ease, opacity 0.6s ease;
}

/* 对话框 */
.hp-agent-chat {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20px;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.15);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
}
.hp-agents-stage.is-chat .hp-agent-chat {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* 对话结束 — 左右并排布局 */
.hp-agents-stage.is-chat-done {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.hp-agents-stage.is-chat-done .hp-agent-chat {
    position: relative;
    inset: auto;
    flex: 0 0 440px;
    padding-top: 0;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    transition: none;
}
.hp-agents-stage.is-chat-done .hp-agent-chat-box {
    max-width: 100%;
    margin-top: 0;
}
.hp-agents-stage.is-chat-done .hp-agent-chat-messages {
    max-height: 400px;
    overflow-y: auto;
}

.hp-agent-chat-box {
    width: 100%;
    max-width: 680px;
    margin-top: -260px;
    background: #fff;
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(99,102,241,0.12), 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
}
.hp-agent-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.hp-agent-chat-dot {
    width: 9px; height: 9px;
    background: #4ade80;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 6px rgba(74,222,128,0.5);
    animation: chatDotPulse 1.5s ease infinite;
}
@keyframes chatDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.hp-agent-chat-messages {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow: hidden;
}

/* 消息气泡 */
.hp-achat-msg {
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.hp-achat-msg > span:last-child {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.7;
    max-width: 82%;
}
.hp-achat-user {
    justify-content: flex-end;
}
.hp-achat-user > span {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
    box-shadow: 0 2px 8px rgba(99,102,241,0.2);
}
.hp-achat-ai {
    align-items: flex-start;
}
.hp-achat-ai > span:last-child {
    background: #f8f9fb;
    color: #1e293b;
    border: 1px solid #e5e7eb;
    border-radius: 16px 16px 16px 4px;
}
.hp-achat-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #ede9fe, #c7d2fe);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* 消息逐条出现 — 由 JS 添加 is-shown 控制 */
.hp-achat-msg.is-shown { opacity: 1; transform: translateY(0); }

/* AI 消息内容 */
.hp-achat-typing {
    display: inline;
}

/* 输入框 */
.hp-achat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 24px 16px;
    padding: 10px 14px;
    background: #f8f9fb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.hp-agents-stage.is-chat .hp-achat-input {
    opacity: 1;
    transition-delay: 0.3s;
}
.hp-achat-input-text {
    flex: 1;
    font-size: 13px;
    color: #1e293b;
    min-height: 18px;
}
.hp-achat-input-cursor {
    width: 2px;
    height: 16px;
    background: #6366f1;
    border-radius: 1px;
    animation: cursorBlink 0.8s step-end infinite;
    opacity: 0;
}
.hp-agents-stage.is-chat .hp-achat-input-cursor { opacity: 1; transition-delay: 0.3s; }
.hp-agents-stage.is-chat-done .hp-achat-input-cursor { opacity: 0; }

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
.hp-achat-send {
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #818cf8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: default;
}

/* 卡片重新展开 — 右侧 */
.hp-agents-stage.is-chat-done .hp-agents-grid {
    flex: 1;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.8s ease;
    transform: scale(1) rotate(0deg);
    opacity: 1;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* 呼吸效果 */
.hp-agents-stage.is-chat-done .hp-agent-card {
    animation: agentBreathe 3s ease-in-out infinite;
    padding: 12px 14px;
}
.hp-agents-stage.is-chat-done .hp-agent-card .hp-agent-icon { font-size: 22px; }
.hp-agents-stage.is-chat-done .hp-agent-card h4 { font-size: 13px; }
.hp-agents-stage.is-chat-done .hp-agent-card p { font-size: 11px; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(1)  { animation-delay: 0s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(2)  { animation-delay: 0.2s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(3)  { animation-delay: 0.4s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(4)  { animation-delay: 0.6s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(5)  { animation-delay: 0.8s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(6)  { animation-delay: 1.0s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(7)  { animation-delay: 1.2s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(8)  { animation-delay: 0.15s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(9)  { animation-delay: 0.35s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(10) { animation-delay: 0.55s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(11) { animation-delay: 0.75s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(12) { animation-delay: 0.95s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(13) { animation-delay: 1.15s; }
.hp-agents-stage.is-chat-done .hp-agent-card:nth-child(14) { animation-delay: 0.5s; }

@keyframes agentBreathe {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-2px); }
}

@media (max-width: 768px) {
    .hp-agent-chat-box { max-width: 95%; border-radius: 14px; margin-top: -180px; }
    .hp-achat-msg > span:last-child { font-size: 12px; padding: 10px 12px; }
    .hp-agent-chat-header { font-size: 13px; padding: 10px 14px; }
    .hp-agent-chat-messages { padding: 14px 16px; gap: 10px; }
    .hp-agents-stage.is-chat-done {
        flex-direction: column;
        gap: 20px;
    }
    .hp-agents-stage.is-chat-done .hp-agent-chat {
        flex: none;
        width: 100%;
    }
    .hp-agents-stage.is-chat-done .hp-agent-chat-box {
        margin-top: 0;
    }
    .hp-agents-stage.is-chat-done .hp-agent-chat-messages {
        max-height: 200px;
    }
    .hp-agents-stage.is-chat-done .hp-agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .hp-agent-chat-box { margin-top: -120px; border-radius: 12px; }
    .hp-achat-msg > span:last-child { font-size: 11px; padding: 8px 10px; }
    .hp-agent-chat-header { font-size: 12px; padding: 8px 12px; }
    .hp-agent-chat-messages { padding: 10px 12px; gap: 8px; }
    .hp-agents-stage.is-chat-done .hp-agent-chat-messages {
        max-height: 160px;
    }
}

/* ============================================================
   USE CASES
   ============================================================ */
.hp-usecase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.hp-usecase-card {
    position: relative;
    padding: 28px 22px 24px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border-light);
    border-radius: var(--hp-radius);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 3px solid transparent;
    overflow: hidden;
}
.hp-uc-amazon  { border-top-color: #6366f1; }
.hp-uc-shopify { border-top-color: #818cf8; }
.hp-uc-team    { border-top-color: #a78bfa; }
.hp-uc-agency  { border-top-color: #c4b5fd; }
.hp-usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-lg);
}
/* 用户画像标签 */
.hp-uc-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    color: #fff;
}
.hp-uc-amazon  .hp-uc-tag { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.hp-uc-shopify .hp-uc-tag { background: linear-gradient(135deg, #818cf8, #6366f1); }
.hp-uc-team    .hp-uc-tag { background: linear-gradient(135deg, #a78bfa, #818cf8); }
.hp-uc-agency  .hp-uc-tag { background: linear-gradient(135deg, #c4b5fd, #a78bfa); }
.hp-usecase-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: var(--hp-accent-light);
}
.hp-usecase-card h3 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hp-text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
/* 痛点 */
.hp-uc-pain {
    font-size: 0.78rem;
    color: var(--hp-text-muted);
    line-height: 1.6;
    margin-bottom: 8px;
    text-align: left;
}
/* 解决方案 */
.hp-uc-solve {
    font-size: 0.78rem;
    color: var(--hp-text);
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 16px;
    text-align: left;
}
/* 数据指标 */
.hp-uc-metric {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--hp-border-light);
}
.hp-uc-metric-num {
    font-family: 'DM Mono', monospace;
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}
.hp-uc-amazon  .hp-uc-metric-num { color: #6366f1; }
.hp-uc-shopify .hp-uc-metric-num { color: #818cf8; }
.hp-uc-team    .hp-uc-metric-num { color: #a78bfa; }
.hp-uc-agency  .hp-uc-metric-num { color: #c4b5fd; }
.hp-uc-metric-label {
    font-size: 0.78rem;
    color: var(--hp-text-muted);
}

/* ============================================================
   RESOURCES SECTION
   ============================================================ */
.hp-res-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 24px;
}
.hp-res-header-text h2 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: #0B163F;
    line-height: 1.2;
    margin: 0;
}
.hp-res-label {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1565C0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}
.hp-btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0B163F;
    background: transparent;
    border: 1.5px solid rgba(11, 22, 63, 0.2);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.hp-btn-outline:hover {
    border-color: #0B163F;
    background: #0B163F;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(11, 22, 63, 0.15);
}
.hp-res-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.hp-res-card {
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.hp-res-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
/* ── Image area: dark muted + mesh grid overlay ── */
.hp-res-img {
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}
/* Mesh grid pattern overlay */
.hp-res-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: 1;
    pointer-events: none;
}
/* Soft radial glow accent */
.hp-res-img::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--res-glow, rgba(99,102,241,0.15));
    filter: blur(60px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}
.hp-res-img-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.hp-res-img-icon svg {
    opacity: 0.85;
}
.hp-res-type {
    font-family: 'DM Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    position: relative;
    z-index: 2;
}
.hp-res-info {
    padding: 24px;
    background: #fff !important;
}
.hp-res-info h3 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0B163F;
    margin-bottom: 8px;
    line-height: 1.4;
}
.hp-res-info p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: #6B7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.hp-stats-section {
    background: var(--hp-bg-alt);
    padding: 64px 0;
    position: relative;
}
.hp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.hp-stats-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.hp-stats-num {
    font-family: 'DM Mono', 'Sora', monospace;
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 500;
    color: var(--hp-text);
    letter-spacing: -0.03em;
}
.hp-stats-label {
    font-size: 0.9rem;
    color: var(--hp-text-muted);
    font-weight: 500;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.hp-cta-section {
    text-align: center;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.hp-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 50% 80% at 50% 100%, rgba(var(--hp-accent-rgb), 0.06) 0%, transparent 70%);
    pointer-events: none;
}
.hp-cta-title {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--hp-text);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}
.hp-cta-subtitle {
    font-size: 1.05rem;
    color: var(--hp-text-muted);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.hp-footer {
    background: #fff;
    color: var(--hp-text);
    padding: 72px 0 0;
    border-top: 1px solid var(--hp-border-light);
}

/* Footer top: 5-column grid */
.hp-footer-top {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
    gap: 40px;
    padding-bottom: 48px;
    align-items: flex-start;
}

/* Brand area */
.hp-footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.hp-footer-logo-img {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
.hp-footer-logo-text {
    font-family: 'Sora', 'Inter', sans-serif;
    color: var(--hp-text);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.hp-footer-desc {
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--hp-text-muted);
    max-width: 280px;
    margin-bottom: 20px;
}

/* Social icons */
.hp-footer-social {
    display: flex;
    gap: 6px;
}
.hp-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    color: var(--hp-text-light);
    transition: background 0.2s, color 0.2s;
}
.hp-social-icon:hover {
    background: var(--hp-accent-light);
    color: var(--hp-accent);
}

/* Footer columns */
.hp-footer-col h4 {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hp-text);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}
.hp-footer-col a {
    display: block;
    font-size: 0.84rem;
    color: var(--hp-text-muted);
    padding: 5px 0;
    transition: color 0.2s;
}
.hp-footer-col a:hover {
    color: var(--hp-text);
}

/* App badges */
.hp-footer-apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.hp-app-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--hp-border);
    border-radius: 10px;
    color: var(--hp-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    text-decoration: none;
    white-space: nowrap;
}
.hp-app-badge:hover {
    border-color: var(--hp-accent);
    box-shadow: 0 2px 8px rgba(var(--hp-accent-rgb), 0.1);
}
.hp-app-badge svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--hp-text-muted);
}
.hp-app-badge div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.hp-app-badge-sub {
    font-size: 10px;
    color: #8A94A6;
    line-height: 1.3;
}
.hp-app-badge-main {
    font-family: 'Sora', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.hp-app-soon {
    opacity: 0.45;
    pointer-events: none;
}

/* Footer bottom */
.hp-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.78rem;
    color: var(--hp-text-light);
    border-top: 1px solid var(--hp-border-light);
}
.hp-footer-bottom-links {
    display: flex;
    gap: 24px;
}
.hp-footer-bottom-links a {
    color: var(--hp-text-light);
    font-size: 0.78rem;
    transition: color 0.2s;
}
.hp-footer-bottom-links a:hover {
    color: var(--hp-text);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
[data-anim] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-anim="fade-left"] {
    transform: translateX(40px);
}
[data-anim="fade-right"] {
    transform: translateX(-40px);
}
[data-anim].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
    [data-anim] {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .hp-hero-bg::before,
    .hp-hero-bg::after {
        animation: none;
    }
    .hp-hero-orb,
    .hp-hero-float-orb {
        animation: none;
        opacity: 0;
    }
    .hp-hero-mockup::before {
        animation: none;
    }
    .hp-hero-visual {
        transition: none;
        transform: none !important;
    }
    .hp-badge-dot {
        animation: none;
    }
}

/* ============================================================
   WAVE DIVIDERS & DECORATIVE ELEMENTS
   ============================================================ */

/* --- Enhanced card depth --- */
/* gradient cards use their own shadows */
.hp-usecase-card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
.hp-usecase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(99,102,241,0.08), 0 4px 12px rgba(0,0,0,0.04);
}
.hp-product-zone {
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

/* --- Subtle gradient glow on white sections (disabled for pure white) --- */
.hp-section > .hp-container {
    position: relative;
    z-index: 1;
}

/* --- Decorative accent line (opt-in) --- */
.hp-section-header h2::after {
    content: '';
    display: none;
    width: 40px;
    height: 3px;
    background: var(--hp-gradient);
    border-radius: 2px;
    margin: 16px auto 0;
}
.hp-header-line h2::after { display: block; }

/* --- Header variant: left-aligned + deco number --- */
.hp-header-left {
    text-align: left;
    max-width: 100%;
    position: relative;
}
.hp-header-num {
    position: absolute;
    top: -20px;
    left: -8px;
    font-family: 'Sora', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #0D47A1, #FF9900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.07;
    pointer-events: none;
    user-select: none;
}

/* --- Header variant: top badge capsule --- */
.hp-header-badge {
    display: inline-block;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    font-weight: 500;
    background: #0B163F;
    color: #fff;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* --- Gradient highlight text (uses var defined in :root) --- */
.hp-gradient-text {
    background: var(--hp-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Stats section glow accent --- */
.hp-stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(99,102,241,0.04) 0%, transparent 70%);
    pointer-events: none;
}

/* ============================================================
   ROLE SHOWCASE (Jasper-style)
   ============================================================ */
.hp-roles {
    --roles-primary: #0B163F;
    --roles-accent: #39FF14;
    --roles-accent-dim: rgba(57, 255, 20, 0.08);
    --roles-muted: #E9EEF6;
    --roles-card-bg: #FAFFFE;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}
.hp-roles-accent {
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4ADE80;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    text-align: center;
    text-shadow: none;
}
.hp-roles-accent::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 6px rgba(74,222,128,0.4);
    animation: rolesGlowDot 2s ease-in-out infinite;
}
@keyframes rolesGlowDot {
    0%, 100% { box-shadow: 0 0 6px rgba(74,222,128,0.4); }
    50% { box-shadow: 0 0 12px rgba(74,222,128,0.6); }
}
.hp-roles-title {
    font-family: 'Sora', sans-serif;
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    color: var(--roles-primary);
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.hp-roles-subtitle {
    font-size: 1.05rem;
    color: #6B7194;
    text-align: center;
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
/* Capsule tabs */
.hp-roles-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hp-roles-tab {
    padding: 10px 22px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    color: var(--roles-primary);
    background: var(--roles-muted);
    border: 2px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.hp-roles-tab:hover {
    background: var(--roles-accent-dim);
    border-color: var(--roles-accent);
}
.hp-roles-tab.is-active {
    background: linear-gradient(135deg, #0B163F 0%, #1a2a6c 100%);
    color: #FFFFFF;
    border-color: #1a2a6c;
    box-shadow: 0 4px 16px rgba(11, 22, 63, 0.25);
}
/* Tab icons */
.hp-roles-tab svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
    margin-right: 6px;
    margin-top: -1px;
}
.hp-roles-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hp-roles-tab svg path,
.hp-roles-tab svg polygon {
    fill: currentColor;
}
/* Stage area */
.hp-roles-stage {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    min-height: 420px;
}
.hp-roles-card {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin: 0 auto;
    background: var(--roles-card-bg);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}
.hp-roles-grid-deco {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(57,255,20,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(57,255,20,0.045) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(ellipse 60% 60% at center, black 30%, transparent 80%);
    mask-image: radial-gradient(ellipse 60% 60% at center, black 30%, transparent 80%);
}
/* Panels */
.hp-roles-panel {
    display: none;
    position: relative;
    z-index: 1;
}
.hp-roles-panel.is-active {
    display: block;
    animation: rolesFadeIn 0.4s ease;
}
@keyframes rolesFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.hp-roles-panel-icon {
    width: 48px;
    height: 48px;
    background: var(--roles-accent-dim);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.hp-roles-panel-icon svg {
    stroke: #0B163F;
}
.hp-roles-panel h3 {
    font-family: 'Sora', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--roles-primary);
    margin-bottom: 12px;
}
.hp-roles-panel p {
    font-size: 0.95rem;
    color: #6B7194;
    line-height: 1.7;
    margin-bottom: 20px;
}
.hp-roles-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hp-roles-panel li {
    padding: 6px 0 6px 20px;
    position: relative;
    font-size: 0.88rem;
    color: var(--roles-primary);
    line-height: 1.6;
}
.hp-roles-panel li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    background: var(--roles-accent);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(57,255,20,0.4);
}
/* Avatars */
.hp-roles-avatars {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hp-roles-avatar {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: hpAvFloat 4s ease-in-out infinite;
    animation-delay: calc(var(--av-idx, 0) * -0.5s);
    transition: opacity 0.4s, transform 0.4s;
    opacity: 0.45;
}
.hp-roles-avatar.is-highlighted {
    opacity: 1;
    animation-name: hpAvFloatBig;
}
.hp-roles-av-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: 3px solid #fff;
}
.hp-roles-av-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--roles-primary);
    background: #fff;
    padding: 2px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    white-space: nowrap;
}
.hp-roles-av-spin .hp-roles-av-circle {
    animation: hpAvSpin 0.4s ease-in-out;
}
@keyframes hpAvSpin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); opacity: 0.3; }
    100% { transform: rotateY(360deg); }
}
@keyframes hpAvFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes hpAvFloatBig {
    0%, 100% { transform: translateY(0) scale(1.1); }
    50% { transform: translateY(-10px) scale(1.1); }
}
/* Pixel blocks */
.hp-roles-pixels {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.hp-roles-pixel {
    position: absolute;
    left: var(--px-left, 50%);
    top: var(--px-top, 50%);
    width: var(--px-size, 12px);
    height: var(--px-size, 12px);
    background: var(--roles-accent);
    opacity: 0.08;
    border-radius: 2px;
    animation: hpPixelFlicker var(--px-dur, 3s) ease-in-out infinite;
    animation-delay: var(--px-delay, 0s);
}
@keyframes hpPixelFlicker {
    0%, 100% { opacity: var(--px-opacity, 0.08); transform: translateY(0); }
    30% { opacity: calc(var(--px-opacity, 0.08) * 2.5); }
    50% { transform: translateY(-4px); }
    70% { opacity: var(--px-opacity, 0.08); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .hp-hero .hp-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hp-hero-visual {
        display: none;
    }
    .hp-hero {
        min-height: auto;
        padding-top: calc(var(--hp-nav-height) + var(--hp-announce-height) + 48px);
        padding-bottom: 48px;
    }
    .hp-hero-content {
        max-width: 100%;
        text-align: center;
    }
    .hp-hero-ctas { justify-content: center; }
    .hp-hero-stats { justify-content: center; }
    .hp-value-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-product-zone {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hp-product-zone:nth-child(even) .hp-product-text { order: 1; }
    .hp-product-zone:nth-child(even) .hp-product-visual { order: 2; }
    .hp-usecase-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .hp-footer-top { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .hp-roles-stage { min-height: 360px; }
    .hp-roles-avatar:nth-child(n+7) { display: none; }
}

/* ============================================================
   MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
    :root { --hp-nav-height: 60px; --hp-announce-height: 32px; }
    .hp-section { padding: 56px 0; }
    .hp-section-header { margin-bottom: 32px; }
    .hp-section-header h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* ── Announce ── */
    .hp-announce { font-size: 0.72rem; }
    .hp-announce-inner { padding: 6px 40px 6px 16px; gap: 4px; }
    .hp-announce-link { display: none; }
    .hp-announce-close { right: 12px; }

    /* ── Nav ── */
    .hp-nav-links { display: none; }
    .hp-nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--hp-nav-height);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--hp-border);
        padding: 16px 24px;
        box-shadow: var(--hp-shadow-lg);
        z-index: 99;
        border-radius: 0;
    }
    .hp-nav-links.open a {
        padding: 12px 0;
        font-size: 1rem;
        border-bottom: 1px solid var(--hp-border-light);
        border-radius: 0;
        background: none;
        box-shadow: none;
    }
    .hp-mobile-toggle { display: flex; }
    .hp-nav-actions .hp-lang-toggle,
    .hp-nav-actions .hp-btn-ghost { display: none; }
    .hp-nav-links.open .hp-nav-mobile-login {
        display: block;
        margin-top: 8px;
        padding: 12px 0;
        text-align: center;
        font-weight: 600;
        color: #1565C0;
        border-bottom: none;
    }
    .hp-download-menu { right: -16px; }
    .hp-nav-actions .hp-btn-primary { font-size: 0.8rem; padding: 8px 16px; }

    /* ── Hero ── */
    .hp-hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
    .hp-hero-subtitle { font-size: 0.95rem; }
    .hp-hero-badge { font-size: 0.72rem; padding: 6px 14px; }
    .hp-hero-stats { flex-wrap: wrap; gap: 12px; }
    .hp-hero-stats .hp-stat-divider { display: none; }

    /* ── Value cards (Why AIKOL) ── */
    .hp-value-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hp-value-card { padding: 24px 20px; }
    .hp-value-card-icon { width: 40px; height: 40px; font-size: 18px; border-radius: 12px; margin-bottom: 14px; }
    .hp-value-card h3 { font-size: 0.95rem; }
    .hp-value-card p { font-size: 0.8rem; line-height: 1.6; }

    /* ── Roles section ── */
    .hp-roles { padding: 56px 0; }
    .hp-roles-title { font-size: 1.75rem; }
    .hp-roles-subtitle { font-size: 0.9rem; max-width: 100%; }
    .hp-roles-tabs { gap: 6px; }
    .hp-roles-tab { font-size: 0.78rem; padding: 7px 14px; }
    .hp-roles-tab svg { width: 14px; height: 14px; }
    .hp-roles-avatars { display: none; }
    .hp-roles-stage { min-height: auto; }
    .hp-roles-card { padding: 28px 22px; }
    .hp-roles-panel h3 { font-size: 1.1rem; }
    .hp-roles-panel p { font-size: 0.88rem; }

    /* ── Products ── */
    .hp-header-left { text-align: center; }
    .hp-header-num { display: none; }
    .hp-product-zone { gap: 20px; }
    .hp-product-title { font-size: 0.9rem !important; padding: 10px 20px; }
    .hp-product-features + .hp-product-title { margin-top: 24px; }
    .hp-product-screenshot { border-radius: 16px; }
    .hp-product-label { font-size: 0.72rem; }
    .hp-product-desc { font-size: 0.88rem; }

    /* ── Agents ── */
    .hp-header-badge { font-size: 0.65rem; padding: 4px 12px; }
    .hp-agents-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-agent-card { padding: 16px 14px; }

    /* ── Use cases ── */
    .hp-usecase-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-usecase-card { padding: 16px 12px 14px; text-align: center; }
    .hp-usecase-icon { width: 40px; height: 40px; font-size: 1.2rem; margin: 0 auto 8px; border-radius: 10px; }
    .hp-usecase-card h3 { font-size: 0.82rem; margin-bottom: 6px; }
    .hp-uc-tag { font-size: 9px; padding: 2px 8px; top: 8px; right: 8px; }
    .hp-uc-pain, .hp-uc-solve { display: none; }
    .hp-uc-metric { padding-top: 10px; }
    .hp-uc-metric-num { font-size: 1.3rem; }
    .hp-uc-metric-label { font-size: 0.68rem; }

    /* ── Resources ── */
    .hp-res-header { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 32px; }
    .hp-res-header-text h2 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .hp-res-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .hp-res-img { height: 160px; }
    .hp-res-img-icon { width: 56px; height: 56px; border-radius: 12px; }
    .hp-res-img-icon svg { width: 36px; height: 36px; }
    .hp-res-info { padding: 16px; }
    .hp-res-info h3 { font-size: 0.95rem; }
    .hp-res-info p { font-size: 0.78rem; -webkit-line-clamp: 2; }

    /* ── Stats ── */
    .hp-stats-row { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .hp-stat-divider { display: none; }
    .hp-stats-num { font-size: clamp(2rem, 8vw, 2.5rem); }
    .hp-stats-label { font-size: 0.8rem; }

    /* ── CTA ── */
    .hp-cta-section { padding: 64px 0; }
    .hp-cta-section h2 { font-size: 1.5rem; }

    /* ── Footer ── */
    .hp-footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hp-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .hp-app-badge { padding: 10px 14px; }
    .hp-app-badge svg { width: 18px; height: 18px; }
    .hp-app-badge-main { font-size: 13px; }
    .hp-app-badge-sub { font-size: 10px; }
}

/* ============================================================
   SMALL PHONE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
    :root { --hp-announce-height: 28px; }
    .hp-container { padding: 0 16px; }
    .hp-section { padding: 40px 0; }
    .hp-section-header { margin-bottom: 24px; }
    .hp-section-header h2 { font-size: 1.35rem; }

    .hp-announce { font-size: 0.68rem; }
    .hp-announce-sparkle { display: none; }

    /* ── Hero ── */
    .hp-hero-title { font-size: 1.6rem; }
    .hp-hero-subtitle { font-size: 0.88rem; }
    .hp-hero-ctas { flex-direction: column; gap: 10px; }
    .hp-hero-ctas a { width: 100%; text-align: center; }
    .hp-btn-lg { padding: 12px 24px; font-size: 0.88rem; }
    .hp-hero-stats { gap: 8px; }

    /* ── Value cards ── */
    .hp-value-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hp-value-card { padding: 16px 14px; }
    .hp-value-card-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; margin-bottom: 10px; }
    .hp-value-card h3 { font-size: 0.82rem; margin-bottom: 4px; }
    .hp-value-card p { font-size: 0.72rem; line-height: 1.5; }

    /* ── Roles ── */
    .hp-roles { padding: 40px 0; }
    .hp-roles-tabs { flex-direction: column; align-items: center; gap: 8px; }
    .hp-roles-tab { width: 85%; text-align: center; justify-content: center; }
    .hp-roles-title { font-size: 1.4rem; }
    .hp-roles-card { padding: 22px 16px; }
    .hp-roles-panel h3 { font-size: 1rem; }

    /* ── Products ── */
    .hp-product-zone { gap: 16px; }
    .hp-product-title { font-size: 0.82rem !important; padding: 8px 16px; }
    .hp-product-desc { font-size: 0.82rem; }
    .hp-product-features li { font-size: 0.8rem; }

    /* ── Agents ── */
    .hp-agents-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .hp-agent-card { padding: 12px 10px; }
    .hp-agent-icon { width: 32px; height: 32px; font-size: 16px; }
    .hp-agent-info h4 { font-size: 0.78rem; }
    .hp-agent-info p { font-size: 0.68rem; }

    /* ── Resources ── */
    .hp-res-grid { grid-template-columns: 1fr; gap: 16px; }
    .hp-res-img { height: 140px; }
    .hp-res-info { padding: 14px 16px; }
    .hp-res-info h3 { font-size: 0.9rem; }
    .hp-res-btn { width: 100%; text-align: center; justify-content: center; }

    /* ── Stats ── */
    .hp-stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .hp-stats-num { font-size: 2rem; }

    /* ── CTA ── */
    .hp-cta-section { padding: 48px 0; }
    .hp-cta-section h2 { font-size: 1.25rem; }
    .hp-cta-section .hp-btn-lg { width: 100%; }

    /* ── Footer ── */
    .hp-footer-top { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; text-align: center; }
    .hp-footer-col:first-child { grid-column: 1 / -1; }
    .hp-footer-col .hp-social-links { justify-content: center; }
    .hp-footer-col h4 { font-size: 0.75rem; margin-bottom: 12px; }
    .hp-footer-col a { font-size: 0.78rem; }
    .hp-footer-apps { align-items: center; }
    .hp-app-badge { padding: 8px 12px; gap: 8px; }
    .hp-app-badge svg { width: 16px; height: 16px; }
    .hp-app-badge-main { font-size: 12px; }
    .hp-app-badge-sub { font-size: 9px; }
    .hp-footer-bottom { font-size: 0.75rem; }
}

/* ============================================================
   TOUCH DEVICE HOVER → ACTIVE
   ============================================================ */
@media (hover: none) {
    .hp-value-card:hover { transform: none; box-shadow: none; }
    .hp-value-card:active { transform: scale(0.98); }
    .hp-usecase-card:hover { transform: none; }
    .hp-usecase-card:active { transform: scale(0.98); }
    .hp-roles-tab:hover { background: var(--roles-muted); border-color: transparent; }
    .hp-agent-card:hover { transform: none; }
    .hp-agent-card:active { transform: scale(0.97); }
}
