/* Clarity Comparable Mapping Software — Landing Page */

:root {
  --blue-900: #0a2540;
  --blue-800: #123456;
  --blue-700: #1a4a7a;
  --blue-600: #2563a8;
  --blue-500: #3b82d6;
  --blue-100: #e8f1fb;
  --blue-50: #f4f8fd;
  --green-600: #2d8a4e;
  --green-500: #34a853;
  --orange-500: #e07b2e;
  --gray-900: #1a1f2e;
  --gray-700: #4a5568;
  --gray-500: #718096;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 37, 64, 0.12);
  --shadow-lg: 0 12px 40px rgba(10, 37, 64, 0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--gray-200);
}

.btn-secondary:hover {
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.btn-light {
  background: var(--white);
  color: var(--blue-800);
}

.btn-light:hover {
  background: var(--blue-50);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
}

.logo {
  height: 36px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a:not(.btn) {
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}

.header-nav a:not(.btn):hover {
  color: var(--blue-600);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  color: var(--white);
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-100);
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-text {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero .btn-primary {
  background: var(--orange-500);
}

.hero .btn-primary:hover {
  background: #c96a24;
}

/* Map card (hero visual) */
.map-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  color: var(--gray-900);
}

.map-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1rem;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.map-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-700);
}

.map-view-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--white);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.view-btn {
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--gray-500);
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.view-btn.active {
  background: var(--blue-600);
  color: var(--white);
}

.map-preview {
  aspect-ratio: 4 / 3;
  position: relative;
}

.map-surface,
.demo-map {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
}

.aerial-view {
  background: linear-gradient(145deg, #3d6b4f 0%, #2d5238 30%, #4a7a55 60%, #3a6348 100%);
}

.road-view {
  background: linear-gradient(180deg, #dce8f5 0%, #c8d8ea 40%, #e8edf2 100%);
}

.road-view .map-grid {
  background-image:
    linear-gradient(rgba(100, 120, 140, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 120, 140, 0.15) 1px, transparent 1px);
}

.road-view::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(35deg, transparent 48%, rgba(80, 90, 100, 0.4) 49%, rgba(80, 90, 100, 0.4) 51%, transparent 52%),
    linear-gradient(-25deg, transparent 48%, rgba(80, 90, 100, 0.35) 49%, rgba(80, 90, 100, 0.35) 51%, transparent 52%),
    linear-gradient(70deg, transparent 48%, rgba(80, 90, 100, 0.3) 49%, rgba(80, 90, 100, 0.3) 51%, transparent 52%);
  pointer-events: none;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  z-index: 2;
}

.map-pin .pin-label {
  transform: rotate(45deg);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
}

.map-pin.subject {
  background: var(--orange-500);
  width: 34px;
  height: 34px;
  z-index: 3;
}

.map-pin.comp {
  background: var(--blue-600);
}

.map-pin.active-pin {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8), 0 4px 12px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.15);
}

.map-legend {
  display: flex;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: var(--gray-700);
  border-top: 1px solid var(--gray-200);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot.subject {
  background: var(--orange-500);
}

.legend-dot.comp {
  background: var(--blue-600);
}

/* Section headers */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--blue-900);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1.05rem;
}

/* Features */
.features {
  padding: 5rem 0;
  background: var(--blue-50);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-100);
  color: var(--blue-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-900);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.55;
}

/* Demo section */
.demo {
  padding: 5rem 0;
}

.demo-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2rem;
  align-items: start;
}

.parcel-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.parcel-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.parcel-card:hover {
  border-color: var(--blue-500);
}

.parcel-card.active {
  border-color: var(--blue-600);
  box-shadow: var(--shadow-md);
  background: var(--blue-50);
}

.parcel-card.subject-card.active {
  border-color: var(--orange-500);
  background: #fef6f0;
}

.parcel-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue-600);
  margin-bottom: 0.35rem;
}

.subject-card .parcel-type {
  color: var(--orange-500);
}

.parcel-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.25rem;
}

.parcel-id {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.85rem;
  color: var(--blue-700);
  font-weight: 600;
}

.parcel-city {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
}

.demo-map-panel {
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.demo-map-header {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.demo-map-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-900);
}

.demo-map-header p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.25rem;
}

.demo-map-frame {
  aspect-ratio: 16 / 10;
  padding: 1rem;
}

.demo-map-frame .demo-map {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.demo-note {
  padding: 0.875rem 1.5rem;
  font-size: 0.8rem;
  color: var(--gray-500);
  text-align: center;
}

/* Integration */
.integration {
  padding: 4rem 0;
  background: var(--blue-900);
  color: var(--white);
}

.integration-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.integration h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.integration-content p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.integration-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.integration-list li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(255, 255, 255, 0.9);
}

.integration-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
}

.integration-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange-500);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

/* CTA */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--white);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-inner a {
  color: rgba(255, 255, 255, 0.9);
  transition: color var(--transition);
}

.footer-inner a:hover {
  color: var(--white);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav open state */
.site-header.nav-open .header-nav {
  display: flex;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid,
  .demo-layout,
  .integration-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .integration-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    gap: 0.75rem;
  }

  .site-header {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 2.5rem 0 3rem;
  }

  .features,
  .demo,
  .cta {
    padding: 3.5rem 0;
  }

  .integration-stats {
    grid-template-columns: 1fr;
  }

  .parcel-list {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }
}
