:root {
    /* Color Palette */
    --primary-dark: #0a0e27;
    --secondary-dark: #1a1f3a;
    --tertiary-dark: #252d4a;
    
    /* Accent Colors with Glow */
    --accent-purple: #9b6bff;
    --accent-cyan: #00d9ff;
    --accent-pink: #ff006e;
    --accent-green: #39ff14;
    
    /* UI Elements */
    --button-bg: #1e2749;
    --button-hover: #2a3355;
    --button-active: #3a4478;
    --input-bg: #1a1f3a;
    --modal-bg: #141829;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b8d4;
    --text-muted: #7a8199;
    
    /* Borders */
    --border-color: rgba(155, 107, 255, 0.15);
    --border-color-bright: rgba(0, 217, 255, 0.3);
    
    /* Shadows and Glows */
    --glow-purple: 0 0 20px rgba(155, 107, 255, 0.4);
    --glow-cyan: 0 0 20px rgba(0, 217, 255, 0.3);
    --shadow-dark: 0 10px 40px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background-color: #07111f;
    background:
        radial-gradient(1200px 700px at 50% -10%, rgba(0, 217, 255, 0.14), transparent 60%),
        radial-gradient(900px 540px at 100% 0%, rgba(155, 107, 255, 0.12), transparent 55%),
        linear-gradient(135deg, #07111f 0%, #10192d 40%, #0b1326 100%);
    background-attachment: scroll;
    background-repeat: no-repeat;
    background-size: cover;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    font-family: var(--font-sans);
    background: transparent;
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background 500ms ease, color 500ms ease;
}

/* ==================== SUBMENU ICONS ==================== */
.app-icon-img {
    position: static;
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* ==================== HEADER ==================== */
.header {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    position: relative;
    z-index: 100;
    transition: background 500ms ease, border-color 500ms ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.logo-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(155, 107, 255, 0.45));
    position: relative;
    top: 3px;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 500ms ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* ==================== NAVIGATION ==================== */
.navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: flex-start;
    margin-left: 12px;
    position: relative;
    top: 1px;
}

.nav-lang {
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.6rem 1.1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.nav-link.active {
    color: var(--accent-cyan);
    background: rgba(0, 217, 255, 0.10);
    border-color: rgba(0, 217, 255, 0.25);
}

.dropdown-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    opacity: 0.55;
    transition: transform 200ms ease, opacity 200ms ease;
}

.dropdown-arrow svg {
    width: 100%;
    height: 100%;
    display: block;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover .submenu,
.nav-dropdown.is-open .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 0.9;
}

/* ==================== SUBMENU ==================== */
.submenu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--modal-bg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 6px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    z-index: 200;
}

/* Invisible bridge so the menu doesn't close while the cursor
   crosses the gap between the trigger and the dropdown */
.submenu::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 500;
    border-radius: 9px;
    transition: color 140ms ease, background 140ms ease;
    cursor: pointer;
    white-space: nowrap;
}

.submenu-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.submenu-item:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: -2px;
}

/* Persistent active style for free-submenu items */
.submenu-item.active {
    color: var(--text-primary);
    background: rgba(0, 217, 255, 0.10);
    box-shadow: inset 3px 0 0 rgba(0, 217, 255, 0.6);
}

.submenu-item.active .app-icon img {
    filter: drop-shadow(0 0 6px rgba(0, 145, 255, 0.45));
}

.app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    flex: 1;
    padding: 2rem;
    background: transparent;
}

.home .main-content {
    padding-top: 2rem;
}

.section {
    display: none;
    animation: fadeIn 0.4s ease;
    background: transparent;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.free-scripts-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 0 8px rgba(0, 217, 255, 0.3));
}

.free-scripts-header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#free-scripts .section-content h2,
#free-scripts .free-scripts-header {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.final-landing {
    position: relative;
    isolation: isolate;
    font-family: var(--font-sans);
    font-weight: 400;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 72px;
}

.final-landing::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -2rem;
    /* Wide soft glow that fades past the content column into the page background.
       Horizontal page scroll is prevented via overflow-x on html/body, not by clipping here. */
    width: min(180vw, 2400px);
    height: clamp(520px, 64vw, 820px);
    transform: translateX(-50%);
    background:
        radial-gradient(ellipse at 20% 24%, rgba(155, 107, 255, 0.18) 0%, rgba(155, 107, 255, 0.09) 22%, rgba(155, 107, 255, 0.02) 46%, transparent 72%),
        radial-gradient(ellipse at 80% 16%, rgba(0, 217, 255, 0.16) 0%, rgba(0, 217, 255, 0.08) 22%, rgba(0, 217, 255, 0.02) 46%, transparent 72%);
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(24px) saturate(120%);
    opacity: 0.8;
    pointer-events: none;
    z-index: 0;
}

