/* ═══════════════════════════════════════════════
   VibeHarbor Landing — shared design system styles
   Byte-identical rules extracted from index / vibepet / riji.
   Page-specific rules stay inline in each page's <style>.
   ═══════════════════════════════════════════════ */

    /* Shared design tokens used by rules in this file and inline styles */
    :root {
        /* Typography colors */
        --text-title:         #ffffff;
        --text-body:          #a0a0b0;
        --text-label:         #8e8e9e;

        /* Glassmorphism */
        --glass-bg:           rgba(255, 255, 255, 0.04);
        --glass-border:       rgba(255, 255, 255, 0.08);
        --glass-border-hover: rgba(255, 255, 255, 0.15);
    }

    /* ═══════════════════════════════════════════
       1. Reset & Base
       ═══════════════════════════════════════════ */
    *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    ::selection {
        background: rgba(99, 102, 241, 0.35);
        color: #fff;
    }

    a { color: inherit; text-decoration: none; }

    .material-symbols-outlined {
        font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    }

    /* ═══════════════════════════════════════════
       2. Background: drifting aurora glows + noise
       ═══════════════════════════════════════════ */
    .bg-glow {
        position: fixed;
        inset: -10%; /* oversized so the drift never reveals edges */
        z-index: 0;
        pointer-events: none;
        background:
            radial-gradient(600px 420px at 15% 0%, rgba(99, 102, 241, 0.20), transparent 70%),
            radial-gradient(700px 500px at 90% 100%, rgba(139, 92, 246, 0.17), transparent 70%),
            radial-gradient(520px 420px at 72% 12%, rgba(139, 92, 246, 0.09), transparent 70%);
        animation: aurora-drift 26s ease-in-out infinite alternate;
        will-change: transform;
    }

    /* Second, counter-drifting glow layer for depth */
    .bg-glow::before {
        content: '';
        position: absolute;
        inset: 0;
        background:
            radial-gradient(560px 460px at 28% 85%, rgba(99, 102, 241, 0.13), transparent 70%),
            radial-gradient(460px 380px at 60% 42%, rgba(139, 92, 246, 0.09), transparent 70%);
        animation: aurora-drift 34s ease-in-out infinite alternate-reverse;
    }

    @keyframes aurora-drift {
        0%   { transform: translate3d(-2%, -1%, 0) scale(1); }
        50%  { transform: translate3d(1.5%, 2%, 0) scale(1.04); }
        100% { transform: translate3d(2%, -1.5%, 0) scale(1.02); }
    }

    @media (prefers-reduced-motion: reduce) {
        .bg-glow, .bg-glow::before { animation: none; }
    }

    .noise-overlay {
        position: fixed;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        opacity: 0.02;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        background-repeat: repeat;
        background-size: 256px 256px;
    }

    /* Breathing particles canvas */
    #stardust-canvas {
        position: fixed;
        inset: 0;
        z-index: 2;
        pointer-events: none;
    }

    /* ═══════════════════════════════════════════
       3. Reveal Animations (load stagger + scroll)
       ═══════════════════════════════════════════ */
    .reveal {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s var(--ease-fluid),
                    transform 0.6s var(--ease-fluid);
    }

    .reveal-scroll {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.5s var(--ease-fluid),
                    transform 0.5s var(--ease-fluid);
    }

    .reveal.in, .reveal-scroll.in {
        opacity: 1;
        transform: translateY(0);
    }

    /* ═══════════════════════════════════════════
       4. Navigation — transparent -> frosted glass
       ═══════════════════════════════════════════ */
    .nav-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        background: transparent;
        border-bottom: 1px solid transparent;
        transition: background 0.35s ease,
                    border-color 0.35s ease,
                    backdrop-filter 0.35s ease,
                    -webkit-backdrop-filter 0.35s ease;
    }

    .nav-bar.scrolled {
        background: rgba(10, 10, 15, 0.65);
        backdrop-filter: blur(12px) saturate(1.4);
        -webkit-backdrop-filter: blur(12px) saturate(1.4);
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .nav-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 24px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-brand-text {
        font-weight: 700;
        font-size: 17px;
        letter-spacing: -0.02em;
        color: var(--text-title);
    }

    .nav-links { display: flex; align-items: center; gap: 24px; }

    /* Link with underline expanding from the left */
    .anim-link {
        position: relative;
        font-size: 14px;
        font-weight: 500;
        color: var(--text-body);
        padding: 4px 0;
        transition: color 0.3s ease;
        white-space: nowrap;
    }

    .anim-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s var(--ease-fluid);
    }

    .anim-link:hover { color: var(--accent); }
    .anim-link:hover::after { transform: scaleX(1); }

    .nav-icon-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        letter-spacing: 0.06em;
        color: var(--text-body);
        padding: 4px 0;
        position: relative;
        transition: color 0.3s ease;
    }

    .nav-icon-btn::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 1px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s var(--ease-fluid);
    }

    .nav-icon-btn:hover { color: var(--accent); }
    .nav-icon-btn:hover::after { transform: scaleX(1); }

    .nav-icon-btn svg, .nav-icon-btn .material-symbols-outlined { width: 16px; height: 16px; font-size: 16px; }

    /* ═══════════════════════════════════════════
       5. Hero Badge (shared)
       ═══════════════════════════════════════════ */

    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 16px;
        border-radius: 999px;
        background: rgba(99, 102, 241, 0.1);
        border: 1px solid rgba(99, 102, 241, 0.22);
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: #a5b4fc;
        margin-bottom: 32px;
    }

    .hero-badge-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--primary);
        animation: badgePulse 2.4s ease-in-out infinite;
    }

    @keyframes badgePulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.45; transform: scale(0.8); }
    }

    /* Shimmer light sweeping left -> right on hover */
    .glass-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 45%;
        height: 100%;
        background: linear-gradient(100deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%
        );
        transform: translateX(-130%) skewX(-12deg);
        transition: transform 0.7s ease;
        pointer-events: none;
    }

    .glass-card:hover {
        transform: scale(1.02);
        border-color: var(--glass-border-hover);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    }

    .glass-card:hover::after {
        transform: translateX(320%) skewX(-12deg);
    }

    .cta-btn:hover {
        filter: brightness(1.1);
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
    }

    .cta-btn:active { transform: translateY(0); }

    .cta-btn .material-symbols-outlined {
        font-size: 18px;
        transition: transform 0.3s ease;
    }

    .footer-inner {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    @media (min-width: 768px) {
        .footer-inner {
            flex-direction: row;
            justify-content: space-between;
        }
    }

    .footer-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .footer-brand-text {
        font-weight: 700;
        font-size: 14px;
        color: var(--text-body);
        letter-spacing: -0.02em;
    }

    .footer-links { display: flex; gap: 24px; }

    .footer-copy {
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--text-label);
    }

    .footer-legal {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .footer-icp {
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .footer-icp:hover { color: var(--text-body); }

    .footer-gongan {
        display: inline-flex;
        align-items: center;
        gap: 5px;
    }

    .beian-icon {
        width: 14px;
        height: 14px;
        display: block;
    }

/* ═══════════════════════════════════════════════
   Quiet-tech refinement layer
   Shared by the portfolio home and both product pages.
   Higher-specificity selectors intentionally refine legacy inline styles.
   ═══════════════════════════════════════════════ */

body.vh-page {
    --bg-deep: #08090d;
    --bg-violet: #0d0b14;
    --primary: #7c6cf2;
    --secondary: #9a7cf8;
    --accent: #9584ff;
    --text-title: #f4f2fa;
    --text-body: #aaa7b5;
    --text-label: #74717e;
    --glass-bg: rgba(18, 19, 27, 0.78);
    --glass-border: rgba(255, 255, 255, 0.075);
    --glass-border-hover: rgba(165, 148, 255, 0.24);
    background:
        linear-gradient(180deg, #08090d 0%, #0b0a11 46%, #0d0b14 100%);
    color: var(--text-body);
}

body.vh-page .bg-glow {
    inset: -5%;
    opacity: 0.72;
    background:
        radial-gradient(680px 420px at 12% -5%, rgba(111, 93, 220, 0.15), transparent 72%),
        radial-gradient(720px 520px at 94% 38%, rgba(116, 75, 190, 0.10), transparent 74%);
    animation-duration: 34s;
}

body.vh-page .bg-glow::before {
    opacity: 0.58;
    background:
        radial-gradient(620px 480px at 28% 88%, rgba(85, 94, 175, 0.09), transparent 74%);
    animation-duration: 42s;
}

body.vh-page .noise-overlay { opacity: 0.012; }
body.vh-page #stardust-canvas { opacity: 0.48; }

body.vh-page .nav-inner {
    max-width: 1240px;
    height: 60px;
    padding-inline: 28px;
}

body.vh-page .nav-bar.scrolled {
    background: rgba(8, 9, 13, 0.76);
    border-bottom-color: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
}

body.vh-page .anim-link,
body.vh-page .nav-icon-btn {
    color: #8d8998;
}

body.vh-page .anim-link:hover,
body.vh-page .nav-icon-btn:hover {
    color: #d8d3ea;
}

body.vh-page .hero-badge {
    gap: 9px;
    padding: 7px 12px;
    margin-bottom: 24px;
    background: rgba(124, 108, 242, 0.075);
    border-color: rgba(147, 130, 255, 0.18);
    color: #b8adff;
    font-size: 10px;
    letter-spacing: 0.13em;
}

body.vh-page .hero-badge-dot {
    width: 5px;
    height: 5px;
    box-shadow: 0 0 12px rgba(149, 132, 255, 0.8);
}

body.vh-page .section-label {
    margin-bottom: 12px;
    color: #9b8cff;
    letter-spacing: 0.15em;
}

body.vh-page .section-title {
    color: var(--text-title);
    font-size: clamp(28px, 3.2vw, 38px);
    font-weight: 650;
    letter-spacing: -0.035em;
}

body.vh-page .glass-card {
    background:
        linear-gradient(145deg, rgba(22, 23, 32, 0.90), rgba(14, 15, 22, 0.86));
    border-color: rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        transform 0.35s var(--ease-fluid),
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

body.vh-page .glass-card::after { display: none; }

body.vh-page .glass-card:hover {
    transform: translateY(-3px);
    border-color: rgba(159, 143, 255, 0.20);
    box-shadow: 0 22px 65px rgba(0, 0, 0, 0.28);
}

body.vh-page .cta-btn {
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 13px;
    background: #7869e9;
    box-shadow: 0 10px 30px rgba(88, 72, 190, 0.18);
}

body.vh-page .cta-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(88, 72, 190, 0.24);
}

body.vh-page .btn-ghost {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.10);
}

body.vh-page .site-footer {
    border-top-color: rgba(255, 255, 255, 0.055);
    background: rgba(7, 8, 12, 0.72);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.vh-page .footer-inner {
    max-width: 1240px;
    padding-block: 38px;
}

body.vh-page .footer-copy {
    color: #666370;
    letter-spacing: 0.045em;
}

/* Home: editorial hero */
body.vh-home .page-content {
    max-width: 1240px;
    padding: 60px 28px 0;
}

body.vh-home .home-hero {
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
    align-items: center;
    gap: clamp(48px, 7vw, 96px);
    padding: 84px 0 100px;
    text-align: left;
}

.home-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body.vh-home .hero-title {
    max-width: 680px;
    margin-bottom: 24px;
    font-size: clamp(52px, 6.4vw, 78px);
    font-weight: 680;
    line-height: 1.04;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

body.vh-home .hero-subtitle {
    max-width: 540px;
    font-size: 18px;
    line-height: 1.8;
    color: #aaa7b5;
}

.home-hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 34px;
}

.hero-fineprint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #666370;
    text-transform: uppercase;
}

.hero-fineprint::before {
    content: '';
    width: 28px;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.home-showcase {
    position: relative;
    min-height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 24% 20%, rgba(126, 109, 239, 0.14), transparent 33%),
        linear-gradient(145deg, rgba(23, 24, 34, 0.88), rgba(11, 12, 18, 0.96));
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.34),
        inset 0 1px rgba(255, 255, 255, 0.035);
}

.home-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.23;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.showcase-topbar {
    position: relative;
    z-index: 2;
    height: 54px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.12em;
    color: #696674;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.showcase-products {
    position: relative;
    z-index: 2;
    min-height: 390px;
}

.showcase-product {
    position: absolute;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 20px;
    background: rgba(15, 16, 23, 0.82);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

.showcase-product img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(92, 75, 203, 0.22));
}

