/* ----------------------------------------------------
   Payment Gateway - Dark Premium Redesign Styles
   ---------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Lexend:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --bg-darkest: #01080F;
    --bg-primary: #020F1C;
    --bg-secondary: #04172B;
    --bg-card: rgba(4, 23, 43, 0.55);
    
    --text-main: #FFFFFF;
    --text-muted: #8FA4B5;
    
    --accent-gold: #FFE66D;
    --accent-gold-hover: #FAD12C;
    --accent-cyan: #00F5FF;
    --accent-cyan-rgb: 0, 245, 255;
    --accent-success: #00E676;
    --accent-success-rgb: 0, 230, 118;
    --accent-purple: #B55FE6;
    
    /* System Tokens */
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --glow-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Base */
body {
    background-color: var(--bg-darkest) !important;
    color: var(--text-main) !important;
    font-family: 'Lexend', 'Outfit', 'Poppins', sans-serif !important;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted) !important;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* Custom Background Blobs (Glowing Gradients) */
.glowing-bg-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    mix-blend-mode: screen;
    pointer-events: none;
}

.blob-1 {
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
}

.blob-2 {
    top: 40%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
}

.blob-3 {
    bottom: 10%;
    right: 15%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
}

/* Glassmorphism Class */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    border-color: rgba(0, 245, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 30px rgba(0, 245, 255, 0.1);
}

/* Header & Nav */
.navbar {
    background: rgba(1, 8, 15, 0.7) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 0 !important;
    transition: var(--transition-smooth);
}

.navbar-brand img {
    filter: brightness(0) invert(1);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 1rem;
    position: relative;
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link h4 {
    font-size: 1rem !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
    display: inline;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-main) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Header Buttons */
.btn-secondary-outline {
    border: 1px solid var(--glass-border) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--text-main) !important;
    border-radius: 50px !important;
    padding: 0.6rem 1.6rem !important;
    transition: var(--transition-smooth) !important;
}

.btn-secondary-outline h4 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

.btn-secondary-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent-gold) !important;
    border: none !important;
    color: var(--bg-darkest) !important;
    border-radius: 50px !important;
    padding: 0.6rem 1.8rem !important;
    box-shadow: 0 10px 20px rgba(255, 230, 109, 0.15) !important;
    transition: var(--transition-smooth) !important;
}

.btn-primary h4 {
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--bg-darkest) !important;
    margin-bottom: 0 !important;
}

.btn-primary:hover {
    background: var(--accent-gold-hover) !important;
    box-shadow: 0 12px 25px rgba(255, 230, 109, 0.3) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-title {
    font-size: 4rem !important;
    line-height: 1.15 !important;
    background: linear-gradient(135deg, #FFF 40%, #A2BFCB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem !important;
}

.hero-subtitle {
    font-size: 1.15rem !important;
    color: var(--text-muted) !important;
    margin-bottom: 2.5rem !important;
}

.hero-btn-ghost {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-weight: 600;
    border-radius: 50px;
    padding: 0.8rem 2.2rem;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 0 15px rgba(255, 230, 109, 0.1);
    transition: var(--transition-smooth);
}

.hero-btn-ghost:hover {
    background: var(--accent-gold);
    color: var(--bg-darkest);
    box-shadow: 0 0 25px rgba(255, 230, 109, 0.3);
    transform: scale(1.03);
}

/* Interactive Floating Hero Cards (Redesigned Travel Landscape Cards) */
.hero-visual-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    transition: var(--transition-smooth);
}

/* Glass Dashboard Preview */
.card-main-dashboard {
    width: 380px;
    padding: 1.5rem;
    z-index: 2;
    transform: perspective(1000px) rotateX(10deg) rotateY(-10deg) rotateZ(2deg);
    top: 15%;
    left: 5%;
}

.card-main-dashboard:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) rotateZ(0deg) scale(1.05);
}

/* Glass Settlement Success Alert */
.card-alert-success {
    width: 260px;
    padding: 1rem 1.25rem;
    background: rgba(0, 230, 118, 0.15) !important;
    border: 1px solid rgba(0, 230, 118, 0.3) !important;
    border-radius: 18px;
    z-index: 3;
    top: 55%;
    right: 5%;
    transform: translate(-10px, -10px) rotate(4deg);
}

.card-alert-success:hover {
    transform: translate(-10px, -10px) rotate(0deg) scale(1.08);
}

