@font-face {
  font-family: "Hacen Tunisia LT";
  src: local("Hacen Tunisia LT"), local("Hacen Tunisia"), local("Hacen Tunisia Regular");
  font-display: swap;
}

@font-face {
  font-family: "Hacen Tunisia Bold";
  src: local("Hacen Tunisia LT Bold"), local("Hacen Tunisia Bold"), local("HacenTunisiaLT Bold");
  font-display: swap;
}

:root {
  --navy: #0d1b3d;
  --navy-2: #152a5d;
  --gold: #b8943b;
  --gold-soft: #d8bc73;
  --white: #ffffff;
  --bg: #edf2fb;
  --bg-soft: #f8f7f2;
  --text: #172033;
  --muted: #67728a;
  --card: rgba(255,255,255,0.82);
  --card-strong: rgba(255,255,255,0.95);
  --border: rgba(13, 27, 61, 0.1);
  --shadow: 0 22px 60px rgba(13, 27, 61, 0.12);
  --shadow-hover: 0 28px 65px rgba(13, 27, 61, 0.18);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Hacen Tunisia LT", "Hacen Tunisia", system-ui, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(184,148,59,.12), transparent 24%),
    radial-gradient(circle at left 20%, rgba(21,42,93,.08), transparent 26%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 45%, #f5f1e7 100%);
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,27,61,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,27,61,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  pointer-events: none;
  z-index: -1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hidden { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.45);
  box-shadow: 0 10px 30px rgba(13,27,61,0.06);
}
.header-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid rgba(184,148,59,0.22);
  box-shadow: 0 12px 30px rgba(13,27,61,.12);
}
.brand h1 {
  margin: 0;
  font-size: 1.16rem;
  font-family: "Hacen Tunisia Bold", "Hacen Tunisia LT", sans-serif;
  color: var(--navy);
}
.brand p {
  margin: 4px 0 0;
  font-size: .9rem;
  color: var(--muted);
}
.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-link {
  position: relative;
  color: var(--navy);
  font-size: 1rem;
  padding: 11px 14px;
  border-radius: 14px;
  transition: transform .24s ease, background .24s ease, color .24s ease, box-shadow .24s ease;
}
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    linear-gradient(rgba(255,255,255,.1), rgba(255,255,255,.02)),
    linear-gradient(90deg, rgba(184,148,59,.14) 25%, transparent 25%, transparent 50%, rgba(184,148,59,.14) 50%, rgba(184,148,59,.14) 75%, transparent 75%, transparent 100%);
  background-size: auto, 14px 14px;
  opacity: 0;
  transition: opacity .24s ease;
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 16px 30px rgba(13,27,61,.18);
  transform: translateY(-2px);
}
.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}
.header-actions, .hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  border: none;
  cursor: pointer;
  border-radius: 16px;
  padding: 14px 18px;
  font-family: "Hacen Tunisia Bold", "Hacen Tunisia LT", sans-serif;
  font-size: 1rem;
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, color .24s ease, border-color .24s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 32px rgba(13,27,61,.16);
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: var(--white);
}
.btn-outline {
  background: rgba(255,255,255,.7);
  color: var(--navy);
  border: 1px solid rgba(13,27,61,0.12);
}
.btn-outline:hover {
  background: rgba(13,27,61,.06);
}
.btn-full { width: 100%; }

