/* Ontech Payments — Landing Page & Auth Pages
   White background, black text, visible hero images
   ================================================== */

:root {
    --black: #000000;
    --dark: #111111;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --radius: 10px;
}

* { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--dark);
    background: var(--white);
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════ NAV ═══════════════════════ */
.nav-top {
    position: fixed; top: 0; width: 100%; z-index: 100;
    padding: 14px 0; transition: all 0.3s;
}
.nav-top.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 10px 0;
}
.nav-top .brand {
    font-weight: 800; font-size: 18px; color: var(--white);
    text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.nav-top.scrolled .brand { color: var(--black); }
.brand-logo { width: 28px; height: 28px; object-fit: contain; }
.nav-top .brand span { opacity: 0.5; }
.nav-top .nav-link {
    color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500;
    padding: 8px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-top.scrolled .nav-link { color: var(--gray-600); }
.nav-top .nav-link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-top.scrolled .nav-link:hover { color: var(--black); background: var(--gray-100); }
.btn-nav {
    background: var(--white); color: var(--black); border: none;
    padding: 8px 20px; border-radius: 8px; font-weight: 600;
    font-size: 13px; transition: all 0.2s; text-decoration: none;
}
.nav-top.scrolled .btn-nav { background: var(--black); color: var(--white); }
.btn-nav:hover { opacity: 0.85; transform: translateY(-1px); color: inherit; }

/* ═══════════════════════ HERO ═══════════════════════ */
.hero {
    height: 88vh; display: flex; align-items: center;
    position: relative; overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.03);
    transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 100%);
}
.hero-content { position: relative; z-index: 5; }
.hero h1 {
    font-size: 3rem; font-weight: 800; color: var(--white);
    line-height: 1.1; letter-spacing: -0.02em;
}
.hero h1 .grad { color: rgba(255,255,255,0.6); }
.hero .lead { color: rgba(255,255,255,0.8); font-size: 1rem; line-height: 1.75; max-width: 460px; }

.hero-indicators {
    position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
    width: 28px; height: 3px; border-radius: 3px; border: none;
    background: rgba(255,255,255,0.3); cursor: pointer;
    transition: all 0.3s; padding: 0;
}
.hero-dot.active { background: var(--white); width: 44px; }
.hero-dot:hover { background: rgba(255,255,255,0.6); }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.12); color: var(--white);
    border: 1px solid rgba(255,255,255,0.2); padding: 6px 16px;
    border-radius: 50px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
}
.btn-hero {
    padding: 12px 26px; border-radius: var(--radius); font-weight: 600;
    font-size: 14px; transition: all 0.25s; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary { background: var(--white); color: var(--black); border: none; }
.btn-hero-primary:hover { background: var(--gray-200); color: var(--black); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-hero-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-hero-outline:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,0.08); }

/* ═══════════════════════ STATS ═══════════════════════ */
.stats-sect { position: relative; z-index: 10; margin-top: -40px; padding-bottom: 0; }
.stats-row {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 14px; padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}
.stat-box {
    text-align: center;
    padding: 28px 16px;
    position: relative;
}
.stat-box + .stat-box::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; height: 60%;
    width: 1px;
    background: var(--gray-200);
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--black); line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: 11px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px; }

@media (max-width: 767px) {
    .stat-box + .stat-box::before { display: none; }
    .stat-box { padding: 18px 12px; }
    .stat-num { font-size: 1.4rem; }
}

/* ═══════════════════════ SECTIONS ═══════════════════════ */
.sect { padding: 72px 0; }
.sect-gray { background: var(--gray-50); }

/* Sections with background images */
.sect-img { position: relative; overflow: hidden; }
.sect-img-slider { position: absolute; inset: 0; z-index: 0; }
.sect-img-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.4s ease;
}
.sect-img-slide.active { opacity: 1; }
.sect-img-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,0.6); }
.sect-img-content { position: relative; z-index: 5; }
/* Text inside image sections stays white */
.sect-img .sect-label { color: rgba(255,255,255,0.6); }
.sect-img .sect-title { color: var(--white); }
.sect-img .sect-sub { color: rgba(255,255,255,0.7); }

.sect-label {
    color: var(--gray-500); font-weight: 700; font-size: 11px;
    text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 10px;
}
.sect-title {
    font-size: 1.9rem; font-weight: 800; color: var(--black);
    margin-bottom: 10px; letter-spacing: -0.01em;
}
.sect-sub { color: var(--gray-600); font-size: 0.95rem; max-width: 500px; line-height: 1.7; }