/* Live Analytics Mini Feed */
.card-live-feed {
    width: 250px;
    padding: 1.2rem;
    z-index: 1;
    top: 5%;
    right: 10%;
    transform: rotate(-6deg);
    opacity: 0.85;
}

.card-live-feed:hover {
    transform: rotate(0deg) scale(1.05);
    opacity: 1;
}

/* Mini Layout details inside cards */
.sparkline-container {
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 5px;
    margin-top: 1rem;
}

.sparkline-bar {
    flex: 1;
    background: var(--accent-cyan);
    border-radius: 3px 3px 0 0;
    min-height: 10%;
    transition: var(--transition-smooth);
}

.sparkline-bar:hover {
    background: var(--accent-gold);
}

/* Section Curve / Wave Dividers */
.wave-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    margin-top: -1px;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 70px;
    fill: var(--bg-darkest);
}

/* Feature / Statistics Section */
.stat-container {
    padding: 2.5rem;
    text-align: left;
    height: 100%;
}

.stat-number {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: var(--accent-gold) !important;
    margin-bottom: 0.5rem !important;
    text-shadow: 0 0 20px rgba(255, 230, 109, 0.15);
}

.stat-label {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--text-main) !important;
    margin-bottom: 0.75rem !important;
}

.stat-desc {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
}

/* Custom Overlapping Phone Mockups (Redesigned Travel Phone Showcase) */
.phone-showcase-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    background: #081C30;
    border: 8px solid #162E48;
    border-radius: 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: absolute;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 16px;
    background: #162E48;
    border-radius: 0 0 12px 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    padding: 1.5rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top, #0A243F 0%, #031424 100%);
    font-size: 0.8rem;
    color: var(--text-main);
}

/* Mobile Screens Details */
.phone-1 {
    transform: translate(-100px, 20px) rotate(-12deg);
    z-index: 1;
}

.phone-2 {
    transform: translate(0, -10px) rotate(0deg);
    z-index: 3;
    width: 210px;
    height: 420px;
    border-color: #244163;
}

.phone-3 {
    transform: translate(100px, 20px) rotate(12deg);
    z-index: 2;
}

.phone-mockup:hover {
    z-index: 5;
    transform: scale(1.08) translateY(-10px) rotate(0deg);
    border-color: var(--accent-cyan);
}

/* Phone 1 Screen: QR Generator */
.qr-code-box {
    margin: auto;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.qr-code-box img {
    width: 100%;
    height: 100%;
}

/* Phone 2 Screen: Instant Success */
.checkmark-circle {
    width: 50px;
    height: 50px;
    background: rgba(0, 230, 118, 0.2);
    border: 2px solid var(--accent-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1rem;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Phone 3 Screen: Analytics Graph */
.graph-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 120px;
    margin-top: auto;
    padding-bottom: 1rem;
}

.graph-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-purple), var(--accent-cyan));
    border-radius: 4px;
    transition: var(--transition-smooth);
}

/* Features/About Section: Showcase Terminal */
.terminal-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: #03101E;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.terminal-header {
    background: #020A13;
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

.terminal-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'Outfit', sans-serif;
}

/* App Integration Tabs Section */
.app-tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.tab-pill {
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-pill:hover,
.tab-pill.active {
    color: var(--bg-darkest) !important;
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 230, 109, 0.2);
}

/* Custom Footer & Cleanups */
.footer-logo {
    filter: brightness(0) invert(1);
}

.footer-link {
    color: var(--text-muted) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-cyan) !important;
}

/* Custom Horizontal Icons list under About Gateway */
.icon-benefit-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.icon-benefit-box:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 245, 255, 0.15);
}

.icon-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 245, 255, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* Simple Responsive overrides */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem !important;
    }
    .hero-visual-wrapper {
        height: 380px;
        margin-top: 2rem;
    }
    .card-main-dashboard {
        width: 320px;
        left: 0;
    }
    .card-alert-success {
        width: 220px;
        top: 60%;
    }
    .card-live-feed {
        width: 200px;
        right: 0;
    }
    .phone-showcase-wrapper {
        height: 350px;
    }
    .phone-mockup {
        width: 160px;
        height: 320px;
    }
    .phone-2 {
        width: 170px;
        height: 340px;
    }
    .phone-1 { transform: translate(-80px, 10px) rotate(-10deg); }
    .phone-3 { transform: translate(80px, 10px) rotate(10deg); }
}
