/* ==========================================================================
   TPower Systems — Matte High-Contrast Engineering Stylesheet (v39)
   ========================================================================== */

/* --- Self-hosted fonts (variable, SIL OFL 1.1 — see assets/fonts/LICENSE-*.txt) ---
   Served from our own domain so no visitor data goes to Google Fonts. */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url('assets/fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Space Grotesk';
    font-style: normal;
    font-display: swap;
    font-weight: 300 700;
    src: url('assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg-dark: #0a0d14;
    --bg-card: #151b2a;
    --bg-card-alt: #1c2438;
    --bg-card-hover: #222d46;
    --bg-header: rgba(10, 13, 20, 0.88);

    --accent-cyan: #00d8f5;
    --accent-cyan-subtle: rgba(0, 216, 245, 0.12);
    --accent-amber: #ffbe46;

    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;

    --border-subtle: rgba(255, 255, 255, 0.15);
    --border-strong: rgba(255, 255, 255, 0.26);
    --border-cyan: rgba(0, 216, 245, 0.38);

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pixel-screen: 30px;
    --radius-pixel-frame: 34px;

    --font-heading: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --transition-fast: 0.16s ease;
    --transition-normal: 0.24s ease;
}

/* --- Global Resets & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    min-height: 100vh;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse 90% 50% at 50% -5%, rgba(30, 45, 75, 0.45) 0%, transparent 72%),
        linear-gradient(to right, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
    background-size: 100% 700px, 40px 40px, 40px 40px;
    background-position: top center, center top, center top;
    background-repeat: no-repeat, repeat, repeat;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    touch-action: manipulation;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- SVG Icons (sprite: assets/icons.svg) --- */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: -0.125em;
}

.icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    flex-shrink: 0;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}

.accent-link {
    color: var(--accent-cyan);
    text-decoration: underline;
    text-decoration-color: rgba(0, 216, 245, 0.4);
    text-underline-offset: 3px;
}

/* --- Micro Badges & Section Tags --- */
.micro-badge,
.section-tag,
.integration-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: var(--accent-cyan-subtle);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-xs);
    padding: 4px 10px;
    margin-bottom: 0.65rem;
}

/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: opacity var(--transition-fast);
}

.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.85rem;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    list-style: none;
    gap: 0.4rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 13px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    white-space: nowrap;
    transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
}

.nav-link i {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--bg-card);
    border-color: var(--border-subtle);
}

.nav-link.active i {
    color: var(--accent-cyan);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 40px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
    white-space: nowrap;
}

.btn-nav-legal {
    background: var(--accent-cyan-subtle);
    color: var(--accent-cyan);
    border-color: var(--border-cyan);
    padding: 8px 15px;
    font-size: 0.88rem;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 2px;
    gap: 2px;
}

.lang-switcher-btn {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 7px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.lang-switcher-btn:hover {
    color: var(--text-primary);
}

.lang-switcher-btn.is-active {
    background: var(--bg-card-alt);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 216, 245, 0.35);
}

.label-short {
    display: none;
}

.btn-cta {
    padding: 12px 22px;
    background: var(--accent-cyan);
    color: #07080b;
    border-color: var(--accent-cyan);
    font-size: 0.95rem;
}

.btn-ghost {
    padding: 12px 20px;
    background: var(--bg-card-alt);
    color: var(--text-primary);
    border-color: var(--border-subtle);
    font-size: 0.95rem;
}

.btn-ghost i {
    color: var(--accent-cyan);
}

/* --- Main Content Wrapper --- */
.content-wrapper {
    max-width: 1340px;
    margin: 0 auto;
    padding-top: 82px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 2.5rem 2rem;
    position: relative;
}

.section-container {
    width: 100%;
}

/* ==========================================================================
   HERO SECTION (#home) — Full Portfolio Showcase (Business + Consumer Apps)
   ========================================================================== */
.hero-section {
    min-height: calc(100vh - 82px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
}

.hero-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    margin-bottom: 0.65rem;
    line-height: 1.15;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.12rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 2rem auto;
    line-height: 1.5;
    font-weight: 400;
}

/* Hero track labels */
.hero-track-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 0.85rem 0.25rem;
    text-align: left;
}

.hero-track-label i {
    color: var(--accent-cyan);
}

.hero-track-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-subtle), transparent);
}

