:root {
    --font-display: "Space Grotesk", "Trebuchet MS", sans-serif;
    --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

    --page-bg:
        radial-gradient(circle at top left, rgba(255, 169, 77, 0.22), transparent 32%),
        radial-gradient(circle at top right, rgba(66, 153, 225, 0.18), transparent 28%),
        linear-gradient(180deg, #fff7ed 0%, #f8fafc 34%, #e0f2fe 100%);
    --ink-950: #132238;
    --ink-800: #28415f;
    --ink-700: #46617f;
    --ink-500: #71839c;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --surface-tint: rgba(255, 247, 237, 0.82);
    --surface-dark: rgba(19, 34, 56, 0.88);
    --line: rgba(70, 97, 127, 0.18);
    --line-strong: rgba(37, 99, 235, 0.24);

    --brand-orange: #f97316;
    --brand-orange-deep: #ea580c;
    --brand-blue: #0284c7;
    --brand-blue-deep: #0369a1;
    --brand-gold: #fbbf24;
    --success: #0f766e;
    --danger: #b91c1c;

    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --radius-xl: 40px;

    --shadow-sm: 0 14px 34px rgba(19, 34, 56, 0.08);
    --shadow-md: 0 22px 52px rgba(19, 34, 56, 0.13);
    --shadow-lg: 0 36px 82px rgba(19, 34, 56, 0.16);

    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--ink-950);
    background: var(--page-bg);
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.28) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 85%);
    pointer-events: none;
    opacity: 0.35;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
textarea,
button,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

.page-main {
    min-height: calc(100vh - 200px);
    position: relative;
}

.container {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 0 24px;
}

.site-band {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.narrow-copy {
    max-width: 760px;
}

.stack-lg {
    display: grid;
    gap: var(--space-8);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(249, 115, 22, 0.18);
    color: var(--ink-800);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-gold));
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.12);
}

.surface-panel {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(14px);
}

.btn-primary,
.btn-secondary-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn-primary span,
.btn-secondary-shell span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
    color: #fff;
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.22);
}

.btn-secondary-shell {
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink-950);
    border: 1px solid rgba(70, 97, 127, 0.18);
}

.btn-primary:hover,
.btn-secondary-shell:hover,
.tool-card:hover,
.category-card:hover,
.card:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    box-shadow: 0 24px 40px rgba(249, 115, 22, 0.28);
}

.btn-secondary-shell:hover {
    box-shadow: var(--shadow-sm);
}

.site-shell {
    position: relative;
    padding: 0 0 34px;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 30;
    width: 100%;    
    background: rgba(255, 251, 245, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(70, 97, 127, 0.08);
}

.navbar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d97706 0%, #0ea5e9 42%, #84cc16 76%, #eab308 100%);
}

.nav-flex {
    min-height: 78px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-6);
    padding: 0 18px 0 22px;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.2vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.logo a::before {
    content: "</>";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
    color: #fff7ed;
    font-size: 0.95rem;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.16);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--ink-800);
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 999px;
}

.site-nav a:hover {
    background: rgba(14, 165, 233, 0.08);
    color: var(--ink-950);
}

.nav-cta {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(2, 132, 199, 0.14));
    border: 1px solid rgba(70, 97, 127, 0.14);
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(70, 97, 127, 0.18);
    background: rgba(255, 255, 255, 0.76);
    border-radius: 14px;
    width: 44px;
    height: 44px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink-950);
    border-radius: 999px;
}

.hero {
    padding: 12px 0 12px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.72);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.85), transparent 24%),
        radial-gradient(circle at 88% 16%, rgba(125, 211, 252, 0.4), transparent 20%),
        linear-gradient(135deg, rgba(255, 247, 237, 0.9), rgba(240, 249, 255, 0.94));
    box-shadow: var(--shadow-lg);
}

.hero-shell::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -70px;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.26), transparent 70%);
    pointer-events: none;
}

.hero-shell-compact {
    padding: clamp(20px, 2.6vw, 28px);
}

.tool-hero-copy {
    min-width: 0;
}

.hero .hero-shell-compact h1 {
    font-size: clamp(1.55rem, 1.5vw, 2.15rem);
    max-width: none;
    margin-top: 0;
    letter-spacing: -0.05em;
}

.hero .hero-shell-compact p {
    max-width: 780px;
    margin-top: 14px;
    font-size: 1rem;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: var(--space-10);
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    align-items: start;
}

