/* ══════════════════════════════════════════════
   ZIPHAY  style.css  v5  — Professional Edition
   Dark/Light via [data-theme] on <html>
══════════════════════════════════════════════ */

/* ─── DARK THEME (default) ─── */
[data-theme="dark"] {
    --bg:      #030303;
    --bg2:     #0a0a0a;
    --bg3:     #121212;
    --bg4:     #1c1c1c;
    --text:    #ffffff;
    --text2:   #a1a1aa;
    --muted:   #71717a;
    --border:  rgba(255,255,255,0.06);
    --border2: rgba(255,255,255,0.1);
    --glass:   rgba(255,255,255,0.03);
    --glass2:  rgba(255,255,255,0.06);
    --card:    rgba(255,255,255,0.02);
    --card2:   rgba(255,255,255,0.04);
    --nav-bg:  rgba(3,3,3,0.7);
    --shadow:  0 32px 80px rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.05);
    --shadow2: 0 12px 32px rgba(0,0,0,0.7);
    --grid-ln: rgba(255,255,255,0.03);
    --input-bg:#080808;
}

/* ─── LIGHT THEME ─── */
[data-theme="light"] {
    --bg:      #fafafa;
    --bg2:     #f4f4f5;
    --bg3:     #e4e4e7;
    --bg4:     #d4d4d8;
    --text:    #09090b;
    --text2:   #3f3f46;
    --muted:   #71717a;
    --border:  rgba(0,0,0,0.08);
    --border2: rgba(0,0,0,0.12);
    --glass:   rgba(255,255,255,0.5);
    --glass2:  rgba(255,255,255,0.8);
    --card:    rgba(255,255,255,0.9);
    --card2:   rgba(255,255,255,1);
    --nav-bg:  rgba(250,250,250,0.8);
    --shadow:  0 24px 60px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.5);
    --shadow2: 0 8px 24px rgba(0,0,0,0.05);
    --grid-ln: rgba(0,0,0,0.04);
    --input-bg:rgba(0,0,0,0.02);
}

/* ─── ALWAYS-ON VARS ─── */
:root {
    --teal:    #14b8a6;
    --teal2:   #0d9488;
    --teal-d:  rgba(20,184,166,0.12);
    --teal-g:  rgba(20,184,166,0.5);
    --purple:  #8b5cf6;
    --purple-d:rgba(139,92,246,0.12);
    --gold:    #fbbf24;
    --gold-d:  rgba(251,191,36,0.12);
    --red:     #f87171;
    --r:       14px;
    --r2:      20px;
    --r3:      28px;
    --font-body:'Inter',sans-serif;
    --font-display:'Syne',sans-serif;
}

/* ─── RESET ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
}

* { box-sizing: border-box; }
*:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
body.is-pro .pro-lock { display: none !important; }

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body), 'Outfit', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    transition: background .35s, color .35s;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    font-family: var(--font-body), 'Outfit', sans-serif;
    letter-spacing: 0;
}

::selection {
    background: var(--teal-g);
    color: var(--teal);
}

/* ─── AMBIENT ─── */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ab {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .35;
    transition: opacity 1s, filter 1s;
    mix-blend-mode: screen;
}

[data-theme="light"] .ab {
    opacity: .18;
    mix-blend-mode: multiply;
}

.ab1 {
    width: 800px;
    height: 600px;
    top: -150px;
    left: -200px;
    background: radial-gradient(circle, rgba(20,184,166,0.6), transparent);
    animation: float1 20s ease-in-out infinite alternate;
}

.ab2 {
    width: 700px;
    height: 700px;
    top: 20%;
    right: -200px;
    background: radial-gradient(circle, rgba(139,92,246,0.5), transparent);
    animation: float2 25s ease-in-out infinite alternate-reverse;
}

.ab3 {
    width: 600px;
    height: 500px;
    bottom: -50px;
    left: 20%;
    background: radial-gradient(circle, rgba(20,184,166,0.4), rgba(139,92,246,0.2), transparent);
    animation: float3 22s ease-in-out infinite alternate;
}

@keyframes float1 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg) translateY(var(--parallax-y, 0)); }
    100% { transform: translate(80px, 60px) scale(1.1) rotate(5deg) translateY(var(--parallax-y, 0)); }
}
@keyframes float2 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg) translateY(var(--parallax-y, 0)); }
    100% { transform: translate(-60px, 80px) scale(1.15) rotate(-5deg) translateY(var(--parallax-y, 0)); }
}
@keyframes float3 {
    0% { transform: translate(0, 0) scale(1) rotate(0deg) translateY(var(--parallax-y, 0)); }
    100% { transform: translate(40px, -60px) scale(0.9) rotate(5deg) translateY(var(--parallax-y, 0)); }
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-ln) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-ln) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ─── LAYOUT ─── */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hidden {
    display: none !important;
}

/* ─── NAV ─── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    background: var(--nav-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: background .35s, border-color .35s;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 28px;
    max-width: 1160px;
    margin: 0 auto;
    gap: 16px;
}

/* ══ LOGO — Professional SVG mark ══ */
.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
    transition: opacity .2s;
}
.logo:hover { opacity: .85; }

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #00d4aa 0%, #7b3cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 1px rgba(0,212,170,.2), 0 0 20px rgba(0,212,170,.3), 0 4px 12px rgba(0,0,0,.3);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, transparent 60%);
    border-radius: inherit;
}

.logo-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}

.logo-wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-name {
    font-family: var(--font-display), 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
}

.logo-name em {
    font-style: normal;
    background: linear-gradient(90deg, #00d4aa, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: .58rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 500;
    padding: 7px 13px;
    border-radius: 9px;
    transition: .2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--glass2);
}

.nav-links a.nav-active {
    color: var(--text);
    background: var(--glass2);
}

/* Theme toggle button */
.theme-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--muted);
    cursor: pointer;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, transform .2s, color .2s;
}

.theme-btn:hover {
    color: var(--text);
    background: var(--glass2);
    border-color: var(--border2);
    transform: rotate(12deg) scale(1.06);
}

.nav-cta {
    background: linear-gradient(135deg, var(--teal), var(--teal2));
    color: #03100d;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 0 1px rgba(20,184,166,0.3), 0 4px 16px rgba(20,184,166,0.3);
    white-space: nowrap;
    letter-spacing: -.01em;
    position: relative;
    overflow: hidden;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-20deg);
    transition: .5s;
}

.nav-cta:hover {
    box-shadow: 0 0 0 1px rgba(20,184,166,0.5), 0 8px 32px rgba(20,184,166,0.6);
    transform: translateY(-2px) scale(1.02);
}

.nav-cta:hover::before {
    left: 150%;
}

