/* ============================================================
   MyDeskMate Tools — by MyDeskMate
   Full-3D design system: aurora space, glassmorphism, 3D tilt,
   neon glows, scroll reveals, rich footer.
   ============================================================ */

:root {
    --bg-primary: #05060e;
    --bg-secondary: #0a0c18;
    --bg-card: rgba(18, 20, 38, 0.55);
    --bg-card-solid: #141730;
    --bg-input: rgba(10, 12, 26, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text-primary: #f2f3fa;
    --text-secondary: #a2a7c4;
    --text-muted: #6b7090;

    --accent: #7c5cff;
    --accent-2: #ff5ce1;
    --accent-3: #35e0ff;
    --accent-blue: #3b82f6;
    --success: #00e5a0;
    --error: #ff5f6d;
    --warning: #ffd166;

    --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
    --grad-soft: linear-gradient(120deg, rgba(124, 92, 255, 0.35), rgba(255, 92, 225, 0.35), rgba(53, 224, 255, 0.35));

    --glow-violet: rgba(124, 92, 255, 0.45);
    --glow-pink: rgba(255, 92, 225, 0.35);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------- Reset & base ---------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

/* Visible focus rings for keyboard users (never harm the neon look) */
:focus-visible {
    outline: 2px solid var(--accent-3);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Everything interactive gets a minimum touch target on mobile */
@media (hover: none) {
    button, a, input, .wm-dropzone { touch-action: manipulation; }
    .mode-btn, .quality-btn, .wm-pos-btn { min-height: 44px; }
    .convert-btn, .cta-primary, .cta-ghost, .download-btn, .ext-btn, .retry-btn { min-height: 48px; }
}

::selection { background: rgba(124, 92, 255, 0.5); color: #fff; }

/* ---------------- Background layers ---------------- */
.noise {
    position: fixed; inset: 0;
    pointer-events: none; z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 256px 256px;
}

.bg-3d {
    position: fixed; inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Aurora blobs — visible even when WebGL is off */
.aurora {
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
    overflow: hidden;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    will-change: transform;
}
.blob-1 {
    width: 55vw; height: 55vw;
    left: -14vw; top: -16vw;
    background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 65%);
    animation: aurora-a 26s ease-in-out infinite alternate;
}
.blob-2 {
    width: 48vw; height: 48vw;
    right: -12vw; top: 12vh;
    background: radial-gradient(circle, rgba(255, 92, 225, 0.4), transparent 65%);
    animation: aurora-b 32s ease-in-out infinite alternate;
}
.blob-3 {
    width: 50vw; height: 50vw;
    left: 22vw; bottom: -20vw;
    background: radial-gradient(circle, rgba(53, 224, 255, 0.32), transparent 65%);
    animation: aurora-c 38s ease-in-out infinite alternate;
}
@keyframes aurora-a { to { transform: translate(9vw, 7vh) scale(1.15); } }
@keyframes aurora-b { to { transform: translate(-8vw, -6vh) scale(1.1); } }
@keyframes aurora-c { to { transform: translate(6vw, -9vh) scale(1.2); } }

/* Subtle perspective grid floor */
.grid-overlay {
    position: fixed; inset: 0;
    z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(124, 92, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 92, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
    opacity: 0.7;
}

/* ---------------- Layout ---------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 70px;
    position: relative;
    z-index: 1;
}

/* ---------------- Header ---------------- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0 10px;
    margin-bottom: 44px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(5, 6, 14, 0.6);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 13px;
    background: var(--grad);
    box-shadow: 0 6px 22px var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: float 3.5s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: linear-gradient(120deg, #fff 10%, #d9d4ff 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.15;
}
.logo-subtitle {
    font-size: 10.5px;
    color: var(--text-secondary);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-weight: 600;
}
.logo-subtitle b { color: var(--accent-3); font-weight: 700; }

.header-right { display: flex; align-items: center; gap: 10px; }

.owned-chip {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px;
    font-size: 12.5px; font-weight: 600;
    color: #e8e6ff;
    border-radius: 999px;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.35);
    box-shadow: 0 0 18px rgba(124, 92, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.owned-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 24px var(--glow-violet); }
.owned-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
    animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 13px;
    font-size: 12.5px; font-weight: 700;
    color: #d9fff3;
    border-radius: 999px;
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.32);
    white-space: nowrap;
}
.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

/* ---------------- Hero ---------------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 46px 0 54px;
    perspective: 1200px;
}

.hero-content { flex: 1; min-width: 0; }

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    font-size: 13px; font-weight: 600;
    color: var(--accent-3);
    border-radius: 999px;
    background: rgba(53, 224, 255, 0.08);
    border: 1px solid rgba(53, 224, 255, 0.3);
    box-shadow: 0 0 24px rgba(53, 224, 255, 0.12);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(34px, 5.2vw, 54px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.6px;
    margin-bottom: 18px;
    text-shadow: 0 10px 40px rgba(5, 6, 14, 0.6);
}

.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 22px rgba(124, 92, 255, 0.45));
}

.hero-subtitle {
    font-size: 16.5px;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.cta-primary, .cta-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 26px;
    font-size: 15px; font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, filter 0.25s ease;
    position: relative; overflow: hidden;
}
.cta-primary {
    color: #fff;
    background: var(--grad);
    background-size: 160% 160%;
    box-shadow: 0 10px 34px var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    animation: grad-shift 6s ease infinite;
}
@keyframes grad-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-primary:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 44px var(--glow-violet); }
.cta-primary::after {
    content: "";
    position: absolute; top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s var(--ease-out);
}
.cta-primary:hover::after { left: 130%; }

.cta-ghost {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-strong);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.cta-ghost:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.5); box-shadow: 0 10px 30px rgba(124, 92, 255, 0.18); }

.hero-graphic {
    position: relative;
    width: 300px; height: 300px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    transform-style: preserve-3d;
}

.pulse-ring {
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    border: 1.5px solid rgba(124, 92, 255, 0.4);
    animation: pulse 4s var(--ease-out) infinite;
}
.pulse-ring.delay-1 { animation-delay: 1.3s; }
.pulse-ring.delay-2 { animation-delay: 2.6s; }
@keyframes pulse {
    0% { transform: scale(0.55); opacity: 0.9; }
    100% { transform: scale(1.35); opacity: 0; }
}

.hero-icon {
    width: 132px; height: 132px;
    display: flex; align-items: center; justify-content: center;
    font-size: 60px;
    border-radius: 38px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 50px rgba(124, 92, 255, 0.25);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    animation: float3d 6s ease-in-out infinite;
    transform-style: preserve-3d;
    z-index: 2;
}
@keyframes float3d {
    0%, 100% { transform: translateY(0) rotateX(12deg) rotateY(-14deg) rotateZ(-2deg); }
    50% { transform: translateY(-8px) rotateX(16deg) rotateY(-10deg) rotateZ(2deg); }
}

.hero-chip {
    position: absolute;
    padding: 7px 13px;
    font-size: 12px; font-weight: 700;
    letter-spacing: 0.5px;
    color: #fff;
    border-radius: 10px;
    background: rgba(18, 20, 38, 0.8);
    border: 1px solid var(--border-strong);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(124, 92, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 3;
    animation: float 5s ease-in-out infinite;
}
.chip-a { top: 14%; left: 0%; background: linear-gradient(120deg, rgba(124,92,255,.9), rgba(124,92,255,.55)); }
.chip-b { top: 62%; right: -2%; animation-delay: 1.2s; background: linear-gradient(120deg, rgba(255,92,225,.9), rgba(255,92,225,.55)); }
.chip-c { bottom: 6%; left: 8%; animation-delay: 2.1s; background: linear-gradient(120deg, rgba(53,224,255,.9), rgba(53,224,255,.5)); }

/* ---------------- Stats strip ---------------- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 8px 0 40px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}
.stat-item { text-align: center; }
.stat-value {
    font-size: 26px; font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.stat-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; font-weight: 500; }

/* ---------------- Cards (converter + wm) ---------------- */
.converter-card {
    position: relative;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: border-color 0.3s ease, box-shadow 0.4s ease;
}
.converter-card:hover { border-color: rgba(124, 92, 255, 0.4); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(124, 92, 255, 0.12); }

/* Faint gradient edge so cards pop against the aurora */
.converter-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(140deg, rgba(124, 92, 255, 0.35), transparent 30%, transparent 70%, rgba(53, 224, 255, 0.28));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.converter-card:hover::before { opacity: 1; }

/* 3D tilt (values set by 3d.js) */
.tilt-card {
    transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
    transition: transform 0.16s ease-out, border-color 0.3s ease, box-shadow 0.4s ease;
    will-change: transform;
}

/* glass shine that follows the cursor */
.card-shine {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        420px circle at var(--gx, 50%) var(--gy, 50%),
        rgba(255, 255, 255, 0.09),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}
.converter-card:hover .card-shine { opacity: 1; }

.card-glow {
    position: absolute;
    top: -40%; left: 50%;
    width: 120%; height: 60%;
    transform: translateX(-50%);
    background: var(--grad-soft);
    filter: blur(70px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: glow-drift 8s ease-in-out infinite alternate;
}
@keyframes glow-drift { to { transform: translateX(-40%) translateY(18px); opacity: 0.5; } }

.converter-card > *:not(.card-glow):not(.card-shine) { position: relative; z-index: 2; }

/* ---------------- Inputs ---------------- */
.input-section { margin-bottom: 4px; }

.input-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.input-group { display: flex; gap: 10px; }

.url-input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.url-input::placeholder { color: var(--text-muted); }
.url-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18), 0 0 26px rgba(124, 92, 255, 0.2);
}
.url-input.valid { border-color: rgba(0, 229, 160, 0.5); }

.convert-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 26px;
    font-size: 15px; font-weight: 700;
    font-family: var(--font);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    background: var(--grad);
    background-size: 160% 160%;
    cursor: pointer;
    box-shadow: 0 8px 28px var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease, opacity 0.2s ease;
    white-space: nowrap;
    animation: grad-shift 6s ease infinite;
}
.convert-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 36px var(--glow-violet); }
.convert-btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }
.convert-btn:disabled { opacity: 0.45; cursor: not-allowed; filter: saturate(0.6); }

.btn-icon { transition: transform 0.25s var(--ease-out); }
.convert-btn:hover:not(:disabled) .btn-icon { transform: translateX(4px); }

.spinner {
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

.input-hint {
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.youtube-hint {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 14px;
    padding: 12px 15px;
    font-size: 13px;
    color: #ffe9f7;
    background: rgba(255, 92, 225, 0.08);
    border: 1px solid rgba(255, 92, 225, 0.28);
    border-radius: var(--radius-md);
}
.youtube-hint a { color: var(--accent-2); font-weight: 700; }

/* ---------------- Video info ---------------- */
.info-divider { height: 1px; background: var(--border); margin: 22px 0 16px; }

.info-content { display: flex; gap: 16px; align-items: center; }

.info-thumbnail {
    position: relative;
    width: 96px; height: 60px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-card-solid);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.info-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.thumb-download {
    position: absolute; right: 4px; bottom: 4px;
    width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    background: rgba(5, 6, 14, 0.75);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    opacity: 0;
    transition: opacity .2s;
}
.info-thumbnail:hover .thumb-download { opacity: 1; }
.thumb-download:hover { border-color: var(--accent-2); }

.info-details { min-width: 0; flex: 1; }
.video-title {
    font-size: 15.5px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin-bottom: 6px;
}
.video-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.meta-item { font-size: 12.5px; color: var(--text-secondary); }
.video-description {
    margin-top: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------------- Mode & quality ---------------- */
.mode-section, .quality-section { margin-top: 20px; }
.mode-label, .quality-label {
    display: block;
    font-size: 13px; font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 1px;
}

.mode-options, .quality-options { display: flex; flex-wrap: wrap; gap: 10px; }

.mode-btn, .quality-btn {
    padding: 11px 18px;
    font-size: 13.5px; font-weight: 600;
    font-family: var(--font);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s var(--ease-out);
}
.mode-btn:hover, .quality-btn:hover { border-color: var(--accent); color: var(--text-primary); transform: translateY(-2px); }
.mode-btn.active, .quality-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, rgba(124, 92, 255, 0.85), rgba(255, 92, 225, 0.85));
    box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35);
}

/* ---------------- Progress ---------------- */
.progress-section { margin-top: 24px; }

.progress-info {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 10px;
}
.progress-label { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.progress-percent { font-size: 14px; font-weight: 800; color: var(--accent-3); }

.progress-bar-container {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    overflow: visible;
}
.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--grad);
    box-shadow: 0 0 14px rgba(124, 92, 255, 0.7);
    transition: width 0.35s ease;
}
.progress-glow {
    position: absolute; top: -4px;
    width: 12px; height: 18px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.9);
    filter: blur(6px);
    opacity: 0.8;
    transition: left 0.35s ease;
}

