/* =========================================================================
   ResizeNow — Real, professional product UI (front-end)
   Clean system: single brand color, stroke icons, honest spacing.
   ========================================================================= */
:root {
    --brand: #4f46e5;
    --brand-700: #4338ca;
    --brand-50: #eef2ff;
    --cyan: #06b6d4;
    --ink: #0f172a;
    --body: #334155;
    --muted: #64748b;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --line: #e7eaf0;
    --line-strong: #d6dbe4;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -16px rgba(15,23,42,.18);
    --shadow-lg: 0 24px 60px -28px rgba(79,70,229,.45);
    --maxw: 1920px;
    --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--body); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-700); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
.lead { color: var(--muted); font-size: 1.12rem; }

/* Hyper-Realistic Vector Icons Core */
.ico {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
}
.ico-lg { width: 26px; height: 26px; }
.ico-sm { width: 15px; height: 15px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border: 1px solid var(--line-strong);
    border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; background: #fff; color: var(--ink);
    transition: .16s; font-family: inherit; }
.btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-lg); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-ghost { background: transparent; }
.link-btn { background: none; border: none; color: var(--brand); font-weight: 600; cursor: pointer; font-size: inherit; padding: 0; font-family: inherit; }
.link-btn:hover { color: var(--brand-700); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; padding: 14px 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.03em; text-decoration: none !important; transition: transform .2s ease; }
.logo:hover { transform: scale(1.02); }
.logo-mark { width: 36px; height: 36px; flex: none; transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1); filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.28)); }
.logo:hover .logo-mark { transform: rotate(4deg) scale(1.08); }
.logo-text { display: inline-flex; align-items: center; gap: 4px; line-height: 1; font-family: inherit; }
.logo-text-main { color: var(--ink); font-weight: 900; letter-spacing: -0.04em; }
.logo-text-accent { background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-weight: 900; letter-spacing: -0.03em; }
.logo-badge { background: linear-gradient(135deg, #e0e7ff, #cffafe); color: #4338ca; font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 6px; letter-spacing: .06em; border: 1px solid rgba(99, 102, 241, 0.2); margin-left: 3px; }
.site-footer .logo-text-main { color: #ffffff; }
.site-nav { margin-left: auto; }
.nav-menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav-menu > li > a { display: block; padding: 9px 14px; border-radius: 9px; color: var(--body); font-weight: 600; font-size: 15px; }
.nav-menu > li > a:hover { background: var(--brand-50); color: var(--brand); }
.sub-menu { list-style: none; position: absolute; top: 100%; left: 0; min-width: 200px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 7px; display: none; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { display: block; }
.sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--body); }
.sub-menu a:hover { background: var(--bg-soft); color: var(--brand); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; cursor: pointer; color: var(--ink); }

/* Hero with crisp realistic background and centered alignment */
.hero {
    position: relative;
    padding: 88px 0 74px;
    overflow: hidden;
    isolation: isolate;
    background: #040814;
    color: #fff;
    text-align: center;
}
/* layer 1: ultra-sharp realistic background photo */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    z-index: -3;
    background-image: url('../img/hero.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.92;
    filter: brightness(0.95) contrast(1.08);
}
/* layer 2: interactive optical ambient canvas */
.fx-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: -2;
    pointer-events: none;
}
/* layer 3: gentle dark vignette for crisp contrast */
.hero .scrim {
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(1200px 700px at 50% 20%, rgba(4, 8, 20, 0.15), rgba(4, 8, 20, 0.65)),
                linear-gradient(180deg, rgba(4, 8, 20, 0.3) 0%, rgba(4, 8, 20, 0.7) 70%, #040814 100%);
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Ultra-Attractive Realistic Hero Welcome Badge */
.hero-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 6px 16px 6px 12px;
    border-radius: 999px;
    margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.hero-welcome-badge::after {
    content: "";
    position: absolute;
    top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transform: skewX(-20deg);
    animation: badgeShimmer 4.5s infinite ease-in-out;
}
@keyframes badgeShimmer {
    0%, 60% { left: -100%; }
    100% { left: 200%; }
}
.hero-welcome-badge:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.45);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%);
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

/* Pulsing Radar Core */
.badge-radar-pulse {
    position: relative;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radar-core {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    position: relative;
    z-index: 2;
}
.radar-wave {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.6);
    animation: radarPulse 2s infinite ease-out;
    z-index: 1;
}
@keyframes radarPulse {
    0% { transform: scale(0.4); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

.badge-tag {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .06em;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}
.badge-divider {
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.25);
}
.badge-msg {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: -0.01em;
}
.badge-arrow {
    font-size: 14px;
    font-weight: 700;
    color: #38bdf8;
    transition: transform .2s ease;
}
.hero-welcome-badge:hover .badge-arrow {
    transform: translateX(3px);
}

/* 3D High-Quality Typography System with Animated Color Dynamics */
.hero h1, .hero-3d-title, .grad-text {
    font-size: clamp(38px, 6vw, 62px);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: #ffffff;
    max-width: 18ch;
    margin: 0 auto 18px;
    text-align: center;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.95),
        0 2px 1px rgba(203, 213, 225, 0.65),
        0 3px 2px rgba(148, 163, 184, 0.55),
        0 4px 4px rgba(71, 85, 105, 0.45),
        0 8px 16px rgba(15, 23, 42, 0.65),
        0 16px 36px rgba(2, 6, 23, 0.85);
    position: relative;
    z-index: 1;
}

@keyframes heroColorCycle {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.65))
                drop-shadow(0 8px 24px rgba(99, 102, 241, 0.55));
    }
    25% {
        background-position: 50% 100%;
        filter: drop-shadow(0 2px 8px rgba(192, 132, 252, 0.65))
                drop-shadow(0 8px 24px rgba(244, 114, 182, 0.55));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 2px 8px rgba(251, 146, 60, 0.65))
                drop-shadow(0 8px 24px rgba(245, 158, 11, 0.55));
    }
    75% {
        background-position: 50% 0%;
        filter: drop-shadow(0 2px 8px rgba(52, 211, 153, 0.65))
                drop-shadow(0 8px 24px rgba(34, 211, 238, 0.55));
    }
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 8px rgba(56, 189, 248, 0.65))
                drop-shadow(0 8px 24px rgba(99, 102, 241, 0.55));
    }
}

