.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  min-width: 0;
}

.site-header-wrap {
  position: sticky;
  top: 12px;
  z-index: var(--z-nav);
  padding-inline: 24px;
  margin-bottom: 12px;
}

body.page-home .site-header-wrap {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  margin-bottom: 0;
}

body.page-home main {
  padding-top: 0;
}

.site-navbar {
  max-width: var(--container-max);
  margin-inline: auto;
  min-height: var(--nav-height);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: var(--radius-lg);
  background: rgba(28, 28, 28, 0.78);
  backdrop-filter: blur(13px) saturate(145%);
  -webkit-backdrop-filter: blur(13px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-floating);
  color: var(--ink-inverse);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: rgba(247, 247, 247, 0.65);
  background: transparent;
  transition: color 300ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  background: transparent;
  color: #ffffff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-user-role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4dbd90;
}

.nav-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1c1c1c;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-icon-btn:hover {
  background: #2b2b2b;
}

.notif-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #1c1c1c;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.nav-auth-btn:hover {
  background: #2b2b2b;
}

.nav-auth-btn--accent {
  background: var(--accent-brand);
  border-color: transparent;
}

.nav-auth-btn--accent:hover {
  background: var(--accent-hover);
}

.nav-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #1c1c1c;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-nav-drawer {
  max-width: var(--container-max);
  margin: 8px auto 0;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(13px) saturate(145%);
  -webkit-backdrop-filter: blur(13px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-floating);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-drawer[hidden] {
  display: none !important;
}

.mobile-nav-links,
.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-links a,
.mobile-nav-actions a,
.mobile-nav-actions button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 14px;
  border-radius: 10px;
}

.mobile-nav-links .nav-link {
  color: rgba(247, 247, 247, 0.65);
  background: transparent;
  transition: color 300ms ease;
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.is-active {
  color: #ffffff;
  background: transparent;
}

.hero-section {
  width: 100%;
  height: 100vh;
  min-height: 620px;
  padding: 0;
  margin: 0;
}

.hero-stage,
.hero-stage-card {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  background-color: #050505;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

#hero-3d-canvas,
.hero-bg-canvas,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  cursor: default;
  touch-action: pan-y;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.16) 0%, rgba(5, 5, 5, 0) 42%, rgba(5, 5, 5, 0.88) 100%),
    linear-gradient(75deg, rgba(5, 5, 5, 0.72) 0%, rgba(5, 5, 5, 0.25) 45%, rgba(5, 5, 5, 0) 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: 40px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  pointer-events: none;
}

.hero-inner > * {
  pointer-events: auto;
}

.hero-copy {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero-copy h1,
.hero-copy-left h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.hero-cta-capsule {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 18px;
  border-radius: var(--radius-pill);
  background: rgba(28, 28, 28, 0.82);
  backdrop-filter: blur(13px);
  -webkit-backdrop-filter: blur(13px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  flex-shrink: 0;
}

.hero-cta-price {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  color: #ffffff;
  white-space: nowrap;
}

.hero-cta-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--accent-brand);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease;
}

.hero-cta-buy-btn:hover {
  background: var(--accent-hover);
}

.parking-dark-section {
  background: #050505;
  color: #ffffff;
  padding-block: 44px;
  margin-block: 16px;
  scroll-margin-top: 86px;
}

.parking-dark-section h2,
.parking-dark-section h3 {
  color: #ffffff;
}

.parking-dark-section .section-sub {
  color: #d1d5db;
}

.parking-dark-section .badge-success {
  background: transparent;
  color: #4dbd90;
}

.parking-dark-section .badge-warning {
  background: transparent;
  color: #fbbf24;
}

.parking-dark-section .badge-danger {
  background: transparent;
  color: #f87171;
}

.parking-dark-section .badge-info {
  background: transparent;
  color: #60a5fa;
}

.parking-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.dark-card {
  background: #1c1c1c;
  border: none;
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  color: #ffffff;
}

.dark-stat-label {
  font-size: 0.8rem;
  color: #d1d5db;
  display: block;
  margin-bottom: 4px;
}

.dark-stat-val {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.55rem;
  color: #ffffff;
}

.parking-stage-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(260px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.parking-canvas-card {
  background: #1c1c1c;
  border: none;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.parking-3d-only {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.parking-canvas-desktop {
  width: 100%;
  height: 100%;
  min-height: 480px;
  flex: 1;
  display: block;
  cursor: grab;
}

.parking-canvas-desktop:active {
  cursor: grabbing;
}

.parking-legend-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(20, 22, 27, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  font-size: 0.76rem;
  pointer-events: none;
}

.parking-legend-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

.legend-dot-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  line-height: 1;
  font-weight: 600;
  color: #f3f4f6;
  white-space: nowrap;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  display: block;
}

.legend-dot--selected {
  background: #2563eb;
  box-shadow: 0 0 0 2px #ffffff inset;
}

.parking-legend-hint {
  font-size: 0.74rem;
  color: #9ca3af;
  line-height: 1;
  white-space: nowrap;
}

.parking-2d-panel {
  display: none;
  padding: 14px;
  background: #1c1c1c;
  flex: 1;
}

.parking-2d-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 12px;
}

.parking-2d-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 0.76rem;
}

