/* ============================================================
   CityFix Marketing Site - "Warm Civic Editorial"
   Palette: terracotta / warm cream / ink (unchanged)
   Display: Heebo Black · Body: Heebo
   ============================================================ */

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

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg: #FAF8F5;
  --color-bg-alt: #F3EDE7;
  --color-bg-dark: #1A1714;
  --color-primary: #C06B4E;
  --color-primary-light: #D4845A;
  --color-primary-dark: #A85A3F;
  --color-primary-glow: rgba(192, 107, 78, 0.15);
  --color-text: #2D2520;
  --color-text-light: #6B5E55;
  --color-text-muted: #9B8E84;
  --color-white: #FFFFFF;
  --color-border: #E8DED5;
  --color-success: #4CAF50;
  --color-info: #5B9BD5;
  --color-warning: #F4A940;

  /* Typography */
  --font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3.25rem;
  --font-size-6xl: 4rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows - warm-tinted, layered */
  --shadow-sm: 0 1px 3px rgba(45, 37, 32, 0.06);
  --shadow-md: 0 2px 6px rgba(45, 37, 32, 0.05), 0 8px 20px rgba(45, 37, 32, 0.07);
  --shadow-lg: 0 4px 10px rgba(45, 37, 32, 0.06), 0 16px 36px rgba(45, 37, 32, 0.1);
  --shadow-xl: 0 8px 16px rgba(45, 37, 32, 0.07), 0 28px 60px rgba(45, 37, 32, 0.14);
  --shadow-glow: 0 0 40px rgba(192, 107, 78, 0.2);

  /* Texture: subtle paper grain (SVG noise) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  direction: rtl;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
}

::selection {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-bg);
  position: relative;
}

.section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.05;
  pointer-events: none;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__header--start {
  text-align: right;
  margin-bottom: var(--space-10);
}

.section__badge {
  display: inline-block;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.02em;
}

.section--dark .section__badge {
  background: rgba(212, 132, 90, 0.18);
  color: var(--color-primary-light);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--font-size-4xl);
  line-height: 1.25;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.section--dark .section__title {
  color: var(--color-white);
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

.section__subtitle--flush {
  margin: 0;
}

.section--dark .section__subtitle {
  color: var(--color-text-muted);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-4) 0;
  transition: background var(--transition-base), box-shadow var(--transition-base), padding var(--transition-base);
}

.navbar.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-3) 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.navbar__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.navbar__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--color-text);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.navbar__link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-light);
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.navbar__link:hover {
  color: var(--color-primary);
}

.navbar__link:hover::after {
  width: 100%;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.navbar__cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-1px);
}

.navbar__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* --- Hero --- */
.hero {
  min-height: min(100vh, 920px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 90px;
  padding-bottom: var(--space-12);
  /* city-map dot grid */
  background-image: radial-gradient(circle, rgba(45, 37, 32, 0.07) 1px, transparent 1.5px);
  background-size: 28px 28px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16);
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-primary-glow);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease both;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--font-size-5xl);
  line-height: 1.2;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__title span {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.hero__description {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-10);
  max-width: 520px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 620px;
  animation: fadeIn 0.9s ease 0.4s both;
}

/* connector: the report travels phone → dashboard */
.hero__connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Phone mockup (citizen) */
.hero__phone-mockup {
  position: absolute;
  top: 0;
  left: 8%;
  width: 260px;
  height: 520px;
  background: var(--color-bg-dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  transform: rotate(3deg);
  z-index: 1;
}

.hero__phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: var(--color-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__phone-header {
  background: var(--color-primary);
  padding: var(--space-6) var(--space-4) var(--space-4);
  color: var(--color-white);
  text-align: center;
}

.hero__phone-header h4 {
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.hero__phone-body {
  flex: 1;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__phone-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  border-right: 3px solid var(--color-primary);
}

.hero__phone-card--hot {
  box-shadow: 0 0 0 2px rgba(192, 107, 78, 0.35);
  animation: pulseCard 3.2s ease-in-out infinite;
}

.hero__phone-card-title {
  font-size: var(--font-size-xs);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.hero__phone-card-meta {
  font-size: 10px;
  color: var(--color-text-muted);
}

.hero__phone-card-status {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: var(--space-1);
}

.hero__phone-card-status--open {
  background: rgba(244, 169, 64, 0.15);
  color: var(--color-warning);
}

.hero__phone-card-status--progress {
  background: rgba(91, 155, 213, 0.15);
  color: var(--color-info);
}

.hero__phone-card-status--resolved {
  background: rgba(76, 175, 80, 0.15);
  color: var(--color-success);
}

.hero__phone-tab-bar {
  display: flex;
  justify-content: space-around;
  padding: var(--space-2) 0;
  border-top: 1px solid var(--color-border);
}

.hero__phone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  color: var(--color-text-muted);
}

.hero__phone-tab--active {
  color: var(--color-primary);
}

.hero__phone-tab svg {
  width: 16px;
  height: 16px;
}

/* Mini dashboard card (city) */
.hero__dash {
  position: absolute;
  bottom: 4%;
  right: 42%;
  width: 300px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-4);
  transform: rotate(-2deg);
  z-index: 3;
}

.hero__dash-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: var(--color-text-light);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-3);
  border-bottom: 1px dashed var(--color-border);
}