.text-3d-glow {
    display: inline-block;
    background: linear-gradient(
        270deg,
        #38bdf8,
        #818cf8,
        #c084fc,
        #f472b6,
        #fb923c,
        #34d399,
        #22d3ee,
        #818cf8,
        #38bdf8
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroColorCycle 7s ease infinite;
    position: relative;
}

.hero .lead {
    max-width: 660px;
    margin: 0 auto 28px;
    text-align: center;
    color: rgba(255,255,255,.94);
    font-size: 18.5px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.hero-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 auto;
}
.hero-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); box-shadow: 0 4px 12px rgba(0,0,0,0.25); text-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.hero-cta .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.15); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.35); }
.hero-cta .btn-primary { background: #fff; border-color: #fff; color: var(--brand); box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.hero-cta .btn-primary:hover { background: #e0e7ff; color: var(--brand-700); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.45); }

.hero .trustbar {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: center;
    justify-content: center;
    margin: 32px auto 0;
    color: rgba(255,255,255,.95);
    text-align: center;
}
.hero .trustbar .stat {
    display: flex;
    align-items: baseline;
    gap: 7px;
}
.hero .trustbar .stat b {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.03em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85),
        0 2px 2px rgba(0, 0, 0, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.7);
}
.hero .trustbar .stars { color: #fbbf24; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); display: inline-flex; gap: 2px; }
.hero .trustbar .stars .ico { width: 16px; height: 16px; }

/* Brand logos strip */
.brand-strip {
    margin: 28px auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.brand-strip-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75); letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.brand-logos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }
.brand-item { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
    padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #fff; backdrop-filter: blur(8px);
    transition: all .2s ease; }
.brand-item:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.35); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.brand-item .ico { width: 17px; height: 17px; }

/* Tool card with frosted glassmorphic realism */
.resizer-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: var(--radius);
    box-shadow: 0 28px 80px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    padding: 32px;
    margin: 36px auto 0;
    width: 100%;
    max-width: 1040px;
    position: relative;
    z-index: 10;
    text-align: left;
}
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.tool-head .badge { background: linear-gradient(135deg, #e0e7ff, #cffafe); color: #4338ca; font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; letter-spacing: .05em; box-shadow: 0 2px 6px rgba(99,102,241,.15); }
.tool-head strong { font-size: 18px; color: var(--ink); display: flex; align-items: center; gap: 8px; font-weight: 800; }
.btn-clear { background: #fee2e2; border: 1px solid #fecaca; color: #dc2626; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: .2s; }
.btn-clear:hover { background: #fca5a5; }

/* Dropzone & Live Preview */
.dropzone {
    border: 2px dashed rgba(99, 102, 241, 0.45);
    border-radius: var(--radius);
    padding: 34px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.6));
    cursor: pointer;
    transition: all .25s ease;
    position: relative;
}
.dropzone:hover, .dropzone.drag {
    border-color: var(--brand);
    background: linear-gradient(180deg, rgba(238, 242, 255, 0.95), rgba(224, 231, 255, 0.8));
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -10px rgba(79, 70, 229, 0.25);
}
.dropzone.has-file { padding: 18px; border-style: solid; border-color: rgba(99, 102, 241, 0.35); }
.dz-icon-wrap { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; }
.dz-icon-wrap .ico { width: 26px; height: 26px; }
.dz-inner strong { display: block; font-size: 17px; color: var(--ink); margin-bottom: 4px; }
.dz-inner span { color: var(--muted); font-size: 14px; }

/* Uploaded Image Live Preview Box */
.dz-preview { display: flex; align-items: center; gap: 18px; text-align: left; background: #fff; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
.dz-preview img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line-strong); flex: none; }
.dz-meta { display: flex; flex-direction: column; gap: 6px; }
.dz-meta strong { color: var(--ink); font-size: 15px; word-break: break-all; }
.dz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: #f1f5f9; color: #475569; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; border: 1px solid #e2e8f0; }
.chip-type { background: #e0e7ff; color: #4338ca; border-color: #c7d2fe; }

/* Quick Presets Pills */
.quick-presets { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.preset-title { font-size: 13px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.preset-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.preset-pill { background: #fff; border: 1px solid var(--line-strong); padding: 7px 13px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .18s ease; }
.preset-pill:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: 0 4px 10px rgba(79,70,229,0.12); }
.preset-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(79,70,229,0.3); }
.preset-pill .ico { width: 15px; height: 15px; }

.preset-pill-id {
    background: #f8fafc;
    border-color: #cbd5e1;
    font-weight: 700;
}
.preset-pill-id:hover {
    background: #eef2ff;
    border-color: var(--brand);
}

/* Studio Segmented Tool Switcher - Hyper-Realistic Frosted Glass Capsule */
.studio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 24px 0 18px;
    padding: 6px;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.8) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}
.studio-tab {
    flex: 1 1 auto;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 11px;
    padding: 10px 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .22s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.studio-tab .ico {
    width: 17px;
    height: 17px;
    color: #64748b;
    transition: transform .2s ease, color .2s ease;
}
.studio-tab:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}
.studio-tab:hover .ico {
    color: var(--brand);
    transform: scale(1.1);
}
.studio-tab.active {
    background: #ffffff;
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.15), 0 1px 3px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    transform: translateY(-1px);
    font-weight: 800;
}
.studio-tab.active .ico {
    color: #4f46e5;
    transform: scale(1.12);
}

.tool-card.tool-dimmed {
    opacity: 0.28;
    filter: grayscale(0.6);
    transform: scale(0.98);
}
.tool-card.tool-highlight {
    border-color: var(--brand);
    box-shadow: 0 12px 36px rgba(79, 70, 229, 0.22), 0 0 0 2px var(--brand);
    transform: translateY(-3px);
}