.showcase-product strong {
    display: block;
    margin-bottom: 5px;
    color: #eeebf7;
    font-size: 17px;
}

.showcase-product small {
    display: block;
    color: #777381;
    font-size: 11px;
    line-height: 1.5;
}

.showcase-product.pet {
    width: 56%;
    top: 58px;
    left: 8%;
    transform: rotate(-2deg);
}

.showcase-product.riji {
    width: 52%;
    right: 7%;
    bottom: 46px;
    transform: rotate(2deg);
}

.showcase-product.riji img { border-radius: 15px; }

.showcase-status {
    position: absolute;
    z-index: 3;
    right: 22px;
    top: 74px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    color: #777381;
}

.showcase-status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8b7df4;
    box-shadow: 0 0 10px rgba(139, 125, 244, 0.8);
}

body.vh-home .cards-section { padding-bottom: 136px; }

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 42px;
}

.section-heading-row .section-title { margin-bottom: 0; }

.section-note {
    max-width: 360px;
    font-size: 13px;
    line-height: 1.7;
    color: #716e7a;
}

body.vh-home .cards-grid {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

body.vh-home .cards-grid > .glass-card {
    min-height: 570px;
    padding: 22px;
}

body.vh-home .project-card {
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
}

body.vh-home .card-media {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    border-radius: 17px;
    background:
        radial-gradient(circle at 50% 45%, rgba(123, 107, 233, 0.15), transparent 32%),
        #0d0e14;
}

body.vh-home .card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
}

