/* ECurrency Team - Landing page styles (from design) */
:root {
    --nav-dark: #0a1628;
    --nav-dark-alt: #0d2137;
    --top-bar-bg: #b8e0f0;
    --top-bar-text: #0a1628;
    --btn-exchange: #7c5cbf;
    --btn-signup: #2563eb;
    --btn-primary: #2563eb;
    --section-dark: #0a1628;
    --cta-blue: #1e40af;
    --text-dark: #1e293b;
    --green: #16a34a;
    --red: #dc2626;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
}
main { flex: 1; }

/* ---- Top bar ---- */
.top-bar {
    background: var(--top-bar-bg);
    color: var(--top-bar-text);
    font-size: 0.9rem;
}
.top-bar .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }

/* ---- Navbar ---- */
.navbar-main {
    background: var(--nav-dark) !important;
    padding: 0.75rem 0;
}
.navbar-main .navbar-brand {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}
.navbar-main .nav-link {
    color: rgba(255,255,255,0.9) !important;
    padding: 0.5rem 1rem !important;
}
.navbar-main .nav-link:hover { color: #fff !important; }
.navbar-main .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.navbar-main .navbar-toggler-icon { filter: invert(1); }

.navbar-actions { align-items: center; gap: 0.5rem; }
.btn-nav {
    padding: 0.4rem 1rem !important;
    border-radius: 6px;
    font-weight: 500;
}
.btn-nav-exchange {
    background: var(--btn-exchange) !important;
    color: #fff !important;
}
.btn-nav-exchange:hover { opacity: 0.9; color: #fff !important; }
.btn-nav-signup {
    background: var(--btn-signup) !important;
    color: #fff !important;
}
.btn-nav-signup:hover { opacity: 0.9; color: #fff !important; }

/* ---- Hero ---- */
.hero-section {
    background: #fff;
    padding: 3rem 0 4rem;
}
.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.hero-desc {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}
.btn-hero {
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}
.btn-hero:hover { opacity: 0.9; }
.btn-hero-primary { background: var(--btn-primary); color: #fff; border: none; }
.btn-hero-outline { background: #fff; color: var(--btn-primary); border: 2px solid var(--btn-primary); }
.hero-info-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    font-size: 0.95rem;
    color: #475569;
}
.hero-info-icon { color: var(--green); margin-right: 0.35rem; }

/* ---- Live USDT Rates ---- */
.rates-section {
    background: var(--section-dark);
    color: #fff;
}
.rates-section .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.rates-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.rates-section-icon { font-size: 1.25rem; }
.rates-section-subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-bottom: 1.5rem;
}
.rates-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.rate-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}
.rate-card-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}
.rate-card-value { font-size: 1.75rem; font-weight: 700; }
.rates-disclaimer {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ---- Steps ---- */
.steps-section { background: #fff; }
.steps-section .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}
.section-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 2rem;
}
.steps-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.step-item { text-align: center; }
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--btn-primary);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.step-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-desc { font-size: 0.95rem; color: #64748b; margin: 0; }
.steps-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: #475569;
}
.steps-trust-icon { color: var(--green); margin-right: 0.35rem; }

/* ---- Trust section ---- */
.trust-section { background: #fff; }
.trust-section .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}
@media (max-width: 768px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-desc { color: #64748b; margin-bottom: 1rem; line-height: 1.6; }
.trust-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}
.trust-list li {
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.trust-check { color: var(--btn-primary); font-weight: 700; }
.trust-stats {
    display: flex;
    gap: 2rem;
}
.trust-stat { text-align: left; }
.trust-stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--btn-primary); }
.trust-stat-label { font-size: 0.9rem; color: #64748b; }
.trust-activity { min-width: 0; }
.activity-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.activity-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.activity-item:last-child { border-bottom: none; }
.activity-text { font-size: 0.95rem; }
.activity-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
}
.badge-completed { background: #dcfce7; color: var(--green); }
.badge-progress { background: #dbeafe; color: var(--btn-primary); }
.badge-failed { background: #fee2e2; color: var(--red); }

/* ---- FAQ ---- */
.faq-section { background: #fff; }
.faq-section .container { max-width: 800px; margin: 0 auto; padding: 0 15px; }
.faq-list { margin-top: 1.5rem; }
.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    padding: 1rem 1.25rem;
    text-align: left;
    background: #fff;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.faq-question:hover { background: #f8fafc; }
.faq-q-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}
.faq-item.faq-open .faq-answer { max-height: 200px; }
.faq-answer p {
    margin: 0;
    padding: 0 1.25rem 1rem;
    color: #64748b;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
}

/* ---- CTA ---- */
.cta-section {
    background: var(--cta-blue);
    color: #fff;
}
.cta-section .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.cta-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.cta-subtitle { opacity: 0.95; margin-bottom: 1.5rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-cta {
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s;
}
.btn-cta-primary { background: #fff; color: var(--cta-blue); border: none; }
.btn-cta-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-cta:hover { opacity: 0.9; }

/* ---- Footer support ---- */
.footer-support {
    background: var(--nav-dark);
    color: #fff;
}
.footer-support .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.footer-support-title { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.footer-support-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}
.btn-support {
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid;
    background: #fff;
    transition: opacity 0.2s;
}
.btn-support:hover { opacity: 0.9; }
.btn-support-whatsapp { border-color: var(--green); color: var(--green); }
.btn-support-email { border-color: var(--btn-primary); color: var(--btn-primary); }
.btn-support-icon { font-size: 1.1rem; }
.footer-support-msg { font-size: 0.85rem; opacity: 0.9; margin: 0; }

/* ---- Footer main ---- */
.footer-main {
    background: var(--nav-dark);
    color: rgba(255,255,255,0.9);
}
.footer-main .container { max-width: 1140px; margin: 0 auto; padding: 0 15px; }
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-about-text {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}
.footer-link { color: #93c5fd; font-size: 0.9rem; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-links, .footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li, .footer-contact li {
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}
.footer-links a, .footer-contact a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.footer-links a:hover { text-decoration: underline; }
.footer-contact-icon { margin-right: 0.5rem; }
.footer-copyright {
    font-size: 0.85rem;
    opacity: 0.8;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

/* Page content (non-home) */
main .container { max-width: 1140px; margin: 0 auto; padding: 2rem 15px; }
.card { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }

/* ===== Global enhancements: accessible, mobile-first, modern ===== */

/* Skip link - visible on focus for keyboard users */
.skip-link {
    position: absolute;
    top: -3.25rem;
    left: 0.5rem;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: #1e293b;
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 6px 0;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Keyboard focus - high contrast, no focus when mouse-only */
:where(a, button, input, select, textarea):focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
:where(a, button, input, select, textarea):focus:not(:focus-visible) {
    outline: none;
}

/* Touch targets - minimum 44px for interactive elements (mobile-first) */
@media (pointer: coarse) {
    .min-touch-target a,
    .min-touch-target button,
    .min-touch a,
    .min-touch button,
    a.min-touch-target,
    button.min-touch-target {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
    }
}

/* Screen reader only - for live regions and labels */
.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;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .skip-link { transition: none; }
}

/* Selection color for better readability */
::selection {
    background: #2563eb;
    color: #fff;
}

/* Print - hide nav, skip link, show URLs */
@media print {
    .skip-link,
    nav,
    .no-print,
    [aria-label="Main navigation"] {
        display: none !important;
    }
    body { background: #fff; color: #000; }
    a[href]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #666; }
}