/* ─── HERO ─── */
.hero {
    padding: 96px 0 56px;
    text-align: center;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    border-radius: 100px;
    background: rgba(0,212,170,.08);
    border: 1px solid rgba(0,212,170,.2);
    color: var(--teal);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 6px var(--teal);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1)
    }

    50% {
        opacity: .55;
        transform: scale(.8)
    }
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.035em;
    margin-bottom: 18px;
}

.hero h1 em {
    font-style: normal;
    color: var(--teal);
    text-shadow: 0 0 50px rgba(0, 212, 170, .35);
}

.hero-sub {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hero>* {
    animation: fadeUp .6s ease both;
}

.hero .pill-badge {
    animation-delay: .05s;
}

.hero h1 {
    animation-delay: .13s;
}

.hero .hero-sub {
    animation-delay: .20s;
}

.hero .mode-tabs {
    animation-delay: .26s;
}

.hero .upload-card {
    animation-delay: .32s;
}

.hero .trust-row {
    animation-delay: .42s;
}

/* ─── MODE TABS ─── */
.mode-tabs {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow2);
}

.mode-tab {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 12px;
    transition: .22s;
    white-space: nowrap;
    letter-spacing: -.01em;
}

.mode-tab svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: .2s;
}

.mode-tab.active {
    background: linear-gradient(135deg, #00d4aa, #00b893);
    color: #03100d;
    box-shadow: 0 0 0 1px rgba(0,212,170,.1), 0 4px 16px rgba(0,212,170,.25);
    font-weight: 700;
}

.mode-tab:hover:not(.active) {
    color: var(--text2);
    background: var(--glass2);
}

/* ─── UPLOAD CARD ─── */
.upload-card {
    background: var(--card2);
    border: 1px solid var(--border);
    border-radius: var(--r3);
    padding: 32px;
    max-width: 640px;
    margin: 0 auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.1);
    backdrop-filter: blur(48px);
    -webkit-backdrop-filter: blur(48px);
    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.upload-card:hover {
    box-shadow: 0 32px 100px rgba(0,0,0,0.8), inset 0 1px 1px rgba(255,255,255,0.15);
    border-color: var(--border2);
}

.upload-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-g), transparent);
    pointer-events: none;
    opacity: 0.6;
}

/* ─── COMPRESS PANEL ─── */
.goal-row {
    display: flex;
    gap: 6px;
    padding: 5px;
    background: rgba(128, 128, 200, .06);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 10px;
}

.goal-btn {
    flex: 1;
    padding: 8px 4px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: .2s;
    white-space: nowrap;
    letter-spacing: -.01em;
}

.goal-btn.active {
    background: linear-gradient(135deg, #00d4aa, #00b893);
    color: #03100d;
    box-shadow: 0 2px 12px rgba(0,212,170,.25);
}

.goal-btn:hover:not(.active) {
    color: var(--text);
    background: var(--glass2);
}

.goal-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 14px;
    font-size: .77rem;
    flex-wrap: wrap;
    transition: border-color .3s;
}

.gs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.gs-label {
    font-weight: 700;
    color: var(--text);
}

.gs-tag {
    padding: 2px 9px;
    border-radius: 100px;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .06em;
    background: rgba(0, 212, 170, .1);
    color: var(--teal);
}

.gs-desc {
    color: var(--muted);
    font-size: .73rem;
    line-height: 1.4;
    width: 100%;
    margin-top: 2px;
}

/* ─── UPSCALE PANEL ─── */
.upscale-opts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.up-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.up-label {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 100px;
}

.up-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.up-btn {
    padding: 7px 16px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.up-btn.active {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-d);
}

.up-btn:hover:not(.active) {
    color: var(--text);
    border-color: rgba(255, 255, 255, .2);
}

.upscale-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(139, 92, 246, .06);
    border: 1px solid rgba(139, 92, 246, .2);
    border-radius: 10px;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.upscale-info svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--purple);
}

/* ─── DROP ZONE ─── */
.drop-zone {
    border: 2px dashed rgba(128, 128, 200, .2);
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: .3s;
    background: var(--input-bg);
    margin-bottom: 14px;
    outline: none;
    user-select: none;
}

.drop-zone:hover,
.drop-zone:focus,
.drop-zone.dragover {
    border-color: var(--teal);
    background: rgba(0, 212, 170, .04);
    box-shadow: 0 0 24px rgba(0, 212, 170, .08) inset;
}

.drop-zone.dragover {
    border-style: solid;
}

.drop-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 212, 170, .1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    color: var(--teal);
    transition: .3s;
}

.drop-zone:hover .drop-icon,
.drop-zone.dragover .drop-icon {
    background: rgba(0, 212, 170, .18);
    transform: scale(1.06);
}

.drop-icon svg {
    width: 24px;
    height: 24px;
}

.drop-title {
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: 4px;
}

.drop-title span {
    color: var(--teal);
}

.drop-sub {
    color: var(--muted);
    font-size: .76rem;
}

.file-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(0, 212, 170, .08);
    border: 1px solid rgba(0, 212, 170, .2);
    border-radius: 100px;
    font-size: .7rem;
    font-weight: 600;
    color: var(--teal);
}

.chip-rm {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: rgba(0, 212, 170, .15);
    border: none;
    color: var(--teal);
    cursor: pointer;
    font-size: .58rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: .15s;
}

.chip-rm:hover {
    background: rgba(239, 68, 68, .3);
    color: #f87171;
}

/* ─── COMPRESS OPTIONS ─── */
.level-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.level-tag {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 8px 4px;
    background: transparent;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    text-align: center;
}

.level-tag.active {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-d);
}

.level-tag:hover:not(.active) {
    color: var(--text);
    border-color: rgba(128, 128, 200, .3);
}

.format-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.format-label {
    color: var(--muted);
    font-size: .75rem;
    font-weight: 600;
}

.format-opts {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.fmt-opt {
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--muted);
    font-size: .73rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.fmt-opt.active {
    border-color: var(--teal);
    color: var(--teal);
    background: var(--teal-d);
}

.fmt-opt:hover:not(.active) {
    color: var(--text);
    border-color: rgba(128, 128, 200, .3);
}

/* ─── ESTIMATE PREVIEW ─── */
.est-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 11px 14px;
    background: rgba(0, 212, 170, .05);
    border: 1px solid rgba(0, 212, 170, .15);
    border-radius: 11px;
    margin-bottom: 12px;
}