/* Showcase: Mapronix (left) + Consumer Apps 2x2 (right) */
.hero-showcase {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.75rem;
    text-align: left;
}

.hero-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Featured Business Card in Hero */
.featured-card {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    overflow: hidden;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow 0.22s ease;
}

.featured-card-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.featured-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-fast);
}

.featured-card-title {
    flex: 1;
    min-width: 0;
}

.featured-card h3 {
    font-size: 1.55rem;
    line-height: 1.15;
}

.featured-card-tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 20px;
    padding: 4px 10px;
    white-space: nowrap;
}

.badge-request {
    color: var(--accent-amber);
    background: rgba(255, 190, 70, 0.12);
    border: 1px solid rgba(255, 190, 70, 0.45);
    align-self: flex-start;
    flex-shrink: 0;
}

.featured-card-media {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    aspect-ratio: 2557 / 1437;
    background: #0d121d;
}

.featured-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.featured-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.featured-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.featured-card-chips li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3px 11px;
}

.featured-card-chips li i {
    color: var(--accent-cyan);
    font-size: 0.74rem;
}

.app-card-link-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-card-link-btn i {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Consumer Apps 2x2 Grid in Hero */
.hero-showcase .app-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow 0.22s ease;
}

.app-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-fast);
}

.app-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.app-card-tagline {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.7rem;
}

.app-badge {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

/* Hero Scroll Indicator */
.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.scroll-arrow-box {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent-cyan-subtle);
    border: 1px solid var(--border-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

/* ==========================================================================
   TRACK DIVIDERS (#business / #apps)
   ========================================================================== */
.track-divider {
    text-align: center;
    padding: 4rem 1.5rem 0.5rem;
    max-width: 760px;
    margin: 0 auto;
    scroll-margin-top: 104px;
}

.track-divider-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: var(--accent-cyan-subtle);
    border: 1px solid var(--border-cyan);
    border-radius: 30px;
    padding: 6px 16px;
    margin-bottom: 1.1rem;
}

.track-divider h2 {
    font-size: clamp(1.85rem, 3.6vw, 2.75rem);
    letter-spacing: -0.025em;
    margin-bottom: 0.7rem;
}

.track-divider p {
    color: var(--text-secondary);
    font-size: 1.02rem;
}

/* ==========================================================================
   APP & BUSINESS DETAIL CARDS (High-Contrast #161c2b & #1d2538)
   ========================================================================== */
.app-detail-section {
    padding: 2rem 1.5rem;
    scroll-margin-top: 104px;
}

.app-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 3rem;
    position: relative;
}

.business-card {
    border-color: rgba(0, 216, 245, 0.25);
}

.app-header-block {
    display: flex;
    gap: 2.25rem;
    align-items: flex-start;
    margin-bottom: 2.25rem;
}

.app-icon-large {
    width: 108px;
    height: 108px;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    flex-shrink: 0;
}

.app-title-group {
    flex: 1;
    min-width: 0;
}

.app-title-group h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.5rem);
    margin-bottom: 0.45rem;
}

.app-subtitle {
    font-size: 1.06rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* Mapronix Teaser on Start Page */
.teaser-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.18fr;
    gap: 2.5rem;
    align-items: center;
}

.teaser-head {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.teaser-head .app-icon-large {
    width: 88px;
    height: 88px;
    border-radius: 20px;
}

.teaser-head h2 {
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    margin-bottom: 0.35rem;
}

.teaser-list {
    margin: 0.25rem 0 1.25rem;
}

.teaser-request {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 0.94rem;
}

.teaser-shot {
    display: block;
    cursor: pointer;
}

/* Store Download Buttons */
.store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.15rem;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    color: #ffffff;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-cyan);
    font-weight: 500;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.btn-store i {
    font-size: 1.3rem;
    color: var(--accent-cyan);
}

.btn-store span {
    font-size: 0.75rem;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.btn-store span strong {
    display: block;
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 600;
}

/* App Body Content & Feature Grid */
.app-lead-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e2e8f0;
    margin-bottom: 1.85rem;
}

.app-description-text {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 2rem 0;
}

.feature-item {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.4rem;
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.feature-item-link {
    cursor: pointer;
}

.feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-cyan-subtle);
    border: 1px solid var(--border-cyan);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1.02rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 0.89rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Supported Models */
.supported-models-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.5rem;
    margin-top: 1.75rem;
}