/* ---------------- Download ---------------- */
.download-section { margin-top: 24px; text-align: center; }
.download-success { margin-bottom: 18px; }
.success-icon {
    font-size: 44px; margin-bottom: 10px;
    display: inline-block;
    animation: pop 0.5s var(--ease-out);
}
@keyframes pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
.download-success h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.download-success p { font-size: 13.5px; color: var(--text-secondary); }

.download-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 34px;
    font-size: 16px; font-weight: 800;
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    background: linear-gradient(120deg, #00b884, #00e5a0);
    box-shadow: 0 10px 34px rgba(0, 229, 160, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.download-btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 44px rgba(0, 229, 160, 0.45); }

.convert-new-btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 13px;
    font-size: 14px; font-weight: 600;
    font-family: var(--font);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.22s var(--ease-out);
}
.convert-new-btn:hover { color: var(--text-primary); border-color: var(--accent); background: rgba(124, 92, 255, 0.08); }

/* ---------------- Error ---------------- */
.error-section {
    margin-top: 24px;
    padding: 22px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: rgba(255, 95, 109, 0.08);
    border: 1px solid rgba(255, 95, 109, 0.3);
}
.error-icon { font-size: 34px; margin-bottom: 8px; }
.error-message { font-size: 14px; color: #ffd9dc; margin-bottom: 16px; line-height: 1.5; }

.retry-btn {
    padding: 11px 26px;
    font-size: 14px; font-weight: 700;
    font-family: var(--font);
    color: #fff;
    background: linear-gradient(120deg, #ff5f6d, #ff8a5c);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 95, 109, 0.35);
    transition: transform 0.2s var(--ease-out), box-shadow 0.25s ease;
}
.retry-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 95, 109, 0.45); }