.kbd-shortcut {
    display: inline-block;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 5px;
    padding: 1px 6px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Tool status */
.tool-status { margin-top: 18px; padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: center; display: none; }
.tool-status:not(:empty) { display: block; }
.status-ok { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-err { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Result Box */
.result { margin-top: 28px; background: #f8fafc; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.result-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.result-title-group { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.result-header strong { font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 7px; }

/* Savings Chip */
.savings-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.chip-orig { color: #64748b; text-decoration: line-through; }
.chip-new { color: #0f172a; font-weight: 700; }
.chip-saved { background: #dcfce7; color: #15803d; font-weight: 800; padding: 2px 7px; border-radius: 999px; font-size: 11.5px; }

.result-view { text-align: center; background: #fff; padding: 16px; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; }
.result-view img { max-height: 440px; margin: 0 auto; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.result-view img { max-height: 440px; margin: 0 auto; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* Social Icons in Footer */
.social { display: flex; gap: 8px; flex-wrap: wrap; }
.social-btn { width: 38px; height: 38px; border-radius: 10px; background: #1a2336; color: #c2cbd8; display: grid; place-items: center; transition: all .2s ease; border: 1px solid rgba(255,255,255,0.06); }
.social-btn:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,0.4); }
.social-twitter:hover { background: #000000; }
.social-instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-youtube:hover { background: #ff0000; }
.social-github:hover { background: #24292e; }
.social-discord:hover { background: #5865f2; }
.social-linkedin:hover { background: #0a66c2; }
.social-facebook:hover { background: #1877f2; }

/* Sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 42px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 900; letter-spacing: -0.035em; color: var(--ink); text-shadow: 0 1px 0 #ffffff, 0 2px 1px rgba(226, 232, 240, 0.9), 0 4px 10px rgba(15, 23, 42, 0.08); }
.section-head .lead { margin: 0; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .16s; }
.feature:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature .ic {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--brand);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    transition: all .2s ease;
}
.feature:hover .ic {
    transform: scale(1.08) rotate(3deg);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.2);
}
.feature .ic .ico { width: 24px; height: 24px; }
.feature h3 { font-size: 17.5px; font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.feature p { color: var(--body); margin: 0; font-size: 14.5px; line-height: 1.6; }

/* ==========================================================================
   Hyper-Realistic How It Works 3-Step Workflow System
   ========================================================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
    margin-top: 14px;
}
.step {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
}
.step::before {
    display: none;
}
.step:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px -10px rgba(79, 70, 229, 0.14), 0 0 0 1px rgba(79, 70, 229, 0.15) inset;
}
.step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.step-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
    transition: transform .2s ease;
}
.step-icon-wrap .ico {
    width: 24px;
    height: 24px;
}
.step:hover .step-icon-wrap {
    transform: scale(1.08) rotate(3deg);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);
}
.step-badge {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
    text-transform: uppercase;
}
.step h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}
.step p {
    color: var(--body);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 0 18px;
    flex: 1;
}
.step-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #4338ca;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border: 1px solid rgba(99, 102, 241, 0.22);
    padding: 5px 12px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.08);
    align-self: flex-start;
    transition: all .2s ease;
}
.step-tag .ico {
    width: 14px;
    height: 14px;
    color: #4f46e5;
    flex-shrink: 0;
}
.step:hover .step-tag {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.15);
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

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

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.quote .stars { color: #f59e0b; display: inline-flex; gap: 2px; margin-bottom: 10px; }
.quote .stars .ico { width: 16px; height: 16px; }
.quote p { color: var(--body); margin: 0 0 14px; font-size: 15px; }
.quote .who { display: flex; align-items: center; gap: 10px; }
.quote .av { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 800; }
.quote .av-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-50); box-shadow: var(--shadow); }
.quote .who b { display: block; color: var(--ink); font-size: 14px; }
.quote .who span { color: var(--muted); font-size: 13px; }

/* ==========================================================================
   Hyper-Realistic Interactive FAQ Accordion System
   ========================================================================== */
.faq {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
}
.faq-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    transition: all .24s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.faq-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 10px 24px -5px rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
}
.faq-card[open] {
    border-color: rgba(99, 102, 241, 0.45);
    background: #ffffff;
    box-shadow: 0 12px 30px -6px rgba(79, 70, 229, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}
.faq-summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    user-select: none;
    outline: none;
}
.faq-summary::-webkit-details-marker {
    display: none;
}
.faq-summary::marker {
    display: none;
}
.faq-ico-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .2s ease;
}
.faq-card:hover .faq-ico-box {
    transform: scale(1.05);
}
.faq-ico-box .ico {
    width: 18px;
    height: 18px;
}
.faq-q {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ink);
    flex: 1;
    letter-spacing: -0.015em;
}
.faq-arrow-pill {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    flex-shrink: 0;
    transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-chevron {
    width: 16px;
    height: 16px;
    transition: transform .25s ease;
}
.faq-card[open] .faq-arrow-pill {
    background: var(--brand-50);
    border-color: rgba(79, 70, 229, 0.3);
    color: var(--brand);
}
.faq-card[open] .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    padding: 0 22px 20px 72px;
    animation: faqSlideDown .25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.faq-answer p {
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 640px) {
    .faq-answer {
        padding-left: 22px;
    }
    .faq-q {
        font-size: 15px;
    }
}

/* CTA with photorealistic ambient backdrop */
.cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 24px;
    padding: 64px 40px;
    text-align: center;
    background: url('../img/cta.jpg') center/cover no-repeat;
    box-shadow: 0 24px 60px -15px rgba(79, 70, 229, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}
.cta::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.5) 0%, rgba(7, 10, 20, 0.8) 100%),
                linear-gradient(135deg, rgba(79, 70, 229, 0.4), rgba(6, 182, 212, 0.3));
    backdrop-filter: blur(2px);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(30px, 4.6vw, 46px); font-weight: 900; letter-spacing: -0.035em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 2px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(0, 0, 0, 0.6), 0 14px 28px rgba(0, 0, 0, 0.7); }
.cta p { color: rgba(255,255,255,.94); font-size: 17px; max-width: 52ch; margin: 0 auto 24px; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.cta .btn {
    background: #fff;
    border-color: #fff;
    color: var(--brand);
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.cta .btn:hover { background: #e0e7ff; color: var(--brand-700); transform: translateY(-2px); }

/* Ad slots */
.ad-slot { margin: 22px 0; text-align: center; min-height: 10px; }
.ad-slot .ph { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 18px; color: var(--muted); font-size: 13px; background: var(--bg-soft); }

/* Footer */
.site-footer { background: #0b1220; color: #c2cbd8; margin-top: 64px; padding: 56px 0 28px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; color: #fff; }
.footer-brand .logo-mark { width: 28px; height: 28px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .03em; }
.site-footer p { color: #8b97a8; font-size: 14px; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu a { color: #c2cbd8; font-size: 14px; display: block; padding: 4px 0; }
.footer-menu a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social a { width: 36px; height: 36px; border-radius: 9px; background: #1a2336; color: #c2cbd8; display: grid; place-items: center; transition: .15s; }
.social a:hover { background: var(--brand); color: #fff; }
.copyright { color: #6b7787; font-size: 13px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #1a2336; text-align: center; }

/* Dark theme */
body.theme-dark { --bg: #0b1220; --bg-soft: #111a2e; --ink: #e6ebf5; --body: #b6c1d2; --muted: #8b97a8; --line: #233047; --line-strong: #2c3a54; --shadow: 0 8px 24px -16px rgba(0,0,0,.6); }
body.theme-dark .site-header { background: rgba(11,18,32,.9); }
body.theme-dark .feature, body.theme-dark .step, body.theme-dark .faq-item, body.theme-dark .quote, body.theme-dark .dropzone, body.theme-dark .resizer-card { background: var(--bg-soft); }

/* ============================================================
   ANIMATIONS — moving icons, text effects, scroll reveal
   ============================================================ */

/* --- Standalone tool cards (Sleek Pro Studio UI) --- */
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin-top: 24px; }
.tool-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
    transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #0f172a !important;
}
.tool-card:hover {
    border-color: #818cf8;
    background: #ffffff;
    box-shadow: 0 14px 34px -8px rgba(79, 70, 229, 0.22);
    transform: translateY(-2px);
}
.tool-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    color: #0f172a !important;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f1f5f9;
}
.tool-card-head .ico {
    width: 24px;
    height: 24px;
    color: #4f46e5;
    background: #eef2ff;
    padding: 3px;
    border-radius: 8px;
    flex-shrink: 0;
}
.tool-card .field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.tool-card .field > label {
    font-weight: 700;
    font-size: 13px;
    color: #1e293b !important;
    text-transform: none;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.tool-card select,
.tool-card input[type=number],
.tool-card input[type=text] {
    padding: 12px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14.5px;
    background: #f8fafc;
    color: #0f172a !important;
    font-weight: 600;
    font-family: inherit;
    width: 100%;
    transition: all .2s ease;
}
.tool-card select:focus,
.tool-card input:focus {
    outline: none;
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.tool-card .check {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 13.5px;
    color: #334155 !important;
    cursor: pointer;
    margin-top: 4px;
}
.tool-card .check input[type=checkbox] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    border-radius: 4px;
    cursor: pointer;
}
.tool-card .btn-primary.full {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35) !important;
    transition: all .2s ease;
    margin-top: 8px;
}
.tool-card .btn-primary.full:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.45) !important;
    filter: brightness(1.06);
}
.tool-card .btn-primary.full:active {
    transform: translateY(0);
}
.fx-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: #e2e8f0;
    outline: none;
    transition: background .2s;
    margin: 6px 0;
}
.fx-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #4f46e5;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(79,70,229,0.45);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.fx-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #4338ca;
}
.val-pill {
    background: #eef2ff;
    color: #4f46e5;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 8px;
    border: 1px solid #e0e7ff;
}
.muted-note { color: #64748b !important; font-size: 12.5px; margin: 0; }
@media (max-width: 720px) { .tool-grid { grid-template-columns: 1fr; } }

/* --- Animated reviews: dual-row marquee, attractive cards --- */
.reviews { position: relative; overflow: hidden; padding: 64px 0 72px; isolation: isolate; background: #0b1020; }
.reviews-bg { position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(120deg, #1e1b4b, #0e7490, #4c1d95, #0369a1, #1e1b4b);
    background-size: 400% 400%; animation: heroHue 16s ease infinite; opacity: .95; }
.reviews-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(500px 260px at 12% 10%, rgba(129,140,248,.35), transparent 60%),
        radial-gradient(460px 260px at 88% 90%, rgba(34,211,238,.30), transparent 60%),
        radial-gradient(400px 220px at 50% 50%, rgba(192,132,252,.18), transparent 60%); }
.reviews .eyebrow { display: inline-flex; align-items: center; gap: 6px; color: #a5f3fc; font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 5px 12px; border-radius: 999px; }
.reviews .section-head h2 { color: #fff; margin-top: 14px; }
.reviews .section-head .lead { color: rgba(255,255,255,.82); }

.marquee-stack { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; }
.marquee-left .marquee-track { animation: marqueeL 46s linear infinite; }
.marquee-right .marquee-track { animation: marqueeR 46s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeL { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.review-card { width: 320px; flex: none; position: relative; background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px 20px 18px;
    backdrop-filter: blur(6px); box-shadow: 0 18px 44px -22px rgba(0,0,0,.6);
    transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.review-card:hover { transform: translateY(-6px) scale(1.02); border-color: rgba(165,243,252,.5); background: rgba(255,255,255,.12); }
.review-card .quote-mark { position: absolute; top: 12px; right: 16px; color: rgba(165,243,252,.5); }
.review-card .quote-mark .ico { width: 26px; height: 26px; }
.review-card .stars { color: #fbbf24; display: inline-flex; gap: 3px; margin-bottom: 10px; filter: drop-shadow(0 0 6px rgba(251,191,36,.55)); }
.review-card .stars .ico { width: 16px; height: 16px; }
.review-card p { color: #f1f5f9; font-size: 15px; line-height: 1.55; margin: 0 0 16px; }
.review-card .who { display: flex; align-items: center; gap: 12px; }
.review-card .av-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(165,243,252,.6); box-shadow: 0 0 0 3px rgba(165,243,252,.12); }
.review-card .who b { display: block; color: #fff; font-size: 14.5px; }
.review-card .who span { color: rgba(255,255,255,.6); font-size: 12.5px; }

/* --- Animated, semantic tool icons (each part moves with meaning) --- */
/* crop: the inner square pulses to suggest selection */
.feature:hover .ic .ani-crop,
.ani-crop { transform-box: fill-box; transform-origin: center; animation: cropPulse 2.4s ease-in-out infinite; }
@keyframes cropPulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

/* rotate: the arrow spins continuously like a refresh */
.ani-rot { transform-box: fill-box; transform-origin: 19px 6px; animation: spin360 3.2s linear infinite; }
@keyframes spin360 { to { transform: rotate(360deg); } }

/* flip: arrows slide left-right to suggest mirroring */
.ani-flip { animation: flipSlide 2.2s ease-in-out infinite; }
@keyframes flipSlide { 0%,100% { transform: translateX(0); } 50% { transform: translateX(2px); } }

/* brightness: the core glows in/out */
.ani-pulse { transform-box: fill-box; transform-origin: center; animation: glow 2s ease-in-out infinite; }
@keyframes glow { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* blur: outer ring breathes */
.ani-blur { transform-box: fill-box; transform-origin: center; animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .15; transform: scale(.85); } 50% { opacity: .5; transform: scale(1.05); } }

/* compress: center bar shrinks/expands */
.ani-compress { transform-box: fill-box; transform-origin: center; animation: squeeze 2.4s ease-in-out infinite; }
@keyframes squeeze { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.4); } }

/* edit: pencil nudges */
.ani-edit { transform-box: fill-box; transform-origin: center; animation: nudge 2.6s ease-in-out infinite; }
@keyframes nudge { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-1px,1px) rotate(-6deg); } }

/* pause motion on hover only for calm feel; keep subtle ambient when idle */
.feature:hover .ic .ani-crop,
.feature:hover .ic .ani-rot,
.feature:hover .ic .ani-flip,
.feature:hover .ic .ani-pulse,
.feature:hover .ic .ani-blur,
.feature:hover .ic .ani-compress,
.feature:hover .ic .ani-edit { animation-duration: 1.1s; }

/* --- Professional animated visual background --- */
.hero { background: #0b1020; }
.hero .bgfx { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero .bgfx::before {
    content: ""; position: absolute; inset: -30%;
    background:
        radial-gradient(circle at 20% 25%, rgba(79,70,229,.55), transparent 38%),
        radial-gradient(circle at 80% 20%, rgba(6,182,212,.45), transparent 36%),
        radial-gradient(circle at 60% 85%, rgba(124,58,237,.40), transparent 40%),
        radial-gradient(circle at 15% 80%, rgba(14,165,233,.35), transparent 38%);
    filter: blur(10px) saturate(1.15);
    animation: drift 22s ease-in-out infinite alternate;
}
.hero .bgfx::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.20) 1px, transparent 1.4px);
    background-size: 26px 26px;
    opacity: .35;
    animation: gridFloat 40s linear infinite;
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 75%);
}
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 100% { transform: translate(4%, -3%) scale(1.12); } }
@keyframes gridFloat { to { background-position: 260px 260px; } }
.hero .scrim { position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(8,12,28,.30), rgba(8,12,28,.62)); }

/* reviews animated bg refined */
.reviews-bg { background: linear-gradient(120deg, #1e1b4b, #0e7490, #4c1d95, #0369a1, #1e1b4b);
    background-size: 400% 400%; animation: heroHue 16s ease infinite; opacity: .95; }
.grad-text {
    background: linear-gradient(90deg, #818cf8, #22d3ee, #c084fc, #34d399, #818cf8);
    background-size: 300% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: gradMove 8s linear infinite;
    filter: drop-shadow(0 4px 18px rgba(99,102,241,.35));
}
@keyframes gradMove { to { background-position: 300% center; } }
.hero .lead { color: rgba(255,255,255,.92); }

/* 1) Icon hover: subtle, calm lift only (no spin/pulse — cursor stays natural) */
.feature .ic { transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover .ic { transform: translateY(-3px); box-shadow: 0 8px 18px -10px rgba(79,70,229,.4); }
.step .ic, .step svg.ico { transition: transform .2s ease; }
.resizer-card .tool-head strong svg.ico { color: var(--brand); }

/* floating subtle motion for hero icon and social */
.social a svg.ico { transition: transform .2s ease; }
.social a:hover svg.ico { transform: scale(1.1); }

/* 2) Text effects — typewriter on the hero lead, gradient shimmer on h1 */
.hero h1 {
    background: linear-gradient(90deg, #fff, #c7d2fe, #a5f3fc, #fff);
    background-size: 220% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

.typewriter { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--brand-50);
    animation: typing 2.6s steps(40, end), caret 1s step-end infinite; max-width: 100%; }
@keyframes typing { from { width: 0; } to { width: 100%; } }
@keyframes caret { 50% { border-color: transparent; } }

/* 3) Reveal on scroll (toggled by JS via .in-view) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* staggered children */
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }
.reveal[data-delay="6"] { transition-delay: .48s; }

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero::before, .hero h1, .typewriter, .grad-text, .reviews-bg, .marquee-track,
    .hero .bgfx::before, .hero .bgfx::after, .ani-crop, .ani-rot, .ani-flip, .ani-pulse,
    .ani-blur, .ani-compress, .ani-edit, .marquee-left .marquee-track, .marquee-right .marquee-track { animation: none !important; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .typewriter { border-right: none; }
}
/* Lightweight + mobile/desktop friendly */
@media (max-width: 900px) {
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .site-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); display: none; padding: 10px; box-shadow: var(--shadow); }
    .site-nav.open { display: block; }
    .nav-menu { flex-direction: column; gap: 2px; }
    .header-cta { display: none; }
    .sub-menu { position: static; box-shadow: none; border: none; }
    .field { grid-column: span 6; }
    .field.full { grid-column: span 6; }
    .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 10px; }
    .tab { flex: 0 0 auto; }
}
@media (max-width: 540px) {
    .hero { padding: 48px 0 30px; }
    .resizer-card { padding: 16px; }
    .field, .field.full { grid-column: span 12; }
    .footer-cols { grid-template-columns: 1fr; }
    .cta { padding: 34px 20px; }
    .review-card { width: 260px; }
    .features { grid-template-columns: 1fr; }
    .trustbar { gap: 16px; }
}

/* Cookie / GDPR Banner - Hyper-Realistic Frosted Glass Floating Card */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 760px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(28px) saturate(2);
    -webkit-backdrop-filter: blur(28px) saturate(2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 99999;
    color: #f8fafc;
    animation: cookieSlideUp .4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}
.cookie-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.35), rgba(6, 182, 212, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.2);
}
.cookie-svg {
    width: 22px;
    height: 22px;
}
.cookie-text {
    flex: 1;
    min-width: 220px;
}
.cookie-text strong {
    display: block;
    font-size: 14.5px;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.cookie-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #94a3b8;
}
.cookie-text a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 600;
}
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.btn-cookie-accept {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.45);
    transition: all .2s ease;
}
.btn-cookie-accept:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.55);
    filter: brightness(1.08);
}
.btn-cookie-dismiss {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .2s ease;
}
.btn-cookie-dismiss:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}
.btn-cookie-dismiss .ico {
    width: 14px;
    height: 14px;
}

@media (max-width: 680px) {
    .cookie-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .cookie-actions {
        width: 100%;
        justify-content: space-between;
    }
    .btn-cookie-accept {
        flex: 1;
        text-align: center;
    }
}

/* ==========================================================================
   Interactive Before / After Split Slider
   ========================================================================== */
.split-compare {
    margin-top: 18px;
    width: 100%;
}
.compare-container {
    position: relative;
    width: 100%;
    max-height: 480px;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    user-select: none;
    touch-action: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.compare-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    pointer-events: none;
}
.compare-before {
    position: relative;
    z-index: 1;
}
.compare-after-clip {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 50%;
    overflow: hidden;
    z-index: 2;
    background: #0f172a;
}
.compare-after {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.compare-divider {
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 3px;
    background: #ffffff;
    box-shadow: 0 0 10px rgba(0,0,0,0.6);
    z-index: 3;
    cursor: ew-resize;
    transform: translateX(-50%);
}
.divider-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 3px solid var(--brand);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    box-shadow: 0 4px 14px rgba(0,0,0,0.35);
    cursor: ew-resize;
}
.divider-circle .ico { width: 18px; height: 18px; }
.compare-tag {
    position: absolute;
    bottom: 14px;
    padding: 4px 10px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 6px;
    z-index: 4;
    pointer-events: none;
}
.tag-left { left: 14px; }
.tag-right { right: 14px; }
.compare-hint {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 10px;
}

/* ==========================================================================
   Competitor Benchmark Matrix Table
   ========================================================================== */
.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.03);
    margin-top: 28px;
}
.matrix-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14.5px;
}
.matrix-table th, .matrix-table td {
    padding: 16px 22px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.matrix-table thead th {
    background: #f8fafc;
    font-weight: 800;
    color: #475569;
    font-size: 14px;
    letter-spacing: .02em;
    border-bottom: 2px solid #e2e8f0;
}
.matrix-table thead th.col-feature {
    width: 32%;
    color: var(--ink);
}
.matrix-table tbody tr:hover {
    background: rgba(248, 250, 252, 0.75);
}
.matrix-table tbody tr:last-child td {
    border-bottom: none;
}

/* Highlighted Column: ResizeNow Studio */
.matrix-table thead th.col-highlight {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #ffffff;
    text-align: center;
    position: relative;
    padding: 14px 18px;
    border-bottom: none;
}
.col-head-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.badge-top-choice {
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .08em;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(254, 240, 138, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: #854d0e;
    padding: 3px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.badge-top-choice .ico {
    width: 13px;
    height: 13px;
}
.col-head-title {
    font-size: 16px;
    font-weight: 900;
    color: #ffffff;
}
.matrix-table tbody td.col-highlight {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.03) 100%);
    text-align: center;
    border-inline: 1px solid rgba(99, 102, 241, 0.2);
}

/* Badge Pills System */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.badge-pill .ico {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.badge-pill-pro {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4338ca;
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.14);
}
.badge-pill-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.badge-pill-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}
.badge-pill-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

@media (max-width: 768px) {
    .matrix-table th, .matrix-table td {
        padding: 12px 14px;
        font-size: 13px;
    }
    .badge-pill {
        font-size: 12px;
        padding: 4px 9px;
    }
}

/* ==========================================================================
   Blog Hub & Article Reader Styling Suite
   ========================================================================== */
.blog-container, .article-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* Blog Hero Header */
.blog-hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 48px;
}
.blog-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(6, 182, 212, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--brand);
    margin-bottom: 16px;
}
.blog-hero-title {
    font-size: 40px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
}
.blog-hero-sub {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0 0 28px;
}

/* Category Filter Pills */
.blog-cat-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.blog-cat-pill {
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--body);
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.blog-cat-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
}
.blog-cat-pill.active {
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}
.blog-card {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    height: 100%;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.12);
    border-color: rgba(99, 102, 241, 0.4);
}
.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.blog-card-cat {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(79, 70, 229, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}
.blog-card-read {
    font-size: 11.5px;
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.blog-card-read .ico { width: 13px; height: 13px; }

.blog-card-title {
    font-size: 17.5px;
    font-weight: 850;
    line-height: 1.4;
    margin: 0 0 10px;
}
.blog-card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color .15s ease;
}
.blog-card-title a:hover {
    color: var(--brand);
}
.blog-card-excerpt {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    margin-top: auto;
}
.blog-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.author-info {
    min-width: 0;
}
.author-info strong {
    display: block;
    font-size: 12px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.author-info time {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
}
.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 800;
    color: var(--brand);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all .2s ease;
}
.blog-card-link:hover {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    transform: translateY(-1px);
}

/* Blog Call to Action */
.blog-cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}
.blog-cta-content h3 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
}
.blog-cta-content p {
    margin: 0;
    font-size: 15px;
    color: #94a3b8;
    max-width: 540px;
}