.hero__dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.18);
}

.hero__dash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.hero__dash-row--new {
  background: var(--color-primary-glow);
}

.hero__dash-row-title {
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.hero__dash-row-meta {
  font-size: 10px;
  color: var(--color-text-muted);
}

.hero__dash-chip {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-white);
}

.hero__dash-chip--progress {
  background: rgba(91, 155, 213, 0.15);
  color: var(--color-info);
}

/* Floating badge */
.hero__float {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 500;
  animation: float 6s ease-in-out infinite;
  z-index: 4;
}

.hero__float--1 {
  top: 4%;
  right: 58%;
}

.hero__float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
}

.hero__float-icon--green {
  background: rgba(76, 175, 80, 0.12);
}

/* Background blobs */
.hero__bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
}

.hero__bg-shape--1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary-glow);
  top: -10%;
  left: -10%;
}

.hero__bg-shape--2 {
  width: 400px;
  height: 400px;
  background: rgba(212, 132, 90, 0.12);
  bottom: -10%;
  right: -5%;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-family);
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(192, 107, 78, 0.3);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(192, 107, 78, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-full);
  border: 2px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* --- Problem Section --- */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  max-width: 980px;
  margin: 0 auto;
}

.problem__panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
}

/* poster-like slight tilt, straightens on hover */
.problem__panel--citizen {
  transform: rotate(-1deg);
}

.problem__panel--city {
  transform: rotate(1deg);
}

.problem__panel {
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.problem__panel:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.problem__panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.problem__panel-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
}

.problem__panel-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.problem__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.problem__list li {
  position: relative;
  padding-right: var(--space-8);
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.7;
}

.problem__list li::before {
  content: '✗';
  position: absolute;
  right: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(192, 107, 78, 0.12);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}

.problem__bridge {
  max-width: 780px;
  margin: var(--space-12) auto 0;
  background: var(--color-bg-dark);
  color: var(--color-bg);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.problem__bridge::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.06;
  pointer-events: none;
}

.problem__bridge-check {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(192, 107, 78, 0.25);
}

.problem__bridge p {
  font-size: var(--font-size-base);
  line-height: 1.8;
}

.problem__bridge strong {
  color: var(--color-primary-light);
}

/* --- Journey (how it works, two lanes) --- */
.journey__legend {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

.journey__legend-item {
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
}

.journey__legend-item--citizen {
  background: var(--color-primary-glow);
  color: var(--color-primary-dark);
}

.journey__legend-item--city {
  background: rgba(45, 37, 32, 0.08);
  color: var(--color-text);
}

.journey__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  position: relative;
}

/* dotted route behind the stages */
.journey__grid::before {
  content: '';
  position: absolute;
  top: 34px;
  right: 8%;
  left: 8%;
  border-top: 2px dashed rgba(192, 107, 78, 0.35);
  z-index: 0;
}

.journey__stage {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.journey__stage:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.journey__stage-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.journey__stage-number {
  font-weight: 800;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  box-shadow: 0 4px 14px rgba(192, 107, 78, 0.3);
}

.journey__stage-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-xl);
}

.journey__lane {
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  line-height: 1.7;
  color: var(--color-text-light);
}

.journey__lane--citizen {
  background: var(--color-primary-glow);
  margin-bottom: var(--space-3);
  border-right: 3px solid var(--color-primary);
}

.journey__lane--city {
  background: rgba(45, 37, 32, 0.05);
  border-right: 3px solid var(--color-text);
}

/* --- Features Grid (citizens) --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 980px;
  margin: 0 auto;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to left, var(--color-primary), var(--color-primary-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-5);
}

.feature-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-3);
}

.feature-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.8;
}

/* --- Stats band (terracotta) --- */
.stats-band {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, var(--color-primary-light) 100%);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.08;
  pointer-events: none;
}

.pilot {
  text-align: center;
  position: relative;
}

.pilot__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--font-size-3xl);
  color: var(--color-white);
  margin-bottom: var(--space-3);
  text-shadow: 0 2px 12px rgba(45, 37, 32, 0.2);
}

.pilot__text {
  font-size: var(--font-size-lg);
  color: rgba(250, 248, 245, 0.9);
}

.pilot__text a {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pilot__text a:hover {
  color: var(--color-bg-alt);
}

/* --- Municipality Section --- */
.municipality__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-16);
  align-items: center;
  position: relative;
}

.municipality__features {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.municipality__feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.municipality__feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius-md);
  background: rgba(212, 132, 90, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
}

.municipality__feature-title {
  font-size: var(--font-size-base);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--color-white);
}

.municipality__feature-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.municipality__visual {
  position: relative;
}

.municipality__dashboard {
  background: #2A2520;
  border: 1px solid #3D3630;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(-1.5deg);
  transition: transform var(--transition-spring);
}

.municipality__dashboard:hover {
  transform: rotate(0deg);
}

