/*
 * Theme Name: MEiQ Theme
 * Theme URI: https://meiqmb.com
 * Version: 2.0.0
 * Description: MEiQ - Intelligent Payments & Market Intelligence Platform
 * Security-hardened version — April 2026
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    --color-bg:           #050810;
    --color-bg-secondary: #080d1a;
    --color-bg-card:      #0d1526;
    --color-bg-card-hover:#111e35;
    --color-border:       rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(99, 179, 237, 0.35);
    --color-accent:       #63b3ed;
    --color-accent-2:     #4299e1;
    --color-accent-glow:  rgba(99, 179, 237, 0.15);
    --color-text:         #e2e8f0;
    --color-text-muted:   #718096;
    --color-text-subtle:  #4a5568;
    --color-success:      #68d391;
    --color-error:        #fc8181;
    --color-warning:      #f6ad55;
    --font-display:       'Space Grotesk', sans-serif;
    --font-body:          'Inter', sans-serif;
    --radius-sm:          6px;
    --radius-md:          12px;
    --radius-lg:          20px;
    --shadow-card:        0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow:        0 0 40px rgba(99, 179, 237, 0.12);
    --transition:         all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width:          1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #90cdf4;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 8, 16, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand { display: flex; align-items: center; }
.nav-logo  { height: 32px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--color-text); }

.nav-links .nav-cta {
    color: var(--color-accent);
    border: 1px solid var(--color-border-hover);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8125rem;
}

.nav-links .nav-cta:hover {
    background: var(--color-accent-glow);
    color: #fff;
    border-color: var(--color-accent);
}


/* ==================== BUTTONS ==================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.01em;
}

.btn-primary:hover {
    background: #90cdf4;
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 179, 237, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--color-accent);
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid var(--color-border-hover);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--color-accent-glow);
    border-color: var(--color-accent);
    color: #fff;
}


/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 179, 237, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 179, 237, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
}

.hero-slides {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.hero-slide {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-slide.active { display: flex; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-slide h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #fff;
}

.hero-slide .accent {
    color: var(--color-accent);
}

.hero-slide p {
    color: var(--color-text-muted);
    font-size: clamp(1rem, 2vw, 1.125rem);
    max-width: 640px;
    line-height: 1.75;
}


/* ==================== STATS STRIP ==================== */
.stats-strip {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 40px 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 48px;
    border-right: 1px solid var(--color-border);
    text-align: center;
}

.stat:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    max-width: 140px;
    text-align: center;
    line-height: 1.4;
}