/* ---------------- Stream fallback ---------------- */
.fallback-divider { height: 1px; background: var(--border); margin: 22px 0 16px; }
.stream-fallback h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--warning); }
.stream-fallback p { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; }
.stream-fallback code {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12.5px;
    color: var(--accent-3);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 4px;
}
.fallback-note { margin-top: 12px; font-size: 12px; color: var(--text-muted); }

/* ---------------- Cookie upload (owner tool) ---------------- */
.cookie-input {
    width: 100%;
    padding: 13px 15px;
    font-size: 12.5px;
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', 'Courier New', monospace;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-md);
    outline: none;
    resize: vertical;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.cookie-input::placeholder { color: var(--text-muted); }
.cookie-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18), 0 0 26px rgba(124, 92, 255, 0.2);
}
.cookie-status.ok { color: var(--success); }
.cookie-status.err { color: var(--error); }

/* ---------------- Watermark remover ---------------- */
.wm-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 22px;
}
.wm-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #ff5c6c, #ff8a5c);
    box-shadow: 0 8px 26px rgba(255, 95, 109, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.wm-header-text h3 { font-size: 18px; font-weight: 800; margin-bottom: 3px; }
.wm-header-text p { font-size: 13px; color: var(--text-secondary); }

.wm-dropzone {
    padding: 18px 16px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 2px dashed rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.025);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}
