/**
 * Finoxt Enterprise Design System
 * 100% Fully Responsive Modern UI
 * Colors derived directly from Finoxt Brand Logo
 */

:root {
    --fxt-navy: #0A1128;
    --fxt-navy-light: #121E3D;
    --fxt-navy-dark: #060B1A;
    --fxt-blue: #1E60F2;
    --fxt-blue-hover: #154ECE;
    --fxt-cyan: #00B4D8;
    --fxt-cyan-light: #38BDF8;
    --fxt-purple: #7C3AED;
    --fxt-purple-light: #A78BFA;
    --fxt-slate-50: #F8FAFC;
    --fxt-slate-100: #F1F5F9;
    --fxt-slate-200: #E2E8F0;
    --fxt-slate-300: #CBD5E1;
    --fxt-slate-400: #94A3B8;
    --fxt-slate-500: #64748B;
    --fxt-slate-600: #475569;
    --fxt-slate-700: #334155;
    --fxt-slate-800: #1E293B;
    --fxt-slate-900: #0F172A;
    --fxt-success: #10B981;
    --fxt-warning: #F59E0B;
    --fxt-danger: #EF4444;
    --fxt-radius: 12px;
    --fxt-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --fxt-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --fxt-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --fxt-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--fxt-slate-800);
    background-color: var(--fxt-slate-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: var(--fxt-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--fxt-blue-hover);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 100% Responsive Container */
.fxt-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .fxt-container {
        padding: 0 2rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--fxt-navy);
    font-weight: 700;
    line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { margin-bottom: 1rem; color: var(--fxt-slate-600); }

/* Buttons */
.fxt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}
.fxt-btn-primary {
    background: linear-gradient(135deg, var(--fxt-blue) 0%, #1742B5 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(30, 96, 242, 0.25);
}
.fxt-btn-primary:hover {
    background: linear-gradient(135deg, var(--fxt-blue-hover) 0%, #12338F 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(30, 96, 242, 0.35);
}
.fxt-btn-secondary {
    background: #FFFFFF;
    color: var(--fxt-navy);
    border-color: var(--fxt-slate-300);
}
.fxt-btn-secondary:hover {
    background: var(--fxt-slate-100);
    border-color: var(--fxt-slate-400);
    color: var(--fxt-navy);
}
.fxt-btn-outline {
    background: transparent;
    color: var(--fxt-blue);
    border-color: var(--fxt-blue);
}
.fxt-btn-outline:hover {
    background: rgba(30, 96, 242, 0.06);
}
.fxt-btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}
.fxt-btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.05rem;
}

/* Header & Navigation */
.fxt-header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--fxt-slate-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.fxt-header .fxt-container {
    max-width: 1400px;
}
.fxt-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 1.5rem;
}
.fxt-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 1.5rem;
    text-decoration: none;
}
.fxt-brand-logo {
    height: 42px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
}
.fxt-nav-links {
    display: none;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
@media (min-width: 1024px) {
    .fxt-nav-links {
        display: flex;
    }
}
.fxt-nav-item {
    position: relative;
}
.fxt-nav-link {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--fxt-slate-700);
    padding: 0.5rem 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}
.fxt-nav-link:hover {
    color: var(--fxt-blue);
}