.est-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.est-label {
    font-size: .63rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.est-val {
    font-family: 'Syne', sans-serif;
    font-size: .95rem;
    font-weight: 700;
}

.est-val.teal {
    color: var(--teal);
}

.est-val.gold {
    color: var(--gold);
}

.est-arrow {
    color: var(--muted);
    font-size: 1.1rem;
}

/* ─── ACTION BUTTON ─── */
.compress-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b893 100%);
    color: #03100d;
    border: none;
    border-radius: 14px;
    font-family: var(--font-display), 'Syne', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
    box-shadow: 0 0 0 1px rgba(0,212,170,.15), 0 4px 24px rgba(0,212,170,.3);
    letter-spacing: -.02em;
    position: relative;
    overflow: hidden;
}

.compress-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .4s;
}

.compress-btn:hover:not(:disabled)::before { left: 100%; }

.compress-btn:hover:not(:disabled) {
    box-shadow: 0 0 0 1px rgba(0,212,170,.25), 0 8px 36px rgba(0,212,170,.5);
    transform: translateY(-2px);
}

.compress-btn:disabled {
    background: var(--glass2);
    color: var(--muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* ─── PROCESSING ─── */
#processingState {
    padding: 6px 0;
}

.proc-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.proc-spinner {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0, 212, 170, .2);
    border-top-color: var(--teal);
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.proc-label {
    font-weight: 600;
    font-size: .86rem;
    margin-bottom: 2px;
}

.proc-detail {
    color: var(--muted);
    font-size: .74rem;
}

.progress-track {
    height: 5px;
    background: rgba(128, 128, 200, .12);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #00b890);
    border-radius: 100px;
    width: 0%;
    transition: width .28s ease;
    box-shadow: 0 0 10px rgba(0, 212, 170, .5);
}

.progress-nums {
    display: flex;
    justify-content: space-between;
    font-size: .72rem;
    color: var(--muted);
}

/* ─── RESULT BOX ─── */
#resultBox { display: block; }

.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .92rem;
    margin-bottom: 16px;
    color: var(--teal);
}

.result-header svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-bottom: 14px;
}

.stat-box {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    transition: background .3s, border-color .3s;
}

.stat-label {
    font-size: .63rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    display: block;
    margin-bottom: 4px;
}

.stat-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
}

.stat-val.teal {
    color: var(--teal);
}

.stat-val.gold {
    color: var(--gold);
}

.result-files {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rf-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 11px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 9px;
    font-size: .76rem;
    transition: background .3s;
}

.rf-name {
    color: var(--text);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
    flex: 1;
}

.rf-size {
    color: var(--muted);
    white-space: nowrap;
}

.rf-diff {
    color: var(--teal);
    font-weight: 700;
    white-space: nowrap;
}

.rf-dl {
    padding: 4px 10px;
    border-radius: 7px;
    border: 1px solid rgba(0, 212, 170, .3);
    background: transparent;
    color: var(--teal);
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
    white-space: nowrap;
}

.rf-dl:hover {
    background: var(--teal-d);
}

.download-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--teal);
    color: var(--teal);
    border-radius: 11px;
    font-family: 'Syne', sans-serif;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: .22s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 8px;
}

.download-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.download-btn:hover {
    background: var(--teal-d);
    box-shadow: 0 0 16px rgba(0, 212, 170, .18);
}

.compare-jump-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid rgba(0, 212, 170, .28);
    color: var(--teal);
    border-radius: 11px;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
    margin-bottom: 8px;
}

.compare-jump-btn:hover {
    background: var(--teal-d);
}

.redo-btn {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 11px;
    font-size: .8rem;
    cursor: pointer;
    transition: .2s;
}

.redo-btn:hover {
    color: var(--text);
    border-color: rgba(128, 128, 200, .3);
}

.privacy-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    color: var(--muted);
    font-size: .72rem;
}

.privacy-line svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: var(--teal);
}

/* ─── TRUST ROW ─── */
.trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 24px 0 64px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: .78rem;
}

.trust-item svg {
    width: 13px;
    height: 13px;
    color: var(--teal);
    flex-shrink: 0;
}

/* ─── SECTIONS ─── */
section {
    padding: 92px 0;
}

.section-tag {
    display: inline-block;
    color: var(--teal);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 13px;
    line-height: 1.1;
}

.section-sub {
    color: var(--muted);
    font-size: .93rem;
    max-width: 440px;
    line-height: 1.7;
}

/* ─── FEATURES ─── */
#features {
    background: var(--bg2);
    transition: background .35s;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.feat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 28px;
    transition: .25s;
}

.feat-card:hover {
    border-color: rgba(0, 212, 170, .2);
    box-shadow: 0 0 32px rgba(0, 212, 170, .06);
    transform: translateY(-4px);
}

.feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

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

.fi-teal {
    background: rgba(0, 212, 170, .1);
    color: var(--teal);
}

.fi-purple {
    background: rgba(139, 92, 246, .1);
    color: var(--purple);
}

.fi-gold {
    background: rgba(245, 158, 11, .1);
    color: var(--gold);
}

.fi-blue {
    background: rgba(59, 130, 246, .1);
    color: #60a5fa;
}

.fi-red {
    background: rgba(239, 68, 68, .1);
    color: #f87171;
}

.fi-green {
    background: rgba(16, 185, 129, .1);
    color: #34d399;
}

.feat-title {
    font-family: 'Syne', sans-serif;
    font-size: .97rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feat-body {
    color: var(--muted);
    font-size: .83rem;
    line-height: 1.65;
}

.stats-banner {
    background: linear-gradient(135deg, rgba(0, 212, 170, .07), rgba(139, 92, 246, .04));
    border: 1px solid rgba(0, 212, 170, .1);
    border-radius: var(--r2);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 48px;
    overflow: hidden;
}

.sb-item {
    text-align: center;
    padding: 30px 18px;
    border-right: 1px solid rgba(128, 128, 200, .06);
}

.sb-item:last-child {
    border-right: none;
}

.sb-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 4px;
}

.sb-lab {
    color: var(--muted);
    font-size: .74rem;
}

/* ─── TOOLS ─── */
#tools {
    background: var(--bg);
    transition: background .35s;
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.tool-card {
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 26px;
    cursor: pointer;
    background: var(--card);
    transition: .25s;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-5px);
}

.tool-card::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: .3s;
    pointer-events: none;
}

.tc-img:hover {
    border-color: rgba(0, 212, 170, .28);
}

.tc-img:hover::after {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(0, 212, 170, .05), transparent);
}

.tc-up:hover {
    border-color: rgba(139, 92, 246, .28);
}

.tc-up:hover::after {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, .05), transparent);
}

.tc-vid:hover {
    border-color: rgba(251, 146, 60, .28);
}

.tc-vid:hover::after {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(251, 146, 60, .05), transparent);
}

.tc-pdf:hover {
    border-color: rgba(245, 158, 11, .28);
}

.tc-pdf:hover::after {
    opacity: 1;
    background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, .05), transparent);
}