.municipality__dashboard-header {
  background: #332E28;
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid #3D3630;
}

.municipality__dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.municipality__dashboard-dot--red { background: #FF5F57; }
.municipality__dashboard-dot--yellow { background: #FEBC2E; }
.municipality__dashboard-dot--green { background: #28C840; }

.municipality__dashboard-body {
  padding: var(--space-6);
}

.municipality__dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.municipality__mini-stat {
  text-align: center;
  padding: var(--space-3);
  background: #332E28;
  border-radius: var(--radius-md);
}

.municipality__mini-stat-number {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--font-size-2xl);
  color: var(--color-primary-light);
}

.municipality__mini-stat-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.municipality__dashboard-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  height: 100px;
  padding: var(--space-4) 0 0;
}

.municipality__bar {
  flex: 1;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-primary);
  transform-origin: bottom;
  animation: growBar 1s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}

.municipality__bar--1 { height: 60%; opacity: 0.6; animation-delay: 0.05s; }
.municipality__bar--2 { height: 80%; opacity: 0.7; animation-delay: 0.1s; }
.municipality__bar--3 { height: 45%; opacity: 0.5; animation-delay: 0.15s; }
.municipality__bar--4 { height: 90%; opacity: 0.8; animation-delay: 0.2s; }
.municipality__bar--5 { height: 70%; opacity: 0.65; animation-delay: 0.25s; }
.municipality__bar--6 { height: 55%; opacity: 0.55; animation-delay: 0.3s; }
.municipality__bar--7 { height: 100%; animation-delay: 0.35s; }

/* --- CTA Section --- */
.cta {
  text-align: center;
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(45, 37, 32, 0.06) 1px, transparent 1.5px);
  background-size: 28px 28px;
}

.cta__inner {
  position: relative;
  z-index: 2;
}

.cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
}

.cta__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-10);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.cta__bg {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  filter: blur(100px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-bg);
  padding: var(--space-12) 0 var(--space-6);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(250, 248, 245, 0.1);
  padding-top: var(--space-6);
  gap: var(--space-4);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__logo {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-white);
}

.footer__links {
  display: flex;
  gap: var(--space-6);
}

.footer__links a {
  color: #b0a99e;
  font-size: var(--font-size-sm);
}

.footer__links a:hover {
  color: var(--color-primary-light);
}

.footer__copy {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* CTA "coming soon" state */
.cta__status {
  display: inline-block;
  background: var(--color-primary-glow);
  color: var(--color-primary-dark);
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.store-btn--soon {
  opacity: 0.6;
  pointer-events: none;
  user-select: none;
}

/* --- Store Buttons --- */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-bg-dark);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.store-btn:hover {
  background: #2D2520;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.store-btn__icon {
  width: 28px;
  height: 28px;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.store-btn__label {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 400;
}

.store-btn__store {
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.2;
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulseCard {
  0%, 100% { box-shadow: 0 0 0 2px rgba(192, 107, 78, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(192, 107, 78, 0.15); }
}

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* keep the problem panels' tilt when revealed */
.problem__panel--citizen.animate-on-scroll.visible {
  transform: rotate(-1deg);
}

.problem__panel--city.animate-on-scroll.visible {
  transform: rotate(1deg);
}

.problem__panel--citizen.animate-on-scroll.visible:hover,
.problem__panel--city.animate-on-scroll.visible:hover {
  transform: rotate(0deg) translateY(-4px);
}

.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: var(--font-size-4xl);
  }

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

  .journey__grid::before {
    display: none;
  }

  .hero__dash {
    right: 34%;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }

  .navbar__toggle {
    display: block;
  }

  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--color-white);
    padding: var(--space-4) var(--space-6);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    gap: var(--space-4);
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-10);
  }

  .hero__title {
    font-size: var(--font-size-4xl);
  }

  .hero__description {
    margin: 0 auto var(--space-8);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    height: auto;
    flex-direction: column;
    gap: var(--space-6);
  }

  .hero__connector,
  .hero__float {
    display: none;
  }

  .hero__phone-mockup {
    position: relative;
    top: auto;
    left: auto;
    transform: rotate(0deg);
    width: 240px;
    height: 480px;
  }

  .hero__dash {
    position: relative;
    bottom: auto;
    right: auto;
    transform: rotate(0deg);
    width: 100%;
    max-width: 320px;
  }

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

  .problem__panel--citizen,
  .problem__panel--city {
    transform: rotate(0deg);
  }

  .problem__panel--citizen.animate-on-scroll.visible,
  .problem__panel--city.animate-on-scroll.visible {
    transform: rotate(0deg);
  }

  .problem__bridge {
    flex-direction: column;
    text-align: center;
  }

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

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

  .municipality__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .municipality__dashboard {
    transform: rotate(0deg);
  }

  .section__title {
    font-size: var(--font-size-3xl);
  }

  .cta__title {
    font-size: var(--font-size-3xl);
  }

  .pilot__title {
    font-size: var(--font-size-2xl);
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: var(--font-size-3xl);
  }

  .store-btn {
    width: 100%;
    justify-content: center;
  }
}
