:root {
    /* Premium Color Palette */
    --primary-dark: #0f172a;
    /* Slate 900 - Deepest background */
    --primary-deep: #1e293b;
    /* Slate 800 - Secondary dark */
    --primary-blue: #2563eb;
    /* Vibrant blue for actions */
    --primary-blue-dark: #1d4ed8;

    --accent-gold: #b45309;
    /* Refined gold/amber */
    --accent-gold-light: #f59e0b;

    --text-main: #1e293b;
    /* Almost black for readability */
    --text-secondary: #475569;
    /* Muted text */
    --text-light: #94a3b8;

    --bg-body: #f8fafc;
    /* Very clean slate white */
    --bg-card: #ffffff;
    --bg-surface: #f1f5f9;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    /* Shadows - Soft & Diffused */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Fonts */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Enhancements */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    height: 90vh;
    min-height: 600px;
    background-color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: white;
}

/* Animated Gradient Background */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
    z-index: 1;
    animation: pulseGlow 10s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.6));
    z-index: 2;
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    padding: 0 2rem;
}

.hero-text-wrapper {
    margin-bottom: 3rem;
}

.hero-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--accent-gold-light);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(252, 211, 77, 0.3);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    opacity: 0;
    animation: slideDownFade 0.8s ease forwards 0.2s;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider-text {
    position: relative;
    height: 180px;
    display: flex;
    justify-content: center;
}

.hero-slide-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.hero-slide-text.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-desc {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Slider Controls */
.slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.slider-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-base);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.slider-dots {
    display: flex;
    gap: 0.75rem;
}

.slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-base);
}

.slider-dot.active {
    background: var(--accent-gold-light);
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(252, 211, 77, 0.5);
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: var(--transition-base);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.scroll-down:hover {
    color: white;
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.logo-wrapper {
    text-align: center;
}

.logo {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0px;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 3rem 0 6rem;
}

/* Category Tabs - Modern Pill Style */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto 3rem;
    padding: 0.5rem;
    background: white;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    width: fit-content;
    border: 1px solid var(--border-light);
}

.tab-button {
    padding: 0.75rem 2rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
}

.tab-button:hover {
    color: var(--primary-dark);
    background-color: var(--bg-surface);
}

.tab-button.active {
    background-color: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Calculator Card */
.calculator-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.calculator-section {
    display: none;
    animation: fadeInScale 0.4s ease-out;
}

.calculator-section.active {
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.calculator-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.card-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    position: relative;
}

/* Accent line at top of card */
.calculator-card::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold-light));
    width: 100%;
}

.card-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Styling */
.calculator-form {
    padding: 1rem 3rem 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-navy);
    letter-spacing: 0.01em;
}

/* Input Styles */
input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--text-main);
    background: var(--bg-body);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-inner);
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.input-group {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

/* Radio Buttons - Custom */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    background: white;
}

.radio-label:hover {
    background: var(--bg-surface);
    border-color: var(--primary-blue);
}

/* Hide default radio, style container based on state */
.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}



/* Actually, simpler way specifically for the checked style on the label wrapper: */
.radio-label:has(input:checked) {
    background: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-medium);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.radio-label input:checked~.radio-custom {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
}

.radio-label input:checked~.radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 1.125rem;
    background: var(--primary-dark);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-lg);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: var(--primary-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    margin-bottom: 1rem;
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.03);
}

/* Tier Items */
.tier-item {
    background: var(--bg-body);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
}

.tier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-navy);
}

.remove-tier {
    color: #ef4444;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.remove-tier:hover {
    background: #fef2f2;
}

/* ===== RESULT SECTION ===== */
.result-container {
    margin-top: 3rem;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-light);
}

.result-header {
    background: var(--primary-dark);
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Abstract pattern in header */
.result-header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.result-header h3 {
    color: white;
    font-size: 1.75rem;
    position: relative;
    z-index: 10;
    margin: 0;
}

.result-content {
    padding: 2.5rem;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
}

.result-item:last-of-type {
    border-bottom: none;
}

.result-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.result-value {
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    text-align: right;
}

/* Highlighted Result */
.result-item.highlight {
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.1));
    margin: 1.5rem -1rem;
    /* Negative margin to make it bleed slightly */
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-bottom: 1px solid rgba(37, 99, 235, 0.2);
}