.tool-emoji {
    font-size: 1.8rem;
    margin-bottom: 12px;
    display: block;
}

.tool-name {
    font-family: 'Syne', sans-serif;
    font-size: .97rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tool-desc {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.tool-fmts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.fmt-pill {
    padding: 2px 8px;
    border-radius: 5px;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--muted);
}

/* ─── HOW IT WORKS ─── */
#how {
    background: var(--bg2);
    transition: background .35s;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 48px;
    position: relative;
}

.steps-row::before {
    content: '';
    position: absolute;
    top: 29px;
    left: calc(16.6% + 18px);
    right: calc(16.6% + 18px);
    height: 1px;
    background: linear-gradient(90deg, var(--teal), rgba(139, 92, 246, .4));
    z-index: 0;
}

.step {
    text-align: center;
    padding: 0 18px;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 auto 20px;
    border: 2px solid;
}

.sn1 {
    border-color: var(--teal);
    background: rgba(0, 212, 170, .1);
    color: var(--teal);
}

.sn2 {
    border-color: var(--purple);
    background: rgba(139, 92, 246, .1);
    color: var(--purple);
}

.sn3 {
    border-color: var(--gold);
    background: rgba(245, 158, 11, .1);
    color: var(--gold);
}

.step-title {
    font-family: 'Syne', sans-serif;
    font-size: .93rem;
    font-weight: 700;
    margin-bottom: 7px;
}

.step-body {
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.7;
}

/* ─── BEFORE/AFTER ─── */
#compare {
    background: var(--bg);
    transition: background .35s;
}

.cmp-placeholder {
    max-width: 640px;
    margin: 48px auto 0;
    border: 2px dashed rgba(128, 128, 200, .15);
    border-radius: var(--r2);
    padding: 52px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cmp-ph-icon {
    font-size: 2.4rem;
    opacity: .35;
    margin-bottom: 4px;
}

.cmp-ph-title {
    font-family: 'Syne', sans-serif;
    font-size: .97rem;
    font-weight: 700;
}

.cmp-ph-sub {
    color: var(--muted);
    font-size: .8rem;
    max-width: 350px;
    line-height: 1.6;
    text-align: center;
}

.cmp-ph-btn {
    margin-top: 6px;
    padding: 9px 22px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: transparent;
    color: var(--teal);
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.cmp-ph-btn:hover {
    background: var(--teal-d);
    border-color: rgba(0, 212, 170, .4);
}

.compare-demo {
    max-width: 640px;
    margin: 48px auto 0;
    border: 1px solid var(--border);
    border-radius: var(--r2);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color .3s;
}

.compare-labels {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
}

#lblAfter {
    color: var(--teal);
}

.compare-wrap {
    position: relative;
    height: 340px;
    cursor: ew-resize;
    user-select: none;
    overflow: hidden;
    background: #000;
}

.cmp-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

.cmp-before {
    z-index: 1;
}

.cmp-after {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.cmp-badge {
    position: absolute;
    top: 11px;
    z-index: 5;
    padding: 3px 9px;
    border-radius: 5px;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .07em;
    pointer-events: none;
}

.cmp-badge-l {
    left: 11px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
}

.cmp-badge-r {
    right: 11px;
    background: rgba(0, 212, 170, .88);
    color: #07070f;
}

.cmp-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: rgba(255, 255, 255, .92);
    z-index: 10;
    transform: translateX(-50%);
    pointer-events: none;
}

.cmp-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .5);
    pointer-events: none;
    transition: transform .12s;
}

.cmp-handle.active {
    transform: translate(-50%, -50%) scale(1.12);
}

.cmp-handle svg {
    width: 17px;
    height: 17px;
}

.compare-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 18px;
    background: var(--glass);
    border-top: 1px solid var(--border);
    transition: background .3s;
}

.cs-item {
    text-align: center;
}

.cs-val {
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.cs-lab {
    font-size: .66rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 2px;
}

.cmp-nudge {
    padding: 11px 16px;
    background: var(--glass);
    border-top: 1px solid var(--border);
    font-size: .76rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background .3s;
}

.cmp-nudge button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--teal);
    padding: 4px 12px;
    border-radius: 7px;
    font-size: .74rem;
    font-weight: 600;
    cursor: pointer;
    transition: .2s;
}

.cmp-nudge button:hover {
    background: var(--teal-d);
    border-color: rgba(0, 212, 170, .35);
}

/* ─── PRICING ─── */
#pricing {
    background: var(--bg2);
    transition: background .35s;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 48px;
}

.price-card {
    border: 1px solid var(--border);
    border-radius: var(--r2);
    padding: 28px;
    background: var(--card);
    position: relative;
    overflow: hidden;
    transition: .25s, background .35s;
}

.price-card.featured {
    border-color: rgba(0, 212, 170, .35);
    background: rgba(0, 212, 170, .04);
    box-shadow: 0 0 50px rgba(0, 212, 170, .1);
}

.price-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 15px;
    right: -28px;
    background: var(--teal);
    color: #07070f;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
    padding: 4px 38px;
    transform: rotate(45deg);
}

.plan-name {
    font-family: 'Syne', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 13px;
}

.plan-name.teal {
    color: var(--teal);
}

.plan-price {
    font-family: 'Syne', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -.04em;
    margin-bottom: 2px;
}

.plan-price sup {
    font-size: 1.1rem;
    vertical-align: super;
}

.plan-period {
    color: var(--muted);
    font-size: .8rem;
    margin-bottom: 22px;
}

.plan-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}

.plan-features {
    list-style: none;
    margin-bottom: 22px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .83rem;
    color: var(--muted);
    padding: 5px 0;
}

.plan-features li::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    background: rgba(0, 212, 170, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8l3.5 3.5 6.5-7' stroke='%2300d4aa' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain;
    border: 1px solid rgba(0, 212, 170, .26);
}

.plan-features li.dimmed {
    opacity: .4;
}

.plan-features li.dimmed::before {
    background: rgba(128, 128, 200, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M5 5l6 6M11 5l-6 6' stroke='%236b6b8a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain;
    border-color: rgba(128, 128, 200, .1);
}

.plan-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-family: 'Syne', sans-serif;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    transition: .22s;
}

.plan-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.plan-outline:hover {
    border-color: rgba(128, 128, 200, .3);
    background: var(--glass);
}

.plan-fill {
    background: var(--teal);
    border: 1px solid var(--teal);
    color: #07070f;
    box-shadow: 0 0 20px rgba(0, 212, 170, .26);
}

.plan-fill:hover {
    box-shadow: 0 0 34px rgba(0, 212, 170, .46);
    transform: translateY(-2px);
}