/* ---------- Hero ---------- */
.final-landing .landing-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 24px 0 8px;
}

.home .final-landing .landing-hero {
    padding-top: 16px;
}

.final-landing > * {
    position: relative;
    z-index: 1;
}

.final-landing .landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 6px 14px;
    border: 1px solid var(--border-color-bright);
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.06);
    color: var(--accent-cyan);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.final-landing .landing-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

.final-landing .landing-headline {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.final-landing .landing-subheadline {
    margin: 0 0 22px;
    max-width: 38rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Adobe apps strip (hero) ---------- */
.final-landing .landing-apps-strip {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 26px;
}

.final-landing .landing-apps-strip-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.final-landing .landing-apps-strip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.final-landing .landing-apps-strip-item {
    display: block;
    line-height: 0;
    transition: transform 0.2s ease;
}

.final-landing .landing-apps-strip-item:hover {
    transform: translateY(-1px);
}

.final-landing .landing-apps-strip-item img {
    width: 28px;
    height: 28px;
    display: block;
    object-fit: contain;
}

.final-landing .landing-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Button + microcopy stack in the hero */
.final-landing .landing-hero-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.final-landing .landing-hero-action .hero-btn {
    align-self: stretch;
}

.final-landing .landing-hero-action-note {
    font-size: 0.82rem;
    line-height: 1;
    color: var(--text-muted);
    white-space: nowrap;
}

.final-landing .landing-hero-action-note strong {
    color: var(--text-primary);
    font-weight: 700;
}

.final-landing .landing-hero-note {
    margin: 16px 0 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.final-landing .landing-hero-video iframe,
.final-landing .landing-hero-video .yt-lazy,
.final-landing .landing-hero-video .landing-direct-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    background: #000;
}

.final-landing .landing-direct-video {
    object-fit: contain;
}

/* YouTube facade (maxresdefault preview, click-to-play) */
.yt-lazy {
    position: relative;
    overflow: hidden;
    background: #000;
}

.yt-lazy-btn {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000;
}

.yt-lazy-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yt-lazy-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 68px;
    height: 48px;
    transform: translate(-50%, -50%);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.yt-lazy-play::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 10px 0 10px 18px;
    border-color: transparent transparent transparent #fff;
}

.yt-lazy-btn:hover .yt-lazy-play {
    background: #ff0033;
}

.yt-lazy iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

/* ---------- CTA buttons ---------- */
.final-landing .hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.final-landing .hero-btn:hover {
    transform: translateY(-2px);
}

.final-landing .hero-btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.final-landing .hero-btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 217, 255, 0.28);
}

.final-landing .hero-btn-primary:hover {
    box-shadow: 0 16px 36px rgba(0, 217, 255, 0.38);
}

.final-landing .hero-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.final-landing .hero-btn-secondary:hover {
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(0, 217, 255, 0.08);
}

/* ---------- Product showcase ---------- */
.final-landing .landing-showcase {
    max-width: 980px;
    margin: 64px auto 0;
    padding: 10px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.10), rgba(155, 107, 255, 0.10));
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}

.final-landing .landing-showcase img {
    display: block;
    width: 100%;
    border-radius: 12px;
}

/* ---------- Section rhythm & headings ---------- */
.final-landing .landing-section {
    margin: 104px auto 0;
    max-width: 1100px;
    text-align: center;
}

.final-landing .landing-subtitle {
    display: block;
    margin: 0 0 36px;
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    text-align: center;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: currentColor;
}

