:root {
    --bg-dark: #0b1c2c;
    --bg-section: #10263b;
    --bg-accent: #112f45;
    --bg-light: #f5f6f8;
    --primary: #1ec28b;
    --primary-dark: #0f9a6a;
    --text-dark: #0b1c2c;
    --text-light: #dae3ef;
    --text-muted: #6b7b92;
    --border: rgba(255,255,255,0.08);
    --shadow: 0px 20px 80px rgba(8, 25, 48, 0.3);
    font-size: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: #fff;
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    padding: 5rem clamp(1.5rem, 6vw, 8rem);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 3rem;
    border-radius: 2.5rem;
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
}

.hero__content {
    z-index: 1;
}

.hero__tag {
    display: inline-flex;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(30, 194, 139, 0.1);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.8rem);
    line-height: 1.15;
    margin: 0 0 1.5rem;
}

.hero h1 span,
.hero__highlight {
    color: var(--primary);
}

.hero__subtitle {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.hero__description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.hero__stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero__stat-value {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    color: var(--primary);
}

.hero__stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.hero__benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
    color: var(--text-light);
}

.hero__benefits li {
    font-size: 0.95rem;
    line-height: 1.6;
    padding-left: 0;
}

.hero__benefits strong {
    color: var(--primary);
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(30, 194, 139, 0.3);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.4);
}

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

.hero__bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    color: var(--text-light);
}

.hero__visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero__visual img {
    width: 280px;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.2);
}

.hero__card {
    position: absolute;
    bottom: 1rem;
    right: -1rem;
    background: rgba(11, 28, 44, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem 1.25rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(255,255,255,0.1);
    width: 200px;
    box-shadow: var(--shadow);
}

.hero__label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.hero__value {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.3rem 0;
}

main {
    background: #fff;
    color: var(--text-dark);
    border-radius: 3rem 3rem 0 0;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.section {
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 6vw, 7rem);
}

.section--light {
    background: var(--bg-light);
}

.section--accent {
    background: #0a1826;
    color: #fff;
}

.section__heading {
    max-width: 720px;
    margin-bottom: 2.5rem;
}

.section__note {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: transparent;
    border: none;
    border-radius: 0;
    max-width: 720px;
}

.section__note p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--primary);
}

.section__note strong {
    color: var(--primary);
    font-weight: 600;
}

.section__subtitle {
    margin-top: 2.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #000;
    font-style: italic;
    max-width: 100%;
    text-align: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.78rem;
    color: var(--primary);
    margin: 0 0 0.75rem; 
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0 0 0.75rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--two {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid--three {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.info-card,
.stat-card,
.faq__item {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.75rem;
    border: 1px solid rgba(11, 28, 44, 0.08);
    box-shadow: 0 20px 40px rgba(11, 28, 44, 0.05);
}

.section--light .info-card,
.section--light .faq article {
    background: #fff;
}

.faq__item {
    margin-bottom: 1rem;
    padding: 0;
    overflow: hidden;
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 1.5rem 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    user-select: none;
    transition: background 0.2s ease;
}

.faq__question:hover {
    background: rgba(30, 194, 139, 0.05);
}

.faq__question::after {
    content: '▼';
    display: inline-block;
    margin-left: 1rem;
    color: var(--primary);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.faq__item[open] .faq__question::after {
    transform: rotate(180deg);
}

.faq__answer {
    padding: 0 1.75rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section--accent .info-card,
.section--accent .stat-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.15);
}

.stat-card__value {
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0.3rem 0 0.8rem;
}

.comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.comparison article {
    background: #fff;
    border-radius: 1.5rem;
    padding: 1.8rem;
    border: 1px solid rgba(11, 28, 44, 0.08);
    box-shadow: 0 20px 40px rgba(11, 28, 44, 0.05);
}

.comparison ul {
    padding-left: 1.2rem;
    color: var(--text-dark);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid rgba(11, 28, 44, 0.08);
}

th {
    background: var(--bg-light);
    font-weight: 600;
}

.section--accent .projection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.1);
}

.bar {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bar__track {
    width: 100%;
    height: 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
}

.bar__value {
    height: 16px;
    border-radius: 999px;
    background: rgba(255,255,255,0.6);
}

.bar__value--highlight {
    background: var(--primary);
}

.bar__label {
    font-weight: 600;
}

.bar__amount {
    font-size: 1.1rem;
    font-weight: 600;
}

.projection__notes {
    list-style: none;
    margin: 0;
    padding: 0;
    color: rgba(255,255,255,0.85);
    display: grid;
    gap: 0.8rem;
}

.projection__action {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.is-open {
    display: flex;
}

.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal__content {
    position: relative;
    z-index: 1001;
    background: var(--bg-section);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.modal__header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
}

.modal__close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal__close:hover {
    color: var(--primary);
}

.modal__body {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.input-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.input-range input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, var(--primary), var(--primary));
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.input-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--bg-section);
    box-shadow: 0 0 0 3px var(--primary);
}

.input-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    border: 2px solid var(--bg-section);
    box-shadow: 0 0 0 3px var(--primary);
}

.input-range input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
}

.form-group small {
    display: block;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.modal__results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.02);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.result-card {
    text-align: center;
}

.result-card h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.result-amount {
    margin: 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
}