.hero {
  padding: 56px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
}
.hero-copy {
  background:
    linear-gradient(145deg, rgba(13,27,61,.97), rgba(21,42,93,.92)),
    radial-gradient(circle at top left, rgba(184,148,59,.28), transparent 28%);
  color: var(--white);
  border-radius: 34px;
  padding: 44px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-copy::before,
.hero-copy::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-copy::before {
  width: 280px;
  height: 280px;
  inset: -130px auto auto -80px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 72%);
}
.hero-copy::after {
  width: 220px;
  height: 220px;
  inset: auto -70px -70px auto;
  background: radial-gradient(circle, rgba(184,148,59,.28), transparent 72%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #f5e3b6;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
}
.hero-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2.15rem, 4vw, 3.3rem);
  line-height: 1.28;
  font-family: "Hacen Tunisia Bold", "Hacen Tunisia LT", sans-serif;
}
.hero-copy p {
  margin: 0 0 22px;
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.search-card, .feature-box, .card, .placeholder-box, .result-card, .auth-card {
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease, background .26s ease;
}
.search-card:hover, .feature-box:hover, .card:hover, .placeholder-box:hover, .result-card:hover, .auth-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(184,148,59,.28);
}
.search-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(245,247,252,.9));
}
.card-shine {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, rgba(184,148,59,.18), transparent 65%);
  pointer-events: none;
}
.search-card h3,
.section-title,
.feature-box h4,
.result-card h1,
.auth-card h1 {
  font-family: "Hacen Tunisia Bold", "Hacen Tunisia LT", sans-serif;
  color: var(--navy);
}
.search-card p, .muted { color: var(--muted); }
label {
  display: block;
  margin: 12px 0 8px;
  color: var(--navy);
  font-family: "Hacen Tunisia Bold", "Hacen Tunisia LT", sans-serif;
}
input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(13,27,61,0.12);
  border-radius: 16px;
  font-size: 1rem;
  font-family: "Hacen Tunisia LT", sans-serif;
  background: rgba(255,255,255,.95);
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}
input:focus {
  outline: none;
  border-color: rgba(184,148,59,.8);
  box-shadow: 0 0 0 5px rgba(184,148,59,.12);
  transform: translateY(-1px);
}
.section { padding: 34px 0; position: relative; }
.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(21,42,93,.03));
}
.section-title {
  text-align: center;
  margin: 0 0 20px;
  font-size: 2rem;
}
.align-start { text-align: right; }
.section-text {
  font-size: 1.06rem;
  line-height: 1.95;
  color: var(--text);
}
.two-col, .contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.feature-box { padding: 26px; background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,244,232,.88)); }
.feature-box ul { margin: 0; padding-right: 18px; }
.feature-box li { margin-bottom: 10px; }
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  padding: 22px;
  text-align: center;
  color: var(--navy);
  font-family: "Hacen Tunisia Bold", "Hacen Tunisia LT", sans-serif;
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(247,245,238,.88));
}
.card:hover {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(237,242,251,.92));
}
.centered-text { text-align: center; color: var(--muted); }
.placeholder-box {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(244,247,254,.88));
}
.contact-list { display: grid; gap: 10px; color: var(--text); }
.social-box {
  display: grid;
  gap: 14px;
  align-self: start;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--card-strong);
  border: 1px solid rgba(13,27,61,.08);
  box-shadow: var(--shadow);
  transition: transform .24s ease, box-shadow .24s ease, background .24s ease, color .24s ease;
  font-family: "Hacen Tunisia Bold", "Hacen Tunisia LT", sans-serif;
}
.social-btn:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-hover);
}
.social-btn.instagram:hover { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); color: white; }
.social-btn.facebook:hover { background: linear-gradient(135deg, #1877f2, #0d47a1); color: white; }
.social-btn.whatsapp:hover { background: linear-gradient(135deg, #25d366, #128c7e); color: white; }
.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13,27,61,.06);
  flex-shrink: 0;
}
.social-icon svg,
.icon-floating svg { width: 24px; height: 24px; fill: currentColor; }
.site-footer {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  margin-top: 34px;
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}
.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.whatsapp-floating {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 40;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border-radius: 999px;
  box-shadow: 0 18px 30px rgba(0,0,0,.18);
  transition: transform .24s ease, box-shadow .24s ease;
}
.whatsapp-floating:hover {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 22px 36px rgba(0,0,0,.24);
}
.inner-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
}
.themed-page {
  background:
    radial-gradient(circle at top right, rgba(184,148,59,.14), transparent 25%),
    linear-gradient(180deg, #f9fbff 0%, #edf2fb 55%, #f5f0e5 100%);
}
.result-page, .auth-page { width: min(760px, calc(100% - 32px)); }
.result-card, .auth-card { padding: 30px; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.result-grid > div {
  padding: 16px 18px;
  background: rgba(13,27,61,.035);
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.auth-logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  margin: 0 auto 18px;
  box-shadow: 0 15px 28px rgba(13,27,61,.14);
}
.auth-card { text-align: center; }
.auth-card form { text-align: right; }
.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--navy);
  font-family: "Hacen Tunisia Bold", "Hacen Tunisia LT", sans-serif;
}
.footer-note { margin-top: 18px; color: var(--muted); }
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp .7s ease forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .header-wrap,
  .hero-grid,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .main-nav { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1180px); }
  .header-wrap { gap: 14px; }
  .hero-copy, .search-card, .feature-box, .card, .result-card, .auth-card, .placeholder-box { border-radius: 22px; }
  .hero-copy { padding: 28px 22px; }
  .section-title { font-size: 1.7rem; }
  .cards, .result-grid { grid-template-columns: 1fr; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
  .social-btn { padding: 16px 18px; }
}


.download-grid {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 24px;
  align-items: stretch;
}
.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.install-steps ul {
  margin: 0;
}
.install-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
}
.install-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 43, .55);
  backdrop-filter: blur(8px);
}
.install-guide-card {
  position: relative;
  width: min(560px, calc(100% - 24px));
  margin: 8vh auto 0;
  background: rgba(255,255,255,.98);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 28px 70px rgba(13,27,61,.24);
  z-index: 1;
}
.install-guide-card h3 {
  margin-top: 0;
  color: var(--navy);
}
.install-guide-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(13,27,61,.08);
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
}
.install-guide-steps {
  padding-right: 18px;
  color: var(--text);
  line-height: 1.95;
}
@media (max-width: 980px) {
  .download-grid {
    grid-template-columns: 1fr;
  }
}
