/* ════════════════════════════════════════════════════════════
   RahnMas — Public Pages (Landing, Login, Simulasi)
   ──────────────────────────────────────────────────────────── */

/* ── NAVBAR ────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(253, 251, 246, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-700);
    text-decoration: none;
}
.brand:hover { color: var(--gold-800); }
.brand-logo {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    object-fit: cover;
}
.brand-mark {
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    box-shadow: var(--shadow-gold);
}
.brand-tagline {
    display: block;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-dim);
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-link {
    padding: 0.5rem 0.875rem;
    color: var(--text-2);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--r-sm);
    transition: all 0.15s;
}
.nav-link:hover {
    color: var(--primary);
    background: var(--gold-50);
}
@media (max-width: 768px) {
    .nav-links .nav-link:not(.btn) { display: none; }
}

/* ── HERO ──────────────────────────────────────────────── */
.hero {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, var(--cream-50) 0%, var(--cream-100) 100%);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--gold-100), transparent 70%);
    opacity: 0.6;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -150px; left: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--emerald-100), transparent 70%);
    opacity: 0.4;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
@media (max-width: 968px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.875rem;
    background: var(--emerald-50);
    color: var(--emerald-800);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--r-full);
    margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--emerald-500);
    box-shadow: 0 0 0 4px var(--emerald-200);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}
.hero-title span.accent {
    color: var(--gold-600);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-2);
    margin-bottom: 2rem;
    max-width: 540px;
}
@media (max-width: 968px) {
    .hero-subtitle { margin-inline: auto; }
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
@media (max-width: 968px) {
    .hero-actions { justify-content: center; }
}

.hero-trust {
    margin-top: 2.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
@media (max-width: 968px) {
    .hero-trust { justify-content: center; }
}
.trust-item .label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.trust-item .value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold-700);
    line-height: 1.2;
}

/* ── HERO SIMULASI CARD ────────────────────────────────── */
.hero-calc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
}
.hero-calc::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--r-2xl);
    background: linear-gradient(135deg, var(--gold-300), transparent 40%);
    z-index: -1;
    opacity: 0.6;
}

.calc-header {
    margin-bottom: 1.25rem;
}
.calc-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
}
.calc-subtitle {
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.calc-result {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--gold-50), var(--cream-100));
    border: 1px solid var(--gold-200);
    border-radius: var(--r-lg);
}
.calc-result-label {
    font-size: 0.75rem;
    color: var(--gold-700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.calc-result-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-800);
    line-height: 1.1;
}
.calc-result-meta {
    margin-top: 0.875rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gold-200);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.8125rem;
}
.calc-result-meta .key { color: var(--text-dim); }
.calc-result-meta .val {
    color: var(--text);
    font-weight: 600;
    margin-top: 2px;
}

/* ── SECTION ───────────────────────────────────────────── */
.section {
    padding: 4rem 0;
}
.section-tight { padding: 2.5rem 0; }
.section-2 {
    background: var(--surface);
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}
.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
.section-desc {
    color: var(--text-2);
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* ── SERVICES GRID ─────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 968px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service {
    padding: 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-200);
}
.service::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.service:hover::before { transform: scaleX(1); }

.service-icon {
    width: 52px; height: 52px;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, var(--gold-100), var(--gold-200));
    color: var(--gold-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.service-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.service-desc {
    color: var(--text-2);
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* ── ALUR / STEPS ──────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
}
@media (max-width: 968px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
}

.step {
    text-align: center;
    padding: 1.5rem 1rem;
    position: relative;
}
.step-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-300);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.step-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.step-desc {
    color: var(--text-dim);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ── REQUIREMENTS LIST ─────────────────────────────────── */
.req-list {
    max-width: 560px;
    margin: 0 auto;
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--emerald-50) 0%, var(--surface) 100%);
    border: 1px solid var(--emerald-200);
    border-radius: var(--r-lg);
    list-style: none;
}
.req-list li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.625rem 0;
    color: var(--text-2);
    font-size: 0.9375rem;
}
.req-list li:not(:last-child) {
    border-bottom: 1px solid var(--emerald-100);
}
.req-check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--emerald-500);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* ── CTA SECTION ───────────────────────────────────────── */
.cta-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gold-700) 0%, var(--gold-800) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before, .cta-section::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    border-radius: 50%;
    opacity: 0.1;
}
.cta-section::before {
    top: -150px; left: -100px;
    background: var(--gold-200);
}
.cta-section::after {
    bottom: -150px; right: -100px;
    background: var(--emerald-300);
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: white;
    margin-bottom: 0.75rem;
}
.cta-desc {
    font-size: 1.0625rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-inline: auto;
}
.cta-section .btn-primary {
    background: white;
    color: var(--gold-800);
    border-color: white;
}
.cta-section .btn-primary:hover {
    background: var(--gold-50);
    color: var(--gold-900);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ── FOOTER ────────────────────────────────────────────── */
.footer {
    padding: 3rem 0 2rem;
    background: var(--slate-900);
    color: var(--slate-300);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--slate-800);
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand {
    color: var(--gold-300);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.footer-tagline {
    color: var(--slate-400);
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 360px;
}
.footer-heading {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a {
    color: var(--slate-300);
    font-size: 0.9375rem;
}
.footer a:hover { color: var(--gold-300); }
.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    color: var(--slate-500);
    font-size: 0.8125rem;
}

/* ── LOGIN PAGE ────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 20% 30%, var(--gold-100) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--emerald-100) 0%, transparent 50%),
        var(--cream-50);
}
.login-card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border-radius: var(--r-2xl);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
}
.login-brand {
    text-align: center;
    margin-bottom: 2rem;
}
.login-brand .brand-mark {
    width: 64px; height: 64px;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
}
.login-brand h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--gold-700);
    margin-bottom: 0.25rem;
}
.login-brand p {
    color: var(--text-dim);
    font-size: 0.875rem;
}
.login-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-dim);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}
.login-back:hover { color: var(--primary); }
