:root {
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nav-link {
    position: relative;
    transition: color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #c62b27;
}

.nav-link.is-active::after {
    content: "";
    position: absolute;
    inset: auto 0 -0.9rem 0;
    height: 2px;
    background: linear-gradient(90deg, #E5322D, #c62b27);
}

.hero-surface {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at top center, rgba(229, 50, 45, 0.22), transparent 26%),
        radial-gradient(circle at bottom left, rgba(198, 43, 39, 0.14), transparent 22%),
        linear-gradient(180deg, #020617 0%, #0f172a 52%, #111827 100%);
}

.hero-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 25, 56, 0.18) 0%, rgba(7, 25, 56, 0.08) 100%);
    z-index: -1;
}

.hero-surface::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 9rem;
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.96));
    z-index: -1;
}

.section-band {
    position: relative;
    overflow: hidden;
}

.tool-tile {
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.tool-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 50, 45, 0.25);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
}

.tool-mark {
    display: inline-flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #E5322D, #8b201d);
    color: white;
    font-weight: 700;
}

.site-brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.site-brand-logo--header {
    height: 2.5rem;
    max-width: min(14rem, 45vw);
}

.site-brand-logo--footer {
    height: 2.5rem;
    max-width: 14rem;
}

.site-brand-logo--hero {
    max-width: min(22rem, 72vw);
    max-height: 5rem;
}

.site-brand-logo--admin {
    max-width: 14rem;
    max-height: 3rem;
}

.site-brand-logo--admin-dark {
    max-width: 12rem;
    max-height: 2.5rem;
    margin-bottom: 0.75rem;
}

.catalog-grid {
    display: grid;
    gap: 3.5rem 2.75rem;
}

.catalog-column {
    min-width: 0;
}

.catalog-heading {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #6b7280;
}

.catalog-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 2.75rem;
    color: #1f2937;
    transition: transform 180ms ease, opacity 180ms ease;
}

.catalog-link:hover {
    transform: translateX(3px);
}

.catalog-link__label {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.catalog-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 1.95rem;
    flex: 0 0 1.95rem;
    border-radius: 0.28rem;
    color: #fff;
}

.catalog-symbol svg {
    width: 1.16rem;
    height: 1.16rem;
    overflow: visible;
}

.catalog-symbol--orange {
    background: #ef6b4d;
}

.catalog-symbol--green {
    background: #93bf5d;
}

.catalog-symbol--yellow {
    background: #f4c61d;
}

.catalog-symbol--purple {
    background: #b46f9f;
}

.catalog-symbol--blue {
    background: #4f7cb3;
}

.catalog-symbol--violet {
    background: #745fe8;
}

.catalog-symbol--word {
    background: #5b82ca;
}

.catalog-symbol--powerpoint {
    background: #f2754f;
}

.catalog-symbol--excel {
    background: #5aa15f;
}

.catalog-symbol--pdfa {
    background: #4b78b0;
}

[data-tool-entry].hidden,
[data-tool-section].hidden {
    display: none !important;
}

.ad-placeholder {
    border: 1px dashed rgba(229, 50, 45, 0.35);
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(254, 226, 226, 0.8));
}

.premium-no-ads .ad-placeholder {
    display: none !important;
}

.upload-zone {
    border: 2px dashed rgba(229, 50, 45, 0.28);
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.upload-zone.is-dragover {
    border-color: rgba(229, 50, 45, 0.85);
    background: rgba(254, 226, 226, 0.82);
    transform: translateY(-2px);
}

.file-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.96);
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    color: #0f172a;
}

.progress-rail {
    overflow: hidden;
    background: rgba(254, 202, 202, 0.8);
}

.progress-bar {
    transition: width 280ms ease;
    background: linear-gradient(90deg, #E5322D, #a52420);
}

.result-shell {
    background:
        radial-gradient(circle at top left, rgba(252, 165, 165, 0.42), transparent 28%),
        radial-gradient(circle at bottom right, rgba(254, 202, 202, 0.32), transparent 24%),
        linear-gradient(180deg, #fff1f2 0%, #f8fafc 45%, #ffffff 100%);
}

.mini-muted {
    font-size: 0.77rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.toast {
    pointer-events: auto;
    border-radius: 0.75rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.92);
    color: white;
    padding: 0.9rem 1rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
}

.sticky-panel {
    position: sticky;
    top: 6.25rem;
}

@media (max-width: 767px) {
    .sticky-panel {
        position: static;
    }

    .hero-surface::before {
        background: linear-gradient(180deg, rgba(7, 25, 56, 0.24) 0%, rgba(7, 25, 56, 0.12) 100%);
    }
}

@media (min-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .catalog-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        align-items: start;
    }
}