/* ==========================================================================
   Single Article Reader Styling
   ========================================================================== */
.article-hero {
    max-width: 820px;
    margin: 0 auto 36px;
}
.article-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}
.article-breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}
.article-breadcrumbs a:hover {
    color: var(--brand);
}
.article-breadcrumbs .curr {
    color: var(--ink);
    font-weight: 700;
}
.article-category-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand);
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 5px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.article-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 24px;
}
.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.article-author-card {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar-md {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}
.author-name {
    display: block;
    font-size: 14.5px;
    color: var(--ink);
}
.publish-date {
    display: block;
    font-size: 12px;
    color: var(--muted);
}
.article-read-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}
.read-pill, .views-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 5px 12px;
    border-radius: 999px;
}
.read-pill .ico, .views-pill .ico { width: 14px; height: 14px; }

/* Article Prose */
.article-layout {
    max-width: 820px;
    margin: 0 auto 60px;
}
.article-prose {
    font-size: 17px;
    line-height: 1.8;
    color: var(--body);
}
.article-lead {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--ink);
    border-left: 4px solid var(--brand);
    padding-left: 18px;
    margin-bottom: 32px;
}
.article-prose h2 {
    font-size: 26px;
    font-weight: 850;
    color: var(--ink);
    margin: 40px 0 16px;
    letter-spacing: -0.02em;
}
.article-prose h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--ink);
    margin: 28px 0 12px;
}
.article-prose p {
    margin-bottom: 20px;
}
.article-prose ul, .article-prose ol {
    margin: 0 0 24px 24px;
    padding: 0;
}
.article-prose li {
    margin-bottom: 8px;
}
.article-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.article-prose th, .article-prose td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    font-size: 14.5px;
}
.article-prose th {
    background: #f8fafc;
    font-weight: 800;
    color: var(--ink);
}
.article-prose code {
    background: #f1f5f9;
    color: #4f46e5;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14.5px;
    font-family: ui-monospace, monospace;
}

