/* ============================================
   CiroPAY — Modern Digital Banking Theme
   A complete, from-scratch design system
   ============================================ */

/* === CSS Variables (Design Tokens) === */
:root {
    --primary: #1a56db;
    --primary-dark: #0f3b9e;
    --primary-light: #e8eeff;
    --secondary: #7c3aed;
    --secondary-light: #f0e8ff;
    --accent: #06b6d4;
    --accent-dark: #0891b2;

    --bg-primary: #f8faff;
    --bg-secondary: #ffffff;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 40px rgba(26,86,219,0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === Reset & Base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.85; }
ul { list-style: none; }

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

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 16px rgba(26,86,219,0.25);
}
.btn-primary:hover { box-shadow: 0 6px 24px rgba(26,86,219,0.35); transform: translateY(-1px); opacity: 1; }
.btn-white {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.btn-white:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.1); transform: translateY(-1px); opacity: 1; }
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-primary); border-color: var(--text-muted); opacity: 1; }

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: box-shadow 0.3s ease;
}

.main-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}
.logo img { height: 36px; width: auto; }
.logo span { 
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo:hover { opacity: 1; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-menu a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: color 0.2s;
}
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1px;
    transition: width 0.3s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
}

.nav-mobile {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    padding: 24px;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 32px rgba(0,0,0,0.08);
}
.nav-mobile.open { right: 0; }
.nav-mobile-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 24px;
}
.nav-mobile ul { display: flex; flex-direction: column; gap: 16px; }
.nav-mobile a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    display: block;
    padding: 8px 0;
}
.mobile-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

/* ===== Hero Section ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 24px 60px;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(26,86,219,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-text h4 {
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-text h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-text p {
    color: #94a3b8;
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* === Card Preview === */
.hero-card-preview {
    background: linear-gradient(135deg, #1a56db, #7c3aed);
    border-radius: 20px;
    padding: 32px;
    color: #fff;
    box-shadow: 0 20px 60px rgba(26,86,219,0.3), 0 0 0 1px rgba(255,255,255,0.05);
    max-width: 380px;
    position: relative;
    overflow: hidden;
}
.hero-card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.card-chip {
    width: 40px;
    height: 28px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.card-chip::after {
    content: '';
    position: absolute;
    top: 8px; left: 10px;
    width: 20px; height: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 2px;
}
.card-balance small {
    display: block;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}
.card-balance h2 {
    font-size: 2rem;
    font-weight: 700;
}

/* === Hero Stats === */
.hero-stats {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
}
.hero-stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.hero-stat-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.hero-stat-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Section Titles ===== */
.section-title {
    text-align: center;
    margin-bottom: 48px;
}
.section-title h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}
.section-title p {
    color: var(--text-muted);
    font-size: 1.0625rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ===== Features Section ===== */
.features-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 20px;
}
.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== About Section (combined choose/carddesign/about) ===== */
.about-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.about-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}
.about-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.about-features i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 2px;
}

/* ===== How It Works Section ===== */
.works-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
}
.works-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.work-step {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}
.work-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.work-step h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.work-step p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ===== Testimonials ===== */
.testimonials-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}
.testimonial-card > p {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author h6 {
    font-size: 0.9375rem;
    font-weight: 600;
}
.testimonial-author small {
    color: var(--text-muted);
    font-size: 0.8125rem;
}

/* ===== Counter Section ===== */
.counter-section {
    background: linear-gradient(135deg, var(--bg-dark), #1e293b);
    padding: 80px 24px;
    color: #fff;
}
.counter-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}
.counter-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}
.counter-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
}

/* ===== Partner / Trusted By ===== */
.partners-section {
    padding: 60px 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 32px;
}
.partner-logos img {
    height: 40px;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all 0.3s;
}
.partner-logos img:hover {
    opacity: 0.8;
    filter: grayscale(0);
}

/* ===== Team Section ===== */
.team-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-secondary);
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}
.team-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}
.team-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.team-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    object-fit: cover;
    margin-bottom: 16px;
}
.team-card h5 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.team-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ===== Blog Section ===== */
.blog-section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
}
.blog-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.blog-card-body {
    padding: 20px;
}
.blog-card-body .tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}
.blog-card-body h5 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}
.blog-card-body p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 100px 24px;
    text-align: center;
    color: #fff;
}
.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
    padding: 120px 24px 60px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    text-align: center;
}

/* ===== Footer ===== */
footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
}
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.footer-col p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.footer-col ul li {
    margin-bottom: 10px;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9375rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; opacity: 1; }
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-logo img { height: 32px; }
.footer-logo span {
    font-weight: 700;
    font-size: 1.125rem;
    color: #fff;
}
.footer-social {
    display: flex;
    gap: 12px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
}
.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    opacity: 1;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Cookie Bar ===== */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: rgba(255,255,255,0.8);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    z-index: 100;
    font-size: 0.875rem;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-text p { margin: 0 auto 36px; }
    .hero-buttons { justify-content: center; }
    .hero-card-preview { margin: 0 auto; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .nav-actions .btn-ghost { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .works-steps { grid-template-columns: 1fr; }
    .testimonial-slider { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .counter-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .section-title h2 { font-size: 1.625rem; }
    .cta-section h2 { font-size: 1.75rem; }
    .hero-stats { margin-top: 20px; }
}

.hero-stats {
  max-width: 1200px;
  margin: -40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-stats {
    margin-top: 20px;
  }
}
