/* ═══════════════════════════════════════════════
   LidsAI Design System
   Font: Heebo | Palette: Violet + Lavender
   ═══════════════════════════════════════════════ */

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

:root {
  /* Backgrounds */
  --bg: #f4f6ff;
  --bg2: #eceffe;
  --bg3: #e6eafc;
  --white: #ffffff;

  /* Brand */
  --primary: #1350a8;
  --primary-dim: rgba(19,80,168,0.1);
  --primary-glow: rgba(19,80,168,0.3);
  --secondary: #04a8fe;
  --secondary-dim: rgba(168,85,247,0.1);
  --green: #00ABFF;
  --green-dim: rgba(0,171,255,0.1);

  /* Text */
  --text: #050515;
  --text-muted: rgba(5,5,21,0.6);
  --text-sub: rgba(5,5,21,0.38);

  /* Borders & Shadows */
  --border: rgba(5,5,21,0.1);
  --border-hover: rgba(19,80,168,0.4);
  --shadow-sm: 0 2px 16px rgba(5,5,21,0.06);
  --shadow-md: 0 4px 24px rgba(5,5,21,0.08);
  --shadow-lg: 0 20px 60px rgba(19,80,168,0.15);

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-pill: 100px;

  /* Layout */
  --container: 1200px;
  --px: clamp(20px, 5vw, 80px);
  --section-py: clamp(60px, 8vw, 120px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', 'Heebo', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

[dir="rtl"] { direction: rtl; text-align: right; }
[dir="ltr"] { direction: ltr; text-align: left; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--px);
  width: 100%;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { line-height: 1.15; letter-spacing: -0.02em; }

.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-sub { color: var(--text-sub); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Poppins', 'Heebo', sans-serif;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(19,80,168,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(19,80,168,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  border: 2px solid rgba(19,80,168,0.3);
}
.btn-outline:hover {
  background: var(--primary-dim);
  border-color: var(--primary);
}

/* ── Cards ── */
.card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* ── Section Labels ── */
.section-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* ── Grid background ── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19,80,168,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,80,168,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* ── Glow effect ── */
.glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--primary-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.3;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px var(--primary-glow); }
  50% { box-shadow: 0 0 60px var(--primary-glow), 0 0 120px rgba(19,80,168,0.15); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  background: rgba(244,246,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  transition: all 0.3s ease;
}
.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  display: flex;
  background: rgba(19,80,168,0.06);
  border: 1px solid rgba(19,80,168,0.15);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
}
.lang-btn {
  padding: 6px 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  border: none;
  background: none;
  font-family: 'Poppins', 'Heebo', sans-serif;
  font-weight: 600;
  font-size: 13px;
}
.lang-btn.active {
  background: var(--primary);
  color: #fff;
}

/* Mobile nav */
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-mobile-btn svg { stroke: var(--text); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0; bottom: 0;
  background: rgba(244,246,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

/* ── Footer ── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 60px var(--px) 32px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand img { height: 32px; filter: brightness(10); margin-bottom: 16px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ── Form styles ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', 'Heebo', sans-serif;
  font-size: 15px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(19,80,168,0.1);
}
.form-input::placeholder { color: var(--text-sub); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