.plan-dark {
    background: var(--bg3);
    border: 1px solid var(--border);
    color: var(--muted);
}

/* ─── FOOTER ─── */
footer {
    border-top: 1px solid var(--border);
    background: var(--bg2);
    padding: 56px 0 32px;
    transition: background .35s, border-color .35s;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-brand p {
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.7;
    max-width: 220px;
    margin-top: 8px;
}

.footer-col h5 {
    font-family: 'Syne', sans-serif;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 12px;
}

.footer-col a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    font-size: .82rem;
    margin-bottom: 8px;
    transition: .2s;
}

.footer-col a:hover {
    color: var(--text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    font-size: .74rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 8px;
}

/* ─── SCROLL REVEAL ─── */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ─── RESPONSIVE ─── */
@media (max-width:768px) {
    .nav-links a {
        display: none;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .steps-row {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .steps-row::before {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-banner {
        grid-template-columns: 1fr 1fr;
    }

    .sb-item {
        border-bottom: 1px solid rgba(128, 128, 200, .05);
    }

    .compare-wrap {
        height: 240px;
    }
}

@media (max-width:480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .stats-banner {
        grid-template-columns: 1fr;
    }

    .goal-row {
        flex-wrap: wrap;
    }

    .up-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ══════════════════════════════════════════════
   NEW FEATURES  — v5
══════════════════════════════════════════════ */

/* ─── TOAST NOTIFICATIONS ─── */
.toast-container {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none;
}

.toast {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    font-size: .84rem;
    font-weight: 600;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    animation: toastIn .3s cubic-bezier(.34,1.56,.64,1) both;
    max-width: 400px;
    text-align: left;
}

.toast.dismiss {
    animation: toastOut .25s ease forwards;
}

.toast-success {
    background: rgba(0,212,170,.15);
    border: 1px solid rgba(0,212,170,.35);
    color: var(--teal);
}

.toast-error {
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.3);
    color: #f87171;
}

.toast-info {
    background: rgba(139,92,246,.12);
    border: 1px solid rgba(139,92,246,.25);
    color: var(--purple);
}

.toast-icon { font-size: 1rem; flex-shrink: 0; }

@keyframes toastIn {
    from { opacity:0; transform:translateY(16px) scale(.95); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity:1; transform:translateY(0) scale(1); }
    to   { opacity:0; transform:translateY(10px) scale(.95); }
}

/* ─── SCROLL TO TOP ─── */
.scroll-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 800;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--teal);
    color: #07070f;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,212,170,.4);
    transition: opacity .3s, transform .3s, box-shadow .2s;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    box-shadow: 0 6px 28px rgba(0,212,170,.6);
    transform: translateY(-2px);
}

/* ─── HAMBURGER / MOBILE NAV ─── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--glass);
    cursor: pointer;
    padding: 8px;
    transition: .2s;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
    transition: .3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    z-index: 95;
    background: var(--bg2);
    border-left: 1px solid var(--border);
    padding: 80px 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: right .32s cubic-bezier(.4,0,.2,1);
}

.mobile-nav-drawer.open { right: 0; }

.mobile-nav-drawer a,
.mobile-nav-drawer button.mnav-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: .2s;
    font-family: 'Outfit', sans-serif;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer button.mnav-btn:hover {
    background: var(--glass);
    color: var(--text);
}

.mobile-nav-drawer .mnav-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-nav-overlay.open { display: block; }
}

/* ─── KEYBOARD SHORTCUT MODAL ─── */
.shortcut-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}

.shortcut-modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}

.shortcut-modal {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 32px 80px rgba(0,0,0,.6);
    transform: scale(.95);
    transition: transform .2s;
}

.shortcut-modal-backdrop.open .shortcut-modal {
    transform: scale(1);
}

.shortcut-modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shortcut-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--muted);
    cursor: pointer;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shortcut-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shortcut-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.shortcut-desc {
    font-size: .84rem;
    color: var(--text);
}

.shortcut-keys {
    display: flex;
    gap: 4px;
    align-items: center;
}

.kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: monospace;
    font-size: .75rem;
    color: var(--teal);
    font-weight: 700;
    box-shadow: 0 2px 0 var(--border);
}

/* ─── EXIF VIEWER ─── */
.exif-panel {
    margin-bottom: 12px;
    padding: 12px 14px;
    background: rgba(139,92,246,.06);
    border: 1px solid rgba(139,92,246,.18);
    border-radius: 12px;
    animation: fadeUp .3s ease both;
}

.exif-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.exif-title {
    font-size: .73rem;
    font-weight: 700;
    color: var(--purple);
    text-transform: uppercase;
    letter-spacing: .07em;
}

.exif-toggle-strip {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .7rem;
    color: var(--muted);
}

.exif-toggle {
    position: relative;
    width: 32px;
    height: 18px;
    cursor: pointer;
}

.exif-toggle input { opacity: 0; width: 0; height: 0; }

.exif-toggle-track {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    background: var(--border);
    transition: .2s;
}

.exif-toggle input:checked + .exif-toggle-track {
    background: var(--teal);
}

.exif-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    transition: .2s;
}

.exif-toggle input:checked ~ .exif-toggle-thumb {
    left: 16px;
}

.exif-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.exif-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    background: rgba(139,92,246,.1);
    border: 1px solid rgba(139,92,246,.2);
    border-radius: 100px;
    font-size: .68rem;
    font-weight: 600;
    color: var(--purple);
}

.exif-tag .exif-key {
    color: var(--muted);
    font-weight: 500;
}

/* ─── DENOISE PANEL ─── */
.denoise-opts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.dn-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.dn-label {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 100px;
}

.dn-slider-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.dn-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 100px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

.dn-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 8px rgba(0,212,170,.5);
    cursor: pointer;
}

.dn-val {
    font-family: 'Syne', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: var(--teal);
    width: 24px;
    text-align: center;
}

.denoise-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(0,212,170,.05);
    border: 1px solid rgba(0,212,170,.15);
    border-radius: 10px;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.55;
    margin-bottom: 14px;
}

.denoise-info svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--teal);
}

/* ─── STATS COUNTER ANIMATION ─── */
.sb-num {
    transition: color .3s;
}

.sb-num.counting {
    color: var(--teal) !important;
}

/* ─── TOOLS PILL (for tools.html link in nav) ─── */
.nav-tools-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid rgba(245,158,11,.25);
    color: var(--gold);
    font-size: .78rem;
    font-weight: 600;
    text-decoration: none;
    transition: .2s;
    background: rgba(245,158,11,.06);
}

.nav-tools-pill:hover {
    color: var(--gold) !important;
    background: rgba(245,158,11,.12) !important;
    border-color: rgba(245,158,11,.4) !important;
}

