/* ═══════════════════════════════════════════════
   duflair — Landing Page Styles
   ═══════════════════════════════════════════════ */

/* ─── Tokens ─── */
:root {
  --color-bg: #000000;
  --color-bg-alt: #0a0a0a;
  --color-surface: rgb(23, 23, 23);
  --color-surface-hover: rgba(255, 255, 255, 0.02);
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.10);
  --color-border-active: rgba(255, 255, 255, 0.20);
  --color-text: #ffffff;
  --color-text-secondary: #a3a3a3;
  --color-text-muted: #737373;
  --color-text-dim: #525252;
  --color-success: #34d399;
  --color-error: #f87171;

  --font-body: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --section-gap: 120px;
  --container-max: 1280px;
  --container-px: 48px;

  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 150ms;
  --duration-normal: 200ms;
  --duration-slow: 300ms;

  --glass-radius: 16px;
}

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

html.lenis, html.lenis body {
  height: auto;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: #e5e5e5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  cursor: none;
}

/* ─── Film Grain Overlay ─── */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── Cursor Follower ─── */
.cursor-follower {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              border-color 0.3s var(--ease-out),
              background 0.3s var(--ease-out);
  mix-blend-mode: difference;
}

.cursor-follower.hover {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

.cursor-follower.clicking {
  width: 14px;
  height: 14px;
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  body { cursor: auto; }
  .cursor-follower { display: none; }
}

/* ─── Background Map ─── */
#bg-map {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
  filter: grayscale(1) invert(1);
}

#bg-map .leaflet-control-container,
#bg-map .leaflet-control-attribution {
  display: none !important;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.15); }

::selection { background: rgba(255, 255, 255, 0.15); color: white; }

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

.mono { font-family: var(--font-mono); }

img { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

/* ─── Logo ─── */
.logo-text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: white;
  font-family: var(--font-body);
}

.logo-ai {
  -webkit-text-fill-color: black;
  -webkit-text-stroke: 1px white;
  background: none;
  paint-order: stroke fill;
}

/* ─── Glass Card ─── */
.glass-card {
  background: rgba(23, 23, 23, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--glass-radius);
  padding: 20px;
  transition: border-color var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out),
              background var(--duration-slow) var(--ease-out),
              box-shadow var(--duration-slow) var(--ease-out);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(255, 255, 255, 0.06),
              0 0 0 1px rgba(255, 255, 255, 0.08);
}

.glass-card.selected {
  border-color: var(--color-border-active);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── Confidence Badge ─── */
.confidence-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confidence-badge.high   { background: white; color: black; }
.confidence-badge.medium { background: rgba(255, 255, 255, 0.20); color: white; }
.confidence-badge.low    { background: rgba(255, 255, 255, 0.10); color: #a3a3a3; }
.confidence-badge.none   { background: rgba(255, 255, 255, 0.05); color: #737373; }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: white;
  color: black;
  font-weight: 600;
  font-size: 13px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast), background var(--duration-normal);
  font-family: var(--font-body);
}

.btn-primary:hover { transform: scale(1.02); }
.btn-primary:active { transform: scale(0.96); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 13px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: color var(--duration-normal), border-color var(--duration-normal);
  font-family: var(--font-body);
}

.btn-secondary:hover {
  color: white;
  border-color: var(--color-border-hover);
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 56px;
}

.nav-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

.nav-logo, .nav-right {
  position: relative;
  z-index: 1;
}

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

.nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px);
  border-radius: 9999px;
  border: 1px solid var(--color-border);
}

.nav-badge .flag { font-size: 13px; line-height: 1; }
.nav-badge span:last-child {
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Language toggle */
.lang-toggle {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(40px);
  border-radius: 9999px;
  border: 1px solid var(--color-border);
  overflow: hidden;
}

.lang-btn {
  position: relative;
  z-index: 1;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--duration-normal);
  font-family: var(--font-body);
}