body.vh-home .card-media img {
    position: relative;
    z-index: 1;
    width: 112px;
    height: 112px;
    animation-duration: 6s;
}

body.vh-home .card-info {
    flex: 1;
    gap: 24px;
}

body.vh-home .card-heading {
    font-size: 28px;
    letter-spacing: -0.035em;
}

body.vh-home .card-desc {
    font-size: 14px;
    line-height: 1.75;
    color: #9693a0;
}

body.vh-home .card-tag,
body.vh-home .tech-tag {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.065);
}

body.vh-home .card-tag.accent {
    background: rgba(124, 108, 242, 0.09);
    border-color: rgba(124, 108, 242, 0.18);
    color: #a99cff;
}

body.vh-home .placeholder-card {
    grid-column: 1 / -1;
    min-height: 190px !important;
    border-style: solid;
    background: rgba(255, 255, 255, 0.012);
}

body.vh-home .placeholder-card .project-card {
    display: grid;
    grid-template-columns: 0.42fr 1fr;
    align-items: center;
}

body.vh-home .placeholder-card .card-media {
    aspect-ratio: auto;
    min-height: 140px;
}

/* Product pages: split hero with future screenshot slot */
body.vh-detail .page-content {
    max-width: 1240px;
    padding: 60px 28px 120px;
}