.supported-models-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 8px;
}

.models-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.model-tag {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================================================
   VIDEO & SCREENSHOT FRAMES (Elegantly Highlighted Frame, Uncropped Videos)
   ========================================================================== */
.shot-frame {
    position: relative;
    padding: 7px;
    border-radius: 16px;
    background: #232d44;
    border: 1px solid rgba(0, 216, 245, 0.35);
    overflow: hidden;
    cursor: zoom-in;
    transition: border-color var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
}

/* Subtle, elegant highlight for the currently active/running video */
.shot-frame.is-playing {
    background: #293856;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 1px rgba(0, 216, 245, 0.4);
}

.shot-frame.is-playing .video-stage {
    border-color: rgba(0, 216, 245, 0.55);
}

.shot-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.shot-frame-lead {
    margin-bottom: 2.5rem;
    scroll-margin-top: 104px;
}

.video-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080a0f;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #080a0f;
}

.video-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.video-frame:focus-within .video-controls,
.video-frame.is-paused .video-controls {
    opacity: 1;
}

.video-ctrl-btn {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: rgba(11, 13, 17, 0.88);
    color: var(--text-primary);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.video-toggle-btn .icon-play { display: none; }
.video-frame.is-paused .video-toggle-btn .icon-pause { display: none; }
.video-frame.is-paused .video-toggle-btn .icon-play { display: inline-flex; }

.video-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    z-index: 2;
    pointer-events: none;
}

.video-progress-bar {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    transition: width 0.1s linear;
}

/* --- 5-Segment Dynamic Playlist Bar (#mapronix-showcase) --- */
.playlist-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 7px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.playlist-segment {
    appearance: none;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-subtle);
    padding: 0.8rem 0.95rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-family: var(--font-body);
    transition: background-color var(--transition-fast);
}

.playlist-segment:last-child {
    border-right: none;
}

.playlist-segment.is-active {
    background: var(--bg-card-alt);
}

.playlist-segment-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
}

.playlist-segment-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--accent-cyan);
    transition: width 0.1s linear;
}

.playlist-segment.is-completed .playlist-segment-fill {
    width: 100%;
    background: rgba(0, 216, 245, 0.4);
}

.playlist-segment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.playlist-segment-num {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.playlist-segment.is-active .playlist-segment-num {
    color: var(--accent-cyan);
}

.playlist-segment-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.playlist-segment.is-active .playlist-segment-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   MAPRONIX INTEGRATIONS, ON-REQUEST BAR & TURNKEY ONBOARDING
   ========================================================================== */
.request-notice {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 190, 70, 0.08);
    border: 1px solid rgba(255, 190, 70, 0.38);
    border-radius: var(--radius-md);
    padding: 1rem 1.35rem;
    margin-bottom: 2rem;
}

.request-notice-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--bg-dark);
    background: var(--accent-amber);
}

.request-notice h4 {
    font-size: 1rem;
    color: var(--accent-amber);
    margin-bottom: 0.15rem;
}

.request-notice p {
    color: #e2e8f0;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Integrations & Feature Deep-Dives (Balanced 50/50 Visual Presence, Accurate Scroll Margin) */
.integration-block {
    display: grid;
    grid-template-columns: 0.92fr 1.18fr;
    gap: 2.35rem;
    align-items: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
    scroll-margin-top: 104px;
}

.integration-block-reverse {
    grid-template-columns: 1.18fr 0.92fr;
}

.integration-block-reverse .integration-text {
    order: 2;
}

.integration-text h3 {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    margin-bottom: 0.85rem;
}

.integration-text > p {
    color: #d5dce6;
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
    line-height: 1.65;
}

/* NetBox Deployment Paths */
.deployment-paths {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.2rem;
}

.deployment-path-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.95rem 1.05rem;
}

.deployment-path-card h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-bottom: 0.3rem;
}

.deployment-path-card p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

/* Check Lists */
.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.check-list li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.5;
}

.check-list li strong {
    color: var(--text-primary);
}

.check-list li i {
    flex-shrink: 0;
    width: 21px;
    height: 21px;
    margin-top: 2px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    color: var(--accent-cyan);
    background: var(--accent-cyan-subtle);
}

/* ==========================================================================
   SCREENSHOT CHASSIS & GALLERIES
   ========================================================================== */
