/* ============================================================
   global.css — shared across all platform pages
   ============================================================ */

:root {
    --accent:       #4f46e5;
    --accent-h:     #4338ca;
    --accent-light: #eef2ff;
    --text:         #111827;
    --text2:        #374151;
    --muted:        #6b7280;
    --light:        #9ca3af;
    --border:       #e5e7eb;
    --bg:           #f9fafb;
    --white:        #ffffff;
    --success:      #10b981;
    --error:        #ef4444;
    --warning:      #f59e0b;
    --shadow:       0 1px 3px rgba(0,0,0,.08);
    --shadow-md:    0 4px 16px rgba(0,0,0,.08);
    --shadow-lg:    0 12px 40px rgba(0,0,0,.1);
    --r:            12px;
    --r-lg:         20px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--white);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Layout ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--r);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: .2s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(79,70,229,.35);
}
.btn-primary:hover {
    background: var(--accent-h);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,.45);
}
.btn-outline {
    background: var(--white);
    color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-light); }
.btn-white {
    background: #fff;
    color: var(--accent);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-white:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 700;
}

/* ── Section headers ── */
.sec-title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.5px;
    line-height: 1.2;
}
.sec-sub { font-size: 17px; color: var(--muted); margin-top: 10px; }
.sec-head { text-align: center; margin-bottom: 52px; }

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 28px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: 800;
    color: var(--text);
}
.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--accent);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}
.logo em { font-style: normal; color: var(--accent); }
.nav-r { display: flex; align-items: center; gap: 10px; }

/* Language switcher */
.lang-sw {
    display: flex;
    gap: 2px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 3px;
}
.lang-a {
    padding: 4px 11px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: .15s;
    cursor: pointer;
    line-height: 1.5;
}
.lang-a:hover { color: var(--text); }
.lang-a.on {
    background: var(--white);
    color: var(--accent);
    box-shadow: var(--shadow);
}
.btn-nav-login {
    padding: 9px 18px;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 600;
    color: var(--text2);
    border: 1px solid var(--border);
    background: var(--white);
    transition: .2s;
    font-family: inherit;
    cursor: pointer;
}
.btn-nav-login:hover { border-color: var(--accent); color: var(--accent); }

/* ── FOOTER ── */
footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 32px 0;
}
.foot-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.foot-logo { font-size: 15px; font-weight: 800; color: var(--text2); }
.foot-logo em { font-style: normal; color: var(--accent); }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: var(--muted); transition: .15s; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { font-size: 12px; color: var(--light); }

/* ── Form elements ── */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    margin-bottom: 6px;
}
.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--r);
    font-size: 15px;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: .2s;
    outline: none;
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-input.error { border-color: var(--error); }
.form-input.error:focus { box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.field-error {
    font-size: 12px;
    color: var(--error);
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.alert {
    border-radius: var(--r);
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* ── Input with icon ── */
.input-wrap { position: relative; }
.input-wrap .form-input { padding-inline-start: 42px; }
.input-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light);
    font-size: 15px;
    pointer-events: none;
}
.input-action {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light);
    font-size: 15px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: .15s;
}
.input-action:hover { color: var(--muted); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .nav-r .btn-nav-login { display: none; }
    .foot-inner { flex-direction: column; text-align: center; }
    .foot-links { justify-content: center; }
}