body.vh-detail .product-hero {
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(460px, 1.12fr);
    align-items: center;
    gap: clamp(52px, 7vw, 96px);
    padding: 84px 0 100px;
    text-align: left;
}

.product-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

body.vh-detail .hero-app-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    border-radius: 18px;
    animation-duration: 6s;
    box-shadow: 0 16px 45px rgba(83, 68, 184, 0.18);
}

body.vh-detail .hero-title {
    margin-bottom: 22px;
    font-size: clamp(46px, 5.4vw, 68px);
    font-weight: 680;
    line-height: 1.04;
    letter-spacing: -0.05em;
}

body.vh-detail .hero-desc {
    max-width: 560px;
    margin-bottom: 30px;
    font-size: 17px;
    line-height: 1.78;
    color: #a29fac;
}

body.vh-detail .hero-actions {
    justify-content: flex-start;
}

.product-stage {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 30px;
    background:
        radial-gradient(circle at 55% 38%, rgba(125, 108, 238, 0.14), transparent 34%),
        linear-gradient(145deg, rgba(22, 23, 32, 0.91), rgba(11, 12, 18, 0.98));
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.34),
        inset 0 1px rgba(255, 255, 255, 0.035);
}

.product-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.product-stage-topbar {
    position: relative;
    z-index: 2;
    height: 52px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.11em;
    color: #666371;
    text-transform: uppercase;
}

