/*
Theme Name: CardSelect Fintech
Description: Modern Fintech Portal Design
Version: 5.0
*/

:root {
    /* Fintech Palette: Violet/Blue Gradients, Clean White */
    --c-bg: #f8faff;
    --c-surface: #ffffff;
    --c-text: #1e293b;
    --c-text-light: #64748b;
    
    --c-primary: #6366f1; /* Indigo */
    --c-primary-dark: #4f46e5;
    --c-secondary: #8b5cf6; /* Violet */
    --c-accent: #0ea5e9; /* Sky Blue */
    
    --grad-main: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --grad-surface: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    
    --f-head: 'Plus Jakarta Sans', sans-serif;
    --f-body: 'Inter', sans-serif;
    
    --shadow-card: 0 10px 40px -10px rgba(99, 102, 241, 0.1);
    --shadow-hover: 0 20px 50px -10px rgba(99, 102, 241, 0.2);
    --radius-lg: 24px;
    --radius-md: 16px;
    
    --container-w: 1200px;
    --pad-x: 20px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; color: #0f172a; margin-bottom: 1rem; }

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

/* --- HEADER --- */
.fin-header {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.05);
}
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
.fin-logo {
    font-family: var(--f-head);
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}
.fin-logo .highlight {
    background: var(--grad-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fin-nav { display: flex; }
.fin-menu { display: flex; gap: 2rem; }
.fin-menu a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-text);
}
.fin-menu a:hover { color: var(--c-primary); }

