/**
 * DenaiHati.ai - Central Design System Tokens & Base Styles
 * Enterprise Global Tech + Modern SaaS Aesthetics
 * Approved Single Font Family: Plus Jakarta Sans
 */
:root {
    /* Brand Colors */
    --brand-primary: #0F172A;        /* Deep Slate / Obsidian */
    --brand-primary-light: #1E293B;  /* Slate Navy */
    --brand-emerald: #059669;        /* Tech Emerald (Heritage Green) */
    --brand-emerald-light: #10B981;  /* Emerald Hover / Glow */
    --brand-ruby: #E11D48;           /* Ruby Crimson (Heritage Red) */
    --brand-ruby-light: #F43F5E;     /* Ruby Hover / Glow */
    --brand-utility-cyan: #0284C7;   /* Optional Utility Accent */

    /* Neutrals & Surfaces */
    --bg-main: #F8FAFC;              /* Cloud Neutral */
    --bg-alt: #F1F5F9;
    --surface-card: #FFFFFF;         /* Pure White Elevation */
    --surface-dark: #0B132B;         /* Midnight Theater Blue */
    --border-subtle: #E2E8F0;        /* 1px Structural Line */
    --border-dark: rgba(255, 255, 255, 0.12);

    /* Typography Colors */
    --text-primary: #0F172A;         /* 95% Contrast Ink */
    --text-secondary: #475569;       /* Muted Slate */
    --text-muted: #94A3B8;
    --text-on-dark: #FFFFFF;

    /* Semantic States */
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-btn: 12px;
    --radius-card: 18px;
    --radius-pill: 9999px;

    /* Multi-Layer Elevation Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.14);
    --shadow-glow-emerald: 0 8px 25px rgba(5, 150, 105, 0.3);

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons System */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-emerald) 0%, #047857 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.95rem 2rem;
    border-radius: var(--radius-btn);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-glow-emerald);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: #FFFFFF;
    color: var(--brand-primary) !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.95rem 1.8rem;
    border-radius: var(--radius-btn);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1.5px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-whatsapp {
    background: #25D366;
    color: #FFFFFF !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.95rem 1.8rem;
    border-radius: var(--radius-btn);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Badge & Pill System */
.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.3);
    color: var(--brand-emerald);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.brand-pill-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid rgba(5, 150, 105, 0.4);
    color: #34D399;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

/* Header & Navigation */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-dark {
    background: rgba(11, 19, 43, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-logo-link {
    display: flex;
    align-items: center;
    height: 44px;
    text-decoration: none;
}

.nav-logo-link img {
    height: 30px;
    width: auto;
    display: block;
}

/* Section Common Spacing */
.section-padding {
    padding: 5.5rem 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    color: var(--brand-emerald);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--brand-primary);
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Language Switcher Component */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 3px 6px;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    user-select: none;
}

.lang-btn {
    text-decoration: none;
    padding: 4px 7px;
    border-radius: 999px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    color: #94A3B8;
}

.lang-btn.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.lang-btn.lang-link:hover {
    color: #34D399;
}

.lang-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    padding: 0 1px;
}

/* Light header variant (register page) */
.site-header-light .lang-switch {
    background: #F1F5F9;
    border-color: #E2E8F0;
}
.site-header-light .lang-btn {
    color: #64748B;
}
.site-header-light .lang-btn.active {
    color: #0F172A;
    background: #FFFFFF;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.site-header-light .lang-btn.lang-link:hover {
    color: #059669;
}
.site-header-light .lang-divider {
    color: #CBD5E1;
}

@media (max-width: 640px) {
    .header-actions {
        gap: 0.6rem;
    }
    .lang-switch {
        padding: 2px 4px;
        font-size: 0.72rem;
    }
    .lang-btn {
        padding: 3px 6px;
        min-height: 22px;
    }
}

/* Footer */
.site-footer {
    background: #0B132B;
    color: #94A3B8;
    padding: 3.5rem 0 2rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-copy {
    color: #64748B;
    font-size: 0.85rem;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .nav-logo-link img, .nav-brand img { height: 23px; }
    .section-padding { padding: 3.75rem 0; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links a { margin: 0 0.75rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
}
