/* ==========================================================================
   Trust Gate - CSS Stylesheet (AvivPay-inspired Layout)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Nunito:wght@400;600;700;800;900&display=swap');

/* Color Variables & Design Tokens */
:root {
    --bg-dark: #04050e;
    --bg-surface: #0a0c1b;
    --bg-surface-elevated: #111327;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(0, 242, 254, 0.2);
    
    --primary-color: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.15);
    --secondary-color: #00d2ff;
    
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-sans: 'Inter', sans-serif;
    --font-brand: 'Nunito', sans-serif;
    
    --max-width: 1100px;
    --ease-out-cubic: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-smooth: all 0.3s var(--ease-out-cubic);
}

/* Base resets & styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

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

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 40%, #a5f3fc 70%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 8rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.section-alt {
    background-color: rgba(255, 255, 255, 0.01);
}

.section-header {
    max-width: 650px;
    margin-bottom: 5rem;
}

.section-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Glassmorphism Panel */
.glass-panel {
    background: rgba(10, 12, 27, 0.6);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.glass-panel:hover {
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.05);
}

/* Header & Navigation */
.header-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    background: rgba(4, 5, 14, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.header-main.scrolled {
    background: rgba(4, 5, 14, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #04050e;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.25);
}

.btn-primary:hover {
    background: #00d2ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.btn-link {
    background: transparent;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-link:hover {
    color: var(--text-primary);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* Mobile Nav Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 5, 14, 0.97);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-overlay .nav-menu {
    flex-direction: column;
    gap: 2.25rem;
    text-align: center;
    margin-bottom: 3rem;
}

.mobile-overlay .nav-link {
    font-size: 1.35rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    padding-top: 150px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background-image: url('images/hero_woman.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    z-index: 1;
}

.hero-image-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(0deg, #04050e 0%, rgba(4, 5, 14, 0.85) 12%, transparent 55%),
        linear-gradient(90deg, #04050e 0%, rgba(4, 5, 14, 0.45) 20%, transparent 40%, transparent 85%, #04050e 100%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(60px);
}

.hero-content {
    max-width: 680px;
    margin: 0;
    text-align: left;
    pointer-events: auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.35rem);
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 620px;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: flex-start;
    align-items: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Focus Columns Layout (Split Sections) */
.focus-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.focus-grid.reversed {
    grid-template-columns: 0.9fr 1.1fr;
}

.focus-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.focus-text p {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.focus-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.04), rgba(0, 210, 255, 0.08));
    display: flex;
    justify-content: center;
    align-items: center;
}

.focus-visual::after {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(15px);
}

.focus-badge {
    padding: 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
}

/* FAQ Section (Accordion) */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    overflow: hidden;
}

.faq-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.faq-trigger:hover {
    color: var(--primary-color);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0.5rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.faq-item.active .faq-content {
    max-height: 200px;
    padding-bottom: 1.25rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: start;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-card-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-card-value a:hover {
    color: var(--primary-color);
}

.contact-form {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer styles */
.footer-main {
    background-color: #020309;
    border-top: 1px solid var(--border-color);
    padding: 6rem 0 3rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-tagline {
    line-height: 1.6;
    max-width: 280px;
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-item a {
    transition: var(--transition-smooth);
}

.footer-link-item a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 0.8125rem;
}

.footer-bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}

.footer-corporate-info {
    color: var(--text-dim);
    line-height: 1.6;
    padding-top: 0.5rem;
}

/* Animations */
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
    .hero-image-bg {
        width: 100%;
        opacity: 0.45;
    }
    
    .hero-image-bg::after {
        background-image: 
            linear-gradient(0deg, #04050e 0%, rgba(4, 5, 14, 0.85) 15%, transparent 60%),
            linear-gradient(180deg, rgba(4, 5, 14, 0.5) 0%, rgba(4, 5, 14, 0.85) 100%);
    }
    
    .hero-content {
        margin: 0 auto;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .focus-grid, .focus-grid.reversed {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .focus-visual {
        order: -1;
        aspect-ratio: 16/9;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .footer-top {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .footer-brand-column {
        grid-column: span 3;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-right-actions {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-brand-column {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .footer-brand-column {
        grid-column: span 1;
    }
}
