/* CSS Variables & Reset */
:root {
    --bg-color: #000107;
    --header-bg: #080914;
    --footer-bg: #05060f;
    --primary-color: #6366F1;
    --secondary-color: #A855F7;
    --primary-grad: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    --brand-text-grad: linear-gradient(167deg, #6366F1 0%, #A855F7 100%);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.82);
    --text-muted: rgba(255, 255, 255, 0.40);
    --card-bg: rgba(255, 255, 255, 0.06);
    --card-border: rgba(255, 255, 255, 0.10);
    --card-radius: 28px;
    --btn-radius: 16px;
    --shadow-primary: 0px 10px 30px rgba(99, 102, 241, 0.40);
    --shadow-card: 0px 28px 64px -12px rgba(99, 102, 241, 0.25);
    --font-family: 'Plus Jakarta Sans', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto; /* Handled by JS for hash router */
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.text-gradient {
    background: var(--brand-text-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 600px;
}

.center-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    border: none;
}

.btn-primary {
    background: var(--primary-grad);
    color: #FFFFFF;
    box-shadow: var(--shadow-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.96);
    color: #7562F3;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: scale(1.02);
}

.btn-primary:active, .btn-secondary:active {
    transform: scale(0.97);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 11px; }
.hamburger-line:nth-child(3) { bottom: 0; }

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* Page Container */
.page {
    padding-top: 80px; /* Offset for header */
    min-height: 100vh;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ambient Glows */
.ambient-glow-left, .ambient-glow-right {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
    animation: breathe 5s infinite alternate;
}

.ambient-glow-left {
    top: 0;
    left: -200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

.ambient-glow-right {
    top: 400px;
    right: -200px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(249, 115, 22, 0.05) 50%, transparent 70%);
}

@keyframes breathe {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Phone Frame Mockup */
.phone-frame, .phone-frame-small, .phone-frame-glow {
    background: #0a0b16;
    border-radius: 36px;
    border: 8px solid #1f2038;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0,0,0,0.6);
    display: inline-block;
}

.phone-frame img, .phone-frame-small img, .phone-frame-glow img {
    border-radius: 28px;
}

.phone-frame-glow {
    position: relative;
}
.phone-frame-glow::before {
    content: '';
    position: absolute;
    top: -10px; left: -10px; right: -10px; bottom: -10px;
    background: var(--primary-grad);
    z-index: -1;
    border-radius: 46px;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}
.phone-frame-glow:hover::before {
    opacity: 0.6;
}
.phone-frame-glow:hover {
    transform: translateY(-4px);
}

/* Hero Section */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 32px;
    font-size: 14px;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(48px, 6vw, 72px);
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

/* Brand Experience */
.splash-showcase {
    margin-top: 40px;
    position: relative;
}
.splash-showcase::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    z-index: -1;
}

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 64px;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 40px 32px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    background: rgba(255, 255, 255, 0.08);
}

.step-number {
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 24px;
    right: 32px;
}

.step-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.step-title {
    font-size: 24px;
    margin-bottom: 16px;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 15px;
}

/* App Showcase */
.showcase-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}
.showcase-center {
    transform: translateY(-20px);
}

/* Loan Product */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.data-panels {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.data-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.data-label {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

.data-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.disclaimer-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-card-primary {
    background: var(--primary-grad);
    padding: 40px;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    box-shadow: var(--shadow-card);
}

/* User Center */
.user-center-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.user-center-grid .user-visual {
    order: 1;
    display: flex;
    justify-content: center;
}
.user-center-grid .user-info {
    order: 2;
}

.feature-list {
    margin-top: 24px;
}

.feature-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 16px;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary-color);
}

/* Security */
.security-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.security-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.icon-wrapper svg {
    width: 32px;
    height: 32px;
}

.security-card h3 {
    margin-bottom: 16px;
    font-size: 20px;
}

.security-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 64px;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 64px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.3);
    border-radius: 32px;
    padding: 40px;
}

/* CTA Section */
.cta-card {
    background: var(--primary-grad);
    border-radius: 40px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.cta-title {
    font-size: clamp(32px, 4vw, 48px);
    margin-bottom: 24px;
}

.cta-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
    margin-bottom: 64px;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.company-name {
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 24px;
}

.footer-links ul, .footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a, .footer-contact li {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 13px;
}

/* Legal Pages */
.legal-page .container {
    max-width: 780px;
    padding: 60px 24px;
}

#legal-privacy, #legal-terms {
    color: var(--text-secondary);
    font-size: 16px;
}

#legal-privacy h2, #legal-terms h2 {
    color: var(--text-primary);
    font-size: 32px;
    margin-top: 48px;
    margin-bottom: 24px;
}

#legal-privacy h3, #legal-terms h3 {
    color: var(--text-primary);
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
}

#legal-privacy p, #legal-terms p {
    margin-bottom: 16px;
}

#legal-privacy ul, #legal-terms ul {
    list-style-type: disc;
    padding-left: 24px;
    margin-bottom: 24px;
}

#legal-privacy li, #legal-terms li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-grid, .product-grid, .user-center-grid, .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .user-center-grid .user-visual {
        order: 2;
    }
    .user-center-grid .user-info {
        order: 1;
    }

    .showcase-flex {
        flex-direction: column;
    }
    .showcase-center {
        transform: none;
    }

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

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--header-bg);
        flex-direction: column;
        justify-content: center;
        padding: 40px 24px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 0;
        visibility: hidden;
    }

    .main-nav.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-bottom: 40px;
    }

    .nav-link {
        font-size: 24px;
    }

    .steps-grid, .security-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid {
        padding: 32px 24px;
    }

    .cta-card {
        padding: 48px 24px;
    }
}