.product-stage-content {
    position: relative;
    z-index: 2;
    height: 448px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-note {
    position: absolute;
    z-index: 4;
    right: 20px;
    bottom: 18px;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5f5c68;
}

.desktop-preview {
    width: min(100%, 430px);
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 22px;
    background: rgba(9, 10, 15, 0.78);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.desktop-preview-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.desktop-preview-head img {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.preview-product-name {
    color: #eeebf7;
    font-size: 17px;
    font-weight: 650;
}

.preview-product-meta {
    margin-top: 5px;
    color: #706d79;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.08em;
}

.preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.preview-metric {
    padding: 13px 10px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.022);
}

.preview-metric strong {
    display: block;
    color: #dcd7ea;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.preview-metric span {
    display: block;
    margin-top: 5px;
    color: #66636f;
    font-size: 9px;
}

.preview-progress {
    height: 4px;
    margin-top: 11px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
}

.preview-progress::after {
    content: '';
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: #7c6cf2;
}

.phone-preview {
    width: 250px;
    min-height: 400px;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 34px;
    background: #0a0b10;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.38);
}

.phone-preview-screen {
    min-height: 374px;
    padding: 22px 18px;
    border-radius: 25px;
    background:
        radial-gradient(circle at 90% 0%, rgba(94, 130, 165, 0.11), transparent 34%),
        #12141a;
}

.phone-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.phone-preview-head img {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.phone-preview-date {
    color: #625f6c;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.08em;
}

.phone-note {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.028);
}

.phone-note-kicker {
    color: #9e91ef;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.phone-note h3 {
    margin: 12px 0 10px;
    color: #ece9f4;
    font-size: 17px;
    line-height: 1.3;
}

.phone-note p {
    color: #7c7985;
    font-size: 11px;
    line-height: 1.65;
}

.phone-tags {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}

.phone-tags span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(124, 108, 242, 0.085);
    color: #9185d9;
    font-size: 8px;
}

body.vh-detail .section-gap { margin-top: 118px; }

body.vh-detail .deepdive-header {
    gap: 30px;
    margin-bottom: 38px;
}

body.vh-detail .tab-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(255, 255, 255, 0.065);
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}

body.vh-detail .tab-bar::-webkit-scrollbar { display: none; }

body.vh-detail .tab-btn {
    min-height: 38px;
    border-radius: 10px;
    scroll-snap-align: start;
}

body.vh-detail .tab-btn.active {
    color: #c2b9ff;
    background: rgba(124, 108, 242, 0.11);
}

body.vh-detail .tab-grid {
    gap: 18px;
}

body.vh-detail .feature-card {
    min-height: 210px;
    padding: 26px;
}

body.vh-detail .fc-icon,
body.vh-detail .bento-icon {
    background: rgba(124, 108, 242, 0.08);
    border-color: rgba(124, 108, 242, 0.16);
    color: #9a8cf4;
}

body.vh-detail .feature-card h4 {
    margin-bottom: 10px;
    font-size: 17px;
}

body.vh-detail .feature-card p,
body.vh-detail .bento-desc {
    color: #8f8c98;
    line-height: 1.72;
}

body.vh-detail .bento-grid {
    gap: 18px;
}

body.vh-detail .sim-window {
    border-radius: 22px;
    background: rgba(13, 14, 21, 0.84);
}

