.calc-body {
    --ink: #0b1220;
    --muted: #5f6b7a;
    --bg: #f7f9fc;
    --surface: #ffffff;
    --surface-2: rgba(255, 255, 255, 0.85);
    --accent: #1aa3ff;
    --accent-2: #10b981;
    --warm: #f59e0b;
    --line: rgba(15, 23, 42, 0.12);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    background: var(--bg);
    color: var(--ink);
    font-family: "Space Grotesk", "Sora", sans-serif;
    position: relative;
}

.calc-body::before,
.calc-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
}

.calc-body::before {
    background:
        radial-gradient(circle at 15% 20%, rgba(26, 163, 255, 0.18), transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.16), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(245, 158, 11, 0.12), transparent 55%);
}

.calc-body::after {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: -3;
}

.calc-hero {
    position: relative;
    padding: 96px 0 64px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(26, 163, 255, 0.15), transparent 55%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(0px);
    opacity: 0.6;
    animation: float 10s ease-in-out infinite;
}

.orb-1 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(26, 163, 255, 0.35), transparent 70%);
    top: -80px;
    left: -40px;
}

.orb-2 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3), transparent 65%);
    top: 40px;
    right: -90px;
    animation-delay: 1.5s;
}

.orb-3 {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3), transparent 70%);
    bottom: -120px;
    left: 45%;
    animation-delay: 3s;
}

.scanline {
    position: absolute;
    width: 140%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(26, 163, 255, 0.4), transparent);
    top: 35%;
    left: -20%;
    animation: scan 7s linear infinite;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(26, 163, 255, 0.12);
    color: #0b3b66;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.calc-hero h1 {
    font-size: clamp(2.6rem, 4vw, 4rem);
    margin: 16px 0;
}

.hero-lede {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 520px;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.metric {
    background: var(--surface-2);
    border: 1px solid rgba(26, 163, 255, 0.2);
    padding: 14px 18px;
    border-radius: 14px;
    min-width: 140px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    display: block;
}

.metric-label {
    color: var(--muted);
    font-size: 0.9rem;
}

.hero-panel {
    background: linear-gradient(160deg, #0b1220, #121c2f);
    color: #e2e8f0;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(26, 163, 255, 0.2);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.panel-badge {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.7);
}

.panel-status {
    background: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
}

.signal-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: rgba(226, 232, 240, 0.86);
}

.signal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(26, 163, 255, 0.8);
}

.panel-gauge {
    margin-top: 18px;
}

.gauge-label {
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 8px;
}

.gauge-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.gauge-fill {
    display: block;
    height: 100%;
    width: 72%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    animation: pulse 3s ease-in-out infinite;
}

.panel-footer {
    margin-top: 18px;
    font-size: 0.85rem;
    color: rgba(226, 232, 240, 0.65);
}

.calc-shell {
    padding-top: 40px;
}

.calc-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.calc-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
    animation: reveal 0.8s ease both;
}

.calc-card--output {
    border: 1px solid rgba(26, 163, 255, 0.25);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.chip {
    background: rgba(26, 163, 255, 0.14);
    color: #0b3b66;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.chip--pulse {
    background: rgba(16, 185, 129, 0.16);
    color: #0f5132;
    animation: pulse 2.8s ease-in-out infinite;
}

.calc-field {
    margin-bottom: 16px;
}

.calc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1f2937;
}

.calc-field select,
.calc-field input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.calc-field select:focus,
.calc-field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(26, 163, 255, 0.2);
}

.calc-hint {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.9rem;
}

.calc-result {
    border: 1px dashed rgba(26, 163, 255, 0.4);
    background: rgba(26, 163, 255, 0.08);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.calc-price {
    font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    font-weight: 700;
    color: #0b3b66;
}

.calc-note {
    color: var(--muted);
    font-size: 0.85rem;
}

.range-meter {
    margin: 20px 0 10px;
}

.range-label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.range-bar {
    height: 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.range-fill {
    display: block;
    height: 100%;
    width: 86%;
    background: linear-gradient(90deg, var(--accent), var(--warm));
    animation: pulse 3.2s ease-in-out infinite;
}

.range-note {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--muted);
}

.output-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.output-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.output-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

.output-value {
    font-weight: 600;
    margin-top: 4px;
    display: block;
}

.calc-summary {
    margin-top: 10px;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.btn-primary {
    background: linear-gradient(120deg, var(--accent), #3b82f6);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 14px 30px rgba(26, 163, 255, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(26, 163, 255, 0.4);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(26, 163, 255, 0.35);
    color: #0b3b66;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
    width: 222px;
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.trust-item {
    background: var(--surface-2);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.trust-number {
    font-size: 1.2rem;
    font-weight: 700;
}

.trust-label {
    font-size: 0.85rem;
    color: var(--muted);
}

.section-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 26px;
}

.section-head p {
    color: var(--muted);
    max-width: 620px;
}

.insight-grid,
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.insight-card,
.step-card {
    background: var(--surface-2);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    animation: reveal 0.9s ease both;
}

.insight-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(26, 163, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0b3b66;
    margin-bottom: 12px;
}

.step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: #065f46;
    font-weight: 700;
    margin-bottom: 10px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.faq-item {
    background: var(--surface-2);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 16px 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--muted);
}

.calc-cta .cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
    border-radius: 22px;
    background: linear-gradient(120deg, rgba(26, 163, 255, 0.14), rgba(16, 185, 129, 0.12));
    border: 1px solid rgba(26, 163, 255, 0.2);
}

.cta-copy p {
    color: var(--muted);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(18px); }
}

@keyframes scan {
    0% { transform: translateY(-120px); opacity: 0; }
    10% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { transform: translateY(220px); opacity: 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes reveal {
    from { transform: translateY(18px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 980px) {
    .hero-grid,
    .calc-layout {
        grid-template-columns: 1fr;
    }

    .calc-cta .cta-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .calc-hero {
        padding: 80px 0 48px;
    }

    .cta-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .orb,
    .scanline,
    .gauge-fill,
    .range-fill,
    .chip--pulse,
    .calc-card,
    .insight-card,
    .step-card {
        animation: none;
    }
}