/* ─── DYNAMIC SCROLL REVEAL UTILITIES ─── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal.fade-left {
    transform: translateX(-30px);
}
.reveal.fade-left.active {
    transform: translateX(0);
}
.reveal.scale-up {
    transform: scale(0.95);
}
.reveal.scale-up.active {
    transform: scale(1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ══════════════════════════════════════════════
   PREMIUM POLISH — v6
══════════════════════════════════════════════ */

/* ─── NOISE TEXTURE OVERLAY ─── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px;
}

[data-theme="light"] body::after {
    opacity: 0.025;
}

/* ─── ANIMATED GRADIENT BORDER — UPLOAD CARD ─── */
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.upload-card {
    background: var(--card2);
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.upload-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r3);
    background: conic-gradient(from var(--angle), rgba(0,212,170,0), rgba(0,212,170,0.5), rgba(139,92,246,0.4), rgba(0,212,170,0));
    z-index: -1;
    animation: rotateGrad 6s linear infinite;
    opacity: 0.5;
    transition: opacity 0.4s;
}

.upload-card:hover::after {
    opacity: 1;
}

@keyframes rotateGrad {
    to { --angle: 360deg; }
}

/* ─── ENHANCED FEATURE CARDS ─── */
.feat-card {
    position: relative;
    overflow: hidden;
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s, border-color .35s;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0;
    transition: opacity .35s;
}

.feat-card:hover::before {
    opacity: 1;
}

.feat-card:hover {
    border-color: rgba(0,212,170,.25);
    box-shadow: 0 0 0 1px rgba(0,212,170,.08), 0 16px 48px rgba(0,0,0,.15), 0 0 40px rgba(0,212,170,.06);
    transform: translateY(-6px);
}

.feat-card:hover .feat-icon {
    transform: scale(1.1) rotate(-3deg);
    transition: transform .35s cubic-bezier(.16,1,.3,1);
}

/* ─── ENHANCED TOOL CARDS ─── */
.tool-card {
    transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s, border-color .35s;
}

.tool-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(0,0,0,.2);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 250%;
    height: 250%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.03) 50%, transparent 70%);
    transition: transform .6s;
    transform: translateX(-100%) rotate(45deg);
    pointer-events: none;
}

.tool-card:hover::before {
    transform: translateX(30%) rotate(45deg);
}

/* ─── ENHANCED STEP NUMBERS ─── */
.step-num {
    position: relative;
    overflow: hidden;
}

.step-num::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 70%);
    pointer-events: none;
}

.sn1 { box-shadow: 0 0 24px rgba(0,212,170,.2); }
.sn2 { box-shadow: 0 0 24px rgba(139,92,246,.2); }
.sn3 { box-shadow: 0 0 24px rgba(245,158,11,.2); }

/* ─── SECTION GRADIENT DIVIDERS ─── */
section {
    position: relative;
}

#features::before,
#tools::before,
#how::before,
#compare::before,
#pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,170,.2), rgba(139,92,246,.15), transparent);
}

/* ─── IMPORT SOURCE BUTTONS ─── */
.import-sources {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}

.import-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--muted);
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .25s cubic-bezier(.16,1,.3,1);
    white-space: nowrap;
}

.import-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.import-gdrive:hover {
    border-color: rgba(66,133,244,.4);
    background: rgba(66,133,244,.08);
    color: #4285F4;
}

.import-dropbox:hover {
    border-color: rgba(0,97,254,.4);
    background: rgba(0,97,254,.08);
    color: #0061FE;
}

.import-paste:hover {
    border-color: rgba(0,212,170,.4);
    background: rgba(0,212,170,.08);
    color: var(--teal);
}

/* Paste feedback pulse */
@keyframes pastePulse {
    0% { box-shadow: 0 0 0 0 rgba(0,212,170,.4); }
    70% { box-shadow: 0 0 0 12px rgba(0,212,170,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,212,170,0); }
}

.drop-zone.paste-flash {
    animation: pastePulse .6s ease;
    border-color: var(--teal) !important;
    background: rgba(0,212,170,.06) !important;
}

/* ─── SOCIAL PROOF ─── */
.social-proof {
    padding: 32px 0 0;
    text-align: center;
}

.sp-title {
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .04em;
    margin-bottom: 16px;
}

.sp-logos {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.sp-logo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 16px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: var(--glass);
    font-size: .73rem;
    font-weight: 600;
    color: var(--muted);
    transition: all .25s;
}

.sp-logo:hover {
    border-color: rgba(0,212,170,.3);
    background: rgba(0,212,170,.05);
    color: var(--text);
    transform: translateY(-2px);
}

.sp-reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
    max-width: 880px;
    margin: 0 auto;
}

.sp-review {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--r2);
    background: var(--card);
    text-align: left;
    transition: all .3s cubic-bezier(.16,1,.3,1);
    position: relative;
    overflow: hidden;
}

.sp-review::before {
    content: '"';
    position: absolute;
    top: -12px;
    right: 12px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--teal);
    opacity: .1;
    line-height: 1;
    pointer-events: none;
}

.sp-review:hover {
    border-color: rgba(0,212,170,.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.sp-stars {
    color: #fbbf24;
    font-size: .85rem;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.sp-quote {
    font-size: .84rem;
    line-height: 1.65;
    color: var(--text2);
    margin-bottom: 10px;
    font-style: italic;
}

.sp-author {
    font-size: .72rem;
    font-weight: 600;
    color: var(--muted);
}

/* ─── UNIFIED PRICING ─── */
.pricing-unified {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-top: 48px;
    border: 1px solid var(--border);
    border-radius: var(--r3);
    overflow: hidden;
    position: relative;
    background: var(--card);
    box-shadow: 0 32px 80px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.05);
}

.pricing-unified-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--r3);
    background: conic-gradient(from 180deg, rgba(0,212,170,0), rgba(0,212,170,0.4), rgba(139,92,246,0.3), rgba(0,212,170,0));
    z-index: -1;
    animation: rotateGrad 8s linear infinite;
    opacity: 0.4;
}

.pricing-col {
    padding: 36px 32px;
    text-align: left;
}

.pricing-col-free {
    border-right: 1px solid var(--border);
}

.pricing-col-pro {
    background: rgba(0,212,170,.03);
    position: relative;
}

.pricing-col-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--glass2);
    border: 1px solid var(--border);
    color: var(--muted);
    margin-bottom: 16px;
}

.pricing-col-badge-pro {
    background: rgba(0,212,170,.12);
    border-color: rgba(0,212,170,.3);
    color: var(--teal);
}

.pricing-col .plan-price {
    text-align: left;
}

.pricing-col .plan-period {
    text-align: left;
}

.pricing-col .plan-features {
    text-align: left;
}