/* ---------- Steps ---------- */
.final-landing .landing-video-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.final-landing .landing-hero-video {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.final-landing .landing-video-card {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.final-landing .landing-video-card:hover {
    border-color: rgba(0, 217, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.final-landing .landing-video-card video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.final-landing .landing-video-caption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 0 4px 4px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-primary);
}

.final-landing .landing-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
}

/* ---------- Ecosystem ---------- */
.final-landing .landing-ecosystem-copy {
    max-width: 44rem;
    margin: 0 auto 28px;
    font-size: 1.075rem;
    line-height: 1.65;
    color: var(--text-secondary);
    text-align: center;
}

.final-landing .landing-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.final-landing .landing-ecosystem-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.final-landing .landing-ecosystem-card:hover {
    border-color: rgba(0, 217, 255, 0.3);
    background: rgba(255, 255, 255, 0.055);
    transform: translateY(-2px);
}

.final-landing .landing-ecosystem-card img {
    width: 36px;
    height: 35px;
    border-radius: 8px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.final-landing .landing-ecosystem-app {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.25;
}

/* ---------- Features ---------- */
.final-landing .landing-features-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.final-landing .landing-features-list > li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 0.975rem;
    line-height: 1.55;
    color: var(--text-secondary);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.final-landing .landing-features-list > li:hover {
    border-color: rgba(0, 217, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.final-landing .landing-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.2);
    color: var(--accent-cyan);
}

.final-landing .landing-feature-icon svg {
    width: 19px;
    height: 19px;
}

.final-landing .landing-feature-icon--logos {
    position: relative;
    overflow: visible;
}

.final-landing .landing-feature-icon--logos .landing-editor-logo {
    position: absolute;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}

.final-landing .landing-feature-icon--logos .landing-editor-logo--vscode {
    top: 7px;
    left: 6px;
    transform: rotate(-14deg);
    z-index: 1;
}

.final-landing .landing-feature-icon--logos .landing-editor-logo--cursor {
    top: 14px;
    left: 15px;
    transform: rotate(12deg);
    z-index: 2;
}

/* ---------- Requirements ---------- */
.final-landing .landing-requirements .landing-subtitle {
    margin-bottom: 24px;
}

.final-landing .landing-requirements-list {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.final-landing .landing-requirements-list p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.final-landing .landing-requirements-list p::before {
    content: "✓";
    color: #34d399;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---------- Tutorial ---------- */
.final-landing .landing-tutorial-copy {
    max-width: 40rem;
    margin: 0 auto 32px;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.final-landing .landing-video-frame {
    display: flex;
    justify-content: center;
}

.final-landing .landing-video-frame iframe,
.final-landing .landing-video-frame .yt-lazy,
.final-landing .landing-video-frame .landing-direct-video {
    width: 100%;
    max-width: 860px;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    background: #000;
}

.final-landing .landing-video-card video {
    width: 100%;
    aspect-ratio: 450 / 301;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
}

/* ---------- Closing CTA ---------- */
.final-landing .landing-cta-card {
    position: relative;
    overflow: hidden;
    padding: 56px 32px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.08), rgba(155, 107, 255, 0.10));
    border: 1px solid var(--border-color-bright);
    border-radius: 24px;
}

.final-landing .landing-cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(480px 220px at 50% 0%, rgba(0, 217, 255, 0.10), transparent 70%);
    pointer-events: none;
}

.final-landing .landing-cta-card > * {
    position: relative;
}

.final-landing .landing-cta-title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: currentColor;
    display: block;
}

.final-landing .landing-cta-copy {
    max-width: 34rem;
    margin: 0 auto 26px;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* ---------- Pricing ---------- */
.final-landing .landing-price {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin: 0 auto 28px;
}

.final-landing .landing-price-amount {
    font-size: 3.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text-primary);
}

.final-landing .landing-price-currency {
    font-size: 0.55em;
    font-weight: 700;
    vertical-align: 0.45em;
    margin-right: 2px;
    color: var(--text-secondary);
}

.final-landing .landing-price-terms {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    text-align: left;
}

.final-landing .landing-price-term {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.925rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-secondary);
    white-space: nowrap;
}

.final-landing .landing-price-term::before {
    content: "✓";
    color: #34d399;
    font-weight: 700;
}

.final-landing .landing-cta .landing-hero-actions {
    justify-content: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .final-landing .landing-hero {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 20px;
        text-align: center;
    }

    .home .final-landing .landing-hero {
        padding-top: 12px;
    }

    .final-landing .landing-hero-copy {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .final-landing .landing-apps-strip {
        align-items: center;
    }

    .final-landing .landing-apps-strip-list {
        justify-content: center;
    }

    .final-landing .landing-hero-actions {
        justify-content: center;
    }

    .final-landing .landing-section {
        margin-top: 76px;
    }

    .final-landing .landing-showcase {
        margin-top: 48px;
    }

    .final-landing .landing-ecosystem-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .final-landing .landing-features-list {
        grid-template-columns: 1fr;
    }

    .final-landing .landing-ecosystem-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .final-landing .landing-apps-strip-item img {
        width: 28px;
        height: 28px;
    }

    .final-landing .hero-btn {
        flex: 1 1 auto;
        min-width: min(200px, 100%);
        width: 100%;
    }

    /* In the hero the buttons are wrapped in stacks with microcopy,
       so the stack is the flex item that should grow */
    .final-landing .landing-hero-action {
        flex: 1 1 100%;
        min-width: 0;
        width: 100%;
        max-width: 320px;
    }

    .final-landing .landing-requirements-list {
        padding: 20px 24px;
    }

    .final-landing .landing-cta-card {
        padding: 40px 20px;
    }
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: none;
    z-index: 300;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: block;
}

/* Render Script Modals - identical styling to extension */
.modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
}