.lang-btn:hover { color: var(--color-text-secondary); }
.lang-btn.active { color: black; }

.lang-pill {
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 2px);
  height: calc(100% - 4px);
  background: white;
  border-radius: 9999px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.lang-pill.en {
  transform: translateX(100%);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
#hero {
  padding-top: 140px;
  padding-bottom: var(--section-gap);
}

.hero-text {
  text-align: left;
  max-width: 680px;
  margin-bottom: 56px;
}

/* ─── Hero Logo (big) ─── */
.hero-logo {
  margin-bottom: 28px;
  display: inline-block;
}

.hero-logo-text {
  font-family: var(--font-body);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: white;
  position: relative;
  display: inline-block;
  cursor: default;
}

.hero-logo-text .logo-ai {
  font-size: inherit;
  -webkit-text-fill-color: black;
  -webkit-text-stroke: 1.5px white;
  background: none;
  paint-order: stroke fill;
}

/* ── Glitch hover ── */
.hero-logo-text::before,
.hero-logo-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  overflow: hidden;
  color: white;
  opacity: 0;
  pointer-events: none;
  /* hide the "ai" span styling inside pseudo-elements */
  -webkit-text-fill-color: white;
}

.hero-logo-text::before {
  text-shadow: -2px 0 #ff00ff;
  clip-path: inset(0 0 65% 0);
}

.hero-logo-text::after {
  text-shadow: 2px 0 #00ffff;
  clip-path: inset(60% 0 0 0);
}

.hero-logo-text:hover::before {
  opacity: 1;
  animation: glitch-top 0.4s steps(2, end) infinite;
}

.hero-logo-text:hover::after {
  opacity: 1;
  animation: glitch-bottom 0.4s steps(2, end) infinite;
}

.hero-logo-text:hover {
  animation: glitch-skew 0.4s steps(2, end) infinite;
}

@keyframes glitch-top {
  0%   { clip-path: inset(0 0 65% 0); transform: translate(-3px, -2px); }
  25%  { clip-path: inset(10% 0 55% 0); transform: translate(3px, 1px); }
  50%  { clip-path: inset(5% 0 60% 0); transform: translate(-2px, 2px); }
  75%  { clip-path: inset(15% 0 50% 0); transform: translate(2px, -1px); }
  100% { clip-path: inset(0 0 65% 0); transform: translate(-3px, -2px); }
}

@keyframes glitch-bottom {
  0%   { clip-path: inset(60% 0 0 0); transform: translate(3px, 2px); }
  25%  { clip-path: inset(55% 0 0 0); transform: translate(-2px, -1px); }
  50%  { clip-path: inset(65% 0 0 0); transform: translate(2px, -2px); }
  75%  { clip-path: inset(50% 0 0 0); transform: translate(-3px, 1px); }
  100% { clip-path: inset(60% 0 0 0); transform: translate(3px, 2px); }
}

@keyframes glitch-skew {
  0%   { transform: skewX(0deg); }
  25%  { transform: skewX(-1deg); }
  50%  { transform: skewX(0.5deg); }
  75%  { transform: skewX(-0.5deg); }
  100% { transform: skewX(0deg); }
}

#hero h1 {
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}

/* ─── Word-by-word reveal ─── */
#hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

#hero h1.words-visible .word {
  opacity: 1;
  transform: translateY(0);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── Hero Video ─── */
.hero-video {
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  animation: video-glow-pulse 4s ease-in-out infinite;
}

@keyframes video-glow-pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 255, 255, 0.04), 0 0 60px rgba(255, 255, 255, 0.02); }
  50%      { box-shadow: 0 0 40px rgba(255, 255, 255, 0.08), 0 0 80px rgba(255, 255, 255, 0.04); }
}

.hero-video:hover {
  transform: none;
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}


/* ═══════════════════════════════════════════════
   SHARED IMAGE STYLES
   ═══════════════════════════════════════════════ */