/* ═══════════════════════ FEATURE CARDS ═══════════════════════ */
.fcard {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px; padding: 24px; height: 100%;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    perspective: 800px;
}
.fcard:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
}
.fcard-icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; margin-bottom: 14px;
    background: rgba(255,255,255,0.1); color: var(--white);
    transition: transform 0.3s ease;
}
.fcard:hover .fcard-icon { transform: scale(1.1); }
.fcard h5 { font-weight: 700; font-size: 14px; color: var(--white); margin-bottom: 6px; }
.fcard p { color: rgba(255,255,255,0.65); font-size: 12.5px; line-height: 1.65; margin: 0; }

/* ═══════════════════════ PROVIDER CARDS ═══════════════════════ */
.provider-card {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius); padding: 16px 18px;
    display: flex; align-items: center; gap: 14px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275),
                box-shadow 0.4s ease,
                border-color 0.3s ease,
                background 0.3s ease;
}
.provider-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent);
    transition: left 0.5s ease;
}
.provider-card:hover::after { left: 100%; }
.provider-card:hover {
    border-color: var(--black);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 32px rgba(0,0,0,0.1);
    background: #fafafa;
}
.provider-card-icon {
    font-size: 20px; color: var(--white); width: 38px; height: 38px;
    background: var(--black); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), background 0.3s ease;
}
.provider-card:hover .provider-card-icon {
    transform: scale(1.15) rotate(-5deg);
}
.provider-card-name { font-weight: 600; font-size: 13px; color: var(--black); transition: color 0.2s; }
.provider-card-desc { font-size: 11px; color: var(--gray-500); margin-top: 1px; }

/* ═══════════════════════ CODE BLOCK ═══════════════════════ */
.codeblk {
    background: var(--dark); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 22px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px; color: #e2e8f0; overflow-x: auto; line-height: 1.75;
    transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease;
}
.codeblk:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.codeblk .cm { color: #475569; }
.codeblk .s { color: #d1d5db; }
.codeblk .k { color: #93c5fd; }

/* ═══════════════════════ CHECK LIST ═══════════════════════ */
.ck { list-style: none; padding: 0; }
.ck li { padding: 6px 0; font-size: 13px; color: rgba(255,255,255,0.8); display: flex; align-items: center; gap: 10px; }
.ck li i { color: var(--white); font-size: 12px; }

/* ═══════════════════════ ENTERPRISE CARDS ═══════════════════════ */
.ecard {
    background: var(--white); border: 1px solid var(--gray-200);
    border-radius: 14px; padding: 28px 24px; text-align: center;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.45s cubic-bezier(0.175,0.885,0.32,1.275),
                box-shadow 0.4s ease,
                border-color 0.3s ease,
                background 0.3s ease;
}
.ecard::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.02) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ecard:hover::before { opacity: 1; }
.ecard:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: var(--black);
    box-shadow: 0 24px 48px rgba(0,0,0,0.12);
    background: #fafafa;
}
.ecard-icon {
    width: 52px; height: 52px; border-radius: 14px;
    background: var(--gray-50); color: var(--black);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 14px;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.175,0.885,0.32,1.275),
                background 0.3s ease, color 0.3s ease;
}
.ecard:hover .ecard-icon {
    transform: scale(1.15) translateY(-4px) rotate(-3deg);
    background: var(--black);
    color: var(--white);
}
.ecard h6 { color: var(--black); font-weight: 700; margin-bottom: 5px; font-size: 13px; position: relative; }
.ecard p { color: var(--gray-600); font-size: 12px; line-height: 1.6; margin: 0; position: relative; }

/* ═══════════════════════ CTA ═══════════════════════ */
.cta-sect { position: relative; padding: 72px 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.cta-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.cta-content { position: relative; z-index: 5; }
.cta-content .sect-title { color: var(--white); }
.cta-sub { color: rgba(255,255,255,0.75); font-size: 0.95rem; max-width: 440px; margin: 0 auto 24px; }

/* ═══════════════════════ FOOTER ═══════════════════════ */
.ft {
    background: var(--black); border-top: none;
    padding: 40px 0 24px; color: var(--gray-500); font-size: 13px;
}
.ft-brand { color: var(--white); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.ft-logo { width: 22px; height: 22px; object-fit: contain; margin-right: 6px; vertical-align: middle; }
.ft h6 { color: var(--gray-200); font-weight: 600; margin-bottom: 12px; font-size: 13px; }
.ft a { color: var(--gray-400); text-decoration: none; transition: color 0.2s; }
.ft a:hover { color: var(--white); }
.ft-divider { border-color: rgba(255,255,255,0.08); margin: 28px 0 14px; }

/* ═══════════════════════ AUTH PAGE ═══════════════════════ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 40px;
    background: var(--gray-50);
}
.auth-card-split {
    display: flex;
    width: 100%;
    max-width: 860px;
    min-height: 480px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    background: var(--white);
}

/* Left: hero image slider */
.auth-hero {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: none;
}
.auth-hero-slider { position: absolute; inset: 0; }
.auth-hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.4s ease;
}
.auth-hero-slide.active { opacity: 1; }
.auth-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 60%);
}
.auth-hero-content {
    position: relative; z-index: 5;
    padding: 28px 32px;
    display: flex; flex-direction: column; justify-content: flex-end;
    height: 100%;
}
.auth-hero-content h2 {
    color: var(--white); font-size: 1.5rem; font-weight: 800;
    line-height: 1.2; margin-bottom: 6px;
}
.auth-hero-content p { color: rgba(255,255,255,0.8); font-size: 12px; line-height: 1.6; max-width: 300px; }