.wm-dropzone:hover, .wm-dropzone.dragover {
    border-color: var(--accent);
    background: rgba(124, 92, 255, 0.07);
    box-shadow: inset 0 0 40px rgba(124, 92, 255, 0.1);
    transform: translateY(-2px);
}
.wm-dropzone-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.wm-drop-icon { font-size: 30px; margin: 0; filter: drop-shadow(0 0 18px rgba(124, 92, 255, 0.5)); }
.wm-drop-title { font-size: 15px; font-weight: 700; margin: 0; }
.wm-browse {
    color: var(--accent-3);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.wm-drop-sub { font-size: 12px; color: var(--text-muted); margin: 4px 0 0; width: 100%; }
@media (max-width: 640px) {
    .wm-dropzone { padding: 14px 12px; }
    .wm-drop-icon { font-size: 26px; }
    .wm-drop-title { font-size: 14px; }
}

.wm-preview-wrap { position: relative; border-radius: var(--radius-md); overflow: hidden; margin-bottom: 20px; background: #000; }
.wm-preview { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #000; }

.wm-overlay { position: absolute; inset: 0; z-index: 3; }
.wm-overlay.drawable { cursor: crosshair; }
.wm-overlay-box {
    position: absolute;
    display: none;
    border: 2px dashed #ff5c6c;
    background: rgba(255, 92, 108, 0.15);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.wm-custom-tip {
    position: absolute; bottom: 14px; left: 50%;
    transform: translateX(-50%);
    padding: 8px 16px;
    font-size: 12.5px; font-weight: 600;
    color: #fff;
    background: rgba(5, 6, 14, 0.85);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    white-space: nowrap;
    z-index: 4;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.wm-field { margin-bottom: 18px; }
.wm-label {
    display: block;
    font-size: 13px; font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase; letter-spacing: 1px;
}
.wm-label-tag {
    display: inline-block;
    padding: 2px 9px;
    font-size: 10.5px;
    color: var(--warning);
    background: rgba(255, 209, 102, 0.1);
    border: 1px solid rgba(255, 209, 102, 0.3);
    border-radius: 999px;
    text-transform: none; letter-spacing: 0.3px;
}

.wm-positions {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}
.wm-pos-btn {
    padding: 10px 8px;
    font-size: 12.5px; font-weight: 600;
    font-family: var(--font);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
}
.wm-pos-btn:hover { border-color: var(--accent); color: var(--text-primary); transform: translateY(-2px); }
.wm-pos-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, #ff5c6c, #ff8a5c);
    box-shadow: 0 6px 18px rgba(255, 95, 109, 0.4);
}
.wm-custom-btn.active {
    background: linear-gradient(120deg, #7c5cff, #35e0ff);
    box-shadow: 0 6px 18px rgba(124, 92, 255, 0.4);
}
.wm-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.wm-method-btn {
    padding: 10px 8px;
    font-size: 12.5px; font-weight: 600;
    font-family: var(--font);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    white-space: nowrap;
}
.wm-method-btn:hover { border-color: var(--accent); color: var(--text-primary); transform: translateY(-2px); }
.wm-method-btn.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, #4caf50, #66bb6a);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.4);
}

.wm-trim { width: 100%; margin: 6px 0 8px; accent-color: var(--accent); height: 6px; }
.wm-trim-value { color: var(--accent-3); }
.wm-hint { font-size: 12px; color: var(--text-muted); }

.wm-actions { display: flex; gap: 10px; margin-top: 6px; }
.wm-actions .convert-btn { flex: 1; }
.wm-actions .convert-new-btn { width: auto; padding: 14px 20px; white-space: nowrap; margin-top: 0; }

/* ---------------- Extension promo ---------------- */
.extension-promo {
    display: flex; align-items: center; gap: 18px;
    padding: 24px 26px;
    margin-bottom: 48px;
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, rgba(124, 92, 255, 0.14), rgba(53, 224, 255, 0.1)), var(--bg-card);
    border: 1px solid rgba(124, 92, 255, 0.3);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(124, 92, 255, 0.1);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.extension-promo:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 56px rgba(124, 92, 255, 0.18); }
.ext-icon { font-size: 42px; flex-shrink: 0; filter: drop-shadow(0 0 16px rgba(53, 224, 255, 0.5)); }
.ext-content { flex: 1; min-width: 0; }
.ext-content h4 { font-size: 16.5px; font-weight: 800; margin-bottom: 4px; }
.ext-content p { font-size: 13.5px; color: var(--text-secondary); }
.ext-content strong { color: var(--accent-3); }

.ext-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 22px;
    font-size: 14px; font-weight: 700;
    color: #fff;
    text-decoration: none;
    border-radius: 13px;
    background: linear-gradient(120deg, #35e0ff, #3b82f6);
    box-shadow: 0 8px 26px rgba(53, 224, 255, 0.35);
    white-space: nowrap;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.ext-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(53, 224, 255, 0.45); }

/* ---------------- Section titles ---------------- */
.section-title {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 10px;
}
.section-sub {
    font-size: 15px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 36px;
}

/* ---------------- How it works ---------------- */
.how-it-works { margin: 14px 0 54px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.step-card {
    position: relative;
    padding: 26px 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.step-card:hover { border-color: rgba(124, 92, 255, 0.45); box-shadow: 0 20px 54px rgba(0, 0, 0, 0.45), 0 0 40px rgba(124, 92, 255, 0.12); }
.step-num {
    position: absolute; top: 14px; right: 18px;
    font-size: 44px; font-weight: 900;
    color: rgba(124, 92, 255, 0.16);
    line-height: 1;
}
.step-icon {
    width: 46px; height: 46px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    border-radius: 13px;
    background: rgba(124, 92, 255, 0.12);
    border: 1px solid rgba(124, 92, 255, 0.3);
    margin-bottom: 14px;
}
.step-card h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 6px; }
.step-card p { font-size: 13px; color: var(--text-secondary); }

/* ---------------- Features ---------------- */
.features { margin-bottom: 54px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.feature-card {
    padding: 24px 22px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}
.feature-card:hover { border-color: rgba(255, 92, 225, 0.4); box-shadow: 0 20px 54px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 92, 225, 0.12); }
.feature-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 21px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    margin-bottom: 14px;
    transition: transform 0.3s var(--ease-out);
}
.feature-card:hover .feature-icon { transform: translateZ(18px) rotate(-6deg) scale(1.1); }
.feature-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); }

/* ---------------- Disclaimer ---------------- */
.disclaimer {
    display: flex; gap: 16px;
    padding: 20px 24px;
    margin-bottom: 54px;
    border-radius: var(--radius-lg);
    background: rgba(255, 209, 102, 0.05);
    border: 1px solid rgba(255, 209, 102, 0.2);
}
.disclaimer-icon { font-size: 26px; flex-shrink: 0; }
.disclaimer-content h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; color: var(--warning); }
.disclaimer-content p { font-size: 13px; color: var(--text-secondary); }

