:root {
    --page-bg: #f7fbff;
    --white: #ffffff;
    --text: #071d4d;
    --muted: #64748b;
    --border: #dce7f5;
    --shadow: 0 18px 55px rgba(9, 30, 66, 0.08);
    --shadow-soft: 0 10px 28px rgba(9, 30, 66, 0.06);

    --blue: #0b63ff;
    --blue-dark: #071d4d;
    --blue-soft: #eef5ff;

    --green: #15b86a;
    --green-soft: #effcf6;

    --purple: #8b46ff;
    --purple-soft: #f7f1ff;

    --orange: #ff7a00;
    --orange-soft: #fff6ed;

    --cyan: #16a8bd;
    --cyan-soft: #eefcff;

    --yellow: #f5aa00;
    --yellow-soft: #fff9e8;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(226, 241, 255, 0.95), transparent 34rem),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 36%, #f9fcff 100%);
    color: var(--text);
    overflow-x: hidden;
}



.page {
    width: min(100% - 40px, 1320px);
    margin: 0 auto;
    padding: 0 0 58px;
}

.hero {
    position: relative;
    overflow: hidden;
    width: 100vw;
    min-height: 500px;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: center;
    gap: 42px;
    padding: 58px max(58px, calc((100vw - 1320px) / 2 + 58px)) 52px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 82% 12%, rgba(84, 169, 255, 0.48), transparent 19rem),
        radial-gradient(circle at 58% 88%, rgba(16, 106, 255, 0.48), transparent 22rem),
        linear-gradient(135deg, #071d4d 0%, #093b91 42%, #0b63ff 74%, #3aa7ff 100%);
    box-shadow: 0 28px 80px rgba(9, 41, 113, 0.22);
}

.hero::before {
    content: "";
    position: absolute;
    right: 345px;
    top: -190px;
    width: 365px;
    height: 720px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    transform: skewX(-24deg);
    border-radius: 0 0 42px 42px;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 42%),
        radial-gradient(circle at 78% 76%, rgba(255, 255, 255, 0.16), transparent 20rem);
    pointer-events: none;
    z-index: 0;
}

.hero__content,
.hero__visual {
    position: relative;
    z-index: 1;
}

.hero__tag {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 7px 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero h1 {
    margin: 26px 0 20px;
    color: #ffffff;
    font-size: clamp(2.35rem, 4.1vw, 4.65rem);
    line-height: 1.05;
    font-weight: 600;
    letter-spacing: -0.055em;
}

.hero h1 strong {
    color: #9dd1ff;
    font-weight: 600;
}

.hero p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.8;
    font-weight: 500;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 30px;
}

.hero__badges span {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 600;
}

.hero__badges svg {
    width: 31px;
    height: 31px;
    padding: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    stroke: #ffffff;
    stroke-width: 2.4;
    fill: none;
}

.hero__visual {
    min-height: 405px;
}

.hero__dots {
    position: absolute;
    top: 3px;
    right: 0;
    width: 152px;
    height: 128px;
    opacity: 0.34;
    background-image: radial-gradient(rgba(255, 255, 255, 0.78) 2px, transparent 2px);
    background-size: 19px 19px;
}

.hero__panel {
    position: absolute;
    background: rgba(255, 255, 255, 0.17);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 25px 70px rgba(4, 16, 45, 0.22);
    backdrop-filter: blur(12px);
}

.hero__panel--left {
    left: 36px;
    top: 120px;
    width: 275px;
    height: 186px;
    border-radius: 24px;
    padding: 34px 30px;
}