.screenshots-wrapper {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-subtle);
    scroll-margin-top: 104px;
}

.gallery-title {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.85rem;
    justify-items: center;
}

.pixel-frame {
    position: relative;
    width: 100%;
    max-width: 265px;
    aspect-ratio: 9 / 19.5;
    background: #000000;
    border-radius: var(--radius-pixel-frame);
    padding: 8px;
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
}

.pixel-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-pixel-screen);
    overflow: hidden;
    background: #000000;
}

.pixel-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-pixel-screen);
}

.promo-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 650px;
    margin: 0 auto;
}

.promo-frame {
    position: relative;
    width: 100%;
    max-width: 270px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-cyan);
    transition: border-color var(--transition-fast);
}

.promo-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Desktop Screenshot Gallery */
.gallery-hint {
    margin-left: auto;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
}

.desktop-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}

.gallery-dots {
    display: none;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    flex: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    min-height: 0;
}

.gallery-item figcaption {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    padding: 1.75rem 0.9rem 0.6rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(180deg, transparent, rgba(7, 8, 11, 0.9));
    border-radius: 0 0 10px 10px;
    pointer-events: none;
}

/* Process / Turnkey Onboarding Block */
.process-block {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
    scroll-margin-top: 104px;
}

.process-header {
    text-align: left;
    margin-bottom: 1.75rem;
}

.process-title {
    font-size: clamp(1.45rem, 2.5vw, 1.95rem);
    margin-bottom: 0.5rem;
}

.process-subtitle {
    font-size: 0.96rem;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 920px;
}

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
}

.process-steps li {
    position: relative;
    background: var(--bg-card-alt);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.35rem 1.25rem;
}

.process-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--bg-dark);
    background: var(--accent-cyan);
    margin-bottom: 0.85rem;
}

.process-steps h4 {
    font-size: 1.02rem;
    margin-bottom: 0.35rem;
}

.process-steps p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.75rem;
    padding: 1.5rem 1.85rem;
    border-radius: var(--radius-md);
    background: var(--bg-card-alt);
    border: 1px solid var(--border-cyan);
}

.cta-band h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.cta-band p {
    color: var(--text-secondary);
    font-size: 0.94rem;
}

/* Contact Line & Copy Button */
.contact-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 0.95rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact-mail {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(0, 216, 245, 0.4);
    text-underline-offset: 3px;
    word-break: break-all;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.copy-btn.is-copied {
    border-color: #34d399;
    color: #34d399;
}

.cta-band .contact-line {
    margin-top: 0.55rem;
}

/* Subpage Topbar & Breadcrumb (/mapronix/) */
.subpage-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem 2rem 0;
}

.subpage-topbar .lang-switcher {
    margin-left: auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb i { font-size: 0.65rem; }
.breadcrumb [aria-current] { color: var(--text-primary); font-weight: 600; }

.subpage .business-section {
    padding-top: 1rem;
}

/* Back to Top & Footer */
.back-to-top-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1.5rem 2rem 2.25rem;
}

.btn-back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: 30px;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.btn-back-to-top i {
    color: var(--accent-cyan);
}

.site-footer {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: var(--bg-card-alt);
    border-top: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
}

.site-footer-subpage {
    margin-top: 2.5rem;
}

.footer-container {
    max-width: 1340px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    width: 100%;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 30px;
}

.footer-left p {
    font-size: 0.86rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.35rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.legal-footer-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.86rem;
    cursor: pointer;
    font-family: var(--font-body);
    transition: color var(--transition-fast);
}