/* Dropdown Menu & Mega Menus */
.fxt-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #FFFFFF;
    border: 1px solid var(--fxt-slate-200);
    border-radius: var(--fxt-radius);
    box-shadow: var(--fxt-shadow-xl);
    min-width: 280px;
    padding: 0.75rem;
    display: none;
    z-index: 1010;
}
.fxt-nav-item:hover .fxt-dropdown {
    display: block;
}
.fxt-mega-dropdown {
    min-width: 680px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem 0.8rem;
    padding: 1.25rem;
}
.fxt-nav-item:hover .fxt-mega-dropdown {
    display: grid;
}
.fxt-mega-dropdown-header {
    grid-column: 1 / -1;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: var(--fxt-blue);
    padding: 0.25rem 0.5rem 0.5rem;
    border-bottom: 1px solid var(--fxt-slate-200);
    margin-bottom: 0.4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.fxt-dropdown-item {
    display: block;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    color: var(--fxt-slate-700);
    font-size: 0.88rem;
    transition: all 0.15s ease;
    text-decoration: none;
}
.fxt-dropdown-item:hover {
    background: #F8FAFC;
    color: var(--fxt-blue);
    transform: translateX(2px);
}
.fxt-dropdown-item strong {
    display: block;
    font-weight: 600;
    color: var(--fxt-navy);
}
.fxt-dropdown-item:hover strong {
    color: var(--fxt-blue);
}
.fxt-dropdown-desc {
    font-size: 0.75rem;
    color: var(--fxt-slate-500);
    display: block;
    margin-top: 2px;
    line-height: 1.35;
}

/* Header Right Actions Responsive */
.fxt-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Strictly hide top navbar buttons on screens < 1024px so logo & hamburger never wrap */
.fxt-btn-desktop-only {
    display: none !important;
}

@media (min-width: 1024px) {
    .fxt-btn-desktop-only {
        display: inline-flex !important;
        white-space: nowrap;
    }
}

/* Mobile Drawer: Main Menus First Navigation */
.fxt-mob-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 560px;
    margin: 0 auto;
}
.fxt-mob-item {
    border-bottom: 1px solid var(--fxt-slate-200);
}
.fxt-mob-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fxt-mob-main-link {
    display: block;
    padding: 0.85rem 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fxt-navy);
    text-decoration: none;
    transition: color 0.15s ease;
    flex: 1;
}
.fxt-mob-main-link:hover,
.fxt-mob-main-link:active {
    color: var(--fxt-blue);
}
.fxt-mob-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--fxt-slate-500);
    transition: transform 0.2s ease, color 0.2s ease;
}
.fxt-mob-toggle-btn.expanded {
    transform: rotate(180deg);
    color: var(--fxt-blue);
}
.fxt-mob-sublist {
    display: none;
    padding: 0.35rem 0.75rem 0.75rem 1rem;
    background: #F8FAFC;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}
.fxt-mob-sublist.open {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.fxt-mob-sub-link {
    display: block;
    padding: 0.4rem 0.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--fxt-slate-700);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.fxt-mob-sub-link:hover {
    background: #FFFFFF;
    color: var(--fxt-blue);
    padding-left: 0.75rem;
}
.fxt-mob-actions {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0.5rem;
}

/* Mobile Toggle */
.fxt-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--fxt-slate-300);
    border-radius: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--fxt-navy);
    flex-shrink: 0;
}
@media (min-width: 1024px) {
    .fxt-menu-toggle {
        display: none;
    }
}
.fxt-mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - 80px);
    height: calc(100dvh - 80px);
    background: #FFFFFF;
    padding: 1.5rem 1.25rem 4rem;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    z-index: 99999;
    border-top: 1px solid var(--fxt-slate-200);
    box-sizing: border-box;
}
.fxt-mobile-menu.active {
    display: block;
}

/* Hero Section */
.fxt-hero {
    background: linear-gradient(170deg, var(--fxt-navy) 0%, #0F1E42 60%, #162B5E 100%);
    color: #FFFFFF;
    padding: clamp(3rem, 8vw, 6rem) 0;
    position: relative;
    overflow: hidden;
}
.fxt-hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(124, 58, 237, 0.08) 60%, transparent 80%);
    pointer-events: none;
}
.fxt-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 992px) {
    .fxt-hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}
.fxt-hero h1 {
    color: #FFFFFF;
    margin-bottom: 1.25rem;
}
.fxt-hero p {
    color: var(--fxt-slate-300);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 620px;
}
.fxt-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Feature & Service Cards */
.fxt-section {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.fxt-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}
.fxt-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}
.fxt-badge-blue { background: rgba(30, 96, 242, 0.12); color: var(--fxt-blue); }
.fxt-badge-cyan { background: rgba(0, 180, 216, 0.15); color: #0284C7; }
.fxt-badge-purple { background: rgba(124, 58, 237, 0.12); color: var(--fxt-purple); }

.fxt-grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}
@media (min-width: 640px) {
    .fxt-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .fxt-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fxt-card {
    background: #FFFFFF;
    border: 1px solid var(--fxt-slate-200);
    border-radius: var(--fxt-radius);
    padding: 1.75rem;
    box-shadow: var(--fxt-shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}
.fxt-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--fxt-shadow-xl);
    border-color: var(--fxt-slate-300);
}
.fxt-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}
.fxt-icon-blue { background: rgba(30, 96, 242, 0.1); color: var(--fxt-blue); }
.fxt-icon-cyan { background: rgba(0, 180, 216, 0.1); color: var(--fxt-cyan); }
.fxt-icon-purple { background: rgba(124, 58, 237, 0.1); color: var(--fxt-purple); }

