/* CSS Reset & Variables */
:root {
    --primary: #1258E4;
    --primary-dark: #0f49be;
    --primary-light: rgba(18, 88, 228, 0.1);
    --secondary: #F2C45F;
    --secondary-dark: #DFAE3D;
    --secondary-light: rgba(242, 196, 95, 0.12);
    
    --bg-main: #F4F7FB; /* Slight blue tint to avoid pure white/gray */
    --bg-tint: #EBF1FA;
    --bg-card: #FFFFFF;
    --header-bg: #FFFFFF;
    --footer-bg: #0B1528;
    
    --text-primary: #162033;
    --text-secondary: #667085;
    --text-inverse: #FFFFFF;
    
    --border-color: rgba(18, 88, 228, 0.08);
    --border-strong: rgba(18, 88, 228, 0.2);
    
    --shadow-soft: 0 8px 30px rgba(18, 88, 228, 0.08);
    --shadow-hover: 0 12px 40px rgba(18, 88, 228, 0.12);
    
    --gradient-hero: linear-gradient(135deg, #1258E4 0%, #2D6BE8 100%);
    
    --radius-btn: 24px;
    --radius-card: 20px;
    --radius-input: 12px;
    
    --font-heading: 'Ubuntu', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-main: #0B1120;
        --bg-tint: #0F172A;
        --bg-card: #1E293B;
        --header-bg: #0F172A;
        --footer-bg: #05080F;
        
        --text-primary: #F8FAFC;
        --text-secondary: #94A3B8;
        
        --border-color: rgba(255, 255, 255, 0.1);
        --border-strong: rgba(255, 255, 255, 0.2);
        
        --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.max-w-800 {
    max-width: 800px;
}

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-secondary { color: var(--text-secondary); }
.mt-4 { margin-top: 1.5rem; }
.mt-6 { margin-top: 2.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-6 { margin-bottom: 2.5rem; }
.w-50 { width: 50%; }
.w-70 { width: 70%; }

.bg-tint { background-color: var(--bg-tint); }
.bg-gold-light { background-color: var(--secondary-light); border: 1px solid var(--secondary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-sm {
    height: 40px;
    padding: 0 24px;
    font-size: 0.875rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-inverse);
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--text-inverse);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: scale(0.97);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    color: var(--text-inverse);
}

.btn-secondary-solid {
    background-color: var(--secondary);
    color: #162033; /* Dark text for contrast on gold */
}
.btn-secondary-solid:hover {
    background-color: var(--secondary-dark);
    color: #162033;
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: transparent;
    color: var(--text-inverse);
    border: 2px solid var(--text-inverse);
}
.btn-outline-light:hover {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-inverse);
}

/* Layout Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.align-center { align-items: center; }

@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* Header & Navigation */
#main-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    border-radius: 8px;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--text-primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-link {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9375rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 0; }

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background-color: var(--header-bg);
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 16px 0;
        font-size: 1.125rem;
    }

    .nav-cta-wrapper {
        margin-top: 32px;
        width: 100%;
    }

    .nav-cta {
        width: 100%;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }
}

/* Page Routing */
.page {
    display: none;
    min-height: calc(100vh - 72px - 300px);
    animation: fadeIn 0.4s ease forwards;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.section-padding {
    padding: 80px 0;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-hero);
    padding: 80px 0 100px;
    color: var(--text-inverse);
    overflow: hidden;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-title {
    color: var(--text-inverse);
    font-size: 3.5rem;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: 32px;
    animation: float 6s ease-in-out infinite;
}

.logo-wrapper img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.gold-accent-ring {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 4px solid var(--secondary);
    border-radius: 50%;
    opacity: 0.6;
    z-index: -1;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle {
        margin: 0 auto 32px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
    }
}

/* Cards */
.content-card, .value-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* CSS Icons / Abstract UI */
.css-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 24px;
    position: relative;
    background: var(--primary-light);
}

.icon-simple::after {
    content: '';
    position: absolute;
    top: 14px; left: 14px; right: 14px; bottom: 14px;
    background: var(--primary);
    border-radius: 50%;
}

.icon-clear::after {
    content: '';
    position: absolute;
    top: 16px; left: 12px; right: 12px;
    height: 16px;
    border: 2px solid var(--primary);
    border-radius: 4px;
}