.pricing-col .plan-features li {
    text-align: left;
}

.plan-price-mo {
    font-size: .9rem;
    font-weight: 600;
    opacity: .5;
}

.plan-guarantee {
    font-size: .72rem;
    color: var(--muted);
    margin-top: 12px;
    text-align: center;
}

.pricing-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    color: var(--muted);
    font-size: .74rem;
}

.pricing-footer-note svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--teal);
}

/* ─── FOOTER SOCIAL ─── */
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1rem;
    transition: all .25s;
    color: var(--muted);
}

.social-link:hover {
    border-color: rgba(0,212,170,.3);
    background: rgba(0,212,170,.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

/* ─── BUTTON RIPPLE MICRO-ANIMATION ─── */
.compress-btn:active,
.plan-btn:active,
.nav-cta:active,
.download-btn:active {
    transform: scale(0.97) !important;
    transition: transform .08s !important;
}

/* ─── ENHANCED STATS BANNER ─── */
.stats-banner {
    position: relative;
    overflow: hidden;
}

.stats-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 60%, rgba(0,212,170,.04) 80%, transparent 100%);
    animation: statsGlow 10s linear infinite;
    pointer-events: none;
}

@keyframes statsGlow {
    to { transform: rotate(360deg); }
}

/* ─── RESPONSIVE FOR NEW ELEMENTS ─── */
@media (max-width: 768px) {
    .pricing-unified {
        grid-template-columns: 1fr;
    }

    .pricing-col-free {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .sp-reviews {
        grid-template-columns: 1fr;
    }

    .import-sources {
        gap: 6px;
    }

    .import-btn {
        font-size: .68rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .pricing-col {
        padding: 24px 20px;
    }

    .sp-logos {
        gap: 8px;
    }

    .sp-logo {
        font-size: .68rem;
        padding: 5px 12px;
    }
}

/* ══════════════════════════════════════════════
   GENIUS ANIMATIONS — v7
══════════════════════════════════════════════ */

/* ─── PAGE LOADER ─── */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #07070f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity .5s cubic-bezier(.4,0,.2,1), visibility .5s;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 56px;
    height: 56px;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

.loader-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 20px rgba(0,212,170,.5));
}

.loader-svg path {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: loaderDraw 1s ease forwards;
}

.loader-bar {
    width: 120px;
    height: 3px;
    background: rgba(255,255,255,.08);
    border-radius: 100px;
    overflow: hidden;
}

.loader-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), #8b5cf6);
    border-radius: 100px;
    animation: loaderFill .8s ease forwards;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes loaderDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes loaderFill {
    to { width: 100%; }
}

/* Page ready — elements animate in */
body:not(.page-ready) .hero h1,
body:not(.page-ready) .hero-sub,
body:not(.page-ready) .upload-card,
body:not(.page-ready) .mode-tabs,
body:not(.page-ready) .pill-badge,
body:not(.page-ready) .trust-row {
    opacity: 0;
}

body.page-ready .hero h1 { animation: heroEnter .8s .1s cubic-bezier(.16,1,.3,1) both; }
body.page-ready .hero-sub { animation: heroEnter .8s .25s cubic-bezier(.16,1,.3,1) both; }
body.page-ready .pill-badge { animation: heroEnter .8s .0s cubic-bezier(.16,1,.3,1) both; }
body.page-ready .mode-tabs { animation: heroEnter .8s .35s cubic-bezier(.16,1,.3,1) both; }
body.page-ready .upload-card { animation: heroCardEnter 1s .5s cubic-bezier(.16,1,.3,1) both; }
body.page-ready .trust-row { animation: heroEnter .8s .65s cubic-bezier(.16,1,.3,1) both; }

@keyframes heroEnter {
    from { opacity: 0; transform: translateY(30px); filter: blur(4px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes heroCardEnter {
    from { opacity: 0; transform: translateY(40px) scale(0.96); filter: blur(6px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* ─── PARTICLE CANVAS ─── */
#particleCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

[data-theme="light"] #particleCanvas {
    opacity: 0.3;
}

/* ─── MAGNETIC CURSOR FOLLOWER ─── */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    z-index: 99998;
    pointer-events: none;
    margin: -3px 0 0 -3px;
    transition: width .2s, height .2s, margin .2s, opacity .2s, background .2s;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    top: 0; left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(0,212,170,.35);
    border-radius: 50%;
    z-index: 99997;
    pointer-events: none;
    margin: -18px 0 0 -18px;
    transition: width .35s cubic-bezier(.16,1,.3,1), height .35s cubic-bezier(.16,1,.3,1), margin .35s cubic-bezier(.16,1,.3,1), border-color .2s, opacity .2s;
}

/* Hover expanded state */
.cursor-dot.cursor-hover {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background: rgba(0,212,170,.6);
}

.cursor-ring.cursor-hover {
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    border-color: rgba(0,212,170,.6);
}

/* Click state */
.cursor-dot.cursor-click {
    width: 4px;
    height: 4px;
    margin: -2px 0 0 -2px;
    background: white;
}

.cursor-ring.cursor-click {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-color: rgba(0,212,170,.8);
}

/* ─── HERO CHARACTER SPLIT REVEAL ─── */
/* Word containers prevent mid-word line breaks */
.word-wrap {
    display: inline-block;
    white-space: nowrap;
}

.char-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(40deg);
    animation: charIn .5s cubic-bezier(.16,1,.3,1) forwards;
}

@keyframes charIn {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Hero subtitle typing feel */
.hero-sub-typed {
    background: linear-gradient(90deg, var(--text2) 50%, transparent 50%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: subtitleReveal 1.2s .8s cubic-bezier(.16,1,.3,1) both;
}

@keyframes subtitleReveal {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

/* ─── STAGGERED ENTRANCE ANIMATIONS ─── */

/* Slide up */
.anim-slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: none;
}

.anim-slide-up.anim-in {
    animation: animSlideUp .7s cubic-bezier(.16,1,.3,1) forwards;
    animation-delay: inherit;
}

@keyframes animSlideUp {
    from { opacity: 0; transform: translateY(40px); filter: blur(3px); }
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Fade + scale */
.anim-fade-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: none;
}

.anim-fade-scale.anim-in {
    animation: animFadeScale .6s cubic-bezier(.16,1,.3,1) forwards;
    animation-delay: inherit;
}

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

/* Count pop */
.anim-count-pop {
    opacity: 0;
    transform: scale(0.8);
    transition: none;
}

.anim-count-pop.anim-in {
    animation: animCountPop .5s cubic-bezier(.34,1.56,.64,1) forwards;
    animation-delay: inherit;
}

@keyframes animCountPop {
    0% { opacity: 0; transform: scale(0.8); }
    60% { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* ─── MODE TAB SLIDER ─── */
.tab-slider-bg {
    position: absolute;
    background: rgba(0,212,170,.12);
    border: 1px solid rgba(0,212,170,.25);
    border-radius: 10px;
    transition: all .35s cubic-bezier(.16,1,.3,1);
    z-index: 0;
    pointer-events: none;
}

.mode-tab {
    position: relative;
    z-index: 1;
}

/* ─── NAV ANIMATIONS ─── */
#mainNav {
    transition: transform .35s cubic-bezier(.16,1,.3,1), background .35s, box-shadow .35s, padding .35s;
}

.nav-scrolled {
    background: rgba(7,7,15,.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,.3) !important;
}

[data-theme="light"] .nav-scrolled {
    background: rgba(255,255,255,.95) !important;
    box-shadow: 0 4px 30px rgba(0,0,0,.08) !important;
}

.nav-hidden {
    transform: translateY(-100%);
}

/* ─── PROGRESS BAR GLOW ─── */
.progress-active {
    position: relative;
    box-shadow: 0 0 16px rgba(0,212,170,.5);
}

.progress-active::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.6));
    animation: progressShine 1s ease-in-out infinite;
    border-radius: 0 100px 100px 0;
}

@keyframes progressShine {
    0%, 100% { opacity: .3; }
    50% { opacity: 1; }
}

/* Section visible marks — handled by JS */
.section-visible {
    animation: sectionFadeIn .6s ease both;
}

@keyframes sectionFadeIn {
    from { opacity: 0.85; }
    to { opacity: 1; }
}

/* ─── 3D TILT STYLES ─── */
.feat-card,
.tool-card,
.sp-review,
.pricing-col {
    transform-style: preserve-3d;
    will-change: transform;
}

/* ─── PARTY MODE (KONAMI CODE) ─── */
.party-mode {
    animation: partyRainbow 2s linear infinite !important;
}

.party-mode * {
    animation-duration: 0.5s !important;
}

.party-mode .ab {
    animation: partyBlobs 0.8s linear infinite !important;
}

@keyframes partyRainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

@keyframes partyBlobs {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.5) rotate(180deg); }
}

/* ─── SMOOTH SCROLL BEHAVIOR ─── */
html {
    scroll-behavior: smooth;
}

/* ─── REDUCED MOTION SUPPORT ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .cursor-dot, .cursor-ring {
        display: none !important;
    }

    #particleCanvas {
        display: none !important;
    }

    .page-loader {
        display: none !important;
    }

    .char-reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ─── HIDE CURSOR ON TOUCH DEVICES ─── */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════
   ENHANCEMENT PATCH — v6
   Nav Auth · Thumbnail · Micro-Interactions
══════════════════════════════════════════════ */

/* ─── NAV AUTH ELEMENTS (extracted from inline) ─── */
.nav-dash-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    transition: .2s;
}
.nav-dash-btn:hover { color: var(--text); border-color: rgba(0,212,170,.3); }

