/* ============================================================
   AWSFLOW.IO — Design System Global
   ============================================================ */

   :root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #253147;
    --border: #1e3a5f;
    --blue-primary: #2563eb;
    --blue-light: #60a5fa;
    --blue-dark: #1e40af;
    --purple: #7c3aed;
    --green: #22c55e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: all 0.25s ease;
    /* index.html compat */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #0ea5e9;
    --accent: #8b5cf6;
    --accent-dark: #7c3aed;
    --success: #10b981;
    --warning: #f59e0b;
    --dark: #0f172a;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* ===== NAVIGATION ===== */
.nav {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-dark { color: var(--gray-900); }
.logo-accent {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

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

.nav-cta {
    display: inline-flex;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Hamburger menu mobile */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #374151;
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* Backward compat: navbar aliases */
.navbar { background: white; box-shadow: 0 1px 3px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.navbar-brand { font-size: 1.75rem; font-weight: 800; text-decoration: none; color: var(--gray-900); }
.navbar-brand span { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a { color: var(--gray-600); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.2s ease; }
.navbar-links a:hover { color: var(--gray-900); }
.navbar-links a.active { color: var(--primary); }
.btn-nav { background: linear-gradient(135deg, var(--primary), var(--accent)) !important; color: white !important; padding: 10px 20px !important; border-radius: 10px !important; font-weight: 600 !important; box-shadow: 0 4px 15px rgba(37,99,235,0.3) !important; }
.btn-nav:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(37,99,235,0.4) !important; background: linear-gradient(135deg, var(--primary), var(--accent)) !important; }

/* ===== HERO ===== */
.hero {
    padding: 120px 40px 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    background: rgba(37,99,235,0.15);
    border: 1px solid rgba(37,99,235,0.3);
    color: var(--blue-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero h1 span {
    color: var(--blue-light);
}

.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--blue-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--blue-light);
    color: var(--blue-light);
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--blue-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(37,99,235,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 22px;
}

.card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

/* ===== SECTIONS ===== */
.section {
    padding: 80px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue-light);
    margin-bottom: 12px;
}

.section h2 {
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section > p {
    color: var(--text-secondary);
    font-size: 16px;
    max-width: 600px;
    margin-bottom: 50px;
}

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* ===== FAQ ===== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--blue-light);
}

.faq-answer {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
    display: none;
}

.faq-icon {
    font-size: 20px;
    color: var(--blue-light);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin: 80px auto;
    max-width: 800px;
}

.cta-banner h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-banner p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 30px;
    font-size: 16px;
}

/* ===== FOOTER ===== */
footer,
.footer {
    background: #080e1a;
    border-top: 1px solid var(--border);
    padding: 60px 40px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 50px;
}

.footer-brand {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--blue-light);
}

.footer-desc,
.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--blue-light);
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gray-800, #1e293b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.footer-social a:hover {
    background: var(--primary, #6366f1);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-blue {
    background: rgba(37,99,235,0.15);
    color: var(--blue-light);
    border: 1px solid rgba(37,99,235,0.3);
}

.badge-green {
    background: rgba(34,197,94,0.15);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.3);
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    color: var(--blue-light);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 13px;
}

/* ===== FORM ===== */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}

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

/* ===== ALERTS ===== */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(34,197,94,0.15);
    border: 1px solid rgba(34,197,94,0.3);
    color: #4ade80;
}

.alert-error {
    background: rgba(239,68,68,0.15);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        border-top: 1px solid #e5e7eb;
        z-index: 1000;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 16px;
        text-align: center;
    }

    .nav-links .h-6.w-px {
        display: none;
    }

    .nav-container {
        flex-wrap: wrap;
        height: auto;
        min-height: 72px;
        padding: 12px 16px;
    }

    .nav-links .language-selector {
        width: 100%;
        text-align: center;
    }

    .nav-links .language-selector button {
        width: 100%;
        justify-content: center;
    }

    .nav-links #auth-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    #auth-buttons button[data-i18n="nav_logout"] {
        display: none !important;
    }

    .nav-links .nav-cta {
        width: 100%;
        text-align: center;
        margin-top: 8px;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
    }

    /* navbar compat mobile */
    .navbar { padding: 0 20px; }
    .navbar-links a:not(.btn-nav) { display: none; }

    .hero {
        padding: 100px 20px 60px;
    }
    
    .section {
        padding: 60px 20px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cta-banner {
        padding: 40px 20px;
        margin: 40px 20px;
    }
}

@media (min-width: 769px) {
    .nav-hamburger {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
    }
}

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

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}


.article-content th,tr,ul,li{
    color :#080e1a;
}