.modal .modal-content {
    position: relative;
    margin: auto;
    align-self: center;
    width: min(700px, 100%);
    max-width: 700px;
    max-height: calc(100vh - 40px);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overflow-y: auto;
    z-index: 401;
    padding: 0;
    color: #fff;
    animation: renderScriptSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes renderScriptSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal,
.modal * {
    font-family: var(--font-sans);
}

.modal-header {
    position: relative;
    padding: 24px 32px 20px;
    background: linear-gradient(135deg, rgba(100, 200, 255, 0.1) 0%, rgba(150, 100, 255, 0.1) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    flex: none;
    
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: all 200ms ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 28px;
    color: rgba(255, 255, 255, 0.85);
    /* scrollbar-width: thin; */
    /* scrollbar-color: rgba(100, 200, 255, 0.3) rgba(255, 255, 255, 0.05); */
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(100, 200, 255, 0.3);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 200, 255, 0.5);
}

.modal-footer {
    padding: 16px 32px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-shrink: 0;
}

/* ==================== FORM ELEMENTS ==================== */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 12px;
}

.form-row:first-child {
    margin-top: 6px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row label {
    display: block;
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.4px;
    
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* min-width: 140px; */
    flex-shrink: 0;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row select {
    flex: 1;
    max-width: 300px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 5px;
    /* color: #f3f3f3; */
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    font-size: 12px;
    transition: all 200ms ease;
    font-family: var(--font-sans);
    box-sizing: border-box;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="password"]:focus,
.form-row input[type="number"]:focus,
.form-row select:focus {
    outline: none;
    border-color: rgba(100, 200, 255, 0.5);
    box-shadow: 0 0 10px rgba(100, 200, 255, 0.2);
    background: rgba(100, 200, 255, 0.08);
}

.form-row select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(255,255,255,0.7)' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 28px;
    border-radius: 8px;
}

.form-row select option {
    background-color: rgba(20, 24, 41, 0.95);
    color: #ffffff;
    padding: 8px;
    border: none;
    border-radius: 4px;
}


.form-row select option:hover {
    background-color: rgba(50, 60, 100, 0.95);
    color: #ffffff;
}

.form-row select option:checked {
    background: linear-gradient(rgba(100, 200, 255, 0.3), rgba(100, 200, 255, 0.3));
    background-color: rgba(100, 200, 255, 0.2);
    color: #ffffff;
}

/* ==================== CUSTOM SELECT ==================== */
.custom-select {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px;
}

.custom-select-button {
    flex: 1;
    max-width: 300px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 200ms ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(255,255,255,0.7)' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.custom-select-button:hover {
    border-color: rgba(100, 200, 255, 0.5);
    background-color: rgba(100, 200, 255, 0.08);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(20, 24, 41, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    margin-top: 4px;
    display: none;
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.custom-select-dropdown.active {
    display: block;
}

.custom-select-option {
    padding: 10px 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 150ms ease;
    border-radius: 4px;
    margin: 2px 4px;
    font-size: 12px;
}

.custom-select-option:hover {
    background-color: rgba(100, 200, 255, 0.2);
    color: #ffffff;
}

.custom-select-option.active {
    background-color: rgba(100, 200, 255, 0.3);
    color: #ffffff;
}




.form-row input::placeholder,
.form-row textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    opacity:0.4;
    font-size: 0.9em;
}

/* ==================== RADIO & CHECKBOX ==================== */
.visually-hidden-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    justify-content: flex-end;
}

.form-row .radio-row {
    margin-bottom: 0;
}

.form-row[id*="SpecifiedNameRow"],
.form-row[id*="specifiedNameRow"],
.form-row[id*="ExtensionRow"] {
    max-height: 60px;
    opacity: 1;
    overflow: hidden;
    transition: opacity 300ms ease, max-height 300ms ease, margin-bottom 300ms ease;
}

.form-row[id*="SpecifiedNameRow"].hidden,
.form-row[id*="specifiedNameRow"].hidden,
.form-row[id*="ExtensionRow"].hidden {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    pointer-events: none;
}

/* Override extension row styles for .hidden class */
#prModal #renderExtensionRow.hidden {
    max-height: 0 !important;
    overflow: hidden !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

#prModal #renderExtensionRow.hidden > label {
    opacity: 0 !important;
    pointer-events: none !important;
}