.hero__panel--left span {
    display: block;
    width: 78px;
    height: 16px;
    margin-bottom: 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.hero__panel--left span:nth-child(2) {
    width: 120px;
}

.hero__panel--left span:nth-child(3) {
    width: 93px;
}

.mini-chart {
    position: absolute;
    right: 32px;
    bottom: 27px;
    display: flex;
    align-items: end;
    gap: 11px;
    height: 82px;
}

.mini-chart i,
.bar-chart i {
    display: block;
    width: 22px;
    border-radius: 8px 8px 4px 4px;
    background: linear-gradient(180deg, #ffffff 0%, #80c5ff 100%);
    opacity: 0.9;
}

.mini-chart i:nth-child(1) {
    height: 35px;
}

.mini-chart i:nth-child(2) {
    height: 70px;
}

.mini-chart i:nth-child(3) {
    height: 52px;
}

.hero__panel--right {
    right: 36px;
    top: 76px;
    width: 272px;
    height: 238px;
    border-radius: 26px;
    padding: 30px;
}

.donut {
    width: 95px;
    height: 95px;
    margin-left: auto;
    border-radius: 50%;
    background:
        conic-gradient(#ffffff 0 24%, rgba(255, 255, 255, 0.35) 24% 48%, rgba(255, 255, 255, 0.15) 48% 73%, #7fc5ff 73% 100%);
    position: relative;
}

.donut::after {
    content: "";
    position: absolute;
    inset: 25px;
    border-radius: inherit;
    background: rgba(20, 84, 181, 0.88);
}

.bar-chart {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 32px;
    height: 95px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 18px;
}

.bar-chart i {
    width: 31px;
}

.bar-chart i:nth-child(1) {
    height: 47px;
}

.bar-chart i:nth-child(2) {
    height: 78px;
}

.bar-chart i:nth-child(3) {
    height: 62px;
}

.calculator {
    position: absolute;
    left: 225px;
    top: 42px;
    width: 208px;
    min-height: 294px;
    padding: 20px 18px 18px;
    border-radius: 24px;
    background: linear-gradient(145deg, #09255c 0%, #0a367d 48%, #09245d 100%);
    box-shadow:
        0 30px 65px rgba(3, 18, 48, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    transform: rotate(8deg);
}

.calculator__screen {
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 18px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1670ff, #3a97ff);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: inset 0 2px 8px rgba(1, 16, 47, 0.2);
}

.calculator__keys {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.calculator__keys span {
    min-height: 35px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(145deg, #102f6d, #09235a);
    color: #d9e8ff;
    font-weight: 600;
    font-size: 0.87rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 5px 12px rgba(0, 0, 0, 0.12);
}

.calculator__keys .key-blue {
    grid-row: span 2;
    background: linear-gradient(145deg, #0b7cff, #075ce7);
    color: #ffffff;
}

.filters {
    display: grid;
    grid-template-columns: 1fr 288px;
    gap: 20px;
    margin: 34px 0 32px;
}

.search-box,
.select-box {
    min-height: 60px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 9px 24px rgba(9, 30, 66, 0.035);
}

.search-box:focus-within,
.select-box:focus-within {
    border-color: rgba(11, 99, 255, 0.52);
    box-shadow: 0 0 0 4px rgba(11, 99, 255, 0.08);
}

.search-box svg,
.select-box svg {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    stroke: #153261;
    stroke-width: 2.5;
    fill: none;
}

.search-box input,
.select-box select {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--blue-dark);
    font-weight: 700;
}

.search-box input::placeholder {
    color: #8c9ab0;
    font-weight: 700;
}

.select-box select {
    cursor: pointer;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #153261 50%),
        linear-gradient(135deg, #153261 50%, transparent 50%);
    background-position:
        calc(100% - 11px) calc(50% + 1px),
        calc(100% - 6px) calc(50% + 1px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 28px;
}

.categories h2 {
    margin: 0 0 18px;
    color: var(--blue-dark);
    font-size: 1.75rem;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: -0.035em;
}

.categories__list {
    display: grid;
    gap: 22px;
}

.category {
    --accent: var(--blue);
    --accent-soft: var(--blue-soft);

    position: relative;
    overflow: hidden;
    border: 1px solid rgba(11, 99, 255, 0.18);
    border-left: 4px solid var(--accent);
    border-radius: 13px;
    background:
        radial-gradient(circle at top left, var(--accent-soft) 0, transparent 28rem),
        linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 48%, var(--accent-soft) 100%);
    padding: 25px 24px 21px;
    box-shadow: var(--shadow-soft);
}

.category[data-color="blue"] {
    --accent: var(--blue);
    --accent-soft: var(--blue-soft);
    border-color: rgba(11, 99, 255, 0.18);
}

.category[data-color="green"] {
    --accent: var(--green);
    --accent-soft: var(--green-soft);
    border-color: rgba(21, 184, 106, 0.2);
}

.category[data-color="purple"] {
    --accent: var(--purple);
    --accent-soft: var(--purple-soft);
    border-color: rgba(139, 70, 255, 0.2);
}

.category[data-color="orange"] {
    --accent: var(--orange);
    --accent-soft: var(--orange-soft);
    border-color: rgba(255, 122, 0, 0.2);
}

.category[data-color="cyan"] {
    --accent: var(--cyan);
    --accent-soft: var(--cyan-soft);
    border-color: rgba(22, 168, 189, 0.2);
}

.category[data-color="yellow"] {
    --accent: var(--yellow);
    --accent-soft: var(--yellow-soft);
    border-color: rgba(245, 170, 0, 0.24);
}

.category__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.category__title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.category__icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid rgba(255, 255, 255, 0.92);
}

.category__icon svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 2.35;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category h3 {
    margin: 0 0 5px;
    color: var(--accent);
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.category__description {
    margin: 0;
    color: #6a768c;
    font-size: 0.91rem;
    line-height: 1.45;
    font-weight: 600;
}

.category__count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 7px 13px;
    border-radius: 9px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.calc-card {
    min-height: 178px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px 18px;
    border: 1px solid #dfe7f3;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 22px rgba(9, 30, 66, 0.035);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.calc-card:hover,
.calc-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 18px 34px rgba(9, 30, 66, 0.09);
    background: #ffffff;
    outline: 0;
}

.calc-card__top {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}

.calc-card__icon {
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
}

.calc-card__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.35;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.calc-card h4 {
    margin: 0;
    color: var(--blue-dark);
    font-size: 0.96rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.calc-card p {
    margin: 0 0 18px;
    color: #68748a;
    font-size: 0.91rem;
    line-height: 1.56;
    font-weight: 600;
}

.calc-card__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--accent);
    font-size: 0.87rem;
    font-weight: 600;
}

.calc-card__link::after {
    content: "→";
    font-size: 1rem;
    line-height: 1;
    transition: transform 0.18s ease;
}

.calc-card:hover .calc-card__link::after,
.calc-card:focus-visible .calc-card__link::after {
    transform: translateX(3px);
}

.category__footer {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.category__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 12px;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
}

.category__toggle:hover,
.category__toggle:focus-visible {
    background: var(--accent-soft);
    outline: 0;
}

.category__toggle::after {
    content: "→";
    font-size: 1rem;
    transition: transform 0.18s ease;
}

.category__toggle:hover::after {
    transform: translateX(3px);
}

.empty-state {
    margin-top: 20px;
    padding: 34px 24px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #ffffff;
    color: var(--blue-dark);
    text-align: center;
    font-weight: 850;
    box-shadow: var(--shadow-soft);
}

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: auto;
        padding: 44px max(34px, calc((100vw - 1320px) / 2 + 34px)) 36px;
    }

    .hero::before {
        right: -120px;
        top: 260px;
        height: 420px;
    }

    .hero__visual {
        min-height: 360px;
    }

    .hero__panel--left {
        left: 0;
    }

    .hero__panel--right {
        right: 0;
    }

    .calculator {
        left: 50%;
        transform: translateX(-50%) rotate(8deg);
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .page {
        width: min(100% - 28px, 1320px);
        padding: 0 0 44px;
    }

    .hero {
        padding: 34px max(22px, calc((100vw - 1320px) / 2 + 22px)) 28px;
        border-radius: 0;
    }

    .hero h1 {
        margin-top: 20px;
        font-size: 2.42rem;
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.68;
    }

    .hero__badges {
        gap: 15px;
    }

    .hero__badges span {
        font-size: 0.86rem;
    }

    .hero__visual {
        display: none;
    }

    .hero__panel--left {
        top: 106px;
        width: 210px;
        height: 150px;
        padding: 26px 22px;
    }

    .hero__panel--right {
        top: 60px;
        width: 210px;
        height: 190px;
        padding: 22px;
    }

    .calculator {
        width: 170px;
        min-height: 242px;
        padding: 16px 14px 14px;
    }

    .calculator__screen {
        height: 52px;
    }

    .calculator__keys {
        gap: 8px;
    }

    .calculator__keys span {
        min-height: 29px;
        font-size: 0.76rem;
    }

    .filters {
        margin-top: 24px;
    }

    .search-box,
    .select-box {
        min-height: 56px;
        padding: 0 17px;
    }

    .categories h2 {
        font-size: 1.48rem;
    }

    .category {
        padding: 21px 16px 18px;
    }

    .category__head {
        flex-direction: column;
        gap: 13px;
    }

    .category__count {
        align-self: flex-start;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .calc-card {
        min-height: auto;
    }
}

a,
a:visited,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

.calc-card,
.calc-card:visited,
.calc-card:hover,
.calc-card:focus,
.calc-card:active,
.calc-card * {
    text-decoration: none !important;
}

.calc-card h4,
.calc-card p,
.calc-card span,
.calc-card__link {
    text-decoration: none !important;
}

.category__toggle,
.category__toggle:hover,
.category__toggle:focus,
.category__toggle:active {
    text-decoration: none !important;
}

/* =========================================================
   EFEITO SIMPLES DE ENTRADA - SEM BLUR
========================================================= */

.reveal-home-effect {
    opacity: 0;
    transform: translateY(12px);
    transition:
        opacity 0.34s ease,
        transform 0.34s ease;
    will-change: opacity, transform;
}

.reveal-home-effect.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero::after {
    animation: heroLightMove 8s ease-in-out infinite alternate;
}

@keyframes heroLightMove {
    0% {
        opacity: 0.82;
        transform: translate3d(-6px, -4px, 0) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate3d(8px, 6px, 0) scale(1.02);
    }
}

.calculator {
    animation: calculatorFloat 5.5s ease-in-out infinite;
}

@keyframes calculatorFloat {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

.hero__panel--left {
    animation: panelFloatLeft 6.2s ease-in-out infinite;
}

.hero__panel--right {
    animation: panelFloatRight 6.8s ease-in-out infinite;
}

@keyframes panelFloatLeft {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: -6px 6px;
    }
}

@keyframes panelFloatRight {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 6px -6px;
    }
}

.calc-card {
    position: relative;
    overflow: hidden;
}

.calc-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255, 255, 255, 0.58) 46%,
        transparent 72%
    );
    transform: translateX(-130%);
    transition: transform 0.55s ease;
    pointer-events: none;
}

.calc-card:hover::before,
.calc-card:focus-visible::before {
    transform: translateX(130%);
}

@media (prefers-reduced-motion: reduce) {
    .reveal-home-effect,
    .reveal-home-effect.is-visible,
    .hero::after,
    .calculator,
    .hero__panel--left,
    .hero__panel--right,
    .calc-card::before {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        translate: 0 0 !important;
        opacity: 1 !important;
    }
}