.hero-copy h1,
.hero h1 {
    margin: 18px 0 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 1.5vw, 1.5rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    max-width: 10ch;
}

.hero h1 {
    max-width: none;
}

.hero-copy p,
.hero p {
    max-width: 720px;
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.9vw, 1.1rem);
    color: var(--ink-700);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 24px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hero-stat {
    padding: 18px 18px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-sm);
}

.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
    line-height: 1;
}

.hero-stat span {
    display: block;
    margin-top: 8px;
    color: var(--ink-700);
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-side {
    display: grid;
    gap: 12px;
    align-content: start;
}

.hero-side-card {
    padding: 20px 22px;
    border-radius: 28px;
    background: rgba(19, 34, 56, 0.92);
    color: #f8fafc;
    box-shadow: 0 26px 44px rgba(19, 34, 56, 0.2);
}

.hero-side-card h2,
.hero-side-card h3 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.hero-side-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.86);
}

.hero-side-list {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.hero-side-list span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e0f2fe;
    font-weight: 700;
}

.hero-side-list span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-orange));
}

.hero-side-mini {
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-sm);
}

.hero-side-lower {
    display: grid;
    gap: 12px;
}

.hero-side-mini strong {
    display: block;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-500);
}

.hero-side-mini p {
    margin: 10px 0 0;
    color: var(--ink-800);
    font-weight: 700;
}

.section {
    padding: 28px 0;
}

.section-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--ink-950);
}

.section-title-left {
    text-align: left;
}

.section-copy {
    margin: 12px 0 0;
    color: var(--ink-700);
    max-width: 640px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-4);
    margin-bottom: 18px;
}

.section-shell {
    padding: clamp(22px, 3vw, 30px);
}

.grid {
    display: grid;
    gap: var(--space-5);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tool-card,
.category-card,
.card {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--surface-strong);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-card::before,
.category-card::before,
.card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-blue), var(--brand-gold));
    opacity: 0.92;
}

.tool-card:hover,
.category-card:hover,
.card:hover {
    border-color: rgba(249, 115, 22, 0.26);
    box-shadow: var(--shadow-md);
}

.tool-card h3,
.category-card h3,
.card h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.16rem;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.tool-card p,
.category-card p,
.card p {
    margin: 10px 0 0;
    color: var(--ink-700);
    font-size: 0.95rem;
}

.popular-tools-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: var(--space-4);
    margin-bottom: 18px;
}

.popular-tools-head p {
    margin: 0;
    color: var(--ink-700);
    max-width: 440px;
}

.popular-tools-grid {
    gap: 16px;
}

.popular-tool-card {
    padding: 20px;
    min-height: 176px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 235, 0.96));
}

.popular-tool-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.popular-tool-arrow {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.2);
}

.tool-grid-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--ink-500);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.popular-tool-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5em;
}

.tool-grid-meta::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--brand-blue);
}

.search-box {
    width: min(760px, 100%);
    margin-top: 28px;
}

.search-frame {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 40px rgba(19, 34, 56, 0.08);
}

.search-box label {
    display: block;
    margin-bottom: 10px;
    color: var(--ink-700);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.search-support {
    margin: -2px 0 12px;
    color: var(--ink-700);
    font-size: 0.95rem;
}

.search-box input {
    width: 100%;
    border: 1px solid rgba(70, 97, 127, 0.18);
    border-radius: 22px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-size: 1.02rem;
}

.search-box input:focus,
.tool-textarea:focus,
.tool-text-input:focus {
    outline: 2px solid rgba(2, 132, 199, 0.18);
    border-color: rgba(2, 132, 199, 0.45);
}

.search-results {
    margin-top: 14px;
    display: none;
    flex-wrap: wrap;
    gap: 10px;
}

.search-results.is-visible {
    display: flex;
}

.search-result-empty {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink-700);
    font-size: 0.88rem;
    font-weight: 700;
}

.tool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-chips span,
.tool-chips .tool-chip-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--ink-800);
    border: 1px solid rgba(70, 97, 127, 0.14);
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.tool-chips .tool-chip-link:hover {
    background: rgba(255, 255, 255, 0.96);
}

.cta {
    padding: 10px 0 56px;
}

.cta-shell {
    padding: clamp(22px, 3vw, 30px);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.1fr) auto;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(19, 34, 56, 0.96), rgba(3, 105, 161, 0.94)),
        var(--surface-dark);
    color: #f8fafc;
}

