/* Public home page — ginspire.app */

html {
  scroll-behavior: smooth;
}
body.home {
  background: #fff;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--s-6);
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-nav.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px -6px rgba(16, 24, 40, 0.12);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--s-6);
}
.nav-brand {
  color: inherit;
}
.nav-links {
  display: flex;
  gap: var(--s-8);
}
.nav-links a {
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s var(--ease);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  display: flex;
  gap: var(--s-2);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 112px 0 104px;
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(56rem 28rem at 50% -8%, rgba(99, 102, 241, 0.2), transparent 62%),
    radial-gradient(30rem 20rem at 12% 30%, rgba(14, 42, 92, 0.07), transparent 70%),
    radial-gradient(30rem 20rem at 88% 40%, rgba(124, 44, 191, 0.07), transparent 70%);
}
.hero-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 10%, transparent 65%);
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--s-8);
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.hero-title {
  max-width: 17ch;
  font-size: clamp(40px, 6.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}
.grad {
  background: linear-gradient(100deg, #6366f1 0%, var(--accent) 40%, #7c2cbf 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 60ch;
  margin-top: var(--s-6);
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
  margin-top: var(--s-10);
}
.hero-foot {
  margin-top: var(--s-10);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--s-24) 0;
  scroll-margin-top: 68px;
}
.section-tint {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 680px;
  margin-bottom: var(--s-12);
}
.section-head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
}
.section-head-row > div {
  max-width: 680px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
.section h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.section-sub {
  margin-top: var(--s-4);
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

/* ---------- Brands ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: var(--s-10);
  border-radius: 24px;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(28rem 18rem at 100% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
}
.brand-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 48px -20px rgba(16, 24, 40, 0.35);
}
.brand-indigo {
  background: linear-gradient(150deg, #5b54f0 0%, var(--accent) 38%, #312a9c 100%);
}
.brand-navy {
  background: linear-gradient(150deg, #1d3f7d 0%, var(--navy) 45%, #081a3c 100%);
}
.brand-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brand-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.brand-line {
  margin-top: var(--s-8);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  max-width: 22ch;
}
.brand-body {
  margin-top: var(--s-3);
  font-size: 15.5px;
  line-height: 1.6;
  opacity: 0.82;
  max-width: 44ch;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: var(--s-6) 0 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  font-weight: 500;
}
.brand-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: var(--s-8);
  font-weight: 600;
  font-size: 15px;
}

/* ---------- Pillars ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.pillar {
  padding: var(--s-8) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.pillar-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-50);
  color: var(--accent);
  margin-bottom: var(--s-5);
}
.pillar h3 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: var(--s-2);
}
.pillar p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- Live map ---------- */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  animation: live 2s infinite;
}
@keyframes live {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}
.map-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--s-6);
  padding: var(--s-6);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.map-panel-empty {
  display: block;
  padding: var(--s-16) var(--s-6);
  text-align: center;
  color: var(--muted);
}
.map-canvas {
  position: relative;
  min-width: 0;
  padding: var(--s-4) var(--s-4) var(--s-10);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), #fff);
  border: 1px solid var(--line);
}
#home-map {
  width: 100%;
  min-height: 200px;
}
.map-legend {
  position: absolute;
  left: var(--s-5);
  bottom: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  font-size: 12.5px;
  color: var(--muted);
}
.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lg {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px var(--line);
}
.lg-transit {
  background: #3730a3;
}
.lg-delivered {
  background: var(--success);
}
.lg-state {
  border-radius: 3px;
  background: #b4befd;
}
.map-side {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.map-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--s-4) var(--s-5);
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.map-stat-value {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.map-stat-label {
  font-size: 12.5px;
  color: var(--muted);
}
.map-states {
  padding: var(--s-4) var(--s-5);
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.map-states-title {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.map-states ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.map-states li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  border-top: 1px solid var(--line);
}
.map-states li:first-child {
  border-top: 0;
}
.map-states li span:last-child {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Doors ---------- */
.door-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.door {
  display: flex;
  flex-direction: column;
  padding: var(--s-8) var(--s-6) var(--s-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.door:hover {
  border-color: var(--accent-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.door-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  margin-bottom: var(--s-5);
}
.door-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.door-body {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.door-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--s-6);
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
}
.door-cta svg {
  transition: transform 0.15s var(--ease);
}
.door:hover .door-cta svg {
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
.site-foot {
  padding: var(--s-16) 0 var(--s-8);
  background: #fff;
}
.foot-inner {
  display: flex;
  justify-content: space-between;
  gap: var(--s-8);
  flex-wrap: wrap;
}
.foot-brand p {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: 14px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  align-items: center;
}
.foot-links a {
  color: var(--muted);
  font-size: 14px;
}
.foot-links a:hover {
  color: var(--ink);
}
.foot-legal {
  margin-top: var(--s-10);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .pillar-grid,
  .door-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .container {
    padding: 0 var(--s-5);
  }
  .nav-links,
  .nav-cta .btn-ghost {
    display: none;
  }
  .hero {
    padding: 72px 0 72px;
  }
  .section {
    padding: var(--s-16) 0;
  }
  .brand-grid {
    grid-template-columns: 1fr;
  }
  .brand-card {
    min-height: 0;
    padding: var(--s-8);
  }
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .map-panel {
    grid-template-columns: 1fr;
    padding: var(--s-4);
    border-radius: 18px;
  }
  .map-canvas {
    padding: var(--s-2) var(--s-2) var(--s-12);
  }
}
@media (max-width: 520px) {
  .pillar-grid,
  .door-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    width: 100%;
  }
}