.usecase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
}

.usecase-card:hover .usecase-img img {
  transform: scale(1.05);
}

.img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   KEY FIGURES
   ═══════════════════════════════════════════════ */
#figures {
  position: relative;
  padding-bottom: var(--section-gap);
  overflow: hidden;
}

.figures-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.figures-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.figure-card {
  text-align: center;
  padding: 32px 16px;
  overflow: hidden;
}

.figure-value {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 1) 30%,
    rgba(200, 220, 255, 1) 50%,
    rgba(255, 255, 255, 1) 70%,
    rgba(255, 255, 255, 0.6) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: figure-shimmer 3s ease-in-out infinite;
}

@keyframes figure-shimmer {
  0%   { background-position: 100% 50%; }
  50%  { background-position: -100% 50%; }
  100% { background-position: 100% 50%; }
}

.figure-label {
  font-size: 12px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.figure-sub {
  font-size: 10px;
  color: var(--color-text-dim);
  margin-top: 2px;
  font-style: italic;
}

/* ═══════════════════════════════════════════════
   USE CASES
   ═══════════════════════════════════════════════ */
#usecases {
  padding-bottom: var(--section-gap);
}

.usecases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.usecase-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.usecase-img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.usecase-body {
  padding: 20px;
}

.usecase-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.usecase-card p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   SOVEREIGNTY / ON-PREMISE
   ═══════════════════════════════════════════════ */
#sovereignty {
  padding-bottom: var(--section-gap);
}

.sovereignty-layout {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--glass-radius);
  padding: 56px;
}

.sovereignty-layout:hover {
  border-color: var(--color-border-hover);
}

.sovereignty-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.sovereignty-badge span:first-child {
  font-size: 13px;
  line-height: 1;
}

.sovereignty-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.sovereignty-content > p {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 600px;
}

.sovereignty-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sovereignty-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.sovereignty-feature svg {
  color: var(--color-success);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
#contact {
  padding-bottom: var(--section-gap);
}

.contact-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.contact-card:hover { transform: none; }

.contact-icon {
  color: white;
  margin: 0 auto 16px;
}

.contact-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.contact-subtitle {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-size: 13px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.08);
  outline: none;
  transition: border-color var(--duration-normal);
  font-family: var(--font-body);
}

.contact-form textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(255, 255, 255, 0.20);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-dim);
}

/* Success/error states */
.contact-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
}

.contact-msg svg { color: var(--color-success); }

.contact-msg p {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-success);
}

.contact-msg .sub {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 400;
}

.contact-error {
  font-size: 12px;
  color: var(--color-error);
  margin-top: 12px;
}

/* Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: black;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
#footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  text-align: center;
}

.footer-logo { margin-bottom: 8px; }

.footer-tagline {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 11px;
  color: var(--color-text-dim);
}

.footer-credit {
  font-size: 11px;
  color: var(--color-text-dim);
  margin-top: 8px;
}

.footer-credit a {
  color: var(--color-text-muted);
  transition: color var(--duration-normal);
}

.footer-credit a:hover {
  color: white;
}

/* ═══════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════ */
.marquee {
  overflow: hidden;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--section-gap);
}

.marquee-track {
  display: flex;
  gap: 24px;
  white-space: nowrap;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}

.marquee-item {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.marquee-sep {
  color: var(--color-text-dim);
  font-size: 13px;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════ */
#how-it-works {
  padding-bottom: var(--section-gap);
}

.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step {
  flex: 1;
  padding: 32px 28px;
  text-align: left;
}

.step:hover {
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
  line-height: 1;
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}

.step p {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
   MAP SHOWCASE
   ═══════════════════════════════════════════════ */
#map-showcase {
  padding-bottom: var(--section-gap);
}

.map-showcase-header {
  margin-bottom: 32px;
}

.map-showcase-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-soon {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.map-showcase-header p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.map-showcase-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.map-showcase-map {
  padding: 0;
  overflow: hidden;
  border-radius: var(--glass-radius);
}

#showcase-map {
  width: 100%;
  height: 420px;
  filter: grayscale(1) invert(1);
  opacity: 0.85;
}

#showcase-map .leaflet-control-container,
#showcase-map .leaflet-control-attribution {
  display: none !important;
}

