/* =====================================================
   L'UNICA Design System — style.css
   Colors: Primary #0A1A2F | Accent #2D9CDB | Text #2D3748
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary:    #0A1A2F;
    --accent:     #2D9CDB;
    --accent-dim: rgba(45,156,219,0.15);
    --accent-glow:rgba(45,156,219,0.35);
    --bg:         #FFFFFF;
    --surface:    #F7FAFC;
    --border:     #E2E8F0;
    --text:       #2D3748;
    --text-muted: #718096;
    --font:       'Inter', sans-serif;
    --radius:     12px;
    --radius-lg:  20px;
    --max-w:      1200px;
    --nav-h:      80px;
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ── Typography ────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(36px,6vw,64px); font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: clamp(28px,4vw,42px); letter-spacing: -0.5px; }
h3 { font-size: clamp(20px,3vw,28px); }

/* ── Layout helpers ────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
section { padding: 96px 0; }
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-dim); border: 1px solid rgba(45,156,219,0.3);
    color: var(--accent); border-radius: 20px;
    padding: 6px 14px; font-size: 13px; font-weight: 600;
    letter-spacing: 0.4px; margin-bottom: 20px;
}
.section-label::before {
    content: ''; width: 6px; height: 6px;
    background: var(--accent); border-radius: 50%;
}
.section-header { margin-bottom: 56px; }
.section-header p { font-size: 18px; color: var(--text-muted); margin-top: 12px; max-width: 580px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font); font-weight: 600; font-size: 15px;
    padding: 14px 28px; border-radius: var(--radius);
    cursor: pointer; border: none; text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: var(--accent); color: #fff;
    box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 10px 28px var(--accent-glow); }
.btn-outline {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline-dark {
    background: transparent; color: var(--accent);
    border: 2px solid var(--accent);
}
.btn-outline-dark:hover { background: var(--accent-dim); }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ── Cards ──────────────────────────────────────── */
.card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(10,26,47,0.1);
    border-color: var(--accent);
}
.card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: var(--accent-dim); color: var(--accent);
    font-size: 26px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}

/* ── Chip ───────────────────────────────────────── */
.chip {
    background: var(--accent-dim); color: var(--accent);
    border-radius: 20px; padding: 5px 12px;
    font-size: 12px; font-weight: 600; display: inline-block;
}
.chip-dark { background: rgba(10,26,47,0.08); color: var(--primary); }

/* ── Header / Nav ───────────────────────────────── */
header {
    height: var(--nav-h); background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 500;
    display: flex; align-items: center;
    transition: box-shadow var(--transition);
}
header.scrolled { box-shadow: 0 4px 24px rgba(10,26,47,0.08); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; width: 100%; }

.logo { text-decoration: none; flex-shrink: 0; }
.logo-name {
    font-size: 22px; font-weight: 900; color: var(--primary);
    letter-spacing: 1.2px; line-height: 1;
}
.logo-sub {
    font-size: 9px; font-weight: 700; color: var(--text-muted);
    letter-spacing: 0.8px; display: block; margin-top: 2px;
}

nav { flex: 1; display: flex; justify-content: center; }
nav ul { list-style: none; display: flex; gap: 4px; }
nav a {
    text-decoration: none; color: var(--text);
    font-weight: 500; font-size: 14px;
    padding: 8px 14px; border-radius: 10px;
    transition: color var(--transition), background var(--transition);
}
nav a:hover { color: var(--accent); background: var(--accent-dim); }
nav a.active {
    color: var(--accent); font-weight: 600;
    background: var(--accent-dim);
}

.nav-cta {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), #1b86be);
    color: #fff; padding: 10px 22px; border-radius: var(--radius);
    font-size: 14px; font-weight: 600; text-decoration: none;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px var(--accent-glow); }

/* Language Toggle */
.desktop-lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
}