#prModal #renderExtensionRow.hidden > #renderExtension {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* .hidden {
    display: none !important;
} */

.period-btn {
    
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 220ms cubic-bezier(.2,.9,.2,1), transform 160ms ease;
    white-space: nowrap;
    margin: 0;
    opacity:0.8;
}

.period-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    /* transform: translateY(-1px); */
    opacity:1;
}

input[type="radio"]:checked + .period-btn,
input[type="radio"]:checked + label.period-btn {
    background: #06b6d4;
    border-color: #06b6d4;
    color: #07262a;
}

.alignment-btn {
    display: inline-block;
    text-align: center;
}

/* ==================== SWITCH ==================== */
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    
    -webkit-user-select: none;
    user-select: none;
    width: 60px;
    height: 24px;
    flex: 0 0 55px;
}

.switch input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: all 180ms ease;
    overflow: hidden;
}

.slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 1px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 50%;
    transition: all 180ms ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
}

input:checked + .slider {
    background: linear-gradient(90deg, #06b6d4 0%, #06b6d4 35%, #8b5cf6 65%, #8b5cf6 100%);
    background-clip: padding-box;
    border-color: rgba(0, 0, 0, 0.12);
}

input:checked + .slider::before {
    transform: translateY(-50%) translateX(26.5px);
    background: #fff;
}

/* Locked/disabled switch state */
input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

input:disabled + .slider::before {
    box-shadow: none;
}

.switchRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    margin-bottom: 8px;
    position: relative;
}

.switchRow label:first-child {
    margin-bottom: 0;
    min-width: 140px;
    flex-shrink: 0;
}

.switchRow .switch {
    margin-left: auto;
}

/* ==================== FILE SELECT ==================== */
.file-select-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    max-width:380px;
    position: relative;
}

.file-select-row.drag-over {
    outline: 2px dashed rgba(0, 217, 255, 0.6);
    outline-offset: 4px;
    border-radius: 8px;
    /* width: 500px; */
}

.upload-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    font-size: 16px;
}

.upload-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.folder-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
    font-size: 16px;
}

.folder-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.file-select-row input {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
}

#eprFile {
    flex: 1;
    min-width: 300px;
    max-width: 300px;
    color: rgba(255, 255, 255, 0.6);
}

#eprFile:disabled {
    background-color: rgba(255, 255, 255, 0.02);
    cursor: default;
}

.epr-file-clear-btn {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.epr-file-clear-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

.epr-file-wrapper {
    position: relative;
}

.epr-file-wrapper.has-file .epr-file-clear-btn {
    display: flex;
}

/* ==================== BUTTONS ==================== */
.btn-primary,
.btn-secondary {
    padding: 8px 24px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 200ms ease;
}

.btn-primary {
    background: linear-gradient(180deg, #06b6d4 0%, #0597aa 100%);
    border: none;
    color: #07262a;
    font-weight: 600;
    font-family: var(--font-sans);
    padding: 8px 14px;
    border-radius: 10px;
    min-width: 72px;
    transition: transform 140ms cubic-bezier(.2,.9,.2,1), box-shadow 160ms ease, background 120ms ease, opacity 120ms ease;
}

.btn-primary:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.96;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-sans);
    padding: 8px 14px;
    border-radius: 10px;
    min-width: 72px;
    transition: transform 140ms cubic-bezier(.2,.9,.2,1), box-shadow 160ms ease, background 120ms ease, opacity 120ms ease;
}