.parking-2d-blueprint {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.bay-2d-slot {
  background: #121212;
  border: none;
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  cursor: pointer;
  color: #ffffff;
  min-height: 76px;
  transition: background-color 140ms ease;
}

.bay-2d-slot:hover,
.bay-2d-slot.is-selected {
  border: none;
  background: #2b2b2b;
}

.bay-2d-slot--empty {
  border: none;
  background: rgba(77, 189, 144, 0.14);
}

.bay-2d-code {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: #d1d5db;
}

.bay-2d-plate {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  color: #ffffff;
}

.parking-detail-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.parking-car-detail-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.parking-car-detail-media {
  min-width: 0;
}

.parking-car-detail-img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.parking-car-detail-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.parking-car-detail-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
}

.parking-car-detail-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: #d1d5db;
}

.page-section {
  padding-block: 30px;
  scroll-margin-top: 86px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
}

.section-sub {
  margin-top: 6px;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  max-width: 68ch;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fleet-grid,
.car-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ops-shell {
  padding-top: 12px;
  padding-bottom: 48px;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ops-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ops-sidebar-title {
  padding: 4px 10px 10px;
  margin-bottom: 4px;
}

.ops-sidebar-title strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.96rem;
}

.ops-sidebar-title span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.ops-nav-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ink-secondary);
  font-weight: 600;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
}

.ops-nav-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ops-nav-btn:hover {
  background: var(--bg-canvas);
  color: var(--ink-primary);
}

.ops-nav-btn.is-active {
  background: #1c1c1c;
  color: #ffffff;
}

.ops-nav-btn .ops-nav-count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  flex-shrink: 0;
  justify-content: center;
}

.ops-nav-btn.is-active .ops-nav-count {
  background: #ffffff;
  color: #000000;
}

.ops-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-main {
  min-height: calc(100vh - 280px);
  padding: 32px 20px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-canvas);
}

.auth-shell {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.site-footer {
  margin-top: 36px;
  background: #050505;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: 44px 28px;
}

.site-footer .brand-logo-img {
  height: 36px;
  width: auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: start;
}

.footer-desc {
  margin-top: 14px;
  color: #d1d5db;
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 48ch;
}

.footer-socials {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.social-pill:hover {
  background: #2b2b2b;
  border-color: #e72b3b;
}

.footer-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.footer-dark-card {
  background: #1c1c1c;
  border: none;
  border-radius: var(--radius-lg);
  padding: 20px;
}

.footer-dark-card h3 {
  color: #ffffff;
  font-size: 0.96rem;
  margin-bottom: 12px;
}

.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.84rem;
  color: #d1d5db;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: #9ca3af;
}

@media (max-width: 1240px) {
  .fleet-grid,
  .car-grid,
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .site-navbar,
  .mobile-nav-drawer {
    background: #1c1c1c;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-links,
  .nav-right .nav-auth-btn,
  .nav-right .nav-user-pill {
    display: none;
  }
  .nav-hamburger {
    display: inline-flex;
  }
  .hero-copy h1,
  .hero-copy-left h1 {
    font-size: clamp(2.2rem, 5.8vw, 3.15rem);
    line-height: 1.12;
  }
  .grid-4,
  .fleet-grid,
  .car-grid,
  .testimonial-grid,
  .parking-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .parking-stage-shell {
    grid-template-columns: 1fr;
  }
  .parking-3d-only {
    display: none !important;
  }
  .parking-2d-panel {
    display: block;
  }
  .ops-shell {
    grid-template-columns: 1fr;
  }
  .ops-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px;
  }
  .ops-sidebar-title {
    width: 100%;
  }
  .ops-nav-btn {
    width: auto;
  }
  .footer-top-grid,
  .footer-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .parking-car-detail-body {
    display: grid;
    grid-template-columns: minmax(200px, 0.92fr) minmax(0, 1.08fr);
    gap: 18px;
    align-items: center;
  }
  .parking-car-detail-img {
    height: 176px;
  }
}

@media (max-width: 768px) {
  .fleet-grid,
  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .container,
  .site-header-wrap {
    padding-inline: 14px;
    max-width: 100%;
  }
  .site-navbar {
    padding: 10px 12px;
  }
  .hero-section,
  .hero-stage,
  .hero-stage-card {
    min-height: 620px;
    height: 100vh;
    border-radius: 0;
  }
  .hero-inner {
    padding: 24px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .hero-cta-capsule {
    width: 100%;
    justify-content: space-between;
  }
  .parking-2d-blueprint {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .testimonial-grid,
  .parking-stats-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-copy h1,
  .hero-copy-left h1 {
    font-size: clamp(1.95rem, 7.2vw, 2.45rem);
    line-height: 1.12;
  }
}
