/* =============================================
   UI.CSS — Components
   ============================================= */

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 10px 22px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
    text-decoration: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    box-shadow: 0 4px 20px rgba(79,70,229,0.45);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary-light);
    border-color: var(--color-primary-light);
}
.btn--outline:hover {
    background: rgba(79,70,229,0.12);
}

.btn--ghost {
    background: rgba(255,255,255,0.06);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn--ghost:hover {
    background: rgba(255,255,255,0.12);
}

.btn--sm  { font-size: 0.85rem; padding: 7px 16px; }
.btn--lg  { font-size: 1rem;    padding: 13px 30px; border-radius: var(--radius-md); }
.btn--block { width: 100%; }

/* ---- Navbar ---- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15,15,26,0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--color-border);
}
.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.navbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
}
.navbar__brand svg {
    width: 22px;
    height: 22px;
    color: var(--color-primary-light);
    filter: drop-shadow(0 0 6px var(--color-primary-light));
    stroke-width: 2.2;
}
.brand-name strong {
    color: var(--color-primary-light);
}
.navbar__links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.navbar__links a {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.2s;
}
.navbar__links a:hover {
    color: var(--color-white);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding-block: 110px 90px;
    overflow: hidden;
    text-align: center;
}
.hero__bg-blur {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(79,70,229,0.22) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero__inner {
    position: relative;
    z-index: 1;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(79,70,229,0.18);
    border: 1px solid rgba(79,70,229,0.4);
    color: var(--color-primary-light);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 5px 16px;
    border-radius: 99px;
    margin-bottom: 22px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero__badge svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}
.hero__title {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 20px;
}
.hero__sub {
    font-size: clamp(1rem, 2vw, 1.18rem);
    color: var(--color-text-muted);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 38px;
    line-height: 1.7;
}
.hero__sub strong {
    color: var(--color-white);
}
.hero__actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}
.hero__stat-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px 30px;
    min-width: 130px;
    text-align: center;
    box-shadow: var(--shadow-card);
}
.stat-card__value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary-light);
    letter-spacing: -0.03em;
}
.stat-card__label {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ---- Feature Grid ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}
.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
    border-color: rgba(79,70,229,0.5);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}
.feature-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79,70,229,0.14);
    border-radius: var(--radius-sm);
    color: var(--color-primary-light);
    margin-bottom: 18px;
}
.feature-card__icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}
.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
}
.feature-card p {
    font-size: 0.93rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---- Steps ---- */
.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 260px;
    flex: 1 1 220px;
}
.step__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 20px;
    box-shadow: 0 0 22px rgba(79,70,229,0.45);
    flex-shrink: 0;
}
.step__body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}
.step__body p {
    font-size: 0.91rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}
.step__connector {
    flex: 0 0 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    margin-top: 28px;
    opacity: 0.4;
    align-self: flex-start;
}

/* ---- Calculator ---- */
.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    max-width: 860px;
    margin-inline: auto;
}
.calc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.calc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.calc-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.calc-label svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
    color: var(--color-primary-light);
}
.calc-input {
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 12px 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -moz-appearance: textfield;
}
.calc-input::-webkit-inner-spin-button,
.calc-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.calc-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,0.2);
}
.calc-input::placeholder {
    color: var(--color-surface-2);
    font-weight: 400;
}
.calc-divider {
    height: 1px;
    background: var(--color-border);
    margin-block: 2px;
}
.calc-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
}
.calc-result__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.calc-result__row--total {
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    margin-top: 4px;
}
.calc-result__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.calc-result__label svg {
    width: 13px;
    height: 13px;
    stroke-width: 2;
    flex-shrink: 0;
}
.calc-result__value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-white);
    white-space: nowrap;
}
.calc-result__row--total .calc-result__value {
    font-size: 1.3rem;
    color: var(--color-primary-light);
}
.calc-result__row--warn {
    background: rgba(234,179,8,0.06);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-top: 4px;
}
.calc-result__row--warn .calc-result__label {
    color: #fbbf24;
}
.calc-result__row--warn svg {
    color: #fbbf24;
}
.calc-result__value--warn {
    color: #fbbf24 !important;
    font-size: 1.3rem;
}
.calc-cta {
    margin-top: 4px;
}
.calc-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: 8px;
}
.calc-info__item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}
.calc-info__item svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    color: var(--color-primary-light);
    flex-shrink: 0;
    margin-top: 2px;
}
.calc-info__item p {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.65;
}
.calc-info__item p strong {
    color: var(--color-text);
}

/* ---- Contact Card ---- */
.contact-card {
    max-width: 620px;
    margin-inline: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: var(--shadow-card);
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.contact-link {
    color: var(--color-primary-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}
.contact-link:hover {
    color: var(--color-white);
}
.contact-item__icon {
    flex-shrink: 0;
    background: rgba(79,70,229,0.15);
    border-radius: var(--radius-sm);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
}
.contact-item__icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}
.contact-item__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}
.contact-item__value {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--color-white);
}

/* ---- Footer ---- */
.footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding-block: 56px 36px;
}
.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
}
.footer__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
}
.footer__brand svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary-light);
    stroke-width: 2.2;
}
.footer__tagline {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.footer__disclaimer {
    max-width: 600px;
    background: rgba(234,179,8,0.06);
    border: 1px solid rgba(234,179,8,0.25);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.disclaimer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(234,179,8,0.15);
    color: #fbbf24;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.disclaimer-badge svg {
    width: 13px;
    height: 13px;
    stroke-width: 2.2;
}
.footer__disclaimer p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}
.footer__disclaimer p strong {
    color: var(--color-text);
}
.footer__copy {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

/* ---- Navbar Toggle Button (hidden on desktop) ---- */
.navbar__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
}
.navbar__toggle:hover {
    background: rgba(255,255,255,0.08);
    color: var(--color-white);
}
.navbar__toggle svg { width: 20px; height: 20px; stroke-width: 2; }

/* ---- Mobile Nav Drawer ---- */
.navbar__mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 20px 18px;
    border-top: 1px solid var(--color-border);
    background: rgba(15,15,26,0.98);
}
.navbar__mobile.open { display: flex; }
.navbar__mobile a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: background 0.15s, color 0.15s;
}
.navbar__mobile a:hover {
    background: rgba(255,255,255,0.07);
    color: var(--color-white);
}
.navbar__mobile .btn {
    justify-content: center;
    margin-top: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .navbar__links { display: none; }
    .navbar__toggle { display: flex; }
    .hero { padding-block: 72px 60px; }
    .step__connector { display: none; }
    .steps { gap: 28px; }
    .contact-card { padding: 28px 20px; }
    .calc-wrapper { grid-template-columns: 1fr; }
    .calc-card { padding: 24px 20px; }
    .stat-card { min-width: 110px; padding: 14px 18px; }
}