.nav-login-btn {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    transition: color var(--transition);
}
.nav-login-btn:hover {
    color: var(--accent);
}
.lang-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 4px;
  transition: color 0.2s;
}
.lang-toggle-btn.active, .lang-toggle-btn:hover {
  color: var(--accent);
}
.lang-divider {
  color: var(--border);
  font-size: 14px;
}
.mobile-lang-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* Mobile hamburger */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    cursor: pointer; background: none; border: none; padding: 6px;
}
.hamburger span {
    width: 24px; height: 2px; background: var(--primary);
    border-radius: 2px; transition: all 0.3s;
}
.mobile-menu {
    display: none; position: fixed; inset: 0; z-index: 600;
    background: rgba(0,0,0,0); backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.mobile-menu.open {
    display: block;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    animation: fadeOverlay 0.3s ease forwards;
}
@keyframes fadeOverlay {
    from { background: rgba(0,0,0,0); backdrop-filter: blur(0); }
    to   { background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); }
}
.mobile-menu-panel {
    position: fixed; top: 0; right: 0;
    width: min(320px, 88vw); height: 100vh;
    background: #fff; padding: 100px 32px 40px;
    box-shadow: -8px 0 40px rgba(0,0,0,0.2);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.mobile-menu.open .mobile-menu-panel {
    transform: translateX(0);
}
.mobile-menu-panel a {
    display: block; padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px; font-weight: 500; color: var(--text);
    text-decoration: none; transition: color var(--transition), padding-left var(--transition);
}
.mobile-menu-panel a:hover, .mobile-menu-panel a.active { color: var(--accent); padding-left: 8px; }
.mobile-menu-panel .btn-primary { margin-top: 24px; width: 100%; justify-content: center; }
.close-menu {
    position: absolute; top: 24px; right: 24px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; width: 40px; height: 40px;
    font-size: 20px; cursor: pointer; color: var(--text);
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition), color var(--transition);
}
.close-menu:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Footer ─────────────────────────────────────── */
footer {
    background: var(--primary); color: rgba(255,255,255,0.8);
    padding: 64px 0 32px;
}
.footer-inner { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 48px; 
}
@media (min-width: 1025px) {
    .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
footer .logo-name { color: #fff; }
footer .logo-sub { color: rgba(255,255,255,0.5); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 12px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a {
    display: block; color: rgba(255,255,255,0.6);
    text-decoration: none; font-size: 14px; margin-bottom: 10px;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 48px; padding-top: 24px;
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13px; color: rgba(255,255,255,0.4);
}
.footer-socials { display: flex; gap: 12px; }
.social-btn {
    width: 36px; height: 36px; border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.6); text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: all var(--transition);
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Hero ────────────────────────────────────────── */
.hero {
    background: linear-gradient(160deg, var(--primary) 0%, #0d2540 60%, #112d4e 100%);
    color: #fff; min-height: calc(100vh - var(--nav-h));
    display: flex; align-items: center; position: relative; overflow: hidden;
    padding: 96px 0;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(45,156,219,0.12) 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(45,156,219,0.4); background: rgba(45,156,219,0.1);
    color: var(--accent); border-radius: 20px; padding: 7px 16px;
    font-size: 13px; font-weight: 500; margin-bottom: 28px;
    animation: slideDown 0.6s ease 0.1s both;
}
.hero-badge::before {
    content: ''; width: 7px; height: 7px; background: var(--accent);
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero h1 { animation: slideDown 0.7s ease 0.2s both; color: #fff; margin-bottom: 24px; }
.hero p { animation: slideDown 0.7s ease 0.35s both; font-size: 18px; color: rgba(255,255,255,0.8); line-height: 1.7; margin-bottom: 40px; max-width: 520px; }
.hero-actions { animation: slideDown 0.7s ease 0.5s both; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { animation: slideDown 0.7s ease 0.65s both; }
.hero-visual {
    position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-orb {
    width: 380px; height: 380px; border-radius: 50%;
    border: 1px solid rgba(45,156,219,0.2);
    background: radial-gradient(circle, rgba(45,156,219,0.1) 0%, transparent 70%);
    display: flex; align-items: center; justify-content: center;
    animation: float 6s ease-in-out infinite;
}
.hero-orb-inner {
    width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(45,156,219,0.2), transparent);
    border: 1px solid rgba(45,156,219,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 72px;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
.hero-stats {
    display: flex; gap: 48px; margin-top: 48px;
    padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-num { font-size: 36px; font-weight: 800; color: #fff; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 2px; }

/* ── Services on Home ───────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.service-card { position: relative; }
.service-card .num {
    position: absolute; top: 24px; right: 24px;
    font-size: 48px; font-weight: 900; color: var(--border);
    line-height: 1; user-select: none;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.feature-list { list-style: none; }
.feature-list li {
    padding: 7px 0; font-size: 14px; color: var(--text-muted);
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 13px; }


/* ── Products grid ──────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.product-card { position: relative; overflow: hidden; }
.product-logo { font-size: 48px; margin-bottom: 16px; }
.product-logo img { width: 72px; height: 72px; object-fit: contain; border-radius: 16px; margin-bottom: 16px; }
.product-status {
    position: absolute; top: 20px; right: 20px;
    padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.status-active { background: rgba(16,185,129,0.15); color: #059669; }
.status-dev { background: rgba(245,158,11,0.15); color: #b45309; }
.status-plan { background: rgba(139,92,246,0.15); color: #7c3aed; }
.progress-bar { height: 5px; background: var(--border); border-radius: 3px; margin: 16px 0 8px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #1b86be); border-radius: 3px; transition: width 1s ease; }
.progress-label { font-size: 12px; color: var(--text-muted); display: flex; justify-content: space-between; }
.product-card h3 { margin-bottom: 10px; font-size: 20px; }
.product-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.product-tech { font-size: 12px; color: var(--text-muted); }


/* ── About page ─────────────────────────────────── */
.about-hero { background: linear-gradient(160deg, var(--primary) 0%, #0d2540 100%); color: #fff; padding: 96px 0; }
.about-hero h1 { color: #fff; margin-bottom: 20px; }
.about-hero p { font-size: 18px; color: rgba(255,255,255,0.75); max-width: 540px; }
.mission-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.mv-card { border-radius: var(--radius-lg); padding: 40px; box-shadow: 0 8px 32px rgba(0,0,0,0.06); }
.mv-icon { font-size: 40px; margin-bottom: 16px; }
.mv-card h3 { color: var(--primary); margin-bottom: 16px; }
.mv-card p { color: var(--text-muted); line-height: 1.8; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; }
.value-icon { font-size: 32px; margin-bottom: 12px; }
.value-card h4 { color: var(--primary); font-size: 16px; margin-bottom: 8px; }
.value-card p { color: var(--text-muted); font-size: 14px; }
.founder-section { background: var(--surface); }
.founder-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; align-items: center; }
.founder-img {
    width: 100%; max-width: 280px; aspect-ratio: 1;
    border-radius: 50%; object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 16px 48px rgba(45,156,219,0.2);
}
.founder-img-wrap { display: flex; justify-content: center; }
.founder-name { font-size: 36px; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.founder-role { font-size: 18px; color: var(--accent); font-weight: 500; margin-bottom: 24px; }
.founder-bio-text { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }
.skills-wrap { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Contact ─────────────────────────────────────── */
.contact-hero { background: linear-gradient(160deg, var(--primary) 0%, #0d2540 100%); color: #fff; padding: 80px 0; }
.contact-hero h1 { color: #fff; margin-bottom: 16px; }
.contact-hero p { color: rgba(255,255,255,0.75); font-size: 18px; }
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: start; }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 48px; box-shadow: 0 4px 24px rgba(0,0,0,0.05); }
.form-group { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
label { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 8px; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select {
    width: 100%; padding: 13px 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-family: var(--font); font-size: 14px; color: var(--text);
    background: var(--bg); outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(45,156,219,0.15);
}
textarea { resize: vertical; min-height: 120px; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-card { background: var(--surface); border-radius: var(--radius-lg); padding: 28px; }
.info-card h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.info-item { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 14px; color: var(--text); }
.info-icon { width: 36px; height: 36px; background: var(--accent-dim); color: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
#form-success { display: none; text-align: center; padding: 48px 0; }
#form-success .success-icon { font-size: 64px; }
#form-success h3 { color: var(--primary); font-size: 28px; margin: 16px 0 8px; }
#form-success p { color: var(--text-muted); }

/* ── Services page ──────────────────────────────── */
.services-hero { background: linear-gradient(160deg, var(--primary) 0%, #0d2540 100%); color: #fff; padding: 96px 0; }
.services-hero h1 { color: #fff; margin-bottom: 16px; }
.services-hero p { color: rgba(255,255,255,0.75); font-size: 18px; max-width: 580px; }
.detailed-service { padding: 80px 0; }
.detailed-service:nth-child(even) { background: var(--surface); }
.detailed-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.detailed-layout.reverse { direction: rtl; }
.detailed-layout.reverse > * { direction: ltr; }
.detail-label { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.detail-number { font-size: 100px; font-weight: 900; color: var(--border); line-height: 0.8; margin-bottom: 24px; }
.detail-features { margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-feature {
    background: var(--accent-dim); border-radius: 8px;
    padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--accent);
    display: flex; align-items: center; gap: 8px;
}
.detail-feature::before { content: '→'; font-weight: 700; }
.compare-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.compare-table table { width: 100%; border-collapse: collapse; }
.compare-table th { background: var(--primary); color: #fff; padding: 18px 24px; text-align: left; font-size: 14px; font-weight: 600; }
.compare-table th:first-child { background: var(--primary); }
.compare-table th.featured { background: var(--accent); }
.compare-table td { padding: 14px 24px; border-bottom: 1px solid var(--border); font-size: 14px; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--surface); }
.check-yes { color: var(--accent); font-size: 18px; }
.check-no { color: #e53e3e; font-size: 18px; }

/* ── CTA Banner ──────────────────────────────────── */
.cta-band { background: var(--primary); padding: 80px 0; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.7); font-size: 18px; margin-bottom: 40px; }

/* ── Animations ──────────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(32px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: none; }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }
.fade-up:nth-child(5) { transition-delay: 0.4s; }

/* Hamburger becomes X when menu is open */
.hamburger.menu-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.menu-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.menu-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Shimmer for section labels on hover */
.section-label { cursor: default; }

/* card entrance enhancement */
.card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(10,26,47,0.12); border-color: var(--accent); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
    .grid-3, .services-grid, .products-grid, .pricing-grid { grid-template-columns: 1fr 1fr; }
    .grid-4, .values-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .hero p, .hero-actions { max-width: 100%; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero h1 { max-width: 600px; margin: 0 auto 24px; }
    .detailed-layout { grid-template-columns: 1fr; gap: 40px; }
    .detailed-layout.reverse { direction: ltr; }
    .contact-layout { grid-template-columns: 1fr; }
    .founder-layout { grid-template-columns: 1fr; text-align: center; }
    .skills-wrap { justify-content: center; }
    .mission-vision { grid-template-columns: 1fr; }
    .nav-inner { gap: 12px; }
    nav ul { gap: 2px; }
    nav a { padding: 8px 8px; font-size: 13px; }
    .desktop-lang-toggle { margin-left: 4px; gap: 4px; }
    .nav-cta { padding: 8px 14px; font-size: 13px; }
    .logo-name { font-size: 20px; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }
    section { padding: 64px 0; }
    .container { padding: 0 20px; }
    h1 { letter-spacing: -0.5px; }
    nav, .nav-cta, .desktop-lang-toggle, .nav-login-btn { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: none; }
    .mobile-menu.open { display: block; }
    .grid-2, .grid-3, .services-grid, .products-grid, .pricing-grid, .rent-own-grid { grid-template-columns: 1fr; }
    .grid-4, .values-grid { grid-template-columns: 1fr 1fr; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .hero { padding: 64px 0; min-height: auto; }
    .detail-features { grid-template-columns: 1fr; }
    .compare-table { overflow-x: auto; }
    .about-hero .btn { width: 100%; justify-content: center; }
    .contact-layout { gap: 32px; }
    .contact-form { padding: 28px; }
}

@media (max-width: 480px) {
    .grid-4, .values-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { text-align: center; justify-content: center; }
}

/* ── Interactive UI Utilities ───────────────────── */
.clickable-row {
    cursor: pointer;
    transition: background var(--transition), transform 0.1s ease;
    user-select: none;
    position: relative;
}
.clickable-row:hover {
    background: #f8fafc;
}
.clickable-row:active {
    transform: scale(0.985);
    background: #f1f5f9;
}
.clickable-row::after {
    content: '›';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-muted);
    opacity: 0.4;
    transition: opacity 0.2s, transform 0.2s;
}
.clickable-row:hover::after {
    opacity: 0.8;
    transform: translateY(-50%) translateX(4px);
}

.touch-target {
    min-height: 44px;
    display: flex;
    align-items: center;
}

@media (max-width: 600px) {
    /* Ensure clickable rows have space for the chevron */
    .clickable-row { padding-right: 32px !important; }
}


/* ─── Premium Tasks UI ─── */
.task-item {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px; 
  display: flex; gap: 14px; align-items: flex-start;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.task-item:last-child { margin-bottom: 0; }
.task-item:hover {
  transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10,26,47,0.08); border-color: var(--accent);
}

/* Priority line indicators */
.task-item::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px;
  background: #e2e8f0; /* Default */
}
.task-item.priority-high::after { background: #ef4444; }
.task-item.priority-medium::after { background: #f59e0b; }
.task-item.priority-low::after { background: #10b981; }

.task-checkbox {
  margin-top: 4px; transform: scale(1.4); cursor: pointer; accent-color: var(--accent);
  transition: transform 0.2s;
}
.task-checkbox:hover { transform: scale(1.6); }

.task-content { flex: 1; min-width: 0; padding-left: 4px; }
.task-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; gap: 12px; }
.task-title {
  font-size: 16px; font-weight: 750; color: #0f172a; margin: 0; transition: color 0.25s;
  overflow-wrap: anywhere; line-height: 1.3;
}
.task-item.is-completed .task-title {
  text-decoration: line-through; color: #94a3b8; font-weight: 500;
}
.task-item.is-completed { opacity: 0.75; background: #f9fafb; border-style: dashed; }

.task-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.task-badge {
  font-size: 10px; font-weight: 850; padding: 4px 12px; border-radius: 999px; 
  text-transform: uppercase; letter-spacing: 0.6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.task-badge.pending { background: #f1f5f9; color: #475569; }
.task-badge.in_progress { background: #fffbeb; color: #b45309; }
.task-badge.completed { background: #f0fdf4; color: #166534; }

.task-desc {
  font-size: 13.5px; color: #475569; margin-bottom: 14px; white-space: pre-wrap; 
  overflow-wrap: anywhere; line-height: 1.6; font-weight: 450;
}
.task-meta {
  font-size: 12px; color: #64748b; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px solid #f1f5f9;
}
.task-meta-item { display: flex; align-items: center; gap: 6px; font-weight: 550; }
.task-delete-btn {
  background: #fee2e2; color: #dc2626; border: none; width: 28px; height: 28px; 
  border-radius: 8px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.task-delete-btn:hover { background: #ef4444; color: #fff; transform: rotate(90deg); }

.staff-tag {
  font-size: 10px; font-weight: 700; background: #eff6ff; color: #1e40af; 
  padding: 2px 8px; border-radius: 6px; border: 1px solid #dbeafe;
}

/* Mini Progress Bar for Widgets */
.progress-container { margin-bottom: 8px; }
.progress-bar-mini { height: 6px; background: rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.1); }
.progress-bar-mini .fill { 
  height: 100%; width: 0; background: #fff; border-radius: 10px; 
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}
.progress-label-wrap { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 4px; }

.btn-add-task {
  width: 100%; padding: 14px; background: #ffffff; border: 2px dashed var(--accent); 
  border-radius: 12px; color: var(--accent); font-weight: 800; font-size: 14px; 
  cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px;
}
.btn-add-task:hover { background: var(--accent-dim); transform: scale(1.02); }

/* ── Dashboard Mobile Improvements ──────────────────── */

/* Smaller shell padding on mobile */
@media (max-width: 768px) {
  .dash-shell { padding: 24px 12px 60px !important; }
  .dash-container { max-width: 100%; }

  /* Detail grid: stack columns on mobile */
  .detail-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Project hero: compact on mobile */
  .proj-hero { padding: 24px 20px !important; border-radius: 16px !important; flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
  .proj-hero h1 { font-size: 20px !important; }
  .hero-actions { width: 100%; }
  .btn-hero { width: 100% !important; justify-content: center !important; font-size: 13px !important; padding: 9px 14px !important; }

  /* Cards: smaller padding */
  .card { padding: 16px !important; border-radius: 14px !important; }
  .card-header { padding: 12px 0 12px !important; }
  .card-header h3 { font-size: 14px !important; }
  .card-body { padding: 8px 0 0 !important; }

  /* KPI cards: 2-col grid, smaller */
  .kpi-strip { grid-template-columns: 1fr 1fr !important; gap: 10px !important; margin-bottom: 20px !important; }
  .kpi { padding: 14px 16px !important; border-radius: 12px !important; }
  .kpi .kpi-icon { font-size: 20px !important; margin-bottom: 6px !important; }
  .kpi .kpi-num { font-size: 26px !important; }
  .kpi .kpi-label { font-size: 10px !important; }

  /* Panels (index dashboards) */
  .panel { padding: 20px !important; border-radius: 14px !important; }
  .panel h3 { font-size: 14px !important; margin-bottom: 14px !important; }
  .main-grid, .main-grid-3 { gap: 14px !important; }

  /* Files table: horizontally scrollable */
  .files-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .files-table th, .files-table td { font-size: 12px !important; padding: 8px 6px !important; }
  .file-name-text { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Folder nav (breadcrumbs): wrap naturally */
  .folder-nav { flex-wrap: wrap; font-size: 12px !important; gap: 4px !important; margin-bottom: 12px !important; }

  /* Drop zone: compact */
  .drop-zone { padding: 18px 12px !important; font-size: 13px !important; border-radius: 10px !important; }
  .drop-zone p { font-size: 13px !important; margin-bottom: 4px !important; }

  /* Upload progress */
  .upload-progress { font-size: 12px !important; padding: 8px 10px !important; }

  /* Info rows */
  .info-row { flex-direction: column; align-items: flex-start !important; gap: 3px; }
  .info-value { text-align: left !important; max-width: 100% !important; }

  /* Member items: compact */
  .member-item { gap: 8px !important; padding: 8px 0 !important; }
  .member-avatar { width: 30px !important; height: 30px !important; font-size: 12px !important; }
  .member-name { font-size: 13px !important; }
  .member-email { font-size: 11px !important; }
  .btn-remove-member { width: 26px !important; height: 26px !important; font-size: 11px !important; }
  .r-badge { font-size: 9px !important; padding: 2px 7px !important; }

  /* Modals: full-width comfortable */
  .modal { padding: 24px 20px !important; border-radius: 16px !important; max-width: 100% !important; }
  .modal h2 { font-size: 16px !important; margin-bottom: 14px !important; }
  .modal-actions { flex-direction: column !important; gap: 8px !important; }
  .modal-actions .btn-cancel,
  .modal-actions .btn-save { width: 100% !important; text-align: center !important; justify-content: center !important; padding: 12px !important; }

  /* Form groups inside modals: 16px to prevent iOS auto-zoom */
  .form-group input, .form-group select, .form-group textarea { font-size: 16px !important; }

  /* Notes panel */
  #new-note-input { font-size: 16px !important; }
  #btn-post-note { padding: 0 14px !important; font-size: 13px !important; }

  /* Tasks panel */
  #tasks-body > div { padding: 10px !important; }

  /* Buttons in card headers */
  .btn-create-folder, .btn-add-action { font-size: 11px !important; padding: 5px 10px !important; }

  /* Back link */
  .back-link { font-size: 13px !important; margin-bottom: 16px !important; display: block; }

  /* Msg bar */
  .msg-bar { font-size: 12px !important; padding: 8px 12px !important; }

  /* Dash hero (owner/admin index) */
  .dash-hero { padding: 28px 24px !important; border-radius: 16px !important; }
  .hero-left h1 { font-size: 20px !important; }
  .hero-left p { font-size: 13px !important; }
  .badge-owner { font-size: 11px !important; padding: 6px 14px !important; }
}

@media (max-width: 480px) {
  .dash-shell { padding: 14px 10px 48px !important; }

  /* Proj hero even more compact */
  .proj-hero h1 { font-size: 17px !important; }

  /* Action grid on dashboards: 2 columns */
  .action-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .action-btn { padding: 12px 8px !important; font-size: 12px !important; }
  .action-btn .ab-icon { font-size: 18px !important; margin-bottom: 4px !important; }

  /* Hide "Uploaded By" and "Date" columns to fit file name */
  .files-table th:nth-child(2), .files-table td:nth-child(2),
  .files-table th:nth-child(3), .files-table td:nth-child(3) { display: none; }

  /* Member name overflow */
  .member-info { min-width: 0; flex: 1; overflow: hidden; }
  .member-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
