:root {
  --bg: #ffffff;
  --ink: #0d1117;
  --muted: #6b7280;
  --brand: #2F6FEB;
  --brand-dark: #1a4fbf;
  --brand-soft: #eff4ff;
  --surface: #f8faff;
  --border: #e5eaf5;
  --radius: 16px;
  --maxw: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: hidden;
}
a { color: var(--brand-dark); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

header.site {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(255,255,255,.88); border-bottom: 1px solid rgba(229,234,245,.8);
}
header.site .inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
}
header.site .logo { font-weight: 800; font-size: 19px; color: var(--brand); letter-spacing: -0.03em; }
header.site nav a { margin-left: 24px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
header.site nav a:hover { color: var(--ink); }
.nav-cta {
  margin-left: 24px !important; background: var(--brand); color: #fff !important;
  padding: 8px 18px; border-radius: 999px; font-weight: 600 !important;
  text-decoration: none; transition: opacity .15s;
}
.nav-cta:hover { opacity: .88; }

.hero {
  background: linear-gradient(135deg, #0a1628 0%, #0d1f4a 40%, #1b3d7c 75%, #2F6FEB 100%);
  position: relative; overflow: hidden; padding: 88px 0 108px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
	radial-gradient(ellipse 55% 60% at 90% 25%, rgba(100,160,255,.2) 0%, transparent 65%),
	radial-gradient(ellipse 35% 50% at 5% 75%, rgba(47,111,235,.28) 0%, transparent 60%);
}
.hero-grid {
  position: relative; display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 5px 14px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.9); margin-bottom: 24px;
  animation: fadeInUp .6s ease both;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 58px); line-height: 1.06;
  letter-spacing: -0.04em; font-weight: 800; color: #fff;
  margin-bottom: 20px; animation: fadeInUp .6s .1s ease both;
}
.hero h1 em { font-style: normal; color: #7eb8ff; }
.hero-p {
  font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.78);
  max-width: 480px; margin-bottom: 38px; line-height: 1.6;
  animation: fadeInUp .6s .2s ease both;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: fadeInUp .6s .3s ease both; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand-dark);
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  transition: transform .15s, box-shadow .15s;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,0,0,.35); color: var(--brand-dark); }
.btn-hero-sec {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.3);
  padding: 14px 28px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 16px;
  transition: background .15s, transform .15s;
}
.btn-hero-sec:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); color: #fff; }