.cta-shell h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.cta-shell p {
    margin: 10px 0 0;
    color: rgba(224, 242, 254, 0.88);
    max-width: 560px;
}

.footer {
    position: relative;
    padding: 16px 0 10px;
    width: 100%;
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.82), rgba(255, 255, 255, 0.96));
    border-top: 1px solid rgba(70, 97, 127, 0.08);
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-blue), var(--brand-gold));
    opacity: 0.95;
}

.footer-shell {
    padding: 14px 28px 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--ink-800);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.28);
    border: none;
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.footer-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.footer-brand span {
    color: var(--ink-700);
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--ink-800);
    font-weight: 700;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.78);
}

.footer-copy {
    color: var(--ink-700);
    font-size: 0.92rem;
    font-weight: 700;
}

.page-grid {
    display: grid;
    gap: 18px;
}

.info-card {
    padding: 22px 24px;
}

.info-card h2,
.info-card h3 {
    margin: 0 0 10px;
    font-family: var(--font-display);
    font-size: 1.24rem;
    letter-spacing: -0.04em;
}

.info-card p {
    margin: 0;
    color: var(--ink-700);
}

.bullet-list {
    margin: 0;
    padding-left: 18px;
    color: var(--ink-700);
}

.bullet-list li + li {
    margin-top: 8px;
}

.category-group {
    display: grid;
    gap: 18px;
}

.category-banner,
.page-banner {
    padding: 22px 24px;
}

.page-banner p,
.category-banner p {
    margin: 10px 0 0;
    color: var(--ink-700);
}

.empty-copy {
    margin: 0;
    color: var(--ink-700);
}

.inline-link {
    color: var(--brand-blue-deep);
    font-weight: 800;
}

.inline-link:hover {
    color: var(--brand-orange-deep);
}

.tool-page-shell {
    display: grid;
    gap: 16px;
}

.tool-page-frame,
.tool-box {
    background: var(--surface-strong);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
    padding: 24px;
    margin-bottom: 0;
}

.tool-page-frame {
    position: relative;
    overflow: hidden;
}

.tool-page-frame::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-blue), var(--brand-gold));
    opacity: 0.9;
}

.tool-page-intro {
    padding: 6px 0 4px;
}

.tool-page-divider {
    height: 1px;
    margin: 10px 0 2px;
    background: linear-gradient(90deg, rgba(70, 97, 127, 0.08), rgba(70, 97, 127, 0.14), rgba(70, 97, 127, 0.08));
}

.tool-workspace-note {
    display: grid;
    gap: 8px;
    padding: 16px 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-sm);
}

.tool-workspace-note-label {
    color: var(--ink-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tool-workspace-note p {
    margin: 0;
    font-size: 0.98rem;
}

.tool-page-intro .tool-hero-copy h1 {
    margin: 0;
    font-size: clamp(1.15rem, 1.8vw, 1.65rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.tool-page-intro .tool-hero-copy p {
    margin: 8px 0 0;
    max-width: 760px;
    font-size: 0.98rem;
}

.tool-page-frame .tool-box {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 18px 0 0;
}

.tool-page-frame .tool-box:first-of-type::before {
    display: none;
}

.upload-box {
    margin-top: 18px;
}

.upload-dropzone {
    position: relative;
    padding: 28px;
    border-radius: 30px;
    border: 1.5px dashed rgba(2, 132, 199, 0.22);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 237, 0.78));
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.upload-dropzone:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.upload-dropzone.is-dragover {
    border-color: rgba(249, 115, 22, 0.6);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.82));
    box-shadow: 0 22px 42px rgba(2, 132, 199, 0.12);
}

.upload-dropzone.has-file {
    border-style: solid;
    border-color: rgba(15, 118, 110, 0.24);
}

.upload-dropzone.is-busy {
    opacity: 0.9;
}

.upload-dropzone-copy {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
}

.upload-dropzone-copy p {
    margin: 0;
}

.upload-dropzone-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.2);
}

.upload-inline-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.upload-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.upload-btn:hover {
    transform: translateY(-2px);
}

.secondary-upload-btn {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(2, 132, 199, 0.14));
    color: var(--ink-950);
    border: 1px solid rgba(70, 97, 127, 0.14);
}

.secondary-upload-btn:hover {
    box-shadow: var(--shadow-sm);
}