/* Article Share Box */
.article-share-box {
    margin-top: 48px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.share-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--ink);
    font-size: 14px;
}
.share-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-share {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    color: var(--ink);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s ease;
}
.btn-share:hover {
    background: #f8fafc;
    border-color: var(--brand);
    color: var(--brand);
}

/* Article Quick Resizer Prompt */
.article-resizer-prompt {
    margin-top: 36px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(6, 182, 212, 0.06) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.article-resizer-prompt .prompt-text strong {
    display: block;
    font-size: 16px;
    color: var(--ink);
    margin-bottom: 2px;
}
.article-resizer-prompt .prompt-text p {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
}

/* Related Guides */
.related-guides-section {
    max-width: 820px;
    margin: 0 auto;
    padding-top: 40px;
    border-top: 1px solid var(--line);
}
.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.related-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-view-all {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.related-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all .2s ease;
}
.related-card:hover {
    border-color: var(--brand);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.1);
}
.rel-cat {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 8px;
}
.related-card h4 {
    margin: 0 0 12px;
    font-size: 14.5px;
    font-weight: 750;
    color: var(--ink);
    line-height: 1.4;
    flex: 1;
}
.rel-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}
.rel-arrow {
    color: var(--brand);
    font-weight: 800;
}

@media (max-width: 768px) {
    .blog-hero-title, .article-title {
        font-size: 28px;
    }
    .blog-card-featured .blog-card-title {
        font-size: 22px;
    }
    .blog-cta-box {
        padding: 24px;
    }
}