/* ==========================================================================
   LEGAL MODAL & LIGHTBOX OVERLAYS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 8, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    z-index: 10;
    overflow: hidden;
}

.modal-header {
    padding: 1.25rem 2rem;
    background: var(--bg-card-alt);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    max-height: calc(85vh - 75px);
    -webkit-overflow-scrolling: touch;
    pointer-events: auto !important;
}

.legal-card-modal { background: transparent; }

.legal-subtitle {
    font-size: 1.35rem;
    color: var(--accent-cyan);
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-item { margin-bottom: 1.65rem; }

.legal-item h5 {
    font-size: 1.02rem;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.legal-item p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.6;
}

.legal-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 2.5rem 0;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
    overflow: hidden;
    touch-action: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 8, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-figure {
    position: relative;
    z-index: 1;
    max-width: min(1400px, 92vw);
    text-align: center;
}

.lightbox-img,
.lightbox-video {
    max-width: 100%;
    max-height: 82vh;
    border-radius: 12px;
    border: 1px solid var(--border-cyan);
    display: block;
    margin: 0 auto;
    background: #07080b;
}

.lightbox-img {
    touch-action: none;
    transform-origin: 0 0;
    will-change: transform;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-video {
    display: none;
    width: min(1280px, 90vw);
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 0.85rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.lightbox-btn {
    position: absolute;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-cyan);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   TOUCH-SAFE HOVER STATES (@media (hover: hover) and (pointer: fine))
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
    .brand-logo-link:hover .brand-logo {
        opacity: 0.85;
    }

    .nav-link:hover {
        color: var(--text-primary);
        background: var(--bg-card);
    }

    .nav-link:hover i {
        color: var(--accent-cyan);
    }

    .btn-nav-legal:hover {
        background: var(--accent-cyan);
        color: var(--bg-dark);
    }

    .btn-cta:hover {
        background: #33e2fa;
        border-color: #33e2fa;
    }

    .btn-ghost:hover {
        background: var(--bg-card-hover);
        border-color: var(--border-cyan);
    }

    .featured-card:hover {
        transform: translateY(-4px);
        background: #1b2336;
        border-color: var(--accent-cyan);
        box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.7), 0 4px 12px -2px rgba(0, 0, 0, 0.45);
    }

    .featured-card:hover .featured-card-logo {
        transform: scale(1.05);
        border-color: var(--border-cyan);
    }

    .featured-card:hover .featured-card-media {
        border-color: rgba(0, 216, 245, 0.45);
    }

    .featured-card:hover .app-card-link-btn i {
        transform: translateX(4px);
    }

    .app-card:hover {
        transform: translateY(-4px);
        background: var(--bg-card-hover);
        border-color: var(--border-cyan);
        box-shadow: 0 14px 32px -8px rgba(0, 0, 0, 0.7), 0 4px 12px -2px rgba(0, 0, 0, 0.45);
    }

    .app-card:hover .app-card-icon {
        transform: scale(1.06);
        border-color: rgba(0, 216, 245, 0.45);
    }

    .app-card:hover .app-badge {
        background: rgba(0, 216, 245, 0.12);
        border-color: rgba(0, 216, 245, 0.4);
        color: #ffffff;
    }

    .scroll-indicator:hover {
        color: var(--accent-cyan);
    }

    .btn-store:hover {
        background: var(--bg-card-hover);
        border-color: var(--accent-cyan);
    }

    .feature-item-link:hover {
        background: var(--bg-card-hover);
        border-color: var(--border-cyan);
    }

    .shot-frame:hover,
    .pixel-frame:hover,
    .promo-frame:hover {
        border-color: var(--accent-cyan);
    }

    .video-frame:hover .video-controls {
        opacity: 1;
    }

    .video-ctrl-btn:hover {
        background: var(--accent-cyan);
        border-color: var(--accent-cyan);
        color: var(--bg-dark);
    }

    .playlist-segment:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    .contact-mail:hover,
    .breadcrumb a:hover,
    .footer-links a:hover,
    .legal-footer-btn:hover,
    .modal-close-btn:hover {
        color: var(--accent-cyan);
    }

    .copy-btn:hover {
        border-color: var(--border-cyan);
        color: var(--text-primary);
    }

    .btn-back-to-top:hover {
        background: var(--accent-cyan);
        color: var(--bg-dark);
    }

    .btn-back-to-top:hover i {
        color: var(--bg-dark);
    }

    .lightbox-btn:hover {
        background: var(--accent-cyan);
        color: var(--bg-dark);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

/* 404 page */
.not-found {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
}

.not-found h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin-bottom: 0.75rem;
}

