:root {
    --bg: #080b16;
    --panel: rgba(18, 24, 43, 0.88);
    --panel-strong: #11182b;
    --line: rgba(255, 255, 255, 0.11);
    --text: #f7f9ff;
    --muted: #aab6d3;
    --blue: #34a7ff;
    --green: #21d18f;
    --purple: #8d5cff;
    --danger: #ff6b7a;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 5%, rgba(52, 167, 255, 0.28), transparent 28rem),
        radial-gradient(circle at 88% 10%, rgba(141, 92, 255, 0.24), transparent 24rem),
        linear-gradient(135deg, #080b16 0%, #10172a 58%, #07120f 100%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input,
select {
    font: inherit;
}

.app-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 220px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(120deg, rgba(52, 167, 255, 0.18), rgba(33, 209, 143, 0.08) 48%, rgba(141, 92, 255, 0.18)),
        rgba(14, 19, 35, 0.88);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 12px;
    font-size: clamp(2rem, 5vw, 4.2rem);
    line-height: 1.02;
}

.hero__text {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1.04rem;
}

.hero__badge {
    display: grid;
    place-items: center;
    flex: 0 0 148px;
    width: 148px;
    height: 148px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(52, 167, 255, 0.95), rgba(141, 92, 255, 0.92));
    box-shadow: 0 18px 44px rgba(52, 167, 255, 0.22);
    text-align: center;
}

.hero__badge span {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero__badge strong {
    display: block;
    font-size: 1.65rem;
}

.layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 20px;
    margin-top: 20px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.calculator-card,
.result-card {
    padding: 24px;
}

.card__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.card__header--compact {
    margin-top: 20px;
}

.card__header h2,
.empty-state h2,
.result-content h2 {
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.card__header p,
.empty-state p {
    margin-bottom: 0;
    color: var(--muted);
}

.step-marker {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(52, 167, 255, 0.14);
    color: var(--blue);
    font-weight: 800;
}

.step-marker--green {
    background: rgba(33, 209, 143, 0.14);
    color: var(--green);
}

.form-grid,
.custom-block {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.custom-block {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
    display: grid;
    gap: 7px;
}

.field span {
    color: #d8e0f6;
    font-size: 0.91rem;
    font-weight: 700;
}

.field input,
.field select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(7, 11, 22, 0.82);
    color: var(--text);
    outline: none;
    padding: 0 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(52, 167, 255, 0.16);
}

.field input::placeholder {
    color: #7180a0;
}

.section-divider {
    height: 1px;
    margin: 22px 0;
    background: linear-gradient(90deg, transparent, rgba(52, 167, 255, 0.44), rgba(33, 209, 143, 0.36), transparent);
}

.form-error,
.copy-feedback {
    min-height: 22px;
    margin: 14px 0 0;
    color: var(--danger);
    font-weight: 700;
}

.copy-feedback {
    color: var(--green);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 18px;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

.btn-secondary {
    background: rgba(52, 167, 255, 0.16);
    border-color: rgba(52, 167, 255, 0.34);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #16b978, var(--green));
    color: #04120d;
}

.btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.18);
}

.result-card {
    position: sticky;
    top: 20px;
    min-height: 520px;
    align-self: start;
}

.empty-state {
    display: grid;
    min-height: 470px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(52, 167, 255, 0.22), rgba(33, 209, 143, 0.22));
    color: var(--green);
    font-size: 1.4rem;
    font-weight: 900;
}

.result-content h2 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 1.7rem;
    line-height: 1.2;
}

.result-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.result-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(7, 11, 22, 0.48);
}

.result-list dt {
    color: var(--muted);
    font-size: 0.9rem;
}

.result-list dd {
    margin: 0;
    color: var(--text);
    font-weight: 900;
    text-align: right;
}

.result-list__highlight {
    border-color: rgba(33, 209, 143, 0.42) !important;
    background: linear-gradient(135deg, rgba(33, 209, 143, 0.16), rgba(52, 167, 255, 0.12)) !important;
}

.technical-note {
    margin: 18px 0 0;
    padding: 14px;
    border-left: 4px solid var(--purple);
    border-radius: 8px;
    background: rgba(141, 92, 255, 0.1);
    color: #cbd5ef;
    font-size: 0.92rem;
}

.actions--result {
    margin-top: 16px;
}

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

    .result-card {
        position: static;
        min-height: auto;
    }

    .empty-state {
        min-height: 260px;
    }
}

@media (max-width: 720px) {
    .app-shell {
        width: min(100% - 22px, 1180px);
        padding: 16px 0;
    }

    .hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .hero__badge {
        width: 112px;
        height: 112px;
        flex-basis: 112px;
    }

    .hero__badge strong {
        font-size: 1.25rem;
    }

    .calculator-card,
    .result-card {
        padding: 18px;
    }

    .form-grid,
    .custom-block {
        grid-template-columns: 1fr;
    }

    .result-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .result-list dd {
        text-align: left;
    }

    .btn {
        width: 100%;
    }
}