/* ==========================================================================
   Hyper-Realistic Blog Visuals, Infographics & Progress Suite
   ========================================================================== */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    width: 0%;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981);
    z-index: 9999;
    transition: width .1s ease-out;
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

/* Search Bar */
.blog-search-wrap {
    max-width: 480px;
    margin: 0 auto 24px;
}
.blog-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    padding: 10px 16px;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all .2s ease;
}
.blog-search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.blog-search-box .search-ico {
    color: var(--muted);
    flex-shrink: 0;
}
.blog-search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 14px;
    color: var(--ink);
    font-family: inherit;
}

/* Visual Cover Frame on Blog Cards */
.blog-cover-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    background: #0f172a;
    aspect-ratio: 16 / 9;
    display: flex;
}
.blog-cover-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-cover-svg {
    transform: scale(1.04);
}
.blog-card-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #38bdf8;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 6px;
}
.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.blog-card-verified {
    font-size: 11.5px;
    font-weight: 700;
    color: #059669;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.blog-card-verified .ico { width: 13px; height: 13px; color: #10b981; }

/* Real Author Photos */
.author-avatar-wrap, .author-avatar-wrap-lg {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid var(--brand);
    background: linear-gradient(135deg, #4f46e5, #06b6d4);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.author-avatar-wrap-lg {
    width: 44px;
    height: 44px;
    border-width: 2px;
}
.blog-author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.blog-author-fallback {
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    width: 100%;
    height: 100%;
    place-items: center;
}

/* Article Hero Cover & Takeaways */
.article-verified-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 750;
    color: #059669;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 4px 10px;
    border-radius: 999px;
}
.article-verified-pill .ico { width: 13px; height: 13px; }

.article-hero-cover {
    max-width: 820px;
    margin: 0 auto 36px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    background: #0f172a;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.article-hero-cover .blog-cover-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Takeaways Card */
.article-takeaways-card {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1.5px solid rgba(99, 102, 241, 0.35);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 36px;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.06);
}
.takeaways-head {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    font-size: 14.5px;
    margin-bottom: 8px;
}
.takeaways-head .ico { width: 18px; height: 18px; color: #4f46e5; }
.takeaways-body {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink);
    font-weight: 500;
}

/* Related Cover Mini */
.related-cover-mini {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 12px;
    background: #0f172a;
}
.related-cover-mini img, .related-cover-mini .blog-cover-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   Real Magazine Layout & Real Photographic Assets
   ========================================================================== */
.blog-real-photo-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0f172a;
    display: flex;
}
.blog-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-card:hover .blog-cover-img, .featured-hero-cover-col:hover .blog-cover-img {
    transform: scale(1.05);
}
.blog-photo-overlay-glass {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.45) 100%);
    pointer-events: none;
}