.btn-secondary:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.96;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 217, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 217, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    /*
      Mobile header layout:
      [ Logo ........................ EN ▾ ]
      [ Nav item 1 ] [ Nav item 2 ]
    */
    .header-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "logo lang"
            "nav nav";
        align-items: center;
        gap: 0.7rem 0.6rem;
        padding: 0.7rem 1rem 0.8rem;
        min-width: 0;
    }

    .logo {
        grid-area: logo;
        min-width: 0;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        top: 2px;
        flex-shrink: 0;
    }

    .logo-text {
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-lang {
        grid-area: lang;
        margin-left: 0;
        justify-self: end;
    }

    .nav-lang .nav-link {
        padding: 0.45rem 0.75rem;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 255, 255, 0.12);
        min-height: 36px;
        cursor: pointer;
        user-select: none;
    }

    .navigation {
        grid-area: nav;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        top: 0;
        padding: 3px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.045);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .navigation .nav-dropdown {
        display: flex;
        min-width: 0;
        min-height: 100%;
    }

    .navigation .nav-dropdown + .nav-dropdown {
        box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
    }

    .navigation .nav-link {
        position: relative;
        flex: 1;
        justify-content: center;
        align-items: center;
        text-align: center;
        white-space: normal;
        font-size: 0.8rem;
        line-height: 1.25;
        padding: 0.6rem 1.35rem 0.6rem 0.55rem;
        min-height: 44px;
        height: 100%;
        border: none;
        border-radius: 11px;
        background: transparent;
    }

    .navigation .nav-link:hover,
    .navigation .nav-dropdown.is-open > .nav-link {
        background: rgba(255, 255, 255, 0.06);
        border-color: transparent;
    }

    /* Pin both chevrons to the same vertical midpoint of the equal-height cells */
    .navigation .dropdown-arrow {
        position: absolute;
        right: 0.4rem;
        top: 50%;
        flex-shrink: 0;
        transform: translateY(-50%);
    }

    .navigation .nav-dropdown:hover .dropdown-arrow,
    .navigation .nav-dropdown.is-open .dropdown-arrow {
        transform: translateY(-50%) rotate(180deg);
    }

    .submenu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: auto;
        min-width: min(220px, calc(100vw - 2rem));
        max-width: calc(100vw - 2rem);
    }

    .nav-lang .submenu {
        left: auto;
        right: 0;
    }

    .main-content {
        padding: 1rem;
        max-width: 100%;
    }

    .section-content {
        max-width: 100%;
        min-width: 0;
    }

    .section-content h2 {
        font-size: 1.75rem;
    }
}

/* Portrait phones: RSC modals go edge-to-edge so form controls fit */
@media (max-width: 768px) and (orientation: portrait) {
    #aeModal,
    #prModal,
    #psModal {
        padding: 0;
        align-items: stretch;
    }

    #aeModal .modal-content,
    #prModal .modal-content,
    #psModal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        animation: none;
    }

    #aeModal .modal-header,
    #prModal .modal-header,
    #psModal .modal-header {
        padding: 16px 48px 14px 16px;
    }

    #aeModal .modal-header h2,
    #prModal .modal-header h2,
    #psModal .modal-header h2 {
        font-size: 1.15rem;
        text-align: center;
    }

    #aeModal .modal-close,
    #prModal .modal-close,
    #psModal .modal-close {
        right: 12px;
    }

    #aeModal .modal-body,
    #prModal .modal-body,
    #psModal .modal-body {
        padding: 12px 14px;
    }

    #aeModal .modal-footer,
    #prModal .modal-footer,
    #psModal .modal-footer {
        padding: 12px 14px;
    }

    #aeModal .form-row,
    #prModal .form-row,
    #psModal .form-row {
        gap: 8px;
        min-width: 0;
    }

    #aeModal .form-row > *,
    #prModal .form-row > *,
    #psModal .form-row > * {
        min-width: 0;
    }

    #aeModal .form-row input[type="text"],
    #aeModal .form-row input[type="number"],
    #aeModal .form-row select,
    #prModal .form-row input[type="text"],
    #prModal .form-row input[type="number"],
    #prModal .form-row select,
    #psModal .form-row input[type="text"],
    #psModal .form-row input[type="number"],
    #psModal .form-row select {
        max-width: 100%;
        min-width: 0;
    }

    #aeModal .radio-row,
    #prModal .radio-row,
    #psModal .radio-row {
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 100%;
    }
}

/* Landscape phones: use most of the width, keep a small breathing gutter */
@media (max-width: 960px) and (orientation: landscape) {
    #aeModal,
    #prModal,
    #psModal {
        padding: 8px 12px;
    }

    #aeModal .modal-content,
    #prModal .modal-content,
    #psModal .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 16px);
        border-radius: 12px;
        animation: none;
    }

    #aeModal .modal-header,
    #prModal .modal-header,
    #psModal .modal-header {
        padding: 12px 44px 10px 14px;
    }

    #aeModal .modal-header h2,
    #prModal .modal-header h2,
    #psModal .modal-header h2 {
        font-size: 1.05rem;
    }

    #aeModal .modal-close,
    #prModal .modal-close,
    #psModal .modal-close {
        right: 10px;
    }

    #aeModal .modal-body,
    #prModal .modal-body,
    #psModal .modal-body {
        padding: 10px 14px;
    }

    #aeModal .modal-footer,
    #prModal .modal-footer,
    #psModal .modal-footer {
        padding: 10px 14px;
    }
}

/* Very narrow phones: keep the same 2-row header, tighten type a bit */
@media (max-width: 380px) {
    .logo-text {
        font-size: 0.95rem;
    }

    .navigation .nav-link {
        font-size: 0.74rem;
        padding: 0.5rem 0.4rem;
    }
}