.contact-pill {
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.contact-pill:hover { background: #e2e8f0; }

.mobile-burger { display: none; background: none; border: none; cursor: pointer; }
.mobile-burger span { display: block; width: 24px; height: 2px; background: #0f172a; margin: 5px 0; border-radius: 2px; }

.site-main { margin-top: 80px; }

/* --- HERO --- */
.fintech-hero {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}
.hero-bg-glow {
    position: absolute;
    top: -50%; right: -20%;
    width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--c-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}
.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.gradient-text {
    background: var(--grad-main);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--c-text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}
.hero-btns { display: flex; gap: 1rem; margin-bottom: 3rem; }
.btn-primary-fin {
    background: var(--c-primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
}
.btn-primary-fin:hover { background: var(--c-primary-dark); transform: translateY(-2px); }
.btn-secondary-fin {
    background: #fff;
    color: var(--c-text);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}
.btn-secondary-fin:hover { border-color: var(--c-primary); color: var(--c-primary); }

.trust-pills { display: flex; gap: 1.5rem; }
.trust-item { font-size: 0.9rem; font-weight: 600; color: var(--c-text-light); }

/* 3D Cards Visual */
.hero-visual-3d {
    position: relative;
    height: 400px;
    perspective: 1000px;
}
.card-3d {
    width: 320px; height: 200px;
    border-radius: 20px;
    position: absolute;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    padding: 2rem;
    color: #fff;
    font-family: var(--f-head);
}
.card-front {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    top: 50%; left: 50%;
    transform: translate(-60%, -60%) rotateY(-15deg) rotateX(10deg);
    z-index: 2;
}
.card-back {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    top: 50%; left: 50%;
    transform: translate(-40%, -40%) rotateY(-15deg) rotateX(10deg) scale(0.9);
    z-index: 1;
    opacity: 0.8;
}
.card-chip { width: 40px; height: 30px; background: linear-gradient(45deg, #ffd700, #fcd34d); border-radius: 6px; margin-bottom: 2rem; }
.card-number { font-family: 'Courier New', monospace; font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 1.5rem; }
.card-name { font-size: 0.9rem; opacity: 0.8; text-transform: uppercase; }
.card-logo { position: absolute; bottom: 2rem; right: 2rem; font-weight: 800; font-style: italic; }

/* --- FEATURES GRID --- */
.features-section { padding: 6rem 0; background: #fff; }
.section-head-center { text-align: center; margin-bottom: 4rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-head-center h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.sub-head-text { font-size: 1.1rem; color: var(--c-text-light); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.feature-box {
    background: var(--c-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: 0.3s;
    border: 1px solid transparent;
}
.feature-box:hover {
    background: #fff;
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}
.f-icon-wrap {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.ic-1 { background: #e0e7ff; color: #6366f1; }
.ic-2 { background: #dcfce7; color: #10b981; }
.ic-3 { background: #fef9c3; color: #eab308; }
.ic-4 { background: #ffe4e6; color: #f43f5e; }

.feature-box h3 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.feature-box p { font-size: 0.95rem; color: var(--c-text-light); margin-bottom: 1.5rem; line-height: 1.5; }
.f-link { color: var(--c-primary); font-weight: 600; font-size: 0.9rem; }
.f-link:hover { text-decoration: underline; }

/* --- APPROACH --- */
.approach-section { padding: 6rem 0; }
.approach-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 5rem; align-items: center; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-desc { font-size: 1.1rem; color: var(--c-text-light); margin-bottom: 3rem; }

.checklist-styled { display: grid; gap: 2rem; }
.check-item { padding-left: 1.5rem; border-left: 3px solid var(--c-primary); }
.check-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--c-text); }
.check-item p { font-size: 0.95rem; color: var(--c-text-light); }

.phone-mockup {
    background: #0f172a;
    border-radius: 40px;
    padding: 15px;
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.3);
    max-width: 300px;
    margin: 0 auto;
}
.screen-content {
    background: #fff;
    border-radius: 30px;
    height: 500px;
    overflow: hidden;
    padding: 2rem;
}
.app-header { font-weight: 800; margin-bottom: 2rem; font-size: 1.2rem; color: var(--c-primary); }
.app-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; margin-bottom: 2rem; padding-bottom: 10px; border-bottom: 1px solid #eee; }
.bar { width: 100%; background: var(--c-bg); border-radius: 4px 4px 0 0; }
.b1 { height: 60%; } .b2 { height: 80%; background: var(--c-primary); } .b3 { height: 50%; }
.app-row { background: #f8faff; padding: 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: 0.9rem; font-weight: 600; }

/* --- AUDIENCE --- */
.audience-section { padding: 4rem 0; }
.aud-box {
    background: var(--grad-main);
    border-radius: var(--radius-lg);
    padding: 4rem;
    text-align: center;
    color: #fff;
}
.aud-title { color: #fff; margin-bottom: 2rem; font-size: 2rem; }
.aud-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.tag {
    background: rgba(255,255,255,0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* --- FEED --- */
.blog-feed { padding: 6rem 0; background: #fff; }
.feed-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.btn-all-posts { color: var(--c-primary); font-weight: 700; border: 2px solid var(--c-bg); padding: 0.6rem 1.5rem; border-radius: 50px; }
.btn-all-posts:hover { border-color: var(--c-primary); }

.cards-feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.feed-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: 0.3s;
}
.feed-card:hover { border-color: var(--c-primary); transform: translateY(-5px); box-shadow: var(--shadow-card); }
.feed-thumb { height: 200px; background: #f1f5f9; }
.feed-thumb img { width: 100%; height: 100%; object-fit: cover; }
.feed-body { padding: 2rem; }
.feed-date { font-size: 0.8rem; color: var(--c-text-light); display: block; margin-bottom: 0.8rem; }
.feed-card h3 { font-size: 1.1rem; margin-bottom: 1rem; line-height: 1.4; }
.feed-link { color: var(--c-primary); font-weight: 700; font-size: 0.9rem; }

/* --- FOOTER --- */
.fin-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 5rem 0 2rem;
}
.footer-grid-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.f-logo { font-family: var(--f-head); font-weight: 800; font-size: 1.4rem; color: #0f172a; margin-bottom: 1rem; display: block; }
.f-logo .highlight { color: var(--c-primary); }
.f-desc { font-size: 0.9rem; color: var(--c-text-light); max-width: 300px; line-height: 1.6; }

.fin-footer h4 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-menu-list li { margin-bottom: 0.8rem; }
.footer-menu-list a { color: var(--c-text-light); font-size: 0.95rem; }
.footer-menu-list a:hover { color: var(--c-primary); }

.contact-line { display: flex; gap: 0.8rem; margin-bottom: 1rem; font-size: 0.95rem; color: var(--c-text-light); align-items: center; }
.contact-line .ic { font-size: 1.2rem; }

.footer-bottom { border-top: 1px solid #f1f5f9; padding-top: 2rem; text-align: center; color: #94a3b8; font-size: 0.85rem; }

/* --- INNER PAGES --- */
.page-header-simple, .archive-header-simple, .single-article-header {
    background: var(--grad-surface);
    padding: 6rem 0 4rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 4rem;
}
.page-title-simple, .archive-main-title, .article-main-title { font-size: 2.8rem; margin-bottom: 1rem; }
.single-content-wrapper, .page-content-wrapper { max-width: 800px; margin: 0 auto; font-size: 1.1rem; line-height: 1.8; }
.single-content-wrapper p, .page-content-wrapper p { margin-bottom: 1.5rem; color: var(--c-text); }
.posts-grid-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* --- PAGINATION --- */
.pagination-wrapper { margin-top: 4rem; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 0.5rem; }
.pagination .page-numbers {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-weight: 600;
}
.pagination .page-numbers.current, .pagination .page-numbers:hover {
    background: var(--c-primary); color: #fff; border-color: var(--c-primary);
}

/* --- MOBILE --- */
@media (max-width: 1024px) {
    .hero-wrapper, .approach-container, .footer-grid-top { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .features-grid, .cards-feed-grid, .posts-grid-layout { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-visual-3d { display: none; }
    .fin-nav {
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; padding: 2rem; flex-direction: column;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    }
    .fin-nav.active { display: flex; }
    .fin-menu { flex-direction: column; align-items: center; }
    .mobile-burger { display: block; }
    .checklist-styled { text-align: left; }
    .f-brand { margin: 0 auto; }
}
