:root {
    --rf-purple: #7b2082;
    --rf-purple-dark: #56145c;
    --rf-purple-soft: #f6edf7;
    --rf-green: #4bb562;
    --rf-green-dark: #318447;
    --rf-green-soft: #edf8ef;
    --rf-ink: #121316;
    --rf-muted: #647184;
    --rf-canvas: #f8f9fa;
    --rf-line: #e2e8f0;
    --rf-white: #ffffff;
}

body {
    background: var(--rf-canvas);
    color: var(--rf-ink);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.rf-home { overflow: hidden; }
.rf-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.rf-section { padding: 96px 0; }
.rf-section-heading { max-width: 700px; margin-bottom: 48px; }
.rf-eyebrow { color: var(--rf-purple); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.rf-section h2 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: 0; margin: 0 0 16px; }
.rf-section-heading p { color: var(--rf-muted); font-size: 1.08rem; line-height: 1.75; margin: 0; }

.rf-hero { padding: 80px 0 58px; background: var(--rf-white); border-bottom: 1px solid var(--rf-line); position: relative; }
.rf-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 7px; background: linear-gradient(90deg, var(--rf-purple) 0 50%, var(--rf-green) 50%); }
.rf-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, .88fr); gap: 72px; align-items: center; }
.rf-hero-copy h1 { font-size: clamp(3rem, 5.8vw, 5.6rem); line-height: .98; font-weight: 800; letter-spacing: 0; margin: 0 0 24px; max-width: 780px; }
.rf-hero-copy h1 em { color: var(--rf-purple); font-style: normal; }
.rf-hero-copy > p { max-width: 650px; color: var(--rf-muted); font-size: 1.17rem; line-height: 1.75; margin-bottom: 32px; }
.rf-proof { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--rf-line); }
.rf-proof-item strong { display: block; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rf-proof-item span { color: var(--rf-muted); font-size: .82rem; }

.rf-switcher { background: var(--rf-canvas); border: 1px solid var(--rf-line); padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 18px; }
.rf-switcher button { border: 0; background: transparent; color: var(--rf-muted); padding: 13px 12px; font-weight: 700; font-size: .86rem; cursor: pointer; }
.rf-switcher button.active { background: var(--rf-white); color: var(--rf-ink); box-shadow: 0 2px 12px rgba(18,19,22,.08); }
.rf-engine { background: var(--rf-white); border: 1px solid var(--rf-line); box-shadow: 0 24px 70px rgba(18,19,22,.12); padding: 28px; }
.rf-panel[hidden] { display: none; }
.rf-panel-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 28px; }
.rf-panel-top small { display: block; color: var(--rf-muted); font-weight: 600; margin-bottom: 5px; }
.rf-panel-top h3 { font-size: 1.35rem; font-weight: 800; margin: 0; }
.rf-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 10px; font-size: .72rem; font-weight: 800; }
.rf-badge-public { background: var(--rf-green-soft); color: var(--rf-green-dark); }
.rf-badge-private { background: var(--rf-purple-soft); color: var(--rf-purple); }
.rf-metrics { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--rf-line); margin-bottom: 24px; }
.rf-metric { padding: 16px; border-right: 1px solid var(--rf-line); }
.rf-metric:last-child { border: 0; }
.rf-metric span { display: block; color: var(--rf-muted); font-size: .72rem; margin-bottom: 5px; }
.rf-metric strong { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.rf-metric .rf-yield { color: var(--rf-green-dark); }
.rf-progress-meta { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.rf-progress { height: 8px; background: #eaf0eb; overflow: hidden; margin-bottom: 24px; }
.rf-progress span { display: block; height: 100%; background: var(--rf-green); }
.rf-btn { min-height: 48px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 0 22px; border: 1px solid transparent; text-decoration: none; font-weight: 800; font-size: .9rem; transition: transform .2s, background .2s; }
.rf-btn:hover { transform: translateY(-2px); }
.rf-btn-green { color: #0b2712; background: var(--rf-green); }
.rf-btn-green:hover { background: #5bc571; color: #0b2712; }
.rf-btn-purple { color: #fff; background: var(--rf-purple); }
.rf-btn-purple:hover { background: var(--rf-purple-dark); color: #fff; }
.rf-btn-dark { color: #fff; background: var(--rf-ink); }
.rf-btn-dark:hover { background: #2b2e34; color: #fff; }
.rf-btn-block { width: 100%; }
.rf-btn-outline { border-color: var(--rf-ink); color: var(--rf-ink); background: transparent; }
.rf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rf-field { margin-bottom: 16px; }
.rf-field label { display: block; font-size: .75rem; font-weight: 800; margin-bottom: 8px; }
.rf-field-wrap { display: flex; align-items: center; border: 1px solid var(--rf-line); background: var(--rf-white); }
.rf-field-wrap span { padding-left: 14px; font-weight: 800; color: var(--rf-muted); }
.rf-field input { width: 100%; border: 0; outline: 0; padding: 13px 14px; background: transparent; font: inherit; font-variant-numeric: tabular-nums; }

.rf-dual { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rf-line); background: var(--rf-white); }
.rf-value { padding: 52px; }
.rf-value + .rf-value { border-left: 1px solid var(--rf-line); }
.rf-value-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 30px; font-size: 1.2rem; }
.rf-value.private .rf-value-icon { background: var(--rf-purple-soft); color: var(--rf-purple); }
.rf-value.public .rf-value-icon { background: var(--rf-green-soft); color: var(--rf-green-dark); }
.rf-value h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 12px; }
.rf-value > p { color: var(--rf-muted); line-height: 1.7; }
.rf-list { list-style: none; padding: 14px 0 0; margin: 0; }
.rf-list li { display: flex; gap: 12px; padding: 11px 0; font-weight: 600; font-size: .92rem; }
.rf-list i { margin-top: 4px; }
.private .rf-list i { color: var(--rf-purple); }
.public .rf-list i { color: var(--rf-green-dark); }

.rf-market { background: var(--rf-ink); color: #fff; }
.rf-market .rf-eyebrow { color: #7bd78e; }
.rf-market .rf-section-heading p { color: #aeb6c2; }
.rf-market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rf-loan { background: #fff; color: var(--rf-ink); padding: 26px; border-top: 4px solid var(--rf-green); }
.rf-loan-head { display: flex; justify-content: space-between; gap: 12px; min-height: 64px; }
.rf-loan h3 { font-size: 1.05rem; line-height: 1.4; font-weight: 800; }
.rf-rating { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; background: var(--rf-green-soft); color: var(--rf-green-dark); font-weight: 800; }
.rf-loan .rf-metrics { margin: 20px 0; }
.rf-loan .rf-metric { padding: 12px; }
.rf-loan .rf-metric strong { font-size: 1rem; }
.rf-loan .rf-progress { margin-bottom: 20px; }

.rf-calculator { display: grid; grid-template-columns: 1fr .85fr; border: 1px solid var(--rf-line); background: #fff; }
.rf-calc-inputs { padding: 48px; }
.rf-calc-results { padding: 48px; background: var(--rf-purple); color: #fff; display: flex; flex-direction: column; justify-content: center; }
.rf-view-toggle { display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rf-line); padding: 4px; margin-bottom: 34px; }
.rf-view-toggle button { border: 0; background: transparent; padding: 10px 18px; font-weight: 700; }
.rf-view-toggle button.active { background: var(--rf-ink); color: #fff; }
.rf-range-head { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 10px; font-weight: 700; }
.rf-range-head output { font-variant-numeric: tabular-nums; font-weight: 800; }
.rf-range { margin-bottom: 32px; }
.rf-range input { width: 100%; accent-color: var(--rf-purple); }
.rf-result { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.rf-result span { display: block; opacity: .75; font-size: .8rem; margin-bottom: 6px; }
.rf-result strong { display: block; font-size: 2.3rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.rf-result-primary strong { color: #8de59f; }
.rf-calc-note { opacity: .72; font-size: .72rem; line-height: 1.6; margin: 20px 0 0; }

.rf-trust { background: var(--rf-purple-soft); }
.rf-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #dbcadd; background: #fff; }
.rf-trust-item { padding: 32px 26px; border-right: 1px solid var(--rf-line); }
.rf-trust-item:last-child { border: 0; }
.rf-trust-item i { color: var(--rf-purple); font-size: 1.35rem; margin-bottom: 22px; }
.rf-trust-item h3 { font-size: 1rem; font-weight: 800; margin-bottom: 10px; }
.rf-trust-item p { color: var(--rf-muted); font-size: .82rem; line-height: 1.65; margin: 0; }
.rf-final { background: var(--rf-green); padding: 72px 0; color: #102a16; }
.rf-final-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.rf-final h2 { max-width: 700px; margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05; font-weight: 800; }

@media (max-width: 991px) {
    .rf-hero { padding-top: 90px; }
    .rf-hero-grid, .rf-calculator { grid-template-columns: 1fr; }
    .rf-market-grid { grid-template-columns: 1fr 1fr; }
    .rf-trust-grid { grid-template-columns: 1fr 1fr; }
    .rf-trust-item:nth-child(2) { border-right: 0; }
    .rf-trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--rf-line); }
}

@media (max-width: 767px) {
    .rf-container { width: min(100% - 28px, 1180px); }
    .rf-section { padding: 68px 0; }
    .rf-hero-grid { grid-template-columns: 1fr; gap: 45px; }
    .rf-hero-copy h1 { font-size: clamp(2.75rem, 14vw, 4.4rem); }
    .rf-engine { padding: 18px; }
    .rf-metrics { grid-template-columns: 1fr; }
    .rf-metric { border-right: 0; border-bottom: 1px solid var(--rf-line); }
    .rf-form-row, .rf-dual, .rf-market-grid, .rf-trust-grid { grid-template-columns: 1fr; }
    .rf-value { padding: 32px 26px; }
    .rf-value + .rf-value { border-left: 0; border-top: 1px solid var(--rf-line); }
    .rf-trust-item { border-right: 0; border-bottom: 1px solid var(--rf-line); }
    .rf-trust-item:nth-child(2) { border-bottom: 1px solid var(--rf-line); }
    .rf-calc-inputs, .rf-calc-results { padding: 32px 24px; }
    .rf-final-inner { align-items: flex-start; flex-direction: column; }
}