.icon-secure::after {
    content: '';
    position: absolute;
    top: 12px; left: 16px; right: 16px; bottom: 12px;
    border: 2px solid var(--primary);
    border-radius: 8px 8px 16px 16px;
}

.icon-convenient::after {
    content: '';
    position: absolute;
    top: 12px; left: 16px; right: 16px; bottom: 12px;
    background: var(--primary);
    border-radius: 4px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.css-icon-small {
    width: 32px;
    height: 32px;
    background: var(--primary-light);
    border-radius: 8px;
    position: relative;
}
.icon-email::after {
    content: '';
    position: absolute;
    top: 10px; left: 8px; right: 8px; height: 12px;
    border: 2px solid var(--primary);
    border-radius: 2px;
}

/* CSS Mockup */
.css-dashboard-mockup {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-color);
    overflow: hidden;
    padding: 24px;
}
.mockup-header {
    height: 40px;
    background: var(--primary-light);
    border-radius: 12px;
    margin-bottom: 24px;
}
.mockup-line {
    height: 16px;
    background: var(--bg-tint);
    border-radius: 8px;
    margin-bottom: 12px;
}
.mockup-box {
    height: 80px;
    background: var(--bg-tint);
    border-radius: 16px;
    margin-bottom: 16px;
}

/* Lists */
.check-list {
    list-style: none;
    margin-top: 24px;
}
.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 12px;
    border: solid var(--primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-list {
    list-style: none;
}
.custom-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}
.custom-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA Banner */
.cta-banner {
    background: var(--gradient-hero);
    border-radius: 24px;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-inverse);
}
.cta-banner h2 {
    color: var(--text-inverse);
    margin-bottom: 8px;
}
.cta-banner .btn-primary {
    background-color: var(--secondary);
    color: #162033;
}
.cta-banner .btn-primary:hover {
    background-color: var(--secondary-dark);
}
@media (max-width: 768px) {
    .cta-banner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 32px 24px;
    }
}

/* Inner Pages Common */
.page-header {
    background-color: var(--bg-card);
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}
.page-header h1 {
    color: var(--primary);
    margin-bottom: 16px;
}
.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 2px;
    background: var(--primary-light);
}
.timeline-item {
    position: relative;
    padding-left: 72px;
    margin-bottom: 48px;
}
.timeline-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    box-shadow: 0 0 0 8px var(--bg-main);
}

/* Data Table */
.data-table-wrapper {
    overflow-x: auto;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.data-table th, .data-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
}
.data-table th {
    width: 40%;
    font-weight: 600;
    background-color: var(--bg-tint);
    color: var(--text-primary);
}
.data-table tr:last-child th, .data-table tr:last-child td {
    border-bottom: none;
}

/* Alert / Info Panels */
.alert-box {
    background-color: rgba(18, 88, 228, 0.05);
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}
.info-panel {
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-tint);
}

/* FAQ Accordion */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}
.faq-question {
    padding: 24px;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    position: relative;
    color: var(--text-primary);
    transition: background 0.3s ease;
}
.faq-question:hover {
    background: var(--bg-tint);
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
    content: '−';
    transform: translateY(-50%);
}
.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-secondary);
}

/* Contact */
.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

/* Footer */
#main-footer {
    background-color: var(--footer-bg);
    color: #94A3B8;
    padding: 80px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
}

.footer-brand {
    padding-right: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}
.footer-logo img {
    border-radius: 8px;
}
.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #FFFFFF;
}

.footer-company {
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.footer-links h4 {
    color: #FFFFFF;
    font-size: 1.125rem;
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .timeline::before {
        left: 16px;
    }
    .timeline-item {
        padding-left: 56px;
    }
    .timeline-number {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

/* Legal Content Formatting (Privacy & Terms) */
#legal-privacy, #legal-terms {
    max-width: 780px;
    margin: 0 auto;
    color: var(--text-primary);
}
#legal-privacy h2, #legal-terms h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
#legal-privacy h3, #legal-terms h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
#legal-privacy p, #legal-terms p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
#legal-privacy ul, #legal-terms ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}
#legal-privacy li, #legal-terms li {
    margin-bottom: 0.5rem;
}