/* ---------------- Footer ---------------- */
.footer {
    margin-top: 20px;
    padding: 44px 32px 26px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(18, 20, 38, 0.7), rgba(8, 9, 20, 0.9));
    border: 1px solid var(--border);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    position: relative;
}
.footer::before {
    content: "";
    position: absolute; top: -60%; left: 50%;
    width: 140%; height: 60%;
    transform: translateX(-50%);
    background: var(--grad-soft);
    filter: blur(80px);
    opacity: 0.25;
    pointer-events: none;
}

.footer-brand { margin-bottom: 28px; position: relative; }
.footer-tagline { font-size: 13.5px; color: var(--text-secondary); max-width: 380px; margin-top: 14px; }

.footer-cols {
    display: flex; gap: 60px;
    margin-bottom: 30px;
    position: relative;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h5 {
    font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.6px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.footer-col a {
    font-size: 14px; font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    width: fit-content;
}
.footer-col a:hover { color: var(--accent-3); transform: translateX(3px); }

/* The ownership banner — the whole point of the footer */
.footer-ownership { margin-bottom: 28px; position: relative; }
.ownership-badge {
    display: flex; align-items: center; gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, rgba(124, 92, 255, 0.14), rgba(255, 92, 225, 0.1));
    border: 1px solid rgba(124, 92, 255, 0.35);
    box-shadow: 0 0 44px rgba(124, 92, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.ownership-badge:hover { transform: translateY(-3px); box-shadow: 0 10px 44px rgba(124, 92, 255, 0.28); }
.ownership-heart {
    width: 50px; height: 50px;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    border-radius: 14px;
    background: var(--grad);
    box-shadow: 0 8px 24px var(--glow-violet), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.ownership-text strong {
    display: block;
    font-size: 17px; font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(120deg, #fff, #c9c2ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2px;
}
.ownership-text small { font-size: 13px; color: var(--text-secondary); }

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
}
.footer-bottom p { font-size: 13px; color: var(--text-secondary); }
.footer-bottom a { color: var(--accent-3); text-decoration: none; font-weight: 600; }
.footer-small { margin-top: 6px; font-size: 12px !important; color: var(--text-muted) !important; }

/* ---------------- Toast ---------------- */
.toast {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 13px 24px;
    font-size: 14px; font-weight: 600;
    color: #fff;
    background: rgba(18, 20, 38, 0.92);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(124, 92, 255, 0.2);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.35s var(--ease-out);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------- Scroll reveal ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px) rotateX(10deg);
    transform-origin: top center;
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
    will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: translateY(0) rotateX(0); }

/* ============================================================
   Responsive — every device, 320px → 4K
   ============================================================ */

/* ---- Large desktops: breathe more ---- */
@media (min-width: 1400px) {
    .container { max-width: 1280px; padding-left: 32px; padding-right: 32px; }
    .hero { gap: 72px; }
    .hero-title { font-size: 62px; }
    .hero-subtitle { font-size: 18.5px; max-width: 600px; }
    .converter-card { padding: 36px; }
}

/* ---- Ultra-wide (4K): keep content centered but generous ---- */
@media (min-width: 1800px) {
    .container { max-width: 1440px; }
    .hero-title { font-size: 68px; }
}

/* ---- Tablets / small laptops ---- */
@media (max-width: 1024px) {
    .container { max-width: 820px; }
    .hero { gap: 28px; }
    .hero-title { font-size: clamp(32px, 5vw, 44px); }
    .hero-graphic { width: 240px; height: 250px; }
}

@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-graphic { width: 220px; height: 240px; }
    .hero-icon { width: 100px; height: 100px; font-size: 46px; border-radius: 28px; }
    .stats-strip { gap: 12px; }
}

/* ---- Phones (portrait) ---- */
@media (max-width: 700px) {
    .header { flex-wrap: wrap; }
    .header-right { order: 3; width: 100%; justify-content: flex-end; }
    .hero { flex-direction: column-reverse; text-align: center; padding-top: 20px; gap: 22px; }
    .hero-content { text-align: center; }
    .hero-badge { margin-left: auto; margin-right: auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; font-size: 15px; }
    .hero-cta { justify-content: center; }
    .hero-cta .cta-primary, .hero-cta .cta-ghost { flex: 1; min-width: 160px; }
    .hero-graphic { width: 180px; height: 190px; }
    .hero-icon { width: 92px; height: 92px; font-size: 42px; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); gap: 18px 10px; padding: 18px 16px; }
    .stat-value { font-size: 23px; }
    .wm-positions { grid-template-columns: repeat(2, 1fr); }
    .wm-actions { flex-direction: column; }
    .wm-actions .convert-new-btn { width: 100%; }
    .extension-promo { flex-direction: column; text-align: center; }
    .ext-btn { width: 100%; justify-content: center; }
    .footer-cols { gap: 34px; }
    .ownership-badge { flex-direction: column; text-align: center; }
    .input-group { flex-direction: column; }
    .convert-btn { width: 100%; }
    .wm-custom-tip { white-space: normal; width: 88%; text-align: center; }
    .converter-card { padding: 22px 18px; border-radius: 22px; }
    .info-content { gap: 12px; }
    .info-thumbnail { width: 84px; height: 54px; }
    .mode-options, .quality-options { display: grid; grid-template-columns: repeat(2, 1fr); }
    .mode-btn, .quality-btn { padding: 13px 12px; font-size: 13.5px; }
    .step-card, .feature-card { padding: 22px 18px; }
    .disclaimer { flex-direction: column; text-align: center; align-items: center; }
    .footer { padding: 34px 22px 22px; }
}

/* ---- Small phones ---- */
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .container { padding: 12px 12px 50px; }
    .owned-chip { display: none; }
    .badge { padding: 6px 10px; font-size: 11.5px; }
    .logo-icon { width: 38px; height: 38px; }
    .logo-text h1 { font-size: 19px; }
    .logo-subtitle { font-size: 9px; letter-spacing: 1px; }
    .header { margin-bottom: 26px; padding-top: 10px; }
    .hero { padding: 24px 0 36px; }
    .hero-title { font-size: 30px; letter-spacing: -1.2px; }
    .hero-badge { font-size: 12px; padding: 7px 13px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .cta-primary, .hero-cta .cta-ghost { width: 100%; min-width: 0; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .video-title { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
    .wm-header { gap: 12px; }
    .wm-icon { width: 44px; height: 44px; }
    .wm-header-text h3 { font-size: 16px; }
    .wm-pos-btn { font-size: 12px; padding: 11px 6px; }
    .wm-method-btn { font-size: 12px; padding: 11px 6px; }
    .download-btn { width: 100%; justify-content: center; }
    .ext-content h4 { font-size: 15px; }
    .section-title { font-size: 24px; }
    .footer-cols { flex-direction: column; gap: 24px; }
    .youtube-hint { flex-direction: column; gap: 6px; }
}

/* ---- Tiny phones (iPhone SE / 320px) ---- */
@media (max-width: 380px) {
    .container { padding: 10px 10px 44px; }
    .header-right .badge { display: none; }
    .hero-chip { display: none; }
    .hero-icon { width: 78px; height: 78px; font-size: 36px; }
    .hero-title { font-size: 27px; }
    .stats-strip { grid-template-columns: 1fr 1fr; gap: 14px 8px; }
    .stat-label { font-size: 11px; }
    .mode-options, .quality-options { grid-template-columns: 1fr 1fr; gap: 8px; }
    .info-content { flex-direction: column; align-items: flex-start; }
    .info-thumbnail { width: 100%; height: 120px; }
    .info-thumbnail img { object-fit: cover; }
    .wm-positions { grid-template-columns: 1fr 1fr; }
    .wm-actions .convert-btn { width: 100%; }
    .footer-tagline { font-size: 12.5px; }
}

/* ---- Short screens / landscape phones: keep hero compact ---- */
@media (max-height: 600px) and (max-width: 900px) {
    .hero { padding: 20px 0 26px; }
    .hero-graphic { width: 140px; height: 150px; }
    .hero-icon { width: 74px; height: 74px; font-size: 34px; }
    .stats-strip { margin-bottom: 26px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------------- FAQ ---------------- */
.faq { margin: 14px 0 54px; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item:hover { border-color: rgba(124, 92, 255, 0.45); background: rgba(124, 92, 255, 0.05); }
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 600;
    font-size: 15.5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c5cff, #ff5ce1);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    margin: 0;
    padding: 0 18px 16px;
    color: var(--text-secondary, #b9c0d4);
    font-size: 14.5px;
    line-height: 1.7;
}