.nav-user-info {
    display: none;
    align-items: center;
    gap: 8px;
}

.nav-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00d4aa, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 0 0 2px rgba(0,212,170,.2);
    transition: box-shadow .2s;
}
.nav-avatar:hover { box-shadow: 0 0 0 3px rgba(0,212,170,.4); }

.nav-username {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-login-btn {
    background: transparent !important;
    border: 1px solid rgba(0,212,170,.5) !important;
    color: var(--teal) !important;
    box-shadow: none !important;
}
.nav-login-btn:hover {
    background: rgba(0,212,170,.08) !important;
    border-color: var(--teal) !important;
}

.nav-logout-btn {
    display: none;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 9px;
    font-size: .82rem;
    cursor: pointer;
    transition: .2s;
    font-family: var(--font-body);
}
.nav-logout-btn:hover { color: #f87171; border-color: rgba(239,68,68,.3); }

/* ─── IMAGE THUMBNAIL PREVIEW ─── */
.upload-thumb-wrap {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 12px;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity .35s cubic-bezier(.16,1,.3,1), transform .35s cubic-bezier(.16,1,.3,1);
}
.upload-thumb-wrap.visible {
    display: flex;
    opacity: 1;
    transform: scale(1);
    animation: thumbReveal .4s cubic-bezier(.34,1.56,.64,1) both;
}

.upload-thumb {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid rgba(0,212,170,.25);
    box-shadow: 0 4px 20px rgba(0,0,0,.3), 0 0 0 1px rgba(0,212,170,.1);
    transition: border-color .2s, box-shadow .2s;
}
.upload-thumb:hover {
    border-color: var(--teal);
    box-shadow: 0 8px 32px rgba(0,212,170,.2);
}

.upload-thumb-dims {
    position: absolute;
    bottom: -4px;
    right: -8px;
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(0,212,170,.9);
    color: #07070f;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
    pointer-events: none;
}

@keyframes thumbReveal {
    from { opacity: 0; transform: scale(0.6) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── UPLOAD SUCCESS PULSE ─── */
.drop-zone.upload-success {
    animation: uploadPulse .8s cubic-bezier(.16,1,.3,1);
}

@keyframes uploadPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,212,170,.4); }
    40%  { box-shadow: 0 0 0 12px rgba(0,212,170,.15); border-color: var(--teal); }
    100% { box-shadow: 0 0 0 0 rgba(0,212,170,0); }
}

/* ─── PASTE FLASH ─── */
.drop-zone.paste-flash {
    animation: pasteFlash .6s ease;
}

@keyframes pasteFlash {
    0%   { background: var(--card); }
    30%  { background: rgba(0,212,170,.08); border-color: var(--teal); }
    100% { background: var(--card); }
}

/* ─── AVIF FORMAT BADGE ─── */
.fmt-avif {
    position: relative;
    background: rgba(139,92,246,.06) !important;
    border-color: rgba(139,92,246,.25) !important;
    color: var(--purple) !important;
}
.fmt-avif.active {
    background: rgba(139,92,246,.15) !important;
    border-color: var(--purple) !important;
    color: var(--purple) !important;
    box-shadow: 0 0 12px rgba(139,92,246,.2);
}

/* ─── PROCESSING SHIMMER ─── */
.proc-shimmer {
    position: relative;
    overflow: hidden;
}
.proc-shimmer::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,212,170,.06), transparent);
    animation: shimmerSlide 1.8s ease-in-out infinite;
}

@keyframes shimmerSlide {
    from { left: -50%; }
    to   { left: 150%; }
}

/* ─── IMPORT URL BUTTON ─── */
.import-url {
    border-color: rgba(139,92,246,.2) !important;
}
.import-url:hover {
    border-color: rgba(139,92,246,.4) !important;
    color: var(--purple) !important;
}