.hero-visual { display: flex; justify-content: center; align-items: center; animation: fadeInUp .7s .35s ease both; }
.phone-wrap { position: relative; }
.phone {
  width: 210px; height: 420px;
  background: linear-gradient(160deg, #1c2340, #0e1320);
  border-radius: 36px;
  border: 5px solid rgba(255,255,255,.1);
  box-shadow: 0 60px 100px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05);
  position: relative; overflow: hidden;
  animation: phoneFloat 4s ease-in-out infinite;
  transform: rotate(-2deg);
}
.phone::before {
  content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 20px; background: #070c18; border-radius: 10px; z-index: 2;
}
.phone-status {
  padding: 38px 14px 6px; display: flex; justify-content: space-between;
  font-size: 9px; color: rgba(255,255,255,.45); font-weight: 600;
}
.phone-header {
  background: linear-gradient(135deg, #2F6FEB, #1a4fbf);
  margin: 0 8px; border-radius: 12px; padding: 10px 12px 12px;
}
.phone-header-title { color: #fff; font-size: 12px; font-weight: 700; }
.phone-header-sub { color: rgba(255,255,255,.65); font-size: 9px; margin-top: 1px; }
.phone-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.phone-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px; padding: 8px 10px; display: flex; gap: 8px; align-items: center;
}
.phone-card-ico {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.ico-blue { background: linear-gradient(135deg, #2F6FEB, #1a4fbf); }
.ico-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
.ico-orange { background: linear-gradient(135deg, #f97316, #ea580c); }
.ico-purple { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.phone-card-label { color: rgba(255,255,255,.82); font-size: 9px; font-weight: 600; line-height: 1.3; }
.phone-card-sub { color: rgba(255,255,255,.38); font-size: 8px; margin-top: 1px; }
.phone-tabs {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(14,19,32,.95); border-top: 1px solid rgba(255,255,255,.06);
  display: flex; justify-content: space-around; align-items: center;
  padding: 10px 0 16px;
}
.tab-dot { width: 20px; height: 3px; border-radius: 2px; }
.tab-dot.on { background: #2F6FEB; }
.tab-dot.off { background: rgba(255,255,255,.18); }

.float-pill {
  position: absolute; white-space: nowrap;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px; padding: 8px 14px;
  font-size: 12px; font-weight: 600; color: #1a2a4a;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.pill-1 { top: 30px; left: -100px; animation: pillFloat1 4s .5s ease-in-out infinite; }
.pill-2 { top: 150px; right: -110px; animation: pillFloat2 4s 1s ease-in-out infinite; }
.pill-3 { bottom: 90px; left: -85px; animation: pillFloat1 4s 1.5s ease-in-out infinite; }

.stats-bar { background: var(--ink); padding: 28px 0; }
.stats-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 20px;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 30px; font-weight: 800; color: #7eb8ff; letter-spacing: -0.04em; line-height: 1; }
.stat span { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 4px; display: block; }

.features-section { padding: 88px 0; }
.section-eyebrow {
  display: inline-block; background: var(--brand-soft); color: var(--brand-dark);
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; line-height: 1.1; }
.section-sub { color: var(--muted); font-size: 17px; margin-bottom: 52px; max-width: 520px; line-height: 1.6; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.feat-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 22px; padding: 28px;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.feat-card::after {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(47,111,235,.04), transparent 60%);
  transition: opacity .3s;
}
.feat-card:hover { box-shadow: 0 20px 56px rgba(47,111,235,.13); transform: translateY(-5px); border-color: rgba(47,111,235,.25); }
.feat-card:hover::after { opacity: 1; }
.feat-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(47,111,235,.28);
}
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.feat-badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; background: var(--brand-soft); color: var(--brand);
  border: 1px solid rgba(47,111,235,.2); border-radius: 999px;
  padding: 2px 8px; vertical-align: middle; margin-left: 6px;
}

.live-section { background: linear-gradient(140deg, #08111f, #0d1f4a, #1a3a7a); padding: 72px 0; }
.live-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 40px;
}
.live-eyebrow { background: rgba(126,184,255,.15); color: #7eb8ff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; display: inline-block; margin-bottom: 16px; }
.live-title { font-size: clamp(26px, 3.5vw, 36px); font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 14px; }
.live-desc { color: rgba(255,255,255,.65); font-size: 16px; max-width: 440px; line-height: 1.6; }
.commune-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 22px; padding: 24px 32px; backdrop-filter: blur(12px); min-width: 220px;
}
.dot-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.green-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 10px #4ade80; }
.live-tag { font-size: 11px; font-weight: 700; color: #4ade80; text-transform: uppercase; letter-spacing: .06em; }
.commune-name { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.commune-detail { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 5px; }

.mairie-section { padding: 88px 0; }
.mairie-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start;
}
.mairie-list { list-style: none; margin-top: 24px; }
.mairie-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 16px; line-height: 1.4;
}
.mairie-list li:last-child { border-bottom: none; }
.check-ico {
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff; font-size: 11px; font-weight: 800; margin-top: 1px;
  box-shadow: 0 4px 12px rgba(47,111,235,.3);
}
.mairie-cta-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 24px; padding: 36px;
}
.mairie-cta-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.mairie-cta-card p { color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; padding: 15px 30px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 28px rgba(47,111,235,.38);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(47,111,235,.48); color: #fff; }

.download-section { padding: 88px 0; text-align: center; background: var(--surface); }
.trust-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.trust-pill { background: var(--bg); color: var(--muted); border: 1.5px solid var(--border); border-radius: 999px; padding: 7px 18px; font-size: 14px; font-weight: 500; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff;
  padding: 16px 28px; border-radius: 18px; text-decoration: none;
  box-shadow: 0 4px 24px rgba(0,0,0,.22);
  transition: transform .15s, box-shadow .15s;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,.3); color: #fff; }
.store-btn svg { width: 30px; height: 30px; fill: #fff; flex-shrink: 0; }
.store-btn .label { text-align: left; }
.store-btn .label small { display: block; font-size: 11px; color: rgba(255,255,255,.6); line-height: 1; margin-bottom: 3px; }
.store-btn .label strong { font-size: 18px; font-weight: 700; line-height: 1.2; }
.store-btn.coming { background: var(--bg); box-shadow: none; border: 1.5px solid var(--border); }
.store-btn.coming:hover { transform: none; box-shadow: none; }
.store-btn.coming svg { fill: var(--muted); }
.store-btn.coming .label small, .store-btn.coming .label strong { color: var(--muted); }

footer.site { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 13px; }
footer.site .inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; margin-right: 16px; transition: color .15s; }
footer.site a:hover { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes phoneFloat {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-14px); }
}
@keyframes pillFloat1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes pillFloat2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

.legal-page { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-page h1 { font-size: 30px; letter-spacing: -0.02em; margin-bottom: 8px; }
.legal-page .meta { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal-page h2 { font-size: 20px; margin-top: 36px; margin-bottom: 8px; }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .mairie-inner { grid-template-columns: 1fr; gap: 40px; }
  header.site nav { display: none; }
  .hero { padding: 64px 0 84px; overflow: hidden; }
  .live-inner { flex-direction: column; gap: 24px; }
  .commune-card { width: 100%; }
  .features-section { padding: 56px 0; }
  .mairie-section { padding: 56px 0; }
  .download-section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero-grid { padding: 0 16px; }
  .stats-inner { padding: 0 16px; flex-direction: column; align-items: center; gap: 20px; }
  .live-inner { padding: 0 16px; }
  .mairie-inner { padding: 0 16px; }
  header.site .inner { padding: 14px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-hero, .btn-hero-sec { width: 100%; justify-content: center; box-sizing: border-box; }
  .section-sub { margin-bottom: 32px; }
  .mairie-cta-card { padding: 24px; }
  footer.site .inner { padding: 0 16px; flex-direction: column; gap: 16px; text-align: center; }
  footer.site a { margin-right: 10px; }
}
@media (max-width: 480px) {
  .store-buttons { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
  .trust-pills { flex-direction: column; align-items: center; }
  .stats-inner { gap: 20px; }
  .stat strong { font-size: 24px; }
}