/* ==================== EPR FILES LIST DROPDOWN MENU ==================== */
#eprListModal {
    position: fixed;
    display: none;
    z-index: 2000;
    background: rgba(20, 20, 30, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 1px rgba(0, 217, 255, 0.2);
    padding: 0;
    max-height: 420px;
    width: 350px;
    overflow: hidden;
    flex-direction: column;
}

#eprListModal.active {
    display: flex;
}

.epr-dropdown-search-wrapper {
    flex-shrink: 0;
    padding: 12px;
    padding-top: 12px;
    /* border-top: 1px solid rgba(255, 255, 255, 0.1); */
    background: rgba(255, 255, 255, 0.02);
}

.epr-dropdown-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
    box-sizing: border-box;
    height: 28px;
}

.epr-dropdown-search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.2);
}

.epr-dropdown-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.epr-dropdown-files-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.epr-files-loading {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.epr-file-item {
    padding: 8px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background 0.15s;
    word-break: break-word;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
}

.epr-file-item:hover {
    background: rgba(0, 217, 255, 0.1);
    color: rgba(0, 217, 255, 0.9);
}

.epr-file-item:last-child {
    border-bottom: none;
}

.epr-no-results {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.epr-files-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}


.epr-files-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Scrollbar styling */
.epr-files-list::-webkit-scrollbar {
    width: 8px;
}

.epr-files-list::-webkit-scrollbar-track {
    background: transparent;
}

.epr-files-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.epr-files-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ==================== EXTENSION DOWNLOAD MODAL ==================== */
#downloadModal .modal-content {
    max-width: 580px;
}

.download-modal-body {
    padding: 24px 32px 30px;
}

.download-modal-body a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    word-break: break-word;
    transition: color 0.2s ease;
}

.download-modal-body a:hover {
    color: #7ae8ff;
    text-decoration: underline;
}

.download-status {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 12px;
}

.download-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    color: #34d399;
}

.download-status-icon svg {
    width: 20px;
    height: 20px;
}

.download-status p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.download-status strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.download-install-guide {
    margin-top: 26px;
    text-align: left;
}

.download-install-guide h3 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.download-install-guide p {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.download-install-guide p:last-child {
    margin-bottom: 0;
}

.download-install-guide strong {
    color: var(--text-primary);
}

.download-install-guide ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.download-install-guide ol > li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.download-install-guide ul {
    margin: 8px 0 0;
    padding-left: 20px;
    list-style: disc;
}

.download-install-guide ul li {
    margin-bottom: 6px;
}

.download-install-guide code {
    padding: 1px 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    font-size: 0.875em;
    color: var(--accent-cyan);
}

/* ==================== BUY COMING SOON MODAL ==================== */
#buyModal .modal-content {
    max-width: 560px;
}

.buy-status {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    margin-bottom: 20px;
}

.buy-status-icon {
    color: #fbbf24;
}

.buy-status p {
    margin: 0;
    line-height: 1.5;
    color: var(--text-secondary);
}

.buy-status strong {
    color: var(--text-primary);
    font-weight: 600;
}

.buy-installers-list {
    margin: 12px 0 0;
    padding-left: 18px;
}

.buy-installers-list > li {
    margin-bottom: 14px;
    line-height: 1.55;
}

.buy-installers-list > li:last-child {
    margin-bottom: 0;
}

#buyModal .modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0 32px 24px;
}