.upload-dropzone-alt {
    color: var(--ink-700);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.upload-hint {
    margin: 16px 0 0;
    color: var(--ink-700);
    font-weight: 700;
    text-align: center;
}

.upload-progress {
    display: none;
    margin-top: 18px;
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-blue));
    transition: width 0.18s ease;
}

.upload-progress.processing .upload-progress-bar {
    animation: uploadPulse 1.4s ease-in-out infinite alternate;
}

.upload-progress-text {
    display: none;
    margin-top: 10px;
    color: var(--ink-700);
    font-size: 0.88rem;
    font-weight: 800;
}

.merge-pdf-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.merge-pdf-preview-card {
    position: relative;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(70, 97, 127, 0.12);
    box-shadow: var(--shadow-sm);
    cursor: grab;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.merge-pdf-preview-card.is-dragging {
    opacity: 0.56;
}

.merge-pdf-preview-card.is-drop-target {
    border-color: rgba(249, 115, 22, 0.48);
    transform: translateY(-2px);
}

.merge-pdf-preview-frame {
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: 16px;
    background: #fff;
}

.merge-pdf-preview-name {
    margin-top: 10px;
    color: var(--ink-950);
    font-weight: 800;
    font-size: 0.92rem;
}

.merge-pdf-preview-meta {
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 0.82rem;
    font-weight: 700;
}

.merge-pdf-remove-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: rgba(19, 34, 56, 0.82);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
}

.merge-pdf-remove-icon:hover {
    background: var(--danger);
}

.tool-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.tool-tabs .tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(70, 97, 127, 0.14);
    border-radius: 999px;
    padding: 9px 15px;
    background: rgba(226, 232, 240, 0.6);
    color: var(--ink-800);
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.tool-tabs .tab.active {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
    color: #fff;
    border-color: transparent;
}

.tool-panel {
    display: none;
}

.tool-panel.active {
    display: block;
}

.tool-textarea,
.tool-text-input {
    width: 100%;
    border: 1px solid rgba(70, 97, 127, 0.18);
    border-radius: 18px;
    padding: 14px 16px;
    color: var(--ink-950);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tool-textarea {
    min-height: 220px;
    resize: vertical;
    line-height: 1.55;
}

.json-textarea {
    font-family: var(--font-mono);
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    overflow-x: auto;
    tab-size: 4;
}

.tool-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(70, 97, 127, 0.08);
    flex-wrap: wrap;
}

.reading-time,
.meta-row {
    color: var(--ink-500);
    font-weight: 700;
}

.reading-time {
    font-size: 0.88rem;
    flex: 1 1 280px;
    min-width: 220px;
}

.action-group-label {
    color: var(--ink-500);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 4px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.btn-primary-action,
.btn-secondary,
.btn-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 9px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.btn-primary-action span,
.btn-secondary span,
.btn-clear span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-blue));
    color: #fff;
}

.btn-secondary {
    background: rgba(2, 132, 199, 0.12);
    color: var(--brand-blue-deep);
}

.btn-clear {
    background: rgba(100, 116, 139, 0.12);
    color: var(--ink-800);
}

.btn-primary-action:hover {
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.2);
}

.btn-secondary:hover {
    background: rgba(2, 132, 199, 0.18);
}

.btn-clear:hover {
    background: rgba(100, 116, 139, 0.18);
}

.btn-primary-action:disabled,
.btn-secondary:disabled,
.btn-clear:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.tool-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--ink-700);
}

.json-grid,
.hash-result-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.json-grid > div {
    min-width: 0;
}

.base64-options,
.base64-file-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.base64-options {
    margin: 10px 0 0;
    color: var(--ink-700);
    font-size: 0.84rem;
    font-weight: 700;
}

.base64-options label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.base64-file-row {
    margin-top: 10px;
}

.base64-upload-btn {
    margin-top: 0;
}

.uuid-count-select {
    width: 110px;
    min-width: 110px;
    flex: 0 0 auto;
}

.jwt-signature,
.hash-result-grid {
    margin-top: 16px;
}

.hash-result-card {
    border: 1px solid rgba(70, 97, 127, 0.12);
    background: rgba(255, 255, 255, 0.84);
    border-radius: 22px;
    padding: 12px;
}

.image-compressor-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.9fr);
    gap: 18px;
    margin-top: 18px;
}

.image-compressor-summary {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 14px;
}

.image-compressor-dropzone,
.image-compressor-settings,
.image-compressor-results {
    margin-bottom: 0;
}