/* ==================== FEATURES SECTION ==================== */
.features {
    padding: 100px 0;
    background: var(--color-bg);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--color-border-hover);
    background: var(--color-bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

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


/* ==================== PRODUCTS SECTION ==================== */
.products {
    padding: 100px 0;
    background: var(--color-bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
}

.product-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.product-icon {
    font-size: 2rem;
    display: block;
}

.product-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

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

.product-card .btn-secondary {
    align-self: flex-start;
    margin-top: 8px;
}


/* ==================== NETWORK STATS ==================== */
.network-stats {
    padding: 100px 0;
    background: var(--color-bg);
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    text-align: center;
}

.network-stat {}

.network-number {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1.1;
    margin-bottom: 8px;
}

.network-label {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}


/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 100px 0 120px;
    background: var(--color-bg-secondary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.contact-wrapper {
    max-width: 640px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 48px;
}

.contact-tagline {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.contact-intro h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}


/* ==================== CONTACT FORM ==================== */
.contact-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    padding: 14px 16px;
    width: 100%;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input:hover,
.contact-form select:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.contact-form input:focus,
.contact-form select:focus {
    border-color: var(--color-accent);
    background: rgba(99, 179, 237, 0.06);
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.12);
}

.contact-form input::placeholder {
    color: var(--color-text-subtle);
}

.contact-form select {
    color: var(--color-text-subtle);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23718096' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 42px;
    cursor: pointer;
}

.contact-form select option {
    background: var(--color-bg-card);
    color: var(--color-text);
}

.contact-form select:valid {
    color: var(--color-text);
}


/* ── Turnstile wrapper ─────────────────────────────────── */
.turnstile-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0;
}

.turnstile-note {
    font-size: 0.8rem;
    color: var(--color-text-subtle);
    margin: 0;
}

/* Turnstile widget itself renders at ~300x65px */
.cf-turnstile { min-height: 65px; }


/* ── Consent checkbox ──────────────────────────────────── */
.form-consent {
    margin: 4px 0;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.consent-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    accent-color: var(--color-accent);
    cursor: pointer;
    margin-top: 2px;
}

.consent-label a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* ── Error message ─────────────────────────────────────── */
.form-error {
    background: rgba(252, 129, 129, 0.08);
    border: 1px solid rgba(252, 129, 129, 0.3);
    border-radius: var(--radius-sm);
    color: var(--color-error);
    font-size: 0.875rem;
    padding: 12px 16px;
    line-height: 1.5;
}


/* ── Submit button ─────────────────────────────────────── */
.btn-submit {
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 0.01em;
    margin-top: 8px;
    opacity: 0.45;
    pointer-events: none;
}

.btn-submit.enabled,
.btn-submit:not([disabled]) {
    opacity: 1;
    pointer-events: auto;
}

.btn-submit.enabled:hover {
    background: #90cdf4;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 179, 237, 0.35);
}

/* Loading spinner */
.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(5, 8, 16, 0.3);
    border-top-color: var(--color-bg);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* ── Success state ─────────────────────────────────────── */
.form-success {
    background: var(--color-bg-card);
    border: 1px solid rgba(104, 211, 145, 0.3);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: rgba(104, 211, 145, 0.12);
    border: 1px solid rgba(104, 211, 145, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-success);
}

.form-success h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.form-success p {
    color: var(--color-text-muted);
    font-size: 1rem;
}


/* ==================== FOOTER ==================== */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 32px 24px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-logo { height: 24px; width: auto; }

.footer-copy {
    color: var(--color-text-subtle);
    font-size: 0.875rem;
}

.footer-copy a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-copy a:hover { color: var(--color-accent); }


/* ==================== PRIVACY POLICY PAGE ==================== */
.page-content {
    padding: 140px 24px 100px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.privacy-policy h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.last-updated {
    color: var(--color-text-subtle);
    font-size: 0.875rem;
    margin-bottom: 48px;
}

.policy-body h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 32px 0 12px;
}

.policy-body p {
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.back-home {
    margin-top: 48px;
}


/* ==================== ACCESSIBILITY ==================== */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 8px;
    z-index: 9999;
    background: var(--color-accent);
    color: var(--color-bg);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 8px;
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 28px 20px;
    }

    .stat {
        padding: 16px 24px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
        width: 100%;
    }

    .stat:last-child { border-bottom: none; }

    .stats-strip {
        flex-direction: column;
        align-items: center;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links { gap: 20px; }

    .turnstile-wrapper {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero { padding: 100px 16px 60px; }
    .contact-form { padding: 24px 16px; }

    .cf-turnstile {
        transform: scale(0.9);
        transform-origin: left center;
    }
}


/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* ==================== ABOUT US PAGE ==================== */

/* ==================== ABOUT PAGE ONLY ==================== */

.page-about {
    background-color: #050810;
    color: #e2e8f0;
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
}

/* reveal */
.page-about .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .75s cubic-bezier(.16,1,.3,1),
                transform .75s cubic-bezier(.16,1,.3,1);
}

.page-about .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* navbar */
.page-about .navbar-about {
    position: fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;
    padding:20px 0;
    background: rgba(5,8,16,.85);
    backdrop-filter: blur(14px);
    border-bottom:1px solid rgba(255,255,255,.06);
}

/* text gradient */
.page-about .text-gradient {
    background: linear-gradient(135deg,#63b3ed,#90cdf4,#4299e1);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* cards */
.page-about .card-glow {
    position:relative;
    transition:.3s ease;
}

.page-about .card-glow:hover {
    transform:translateY(-6px);
    box-shadow:0 0 48px rgba(99,179,237,.1);
}

/* orb */
.page-about .orb {
    border-radius:50%;
    filter:blur(80px);
    animation: orbFloat 12s ease-in-out infinite;
}