@media (max-width: 900px) {
    body.vh-home .home-hero,
    body.vh-detail .product-hero {
        grid-template-columns: 1fr;
        gap: 48px;
        min-height: auto;
    }

    body.vh-home .home-hero {
        padding: 96px 0 84px;
    }

    body.vh-detail .product-hero {
        padding: 88px 0 78px;
    }

    .home-showcase,
    .product-stage {
        min-height: 480px;
    }
}

@media (max-width: 768px) {
    body.vh-page .nav-inner {
        height: 58px;
        padding-inline: 18px;
    }

    body.vh-home .page-content,
    body.vh-detail .page-content {
        padding-inline: 18px;
    }

    body.vh-home .home-hero,
    body.vh-detail .product-hero {
        gap: 38px;
        padding-top: 70px;
        padding-bottom: 64px;
    }

    body.vh-home .hero-title {
        font-size: clamp(42px, 13vw, 56px);
        line-height: 1.06;
    }

    body.vh-home .hero-subtitle,
    body.vh-detail .hero-desc {
        font-size: 15px;
        line-height: 1.75;
    }

    .home-hero-actions {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-top: 28px;
    }

    .home-showcase {
        min-height: 390px;
        border-radius: 24px;
    }

    .showcase-products { min-height: 330px; }

    .showcase-product {
        gap: 12px;
        padding: 14px;
        border-radius: 16px;
    }

    .showcase-product img {
        width: 48px;
        height: 48px;
    }

    .showcase-product strong { font-size: 14px; }
    .showcase-product small { font-size: 9px; }

    .showcase-product.pet {
        width: 68%;
        left: 6%;
        top: 48px;
    }

    .showcase-product.riji {
        width: 65%;
        right: 5%;
        bottom: 38px;
    }

    .showcase-status {
        top: 62px;
        right: 14px;
        font-size: 8px;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 28px;
    }

    .section-note { max-width: none; }

    body.vh-home .cards-grid {
        grid-template-columns: 1fr;
    }

    body.vh-home .cards-grid > .glass-card {
        min-height: auto;
        padding: 16px;
    }

    body.vh-home .project-card {
        flex-direction: column;
        gap: 22px;
    }

    body.vh-home .card-media {
        max-width: none;
        aspect-ratio: 16 / 10;
    }

    body.vh-home .card-heading { font-size: 24px; }
    body.vh-home .card-desc { font-size: 14px; }

    body.vh-home .placeholder-card {
        grid-column: auto;
        padding: 16px !important;
    }

    body.vh-home .placeholder-card .project-card {
        display: flex;
    }

    body.vh-home .placeholder-card .card-media {
        min-height: 110px;
    }

    body.vh-detail .hero-app-icon {
        width: 64px;
        height: 64px;
    }

    body.vh-detail .hero-title {
        font-size: clamp(40px, 12vw, 52px);
    }

    .product-stage {
        min-height: 430px;
        border-radius: 24px;
    }

    .product-stage-content {
        height: 378px;
        padding: 24px 18px 36px;
    }

    .desktop-preview {
        padding: 16px;
        border-radius: 18px;
    }

    .desktop-preview-head img {
        width: 48px;
        height: 48px;
    }

    .preview-metrics {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .preview-metric {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 10px;
    }

    .preview-metric span {
        margin-top: 0;
    }

    .preview-progress {
        grid-column: 1 / -1;
        width: 100%;
    }

    .phone-preview {
        width: 224px;
        min-height: 350px;
    }

    .phone-preview-screen { min-height: 324px; }

    body.vh-detail .section-gap { margin-top: 82px; }

    body.vh-detail .deepdive-header {
        margin-bottom: 28px;
    }

    body.vh-detail .tab-bar {
        width: 100%;
        max-width: calc(100vw - 36px);
    }

    body.vh-detail .feature-card {
        min-height: auto;
        padding: 22px;
    }

    body.vh-page .footer-inner {
        padding-inline: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.vh-page .hero-app-icon,
    body.vh-page .card-media img,
    body.vh-page .hero-badge-dot {
        animation: none;
    }

    body.vh-page .glass-card,
    body.vh-page .cta-btn,
    body.vh-page .btn-ghost {
        transition-duration: 0.01ms;
    }
}

/* Homepage: cinematic still with restrained ambient motion */
body.vh-home #stardust-canvas { display: none; }

body.vh-home .bg-glow { opacity: 0.18; }

body.vh-home .home-hero {
    position: relative;
    min-height: max(760px, calc(100svh - 20px));
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 112px 0 188px;
    text-align: left;
    isolation: isolate;
}

.home-scene {
    position: absolute;
    inset: 0 calc(50% - 50vw);
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #06080c;
}

.home-scene-poster {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    object-fit: cover;
    object-position: 50% 50%;
}

.home-scene-poster {
    background-image: url('/images/home-hero-coast.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    transform: scale(1.002);
}

.home-scene-clouds,
.home-scene-light,
.home-scene-water {
    position: absolute;
    pointer-events: none;
}

.home-scene-clouds {
    inset: 0 0 38%;
    z-index: 1;
    width: 118%;
    background:
        radial-gradient(ellipse at 76% 48%, rgba(118, 120, 127, 0.16) 0%, rgba(51, 55, 64, 0.09) 28%, transparent 60%),
        radial-gradient(ellipse at 48% 24%, rgba(66, 71, 82, 0.14) 0%, transparent 58%);
    filter: blur(28px);
    opacity: 0.42;
    transform: translate3d(-8%, 0, 0);
    animation: home-cloud-drift 26s ease-in-out infinite alternate;
}

.home-scene-light {
    z-index: 2;
    top: 7%;
    right: 0;
    width: 47%;
    height: 64%;
    background:
        radial-gradient(ellipse at 78% 23%, rgba(255, 223, 188, 0.20) 0%, rgba(244, 184, 132, 0.08) 20%, transparent 53%),
        conic-gradient(from 208deg at 80% 18%, transparent 0deg, rgba(255, 224, 190, 0.09) 8deg, transparent 17deg, transparent 25deg, rgba(255, 224, 190, 0.06) 34deg, transparent 46deg);
    filter: blur(15px);
    mix-blend-mode: screen;
    opacity: 0.48;
    transform-origin: 80% 18%;
    animation: home-light-breathe 11s ease-in-out infinite;
}

.home-scene-water {
    z-index: 2;
    right: -2%;
    bottom: 2%;
    width: 52%;
    height: 34%;
    background: repeating-linear-gradient(176deg, transparent 0 13px, rgba(255, 221, 190, 0.10) 14px, transparent 16px 29px);
    filter: blur(1.5px);
    mix-blend-mode: screen;
    opacity: 0.22;
    -webkit-mask-image: radial-gradient(ellipse at 60% 45%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 60% 45%, #000 0%, transparent 70%);
    transform: translate3d(0, 0, 0);
    animation: home-water-glimmer 8s ease-in-out infinite alternate;
}

@keyframes home-cloud-drift {
    from { transform: translate3d(-8%, -1%, 0) scale(1); opacity: 0.32; }
    to { transform: translate3d(-2%, 1%, 0) scale(1.04); opacity: 0.48; }
}

@keyframes home-light-breathe {
    0%, 100% { opacity: 0.34; transform: scale(0.98) rotate(-0.4deg); }
    48% { opacity: 0.58; transform: scale(1.025) rotate(0.35deg); }
    68% { opacity: 0.45; transform: scale(1.01) rotate(0deg); }
}

@keyframes home-water-glimmer {
    from { opacity: 0.14; transform: translate3d(-1.2%, 0, 0) scaleX(0.98); }
    to { opacity: 0.28; transform: translate3d(1.2%, -1%, 0) scaleX(1.02); }
}

.home-scene-scrim {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(5, 7, 10, 0.34) 0%, rgba(5, 7, 10, 0.12) 42%, transparent 66%),
        linear-gradient(180deg, rgba(5, 7, 10, 0.38) 0%, transparent 23%, transparent 66%, #090a0f 100%);
}

body.vh-home .home-hero-copy {
    position: relative;
    z-index: 5;
    max-width: 690px;
    margin-top: -56px;
    text-shadow: 0 2px 28px rgba(0, 0, 0, 0.46);
}

body.vh-home .hero-title {
    max-width: 690px;
    font-size: clamp(58px, 7.1vw, 88px);
    font-weight: 720;
    line-height: 0.98;
    letter-spacing: -0.065em;
    text-shadow: 0 4px 36px rgba(0, 0, 0, 0.38);
}

body.vh-home .hero-subtitle {
    max-width: 560px;
    color: rgba(231, 228, 237, 0.72);
}

body.vh-home .home-showcase {
    position: absolute;
    z-index: 5;
    left: 0;
    bottom: 44px;
    width: min(660px, 56vw);
    min-height: 116px;
    border-radius: 18px;
    background: rgba(8, 10, 14, 0.66);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30), inset 0 1px rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(16px) saturate(1.08);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
}

body.vh-home .home-showcase::before {
    opacity: 0.16;
    background-size: 36px 36px;
}

body.vh-home .showcase-topbar {
    height: 34px;
    padding-inline: 14px;
}

body.vh-home .showcase-topbar > span {
    display: none;
}

body.vh-home .showcase-status {
    top: 11px;
    right: 14px;
}

body.vh-home .showcase-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
}

body.vh-home .showcase-product,
body.vh-home .showcase-product.pet,
body.vh-home .showcase-product.riji {
    position: relative;
    inset: auto;
    width: auto;
    min-width: 0;
    padding: 12px 14px;
    gap: 11px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

body.vh-home .showcase-product + .showcase-product {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

body.vh-home .showcase-product img {
    width: 38px;
    height: 38px;
}

body.vh-home .showcase-product strong {
    margin-bottom: 2px;
    font-size: 13px;
}

body.vh-home .showcase-product small {
    overflow: hidden;
    color: #8d8994;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.vh-home .hero-fineprint {
    color: rgba(223, 220, 229, 0.62);
}

body.vh-home .hero-fineprint::before {
    background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
    body.vh-home .home-hero {
        min-height: 840px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 104px 0 178px;
    }

    .home-scene-poster {
        inset: auto -1px -1px;
        height: 82%;
        background-size: auto 100%;
        background-position: 67% 100%;
        object-position: 67% 50%;
    }

    .home-scene-clouds {
        inset: 12% -14% 42% 12%;
        opacity: 0.28;
    }

    .home-scene-light {
        top: 22%;
        right: -16%;
        width: 72%;
        height: 48%;
        opacity: 0.34;
    }

    .home-scene-water {
        right: -18%;
        bottom: 4%;
        width: 78%;
        opacity: 0.14;
    }

    .home-scene-scrim {
        background:
            linear-gradient(180deg, #06080c 0%, rgba(6, 8, 12, 0.88) 25%, rgba(6, 8, 12, 0.24) 52%, rgba(8, 9, 13, 0.54) 76%, #090a0f 100%),
            linear-gradient(90deg, rgba(5, 7, 10, 0.30), transparent 82%);
    }

    body.vh-home .home-hero-copy {
        max-width: 590px;
        margin-top: 0;
    }

    body.vh-home .home-showcase {
        bottom: 24px;
        width: 100%;
    }
}

@media (max-width: 560px) {
    body.vh-home .home-hero {
        min-height: 790px;
        padding-top: 92px;
        padding-bottom: 168px;
    }

    body.vh-home .hero-title {
        max-width: 350px;
        font-size: clamp(42px, 13vw, 54px);
    }

    body.vh-home .hero-subtitle {
        max-width: 350px;
    }

    body.vh-home .home-showcase {
        min-height: 126px;
        border-radius: 16px;
        background: rgba(8, 10, 14, 0.82);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    body.vh-home .showcase-status {
        font-size: 7px;
    }

    body.vh-home .showcase-product,
    body.vh-home .showcase-product.pet,
    body.vh-home .showcase-product.riji {
        padding: 13px 10px;
        gap: 8px;
    }

    body.vh-home .showcase-product img {
        width: 34px;
        height: 34px;
    }

    body.vh-home .showcase-product strong { font-size: 12px; }
    body.vh-home .showcase-product small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home-scene-clouds,
    .home-scene-light,
    .home-scene-water {
        animation: none;
    }
}
