.hero {
    padding: 100px 0;
    background:
        radial-gradient(
            circle at 80% 20%,
            #ddd9ff,
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #f8f7ff,
            #ffffff
        );
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 70px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 30px;
    background: #eceaff;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
    margin: 22px 0;
}

.hero p {
    color: var(--muted);
    font-size: 18px;
    max-width: 580px;
}

.search-box {
    margin-top: 30px;
    display: flex;
    background: white;
    padding: 7px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    max-width: 560px;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px;
}

.search-box button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 0 25px;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 700;
}

.hero-card {
    min-height: 400px;
    display: grid;
    place-items: center;
    position: relative;
}

.calculator-preview {
    width: 280px;
    padding: 20px;
    background: #15192d;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(20, 22, 50, .3);
    transform: rotate(3deg);
}

.preview-screen {
    height: 90px;
    border-radius: 15px;
    background: #252b46;
    color: white;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    font-size: 30px;
}

.preview-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.preview-buttons span {
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #292f4a;
    color: white;
}

.floating-symbol {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 45px;
    color: var(--primary);
}

.floating-symbol.second {
    top: auto;
    bottom: 20px;
    left: auto;
    right: 30px;
}

.floating-symbol.third {
    top: 80px;
    left: auto;
    right: 0;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.calculator-card {
    background: white;
    border: 1px solid var(--border);
    padding: 28px;
    border-radius: 20px;
    transition: .25s;
    box-shadow: 0 5px 20px rgba(0,0,0,.03);
}

.calculator-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.calculator-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #efedff;
    color: var(--primary);
    font-size: 25px;
}

.calculator-card h3 {
    margin: 20px 0 8px;
}

.calculator-card p {
    color: var(--muted);
    min-height: 52px;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 700;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: white;
    border: 1px solid var(--border);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}

.category-card .icon {
    font-size: 35px;
}

.category-card h3 {
    margin-top: 12px;
}