/* Right: form */
.auth-form-side {
    width: 380px; flex-shrink: 0;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    padding: 36px 32px;
    background: var(--white);
}
.auth-form-inner { width: 100%; max-width: 300px; }
.auth-form-logo { width: 36px; height: 36px; object-fit: contain; margin-bottom: 16px; display: block; margin-left: auto; margin-right: auto; }
.auth-form-title { font-size: 18px; font-weight: 700; color: var(--black); margin-bottom: 2px; text-align: center; }
.auth-form-sub { font-size: 12px; color: var(--gray-500); margin-bottom: 20px; text-align: center; }
.auth-form-side .form-label { color: var(--gray-600); font-size: 11px; font-weight: 500; margin-bottom: 3px; }
.auth-form-side .form-control {
    background: var(--white); border: 1px solid var(--gray-200);
    color: var(--black); border-radius: 7px; padding: 8px 12px; font-size: 13px;
}
.auth-form-side .form-control::placeholder { color: var(--gray-400); }
.auth-form-side .form-control:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 0.12rem rgba(0,0,0,0.06);
    background: var(--white); color: var(--black);
}
.auth-form-side .input-group-text {
    background: var(--gray-50); border: 1px solid var(--gray-200);
    color: var(--gray-500); border-right: none; padding: 8px 10px; font-size: 13px;
}
.auth-form-side .input-group .form-control { border-left: none; }
.auth-form-side .form-text { color: var(--gray-400); font-size: 10px; }
.auth-form-side .mb-3 { margin-bottom: 12px !important; }
.auth-form-side .mb-4 { margin-bottom: 16px !important; }
.auth-form-side .btn-primary {
    background: var(--black); color: var(--white); border: none;
    padding: 10px; font-weight: 600; font-size: 13px; border-radius: 7px;
    width: 100%; transition: all 0.2s;
}
.auth-form-side .btn-primary:hover { background: #333; color: var(--white); transform: translateY(-1px); }
.auth-form-side .text-muted { color: var(--gray-500) !important; font-size: 11px; }
.auth-form-side .text-muted a { color: var(--black); font-weight: 500; }
.auth-form-side .alert { font-size: 12px; padding: 8px 12px; }

/* OTP digit inputs */
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }
.otp-inputs input {
    width: 44px; height: 52px; text-align: center; font-size: 22px; font-weight: 700;
    border: 1px solid var(--gray-200); border-radius: 8px; outline: none;
    transition: border-color 0.2s; color: var(--black); background: var(--white);
}
.otp-inputs input:focus {
    border-color: var(--black);
    box-shadow: 0 0 0 0.12rem rgba(0,0,0,0.06);
}

@media (min-width: 992px) { .auth-hero { display: block; } }
@media (max-width: 991px) {
    .auth-card-split { max-width: 400px; min-height: auto; }
    .auth-form-side { width: 100%; padding: 32px 24px; }
}
@media (max-width: 480px) {
    .auth-wrapper { padding: 70px 16px 24px; }
    .auth-card-split { border-radius: 10px; }
}

/* ═══════════════════════ ANIMATIONS ═══════════════════════ */
.fade-up {
    opacity: 0; transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════ RESPONSIVE ═══════════════════════ */
@media (max-width: 768px) {
    .hero { height: 80vh; }
    .hero h1 { font-size: 2rem; }
    .hero .lead { font-size: 0.9rem; }
    .stats-sect { margin-top: -24px; }
    .stats-row { padding: 18px; }
    .stat-num { font-size: 1.3rem; }
    .sect { padding: 48px 0; }
    .sect-title { font-size: 1.5rem; }
    .hero-indicators { bottom: 14px; }
}