.result-rate {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.result-card--highlight .result-amount {
    color: var(--primary);
}

.result-card--difference .result-amount {
    color: var(--primary);
}

.result-card--difference .result-rate {
    color: var(--primary);
    font-weight: 600;
}

.modal__disclaimer {
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: #fff;
    font-style: italic;
    text-align: center;
}

.modal__content > .btn {
    display: block;
    margin: 0 auto;
}

.faq {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.footer {
    background: #050f19;
    color: rgba(255,255,255,0.8);
    padding: 2.5rem 1.5rem;
    text-align: center;
}

.footer__disclaimer {
    max-width: 900px;
    margin: 1rem auto 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chat-widget {
    position: fixed;
    bottom: 0.75rem;
    right: 1.5rem;
    z-index: 10;
    font-family: inherit;
}

.chat-widget__toggle {
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 20px 40px rgba(30, 194, 139, 0.4);
}

.chat-widget__panel {
    width: min(320px, 90vw);
    background: #fff;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(5, 15, 25, 0.35);
    border: 1px solid rgba(11, 28, 44, 0.1);
    overflow: hidden;
    position: absolute;
    bottom: 4rem;
    right: 0;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.chat-widget__panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-widget--open .chat-widget__panel {
    bottom: 0;
}

.chat-widget--open .chat-widget__toggle {
    display: none;
}

.chat-widget__header {
    background: var(--bg-dark);
    color: #fff;
    padding: 1rem 1.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-widget__title {
    margin: 0;
    font-weight: 600;
}

.chat-widget__subtitle {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-light);
}

.chat-widget__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.chat-widget__messages {
    max-height: 420px;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
}

.message p {
    margin: 0 0 0.5rem;
}

.message--bot {
    background: rgba(11, 28, 44, 0.07);
    color: var(--text-dark);
    align-self: flex-start;
}

.message--loading {
    padding: 0.85rem 1rem;
}

.message--user {
    background: var(--primary);
    color: #0b1c2c;
    align-self: flex-end;
}

.message__heading {
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.message__list {
    margin: 0.3rem 0 0.75rem 1.2rem;
    padding: 0;
    color: var(--text-dark);
}

.message__list li {
    margin-bottom: 0.2rem;
}

.message--prompt {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.88rem;
    padding: 0.2rem 0;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    align-items: flex-start;
}

.loading-indicator__spinner {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid rgba(11, 28, 44, 0.12);
    border-top-color: var(--primary);
    animation: loadingSpin 0.85s linear infinite;
}

.loading-indicator__text {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.loading-indicator__bar {
    width: 100%;
    height: 6px;
    background: rgba(11, 28, 44, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.loading-indicator__progress {
    width: 45%;
    height: 100%;
    background: var(--primary);
    border-radius: 999px;
    animation: loadingSlide 1.1s ease-in-out infinite;
}

@keyframes loadingSlide {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(20%);
    }
    100% {
        transform: translateX(130%);
    }
}

@keyframes loadingSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.chat-widget__options {
    display: grid;
    gap: 0.5rem;
}

.chat-widget__option {
    border: 1px solid rgba(11, 28, 44, 0.2);
    border-radius: 0.9rem;
    padding: 0.6rem 0.8rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
}

.chat-widget__form {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(11, 28, 44, 0.08);
    flex-wrap: wrap;
    align-items: center;
}

.chat-widget__form input {
    flex: 1;
    border-radius: 999px;
    border: 1px solid rgba(11, 28, 44, 0.2);
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}

.chat-widget__form button {
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    box-shadow: 0 10px 25px rgba(30, 194, 139, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex: 0 0 auto;
}

.chat-widget__form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(30, 194, 139, 0.4);
}

.chat-widget__form--locked {
    opacity: 0.65;
}

.chat-widget__form input:disabled {
    background: rgba(11, 28, 44, 0.03);
    color: var(--text-muted);
}

.chat-widget__form button:disabled {
    background: rgba(30, 194, 139, 0.45);
    color: rgba(11, 28, 44, 0.5);
    box-shadow: none;
    cursor: not-allowed;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

@media (max-width: 768px) {
    .hero {
        padding: 3.5rem 1.25rem;
        gap: 2rem;
    }

    main {
        border-radius: 2rem 2rem 0 0;
    }

    table {
        min-width: auto;
    }
}

@media (min-width: 992px) {
    .chat-widget__panel {
        width: 380px;
    }

    .chat-widget__messages {
        max-height: 520px;
    }
}

@media (max-width: 480px) {
    .chat-widget__form {
        flex-direction: column;
        align-items: stretch;
    }

    .chat-widget__form input,
    .chat-widget__form button {
        width: 100%;
    }

    .chat-widget__form button {
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.2rem 3.5rem;
    }

    .hero::after {
        inset: 1.2rem;
        border-radius: 1.5rem;
    }

    .hero__visual {
        order: initial;
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 1rem;
        margin-top: 1.5rem;
    }

    .hero__visual img {
        width: min(170px, 42vw);
    }

    .hero__card {
        position: static;
        right: auto;
        bottom: auto;
        width: 180px;
        text-align: left;
        top: auto;
        margin: 0;
    }

    .hero__bullets {
        grid-template-columns: 1fr;
    }
}