.image-compressor-progress {
    margin-top: 14px;
}

.image-compressor-progress-text {
    margin-bottom: 6px;
}

.image-compressor-dropzone-inner {
    border-radius: 30px;
}

.image-settings-head h3 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.image-settings-head p {
    margin: 8px 0 0;
    color: var(--ink-700);
}

.image-setting-grid {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.image-settings-stack {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.image-setting-group {
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(70, 97, 127, 0.12);
    background: rgba(255, 255, 255, 0.64);
}

.image-setting-group-head h4 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.03em;
}

.image-setting-group-head p {
    margin: 6px 0 0;
    color: var(--ink-700);
    font-size: 0.92rem;
}

.image-format-hint {
    margin-top: -2px;
}

.image-compressor-toggles {
    margin-top: 18px;
}

.image-compressor-note {
    margin-top: 18px;
}

.image-summary-card {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(70, 97, 127, 0.12);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.image-summary-label {
    display: block;
    color: var(--ink-700);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.image-summary-card strong {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    letter-spacing: -0.04em;
    color: var(--ink-950);
}

.image-compressor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.image-result-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(70, 97, 127, 0.12);
    box-shadow: var(--shadow-sm);
}

.image-result-card h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.25;
}

.image-result-preview-wrap {
    position: relative;
}

.image-result-preview {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(2, 132, 199, 0.14));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-700);
    font-weight: 800;
}

.image-result-format,
.image-result-saved {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.image-result-format {
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-900);
    border: 1px solid rgba(70, 97, 127, 0.12);
}

.image-result-saved {
    right: 12px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(2, 132, 199, 0.92));
    color: white;
    box-shadow: var(--shadow-sm);
}

.image-result-note {
    margin: 0;
    color: var(--ink-700);
    font-size: 0.9rem;
}

.image-result-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0;
    color: var(--ink-700);
    font-size: 0.88rem;
}

.image-result-meta span {
    display: block;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(237, 244, 252, 0.78);
    border: 1px solid rgba(70, 97, 127, 0.1);
}

.image-result-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

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

.stat-card {
    padding: 16px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.stat-card h4 {
    margin: 0;
    color: var(--ink-700);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.stat-card span {
    display: block;
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.6vw, 2.15rem);
    line-height: 1;
    color: var(--ink-950);
}

.privacy-note {
    margin: 16px 0 0;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.7);
    color: var(--ink-700);
    text-align: center;
    box-shadow: none;
    font-size: 0.94rem;
}

.drop-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(19, 34, 56, 0.38);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.drop-overlay.active {
    display: flex;
}

.drop-overlay-content {
    min-width: min(460px, 100%);
    padding: 28px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.drop-overlay-content strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.drop-overlay-content span {
    display: block;
    margin-top: 8px;
    color: var(--ink-700);
    font-weight: 700;
}

@media (max-width: 960px) {
    .hero-grid,
    .cta-shell {
        grid-template-columns: 1fr;
    }

    .image-compressor-layout {
        grid-template-columns: 1fr;
    }

    .image-compressor-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-copy h1,
    .hero h1 {
        max-width: none;
    }

    .popular-tools-head,
    .section-head,
    .footer-shell {
        align-items: start;
    }
}

@media (max-width: 760px) {
    .site-shell {
        padding-top: 0;
    }

    .navbar {
        top: 0;
        padding: 10px 0;
    }

    .nav-flex {
        align-items: flex-start;
        flex-wrap: wrap;
        padding: 14px;
    }

    .image-result-meta,
    .image-compressor-summary {
        grid-template-columns: 1fr;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding-top: 8px;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        background: rgba(255, 255, 255, 0.56);
    }

    .hero-shell {
        padding: 22px;
        border-radius: 30px;
    }

    .hero-meta,
    .json-grid,
    .hash-result-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .action-buttons,
    .tool-actions {
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary-shell,
    .btn-primary-action,
    .btn-secondary,
    .btn-clear {
        width: 100%;
        justify-content: center;
    }

    .container {
        padding: 0 18px;
    }

    .upload-dropzone {
        padding: 22px;
    }

    .upload-inline-actions {
        align-items: stretch;
    }

    .upload-btn,
    .upload-dropzone-alt {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@keyframes uploadPulse {
    from {
        filter: saturate(1);
    }
    to {
        filter: saturate(1.25) brightness(1.03);
    }
}
