/*==================================================================
  Acumen — Landing Page Styles
  Brand palette: #a67c52 primary, #8f6a45 dark, #b8956a light
==================================================================*/

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

:root {
    --primary: #a67c52;
    --primary-light: #b8956a;
    --primary-dark: #8f6a45;
    --primary-deep: #78543a;
    --primary-glow: rgba(166, 124, 82, 0.12);
    --accent: #C4A95A;
    --accent-light: #d4b96a;
    --bg: #FBF7F0;
    --bg-white: #ffffff;
    --bg-section: #F0E6D6;
    --text-primary: #4a3526;
    --text-secondary: #5e4330;
    --text-muted: #b8956a;
    --border: #F0E6D6;
    --border-light: #FBF7F0;
    --shadow-sm: 0 1px 3px rgba(74, 53, 38, 0.06);
    --shadow-md: 0 4px 16px rgba(74, 53, 38, 0.08);
    --shadow-lg: 0 8px 32px rgba(74, 53, 38, 0.1);
    --shadow-xl: 0 16px 48px rgba(74, 53, 38, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-ar: 'Cairo', sans-serif;
    --font-en: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-ar);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

[dir="ltr"] body { font-family: var(--font-en); }

a { text-decoration: none; color: inherit; }

/* ======================== NAVBAR ======================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(251, 247, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

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

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.navbar-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.navbar-links a {
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.navbar-links a:hover {
    color: var(--primary);
    background: var(--primary-glow);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    display: flex;
    background: var(--bg-section);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 2px;
}

.lang-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.lang-btn.active {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 8px 24px 16px;
    gap: 4px;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.mobile-menu a:hover {
    background: var(--primary-glow);
    color: var(--primary);
}

/* ======================== HERO ======================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    overflow: hidden;
    background: linear-gradient(180deg, #FBF7F0 0%, #F0E6D6 50%, #FBF7F0 100%);
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape { position: absolute; border-radius: 50%; opacity: 0.4; }

.shape-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.15) 0%, transparent 70%);
    top: -100px; right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(196, 169, 90, 0.1) 0%, transparent 70%);
    bottom: -50px; left: -100px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.08) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.hero-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 4px;
}

.hero-title-accent {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    box-shadow: 0 4px 20px rgba(166, 124, 82, 0.35);
    transition: var(--transition);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(166, 124, 82, 0.45);
    color: #fff;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--bg-white);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    transition: var(--transition);
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 48px;
    box-shadow: var(--shadow-md);
}

.hero-stat { text-align: center; }

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ======================== SECTIONS COMMON ======================== */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--primary-glow);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ======================== MODULES ======================== */
.modules {
    padding: 100px 0;
    background: var(--bg-white);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.module-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.module-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.module-card:hover::before { opacity: 1; }

.module-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.module-icon.attendance { background: rgba(107, 158, 107, 0.12); color: #6B9E6B; }
.module-icon.tasks { background: rgba(166, 124, 82, 0.12); color: #a67c52; }
.module-icon.complaints { background: rgba(196, 169, 90, 0.12); color: #C4A95A; }
.module-icon.recruitment { background: rgba(184, 112, 112, 0.12); color: #B87070; }

.module-card:hover .module-icon { transform: scale(1.1); }

.module-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.module-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.module-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.module-feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--bg-white);
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--border);
}

.module-feature i {
    color: var(--primary);
    font-size: 0.7rem;
}

/* ======================== PANELS ======================== */
.panels {
    padding: 100px 0 120px;
    background: linear-gradient(180deg, var(--bg) 0%, #F0E6D6 100%);
}

.panels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    align-items: stretch;
}

.panel-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 36px 28px 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.panel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.panel-active {
    border-color: var(--primary-light);
    box-shadow: 0 4px 24px rgba(166, 124, 82, 0.12);
}

.panel-glow {
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(166, 124, 82, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-icon {
    width: 56px; height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.panel-icon.owner {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(166, 124, 82, 0.3);
}

.panel-icon.company {
    background: linear-gradient(135deg, #6B9E6B, #4a8a4a);
    color: #fff;
}

.panel-icon.employee {
    background: linear-gradient(135deg, #C4A95A, #a89040);
    color: #fff;
}

.panel-badge-active {
    padding: 4px 14px;
    background: rgba(107, 158, 107, 0.12);
    color: #6B9E6B;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
}

.panel-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.panel-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.panel-features {
    list-style: none;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.panel-active .panel-features li i {
    color: var(--primary);
    font-size: 0.9rem;
}

.btn-panel-enter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(166, 124, 82, 0.25);
}

.btn-panel-enter:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(166, 124, 82, 0.4);
    color: #fff;
}

[dir="ltr"] .btn-panel-enter i { transform: rotate(180deg); }

/* ======================== FOOTER ======================== */
.footer {
    background: #4a3526;
    padding: 48px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-copy {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

/* ======================== TOAST ======================== */
.toast-container {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    animation: toastIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast i { color: #fff; font-size: 1.1rem; }

.toast-exit { animation: toastOut 0.3s ease-in forwards; }

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

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

/* ======================== RESPONSIVE ======================== */
@media (max-width: 1024px) {
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .panels-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .navbar-links { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-logo-img { height: 60px; }
    .hero-title-accent { font-size: 1.6rem; }
    .hero-desc { font-size: 1rem; }
    .hero-stats { flex-direction: column; gap: 16px; padding: 24px 32px; }
    .hero-stat-divider { width: 60px; height: 1px; }
    .section-title { font-size: 1.7rem; }
    .modules-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 480px) {
    .navbar-inner { padding: 0 16px; }
    .hero { padding: 100px 16px 60px; }
    .hero-logo-img { height: 48px; }
    .hero-title-accent { font-size: 1.3rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .panel-card { padding: 28px 20px 24px; }
}