.result-item.highlight .result-label {
    color: var(--primary-blue-dark);
    font-size: 1.1rem;
}

.result-item.highlight .result-value {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.result-actions {
    display: flex;
    gap: 1rem;
    padding: 0 2.5rem 2.5rem;
}

.btn-outline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    background: white;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-outline:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    background: var(--bg-surface);
}

.disclaimer {
    margin: 0 2.5rem 2.5rem;
    padding: 1rem;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #92400e;
    line-height: 1.5;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info p {
    font-size: 0.875rem;
    opacity: 0.7;
}

.powered-by {
    margin-top: 0.5rem;
    font-size: 0.8rem !important;
    /* Slightly smaller */
}

.powered-by a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.powered-by a:hover {
    color: var(--accent-gold-light);
}

/* ===== UTILITIES & RESPONSIVE ===== */
hr {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 6rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .main-content {
        padding-bottom: 6rem;
        /* Prevent content from being hidden behind text nav */
    }

    .category-tabs {
        position: fixed;
        bottom: 1.25rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 450px;
        margin: 0;
        padding: 0.35rem 0.5rem;
        background: var(--primary-dark);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 16px;
        /* Reduced from 999px */
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
        overflow-x: auto;
        gap: 0;
        /* Remove gap to use dividers */
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        background: transparent;
        color: rgba(255, 255, 255, 0.7);
        flex: 1;
        min-width: auto;
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        font-weight: 500;
        box-shadow: none;
        border: none;
        border-radius: 12px;
        /* Reduced from 999px */
        white-space: nowrap;
        text-align: center;
        position: relative;
        transition: all 0.3s ease;
    }

    /* Separator Line */
    .tab-button:not(:last-child)::after {
        content: '';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 12px;
        width: 1px;
        background: rgba(255, 255, 255, 0.15);
        transition: opacity 0.2s ease;
    }

    /* Hide separator near active item for clean look */
    .tab-button.active::after,
    .tab-button:has(+ .active)::after {
        opacity: 0;
    }

    .tab-button.active {
        background: var(--bg-body);
        color: var(--primary-dark);
        font-weight: 700;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .calculator-form {
        padding: 1.5rem;
    }

    .input-group,
    .result-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .card-header {
        padding: 2rem 1.5rem;
    }
}

/* ========================================================================== */
/* 2026 refresh: lightweight, system-font financial utility interface         */
/* ========================================================================== */
:root {
    --primary: #123a56;
    --primary-dark: #0a293f;
    --primary-light: #e7f1f5;
    --accent: #ec7c4a;
    --accent-dark: #ce5f31;
    --success: #16836b;
    --bg-body: #f5f7f8;
    --bg-white: #ffffff;
    --text-primary: #17232d;
    --text-secondary: #60707c;
    --border: #dce3e7;
    --shadow-sm: 0 1px 3px rgba(10, 41, 63, 0.08);
    --shadow-md: 0 16px 45px rgba(10, 41, 63, 0.12);
}

html { scroll-padding-top: 88px; }

body {
    color: var(--text-primary);
    background:
        radial-gradient(circle at 90% 35%, rgba(231, 241, 245, 0.9), transparent 32rem),
        var(--bg-body);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

button, input, select { font: inherit; }

.container { width: min(1120px, calc(100% - 40px)); }

.site-nav {
    position: absolute;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    gap: 11px;
    align-items: center;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 760;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    font-size: .76rem;
    letter-spacing: .03em;
}

.nav-cta {
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    color: #fff;
    font-size: .86rem;
    font-weight: 650;
    text-decoration: none;
}

.nav-cta:hover { background: rgba(255, 255, 255, .1); }

.hero-section {
    min-height: 570px;
    padding: 138px 0 110px;
    background:
        linear-gradient(105deg, rgba(7, 34, 52, .96), rgba(18, 58, 86, .9)),
        url('../images/og-image.jpg') center/cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    right: -9rem;
    bottom: -15rem;
    width: 36rem;
    height: 36rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 90px rgba(255, 255, 255, .025), 0 0 0 180px rgba(255, 255, 255, .018);
}

.hero-overlay { background: none; }

.hero-content {
    width: min(1120px, calc(100% - 40px));
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.hero-text-wrapper { width: min(700px, 100%); }

.hero-label {
    display: inline-flex;
    margin-bottom: 26px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    color: #d9ebf1;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .09em;
}

.hero-slider-text { min-height: 190px; }

.hero-title {
    max-width: 690px;
    margin: 0 0 19px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(2.55rem, 6vw, 4.65rem);
    font-weight: 750;
    line-height: 1.02;
    letter-spacing: -.055em;
}

.hero-desc {
    max-width: 610px;
    color: #c7d9e3;
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.slider-nav { justify-content: flex-start; margin-top: 12px; }
.slider-arrow { display: none; }
.slider-dot { width: 7px; height: 7px; background: rgba(255,255,255,.35); }
.slider-dot.active { width: 28px; border-radius: 99px; background: var(--accent); }

.scroll-down {
    right: max(20px, calc((100vw - 1120px) / 2));
    bottom: 54px;
    left: auto;
    flex-direction: row;
    color: #dce9ef;
    font-size: .8rem;
    font-weight: 650;
    letter-spacing: .04em;
}

.main-header { padding: 88px 0 26px; background: transparent; }
.logo-wrapper { text-align: left; }

.eyebrow {
    margin: 0 0 9px;
    color: var(--accent-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.logo {
    color: var(--primary-dark);
    font-family: inherit;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 760;
    letter-spacing: -.045em;
}

.tagline { max-width: 640px; margin-top: 10px; color: var(--text-secondary); }
.main-content { padding: 16px 0 100px; }

.category-tabs {
    gap: 7px;
    margin-bottom: 22px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #e9eef0;
    box-shadow: none;
}

.tab-button {
    min-height: 48px;
    border-radius: 11px;
    color: #566771;
    font-size: .9rem;
    font-weight: 650;
}

.tab-button:hover { color: var(--primary-dark); background: rgba(255,255,255,.55); }
.tab-button.active { color: var(--primary-dark); background: #fff; box-shadow: var(--shadow-sm); }
.tab-button::after { display: none; }

.calculator-card,
.result-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, .95);
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 28px 34px;
    border-bottom: 1px solid var(--border);
    background: #fff;
    color: var(--text-primary);
}

.card-header::after { display: none; }
.card-header h2 { color: var(--primary-dark); font-family: inherit; font-size: 1.4rem; letter-spacing: -.025em; }
.card-header p { margin-top: 4px; color: var(--text-secondary); font-size: .9rem; }
.calculator-form { gap: 22px; padding: 34px; }

.form-group label { margin-bottom: 8px; color: #394b56; font-size: .84rem; font-weight: 700; }

.form-group input,
.form-group select {
    min-height: 52px;
    border: 1px solid #cfd9de;
    border-radius: 11px;
    background: #fbfcfc;
    color: var(--text-primary);
    font-size: .95rem;
}

.form-group input:hover,
.form-group select:hover { border-color: #a9bac3; }

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18, 58, 86, .1);
}

.radio-group { gap: 8px; }
.radio-label { border: 1px solid var(--border); border-radius: 10px; background: #f8fafb; }
.radio-label:has(input:checked) { border-color: #9ab6c4; background: var(--primary-light); color: var(--primary-dark); }

.btn-primary {
    min-height: 54px;
    border-radius: 12px;
    background: var(--primary);
    box-shadow: 0 8px 20px rgba(18, 58, 86, .18);
    font-size: .95rem;
    font-weight: 750;
}

.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-secondary { border-radius: 10px; color: var(--primary); border-color: var(--primary); }
.result-container { margin-top: 24px; }
.result-header { background: var(--primary); }
.result-header h3 { font-family: inherit; }
.btn-outline { border-radius: 10px; color: var(--primary); border-color: #bfd0d8; }
.disclaimer { border-radius: 11px; background: #fff8ed; color: #72511b; }

.main-footer { background: #091f2e; border: 0; color: #fff; }
.footer-brand h3 { color: #fff; font-family: inherit; }
.footer-brand p, .footer-info p { color: #a9bec9; }
.powered-by a { color: #fff; }

@media (min-width: 880px) {
    .calculator-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .72fr); gap: 24px; align-items: start; }
    .calculator-section { grid-column: 1; grid-row: 1; }
    .result-container { grid-column: 2; grid-row: 1; margin-top: 0; position: sticky; top: 24px; }
    .result-container[style*="display: block"] { display: block !important; }
}

@media (max-width: 768px) {
    .container, .hero-content { width: min(100% - 28px, 1120px); }
    .nav-inner { min-height: 68px; }
    .nav-cta { display: none; }
    .hero-section { min-height: 530px; padding: 118px 0 95px; }
    .hero-title { font-size: clamp(2.35rem, 12vw, 3.6rem); }
    .hero-slider-text { min-height: 230px; }
    .scroll-down { right: 14px; bottom: 32px; }
    .main-header { padding: 62px 0 22px; }
    .category-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 14px; }
    .tab-button { padding: 11px 8px; }
    .calculator-card, .result-card { border-radius: 17px; }
    .card-header { padding: 24px 21px; }
    .calculator-form { padding: 23px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Interface refinements */
.brand-mark {
    display: block;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 11px;
    background: transparent;
    object-fit: cover;
}

.slider-dots {
    min-height: 18px;
    gap: 10px;
    align-items: center;
}

.slider-dot,
.slider-dot.active {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    transform: none;
}

.slider-dot { background: rgba(255, 255, 255, .42); }
.slider-dot.active { background: var(--accent); box-shadow: 0 0 0 4px rgba(236, 124, 74, .2); }
.hero-desc { margin: 0; }

.main-header {
    position: static;
    padding: 48px 0 18px;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.main-header .logo { font-size: clamp(1.8rem, 3.2vw, 2.45rem); }
.main-header .tagline { margin-top: 6px; }

@media (max-width: 768px) {
    .hero-section { min-height: 500px; padding: 112px 0 78px; }
    .hero-title { font-size: clamp(2.25rem, 10.5vw, 3rem); }
    .hero-slider-text { min-height: 218px; }

    .main-header { position: static; padding: 38px 0 16px; }
    .main-header .logo { font-size: 1.75rem; line-height: 1.18; }
    .main-header .tagline { font-size: .88rem; line-height: 1.55; }

    .main-content { padding: 8px 0 64px; }
    .category-tabs {
        position: static;
        inset: auto;
        transform: none;
        width: 100%;
        max-width: none;
        margin: 0 0 18px;
        padding: 5px;
        overflow: visible;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5px;
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #e9eef0;
        box-shadow: none;
    }

    .tab-button {
        min-height: 45px;
        padding: 9px 7px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: #566771;
        font-size: .78rem;
        font-weight: 650;
    }

    .tab-button:hover { color: var(--primary-dark); background: rgba(255, 255, 255, .55); }
    .tab-button.active { color: var(--primary-dark); background: #fff; box-shadow: var(--shadow-sm); }
    .tab-button::after { display: none !important; }

    .main-footer { padding: 42px 0 38px; }
    .footer-content { gap: 24px; align-items: flex-start; text-align: left; }
    .footer-brand h3 { font-size: 1.3rem; }
    .footer-brand p { max-width: 290px; line-height: 1.55; }
    .footer-info { text-align: left; }
}

/* Responsive desktop result layout */
.calculator-wrapper { max-width: 1120px; }

@media (min-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: minmax(0, 1.35fr) minmax(400px, .9fr);
        gap: 28px;
    }

    .result-content { padding: 28px 30px 20px; }

    .result-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(148px, auto);
        gap: 22px;
        align-items: center;
        padding: 17px 0;
    }

    .result-label { min-width: 0; line-height: 1.45; }
    .result-value { min-width: 0; white-space: nowrap; line-height: 1.4; }

    .result-item.highlight {
        grid-template-columns: minmax(0, 1fr) minmax(170px, auto);
        margin: 18px -10px;
        padding: 20px 18px;
    }

    .result-actions { padding: 6px 30px 26px; }
    .disclaimer { margin: 0 30px 30px; }
}

@media (min-width: 880px) and (max-width: 1023px) {
    .calculator-wrapper { display: block; }
    .calculator-section,
    .result-container { grid-column: auto; grid-row: auto; }
    .result-container { position: static; margin-top: 24px; }
}

@media (max-width: 520px) {
    .result-content { padding: 22px 20px; }
    .result-item { align-items: flex-start; gap: 10px; }
    .result-label { padding-right: 8px; font-size: .84rem; line-height: 1.4; }
    .result-value { font-size: .92rem; line-height: 1.4; }
    .result-actions { padding: 0 20px 22px; gap: 9px; }
    .disclaimer { margin: 0 20px 22px; }
}