@media (max-width: 600px) {
    .download-modal-body {
        padding: 18px 20px 24px;
    }

    .download-status {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* ==================== SUPPORT WIDGET ==================== */
.msc-support {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    font-family: var(--font-sans);
}

.msc-support-fab {
    position: relative;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(145deg, #00d9ff 0%, #6b8cff 45%, #9b6bff 100%);
    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 0 24px rgba(0, 217, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.msc-support-fab:hover {
    transform: scale(1.06);
    box-shadow:
        0 10px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 0 32px rgba(155, 107, 255, 0.35);
}

.msc-support-fab:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

.msc-support-fab-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.msc-support-fab-icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
}

.msc-support.is-open .msc-support-fab-icon--chat {
    opacity: 0;
    transform: rotate(90deg) scale(0.6);
}

.msc-support.is-open .msc-support-fab-icon--close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.msc-support-panel {
    width: min(340px, calc(100vw - 32px));
    background: linear-gradient(180deg, rgba(28, 34, 58, 0.98), rgba(16, 22, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 217, 255, 0.08);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.msc-support.is-open .msc-support-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.msc-support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.12), rgba(155, 107, 255, 0.14));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.msc-support-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.msc-support-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.msc-support-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.msc-support-body {
    padding: 18px 18px 20px;
}

.msc-support-body p {
    margin: 0 0 12px;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.msc-support-email {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.msc-support-email:hover {
    color: #5ee7ff;
    text-decoration: underline;
}

@media (max-width: 480px) {
    .msc-support {
        right: 14px;
        bottom: 14px;
    }

    .msc-support-fab {
        width: 52px;
        height: 52px;
    }
}

/* ==================== SITE FOOTER ==================== */
.site-footer {
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.18));
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-footer-name {
    font-size: 0.95rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.site-footer-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.site-footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.site-footer-link:hover,
.site-footer-link.is-current {
    color: var(--accent-cyan);
}

/* ==================== PRIVACY PAGE ==================== */
.privacy-page {
    padding: 2.5rem 1.5rem 3rem;
}

.privacy-article {
    max-width: 760px;
    margin: 0 auto;
}

.privacy-hero {
    text-align: center;
    margin-bottom: 2.75rem;
    padding: 2rem 1.25rem 2.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background:
        radial-gradient(ellipse 80% 70% at 50% 0%, rgba(0, 217, 255, 0.12), transparent 60%),
        radial-gradient(ellipse 70% 60% at 80% 100%, rgba(155, 107, 255, 0.10), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.privacy-hero-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.1rem;
    filter: drop-shadow(0 0 18px rgba(0, 217, 255, 0.28));
}

.privacy-hero-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.privacy-eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.privacy-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: #ffffff;
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #ffffff;
}

.privacy-updated {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.privacy-body {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.privacy-section {
    padding: 1.35rem 1.4rem 1.45rem;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.privacy-section h2 {
    margin: 0 0 0.85rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.privacy-section p {
    margin: 0 0 0.75rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.privacy-section p:last-child {
    margin-bottom: 0;
}

.privacy-section ul {
    margin: 0.35rem 0 0.85rem;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.privacy-section li {
    margin: 0.35rem 0;
    line-height: 1.55;
    font-size: 0.95rem;
}

.privacy-list-muted li {
    color: var(--text-muted);
}

.privacy-callout {
    padding: 0.85rem 1rem;
    border-left: 3px solid var(--accent-cyan);
    border-radius: 0 10px 10px 0;
    background: rgba(0, 217, 255, 0.06);
    color: var(--text-primary) !important;
}

.privacy-section-contact {
    border-color: rgba(0, 217, 255, 0.22);
    background:
        linear-gradient(135deg, rgba(0, 217, 255, 0.06), rgba(155, 107, 255, 0.05));
}

.privacy-email-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: baseline;
}

.privacy-email-row strong {
    color: var(--text-primary);
}

.privacy-email-row a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.privacy-email-row a:hover {
    text-decoration: underline;
    color: #5ee7ff;
}

.privacy-section a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

.privacy-section a:hover {
    color: #5ee7ff;
    text-decoration: underline;
}

.refund-deadline-note {
    margin: 0 !important;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* ==================== BUSINESS INFO PAGE ==================== */
.business-info-list {
    gap: 1.15rem;
}

.business-info-card {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1.35rem 1.5rem;
}

.business-info-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--accent-cyan);
    background:
        linear-gradient(145deg, rgba(0, 217, 255, 0.14), rgba(155, 107, 255, 0.10));
    border: 1px solid rgba(0, 217, 255, 0.22);
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.12);
}

.business-info-icon svg {
    width: 26px;
    height: 26px;
}

.business-info-content {
    min-width: 0;
}

.business-info-label {
    margin: 0 0 0.3rem !important;
    font-size: 0.82rem !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    font-weight: 600;
}

.business-info-value {
    margin: 0 !important;
    font-size: 1.15rem !important;
    line-height: 1.4 !important;
    font-weight: 700;
    color: var(--text-primary) !important;
    word-break: break-word;
}

.business-info-value a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 700;
}

.business-info-value a:hover {
    color: #5ee7ff;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .site-footer-inner {
        padding: 1.25rem 1.25rem 1.75rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .privacy-page {
        padding: 1.5rem 1rem 2rem;
    }

    .privacy-section {
        padding: 1.1rem 1rem 1.2rem;
    }

    .business-info-card {
        padding: 1.15rem 1rem;
        gap: 0.95rem;
    }

    .business-info-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .business-info-icon svg {
        width: 22px;
        height: 22px;
    }

    .business-info-value {
        font-size: 1.05rem !important;
    }
}