/* City progress rows */
.map-showcase-cities {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.city-row {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.city-row:hover {
  transform: translateY(-2px);
}

.city-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.city-name {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.city-percent {
  font-size: 13px;
  color: var(--color-text-muted);
}

.city-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.city-bar-fill {
  height: 100%;
  width: 0;
  background: white;
  border-radius: 9999px;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-status {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.city-status--live {
  color: var(--color-success);
}

.city-status--next {
  color: var(--color-text-dim);
}

/* Custom map pins */
.map-pin {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  border: none;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6),
              0 0 24px rgba(255, 255, 255, 0.3);
  animation: pin-appear 0.5s var(--ease-spring) forwards;
}

.map-pin--ghost {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.map-pin--ghost::after {
  display: none;
}

@keyframes pin-appear {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Pin pulse ring */
.map-pin::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: pin-pulse 2s ease-out infinite;
}

@keyframes pin-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

/* Scroll-triggered entrance */
[data-animate] {
  opacity: 0;
  will-change: transform, opacity;
}

[data-animate="fadeUp"] {
  transform: translateY(20px);
}

[data-animate="scaleIn"] {
  transform: scale(0.8);
}

[data-animate="stagger"] {
  transform: translateY(8px);
}

/* Visible states */
[data-animate="fadeUp"].visible {
  animation: fadeUp 0.6s var(--ease-out) forwards;
}

[data-animate="scaleIn"].visible {
  animation: scaleIn 0.4s var(--ease-spring) forwards;
}

.hero-logo[data-animate="scaleIn"] {
  transform: scale(0.6);
  filter: blur(12px);
}

.hero-logo[data-animate="scaleIn"].visible {
  animation: heroLogoIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes heroLogoIn {
  0%   { opacity: 0; transform: scale(0.6); filter: blur(12px); }
  60%  { opacity: 1; transform: scale(1.04); filter: blur(0px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0px); }
}

[data-animate="stagger"].visible {
  animation: fadeUp 0.3s var(--ease-out) forwards;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* Mobile */
@media (max-width: 767px) {
  :root {
    --section-gap: 64px;
    --container-px: 16px;
  }

  .nav-badge { display: none; }

  #hero { padding-top: 88px; }

  .hero-text {
    text-align: center;
    max-width: none;
    margin-bottom: 32px;
  }

  #hero h1 { font-size: 1.75rem; }

  .hero-subtitle {
    font-size: 15px;
    max-width: none;
    margin: 0 auto 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; }

  .steps-row {
    flex-direction: column;
    gap: 12px;
  }

  .step-connector {
    display: none;
  }

  .figures-grid { grid-template-columns: repeat(2, 1fr); }

  .usecases-grid { grid-template-columns: 1fr; }

  .map-showcase-header h2 {
    flex-wrap: wrap;
    justify-content: center;
  }

  .map-showcase-header { text-align: center; }

  .map-showcase-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #showcase-map { height: 260px; }

  .sovereignty-layout { padding: 28px 20px; }

  .sovereignty-features {
    grid-template-columns: 1fr;
  }

  .contact-card { padding: 24px; }

  .contact-form button {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --container-px: 32px;
  }

  .hero-text {
    text-align: center;
    max-width: none;
  }

  .hero-subtitle {
    max-width: none;
    margin: 0 auto 24px;
  }

  .hero-actions { justify-content: center; }

  .figures-grid { grid-template-columns: repeat(2, 1fr); }

  .map-showcase-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #showcase-map { height: 320px; }
}