/* Featured Editorial Top Hero */
.blog-featured-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 48px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    align-items: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.blog-featured-hero:hover {
    box-shadow: 0 16px 44px rgba(15, 23, 42, 0.12);
}
.featured-hero-cover-col {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}
.featured-cover-link {
    display: block;
    width: 100%;
    height: 100%;
}
.featured-badge-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    padding: 4px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}
.featured-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.blog-cat-tag {
    background: rgba(79, 70, 229, 0.1);
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}
.featured-read-time, .featured-views-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
}
.featured-title {
    font-size: 24px;
    font-weight: 850;
    line-height: 1.35;
    margin: 0 0 12px 0;
    color: var(--ink);
}
.featured-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}
.featured-title a:hover {
    color: var(--brand);
}
.featured-excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 20px;
}
.featured-author-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
    flex-wrap: wrap;
}
.author-meta-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.author-meta-text strong {
    font-size: 13.5px;
    color: var(--ink);
}
.author-meta-text time {
    font-size: 11.5px;
    color: var(--muted);
}
.btn-read-featured {
    padding: 9px 18px;
    font-size: 13.5px;
}

/* Article Hero Real Image */
.article-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.article-cover-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(15,23,42,0.85) 0%, transparent 100%);
    padding: 24px 20px 10px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
}

