/* ============================================================
   LAYOUT.CSS — Nav, Hero, Buttons, Footer
   ============================================================ */

/* ─── NAV ────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7,15,30,0.88);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease;
}
header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav-container {
  max-width: 1240px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}

.logo-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--text-main);
  flex-shrink: 0;
}
.logo-img {
  width: 40px; height: 40px;
  border-radius: 12px; object-fit: cover;
  box-shadow: 0 4px 16px rgba(9,128,214,0.4);
}
.logo-text {
  font-size: 21px; font-weight: 800; letter-spacing: -0.5px;
}
.logo-text span { color: var(--primary-light); }

/* Nav links (desktop) */
.nav-links {
  display: flex; gap: 28px; align-items: center;
  list-style: none; flex: 1; justify-content: center;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-weight: 500; font-size: 15px;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary-light); }

/* Nav right cluster */
.nav-right {
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}

/* Language switcher pill */
.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-color);
  border-radius: 30px; padding: 3px; gap: 2px;
}
.lang-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); font-size: 13px; font-weight: 600;
  padding: 5px 13px; border-radius: 26px;
  transition: all 0.25s ease; font-family: inherit;
  letter-spacing: 0.3px;
}
.lang-btn.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 2px 10px rgba(9,128,214,0.45);
}

/* Download CTA button */
.btn-cta-nav {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff; padding: 10px 20px;
  border-radius: 12px; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(9,128,214,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-cta-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(9,128,214,0.6);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-main); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile full-screen nav overlay */
.mobile-nav {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7,15,30,0.97);
  backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 32px; opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-nav.open {
  display: flex; opacity: 1; pointer-events: all;
}
.mobile-nav a {
  color: var(--text-main); text-decoration: none;
  font-size: 28px; font-weight: 700;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s;
}
.mobile-nav.open a {
  opacity: 1; transform: none;
}
.mobile-nav.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open a:nth-child(2) { transition-delay: 0.10s; }
.mobile-nav.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open a:nth-child(4) { transition-delay: 0.20s; }
.mobile-nav.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open a:nth-child(6) { transition-delay: 0.30s; }
.mobile-nav a:hover { color: var(--primary-light); }
.mobile-nav .mobile-nav-footer {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-top: 12px;
}
.mobile-nav .lang-switcher {
  background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15);
}
.mobile-nav .btn-cta-nav {
  font-size: 16px; padding: 14px 32px;
}
.mobile-close-btn {
  position: fixed; top: 20px; right: 24px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--border-color);
  border-radius: 50%; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-main); font-size: 18px;
  transition: background 0.2s;
}
.mobile-close-btn:hover { background: rgba(255,255,255,0.15); }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  padding: 110px 0 70px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(9,128,214,0.14);
  border: 1px solid rgba(9,128,214,0.4);
  color: var(--primary-light);
  padding: 6px 18px; border-radius: 30px;
  font-size: 13px; font-weight: 700; margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 54px; font-weight: 800; line-height: 1.12;
  letter-spacing: -1.5px; margin-bottom: 24px;
  background: linear-gradient(135deg,#fff 40%,#94a3b8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 19px; color: var(--text-muted);
  margin-bottom: 40px; max-width: 580px;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
}

/* Primary button */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff; padding: 16px 32px;
  border-radius: 14px; font-size: 16px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(9,128,214,0.4);
  transition: all 0.3s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(9,128,214,0.6);
}

/* Secondary button */
.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-color);
  color: #fff; padding: 16px 28px;
  border-radius: 14px; font-size: 16px; font-weight: 600;
  text-decoration: none; transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

/* Hero graphic */
.hero-graphic {
  position: relative;
  animation: floatSlow 6s ease-in-out infinite;
}
.hero-card-preview {
  background: linear-gradient(145deg, rgba(15,33,56,0.96), rgba(8,18,32,0.98));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px; padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
}
.mockup-header {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}
.status-dot {
  width: 10px; height: 10px;
  background: #10b981; border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.mockup-pill {
  background: rgba(6,198,178,0.15);
  color: var(--accent); padding: 4px 12px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}
.module-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.07);
  padding: 8px 14px; border-radius: 10px; font-size: 13px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0; text-align: center;
  color: var(--text-muted); font-size: 14px;
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px; margin-bottom: 14px;
}
.footer-logo {
  font-size: 18px; font-weight: 800; color: var(--text-main);
}
.footer-logo span { color: var(--primary-light); }
.footer-links {
  display: flex; gap: 24px; list-style: none;
}
.footer-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary-light); }