.not-found p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Respect "reduce motion" system setting */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-showcase,
    .teaser-grid,
    .integration-block,
    .integration-block-reverse {
        grid-template-columns: 1fr;
        gap: 1.85rem;
    }

    .integration-block-reverse .integration-text {
        order: 0;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-header-block {
        flex-direction: column;
        gap: 1.35rem;
    }

    .app-detail-card {
        padding: 2.25rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-item-home { display: none; }
    .label-long { display: none; }
    .label-short { display: inline; }

    .navbar {
        padding: 0.55rem 0.85rem;
        gap: 0.5rem;
    }

    .brand-logo { height: 26px; }
    .nav-menu { gap: 0.4rem; }
    .nav-links { gap: 0.25rem; }

    .nav-link {
        padding: 5px 8px;
        font-size: 0.82rem;
        min-height: 32px;
        gap: 4px;
    }

    .nav-link i { display: none; }

    .btn-nav-legal {
        padding: 6px 10px;
        font-size: 0.82rem;
        min-height: 32px;
        gap: 5px;
    }

    .content-wrapper { padding-top: 64px; }

    .subpage-topbar {
        padding: 1.15rem 0.85rem 0;
        gap: 0.65rem;
    }

    .hero-section {
        padding: 1.25rem 0.85rem;
        min-height: auto;
    }

    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.88rem; margin-bottom: 1.25rem; }

    .hero-showcase { gap: 1.25rem; }
    .hero-track-label { font-size: 0.72rem; margin-bottom: 0.55rem; }

    .featured-card {
        padding: 0.95rem;
        gap: 0.75rem;
        border-radius: var(--radius-md);
    }

    .featured-card-logo { width: 44px; height: 44px; border-radius: 11px; }
    .featured-card h3 { font-size: 1.3rem; }
    .featured-card-tagline { font-size: 0.8rem; }
    .featured-card .badge { padding: 3px 8px; font-size: 0.64rem; }
    .featured-card-chips li { font-size: 0.72rem; padding: 3px 9px; }

    .hero-showcase .app-grid { gap: 0.7rem; }

    .hero-showcase .app-card {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        padding: 0.75rem;
        gap: 0.65rem;
        border-radius: var(--radius-md);
    }

    .hero-showcase .app-card-body { align-items: flex-start; }
    .hero-showcase .app-card-icon { width: 42px; height: 42px; border-radius: 11px; }
    .hero-showcase .app-card h3 { font-size: 0.88rem; line-height: 1.2; }
    .hero-showcase .app-card-tagline { display: none; }
    .hero-section .scroll-indicator { display: none; }

    .track-divider { padding: 3rem 1rem 0.5rem; }
    .app-detail-section { padding: 1.25rem 0.85rem; }

    .request-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1.1rem;
    }

    .playlist-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .playlist-segment:nth-child(2n) { border-right: none; }
    .playlist-segment:not(:last-child) {
        border-bottom: 1px solid var(--border-subtle);
    }
    .playlist-segment:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .video-controls { opacity: 1; }
    .deployment-paths { grid-template-columns: 1fr; }

    .desktop-gallery {
        display: flex;
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -0.5rem;
        padding: 0.25rem 0.5rem 1.5rem;
        scrollbar-width: none;
    }

    .desktop-gallery::-webkit-scrollbar { display: none; }

    .gallery-item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    .gallery-item img { aspect-ratio: 16 / 10; }

    .gallery-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: -0.5rem;
    }

    .gallery-dots i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        transition: background-color var(--transition-fast), width var(--transition-fast);
    }

    .gallery-dots i.is-active {
        width: 20px;
        border-radius: 4px;
        background: var(--accent-cyan);
    }

    .gallery-hint { display: none; }
    .process-steps { grid-template-columns: 1fr; }

    .cta-band {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1.35rem 1.15rem;
    }

    .cta-band .contact-line { justify-content: center; }

    .btn-cta, .btn-ghost, .btn-store { width: 100%; justify-content: center; }
    .store-buttons { flex-direction: column; width: 100%; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .pixel-frame { max-width: 245px; }

    .footer-container { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }

    .lightbox-prev, .lightbox-next {
        top: auto;
        bottom: 24px;
        transform: none;
    }
    .lightbox-prev { left: calc(50% - 54px); }
    .lightbox-next { right: calc(50% - 54px); }
    .lightbox-img { max-height: 70vh; }
}

@media (max-width: 420px) {
    .navbar { padding: 0.45rem 0.55rem; gap: 0.35rem; }
    .brand-logo { height: 24px; }
    .nav-menu { gap: 0.35rem; }
    .nav-link { padding: 5px 6px; font-size: 0.76rem; }
    .nav-link i { display: none; }
    .btn-nav-legal { padding: 6px 8px; font-size: 0.76rem; gap: 5px; }
}