/* Forms & Inputs */
.fxt-form-group {
    margin-bottom: 1.25rem;
}
.fxt-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fxt-slate-700);
    margin-bottom: 0.35rem;
}
.fxt-input, .fxt-select, .fxt-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: var(--fxt-slate-900);
    background-color: #FFFFFF;
    border: 1px solid var(--fxt-slate-300);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.fxt-input:focus, .fxt-select:focus, .fxt-textarea:focus {
    outline: none;
    border-color: var(--fxt-blue);
    box-shadow: 0 0 0 3px rgba(30, 96, 242, 0.15);
}
.fxt-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Obfuscated Honeypot Traps for AI Bot defense */
.fxt-hp-field {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

/* Responsive Tables */
.fxt-table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--fxt-radius);
    border: 1px solid var(--fxt-slate-200);
    background: #FFFFFF;
}
.fxt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}
.fxt-table th {
    background: var(--fxt-slate-100);
    color: var(--fxt-slate-700);
    font-weight: 600;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--fxt-slate-200);
    white-space: nowrap;
}
.fxt-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--fxt-slate-200);
    color: var(--fxt-slate-800);
}
.fxt-table tr:last-child td {
    border-bottom: none;
}
.fxt-table tr:hover td {
    background-color: var(--fxt-slate-50);
}

/* Status Badges */
.fxt-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.fxt-status-new { background: #DBEAFE; color: #1D4ED8; }
.fxt-status-open { background: #FEF3C7; color: #B45309; }
.fxt-status-progress { background: #E0E7FF; color: #4338CA; }
.fxt-status-resolved { background: #D1FAE5; color: #047857; }
.fxt-status-closed { background: #F1F5F9; color: #475569; }
.fxt-status-urgent { background: #FEE2E2; color: #B91C1C; }

/* Footer */
.fxt-footer {
    background: var(--fxt-navy);
    color: var(--fxt-slate-300);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--fxt-navy-light);
}
.fxt-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
}
@media (min-width: 640px) {
    .fxt-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .fxt-footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}
.fxt-footer h4 {
    color: #FFFFFF;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}
.fxt-footer ul {
    list-style: none;
}
.fxt-footer ul li {
    margin-bottom: 0.6rem;
}
.fxt-footer ul a {
    color: var(--fxt-slate-400);
    font-size: 0.9rem;
}
.fxt-footer ul a:hover {
    color: #FFFFFF;
}
.fxt-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    font-size: 0.85rem;
    color: var(--fxt-slate-500);
}
@media (min-width: 768px) {
    .fxt-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Floating Live Chat Widget */
.fxt-chat-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--fxt-blue) 0%, var(--fxt-cyan) 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(30, 96, 242, 0.4);
    cursor: pointer;
    z-index: 9999;
    border: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fxt-chat-launcher:hover {
    transform: scale(1.08);
}
.fxt-chat-popup {
    display: none;
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: calc(100vw - 48px);
    max-width: 380px;
    height: 520px;
    max-height: calc(100vh - 120px);
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(10, 17, 40, 0.2);
    border: 1px solid var(--fxt-slate-200);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
}
.fxt-chat-popup.active {
    display: flex;
}
.fxt-chat-header {
    background: var(--fxt-navy);
    color: #FFFFFF;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fxt-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--fxt-slate-50);
}
.fxt-chat-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.fxt-bubble-visitor {
    align-self: flex-end;
    background: var(--fxt-blue);
    color: #FFFFFF;
    border-bottom-right-radius: 2px;
}
.fxt-bubble-agent {
    align-self: flex-start;
    background: #FFFFFF;
    color: var(--fxt-slate-800);
    border: 1px solid var(--fxt-slate-200);
    border-bottom-left-radius: 2px;
}
.fxt-bubble-system {
    align-self: center;
    background: var(--fxt-slate-200);
    color: var(--fxt-slate-600);
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}