/* Reader Toolbar */
.reader-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}
.reader-font-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-font-sz {
    background: var(--surface-2);
    border: 1px solid var(--line);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 750;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s ease;
}
.btn-font-sz:hover {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}
.btn-share-mini {
    background: transparent;
    border: 1px solid var(--line-strong);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s ease;
}
.btn-share-mini:hover {
    background: var(--surface-2);
    border-color: var(--brand);
}

/* Feedback Card */
.article-feedback-card {
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    padding: 24px;
    margin: 40px 0;
    text-align: center;
}
.article-feedback-card h4 {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--ink);
}
.article-feedback-card p {
    margin: 0 0 16px;
    font-size: 13.5px;
    color: var(--muted);
}
.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.btn-feedback {
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: all .2s ease;
}
.btn-feedback:hover {
    border-color: var(--brand);
    background: rgba(99, 102, 241, 0.08);
}
.btn-feedback.active {
    background: #ecfdf5;
    border-color: #10b981;
    color: #059669;
}

/* Author Bio Card */
.author-bio-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    margin: 32px 0;
}
.author-bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--brand);
    flex-shrink: 0;
}
.author-bio-avatar .blog-author-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.author-bio-text {
    flex: 1;
}
.bio-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.bio-head strong {
    font-size: 16px;
    color: var(--ink);
}
.bio-role {
    font-size: 11.5px;
    font-weight: 750;
    color: var(--brand);
    background: rgba(79,70,229,0.1);
    padding: 2px 8px;
    border-radius: 4px;
}
.author-bio-text p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
}

/* Newsletter Section */
.blog-newsletter-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    border-radius: 20px;
    padding: 40px 24px;
    margin: 48px auto;
    max-width: 820px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
    text-align: center;
    color: #ffffff;
}
.newsletter-icon-badge {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #38bdf8;
}
.newsletter-inner h3 {
    font-size: 24px;
    font-weight: 850;
    margin: 0 0 10px;
    color: #ffffff;
}
.newsletter-inner p {
    font-size: 14.5px;
    line-height: 1.6;
    color: #cbd5e1;
    max-width: 580px;
    margin: 0 auto 24px;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto 12px;
}
.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 14px;
    outline: none;
}
.newsletter-form input:focus {
    border-color: #38bdf8;
    background: rgba(255, 255, 255, 0.12);
}
.newsletter-form input::placeholder {
    color: #94a3b8;
}
.newsletter-form button {
    padding: 12px 22px;
    font-weight: 800;
}
.newsletter-privacy-note {
    font-size: 12px;
    color: #94a3b8;
    display: block;
}

@media (max-width: 768px) {
    .blog-featured-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }
    .featured-title {
        font-size: 20px;
    }
    .author-bio-card {
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        flex-direction: column;
    }
}

/* ==========================================================================
   Horizontal Single-Row Articles Slider & Track
   ========================================================================== */
.blog-row-wrapper {
    position: relative;
    margin-bottom: 24px;
    padding: 0 4px;
}
.blog-row-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 320px);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 8px 4px 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}
.blog-row-track::-webkit-scrollbar {
    height: 6px;
}
.blog-row-track::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 999px;
}
.blog-row-track .blog-card-row {
    scroll-snap-align: start;
    min-width: 270px;
    height: 100%;
}
.btn-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface);
    border: 1.5px solid var(--line-strong);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
    z-index: 10;
    transition: all .2s ease;
}
.btn-slider-arrow:hover {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
    transform: translateY(-50%) scale(1.08);
}
.btn-slider-prev {
    left: -18px;
}
.btn-slider-next {
    right: -18px;
}

@media (max-width: 992px) {
    .btn-slider-arrow {
        display: none;
    }
}





