/* ==========================================================================
   AETHEL SOLUTIONS — SITE UNDER CONSTRUCTION
   Reference: https://aethel-solutions.lovable.app/
   ========================================================================== */

:root {
  --radius: 0.625rem;
  --ink: oklch(21.89% 0.0065 78.18);
  --ink-soft: oklch(33.5% 0.0117 78.15);
  --mist: oklch(51.3% 0.0113 72.56);
  --paper: oklch(95.96% 0.0131 82.4);
  --card-surface: oklch(99.45% 0.0057 84.57);
  --hairline: oklch(89.4% 0.0208 81.78);
  --coral: oklch(65.9% 0.1747 36.23);
  --peach: oklch(79.6% 0.1017 35.87);
  --butter: oklch(88.57% 0.0999 87.88);
  --sage: oklch(69.75% 0.0584 147.28);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
}

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

html, body {
  height: 100%;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Page Layout */
.page-wrapper {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--paper);
  color: var(--ink);
}

/* Ambient Background Mesh Blooms */
.ambient-blooms {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bloom {
  position: absolute;
  border-radius: 9999px;
  will-change: transform;
  animation: bloom-drift 20s ease-in-out infinite;
}

.bloom-coral {
  top: -10rem;
  left: -8rem;
  width: 560px;
  height: 560px;
  background-color: color-mix(in oklab, var(--coral) 45%, transparent);
  filter: blur(120px);
}

.bloom-peach {
  top: 2.5rem;
  right: -10rem;
  width: 520px;
  height: 520px;
  background-color: color-mix(in oklab, var(--peach) 55%, transparent);
  filter: blur(120px);
  animation-delay: -6s;
}

.bloom-butter {
  bottom: -220px;
  left: 33.3333%;
  width: 600px;
  height: 600px;
  background-color: color-mix(in oklab, var(--butter) 55%, transparent);
  filter: blur(130px);
  animation-delay: -11s;
}

.bloom-sage {
  bottom: -160px;
  right: 25%;
  width: 440px;
  height: 440px;
  background-color: color-mix(in oklab, var(--sage) 45%, transparent);
  filter: blur(120px);
  animation-delay: -3s;
}

@keyframes bloom-drift {
  0%, 100% {
    transform: translate(0) scale(1);
  }
  50% {
    transform: translate(26px, -24px) scale(1.06);
  }
}

/* Header */
.header {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 72rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 1.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.brand-monogram {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.status-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist);
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 48rem;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  text-align: center;
}

/* Entrance Animations */
.rise {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.rise-2 {
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.14s both;
}

.rise-3 {
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

@keyframes rise-in {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

/* Pill Tag */
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background-color: color-mix(in oklab, var(--card-surface) 80%, transparent);
  padding: 0.375rem 1rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--coral);
  animation: pulse-soft 3.2s ease-in-out infinite;
}

.pulse-dot-small {
  width: 6px;
  height: 6px;
}

@keyframes pulse-soft {
  0%, 100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

/* Main Typography */
.main-title {
  margin-top: 1.75rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 6.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.title-accent {
  font-style: italic;
  color: var(--coral);
}

.main-subtitle {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 17px;
  line-height: 1.625;
  color: var(--mist);
  text-wrap: pretty;
}

/* Product Card */
.product-card {
  margin-top: 3rem;
  width: 100%;
  max-width: 32rem;
  border-radius: 26px;
  background-color: var(--card-surface);
  padding: 1.25rem;
  text-align: left;
  box-shadow: 0 30px 60px -24px rgba(28, 26, 23, 0.28);
  outline: 1px solid color-mix(in oklab, var(--ink) 5%, transparent);
}

@media (min-width: 640px) {
  .product-card {
    padding: 1.5rem;
  }
}

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

.card-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.card-version {
  font-size: 11px;
  font-weight: 600;
  color: var(--coral);
}

.card-title {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.card-desc {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.625;
  color: var(--mist);
}

/* Transit Map Visual Box */
.transit-box {
  margin-top: 1.25rem;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--hairline);
  background-color: var(--paper);
}

.transit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hairline);
  padding: 0.5rem 0.75rem;
}

.transit-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

.transit-count {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mist);
}

.transit-map-area {
  position: relative;
  height: 150px;
}

@media (min-width: 640px) {
  .transit-map-area {
    height: 168px;
  }
}

.map-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--hairline) 65%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--hairline) 65%, transparent) 1px, transparent 1px);
  background-size: 26px 26px;
}

.map-routes-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.map-node {
  position: absolute;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--mist) 45%, transparent);
}

.node-1 {
  left: 35%;
  top: 31.25%;
}

.node-2 {
  left: 65%;
  top: 12.5%;
}

.node-3 {
  left: 60%;
  top: 68.75%;
}

/* Vehicle Transit Marker with Route Walking Keyframe */
.vehicle-beacon {
  position: absolute;
  transform: translate(-50%, -50%);
  animation: route-walk 26s linear infinite;
  will-change: top, left;
}

@keyframes route-walk {
  0% { top: 82.5%; left: 5%; }
  14.45% { top: 82.5%; left: 24%; }
  25.48% { top: 46.25%; left: 24%; }
  45.25% { top: 46.25%; left: 50%; }
  52.85% { top: 21.25%; left: 50%; }
  77.57% { top: 21.25%; left: 82.5%; }
  90.87% { top: 65%; left: 82.5%; }
  100% { top: 65%; left: 94.5%; }
}

.vehicle-ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--coral) 50%, transparent);
  animation: ping-soft 2.8s ease-out infinite;
}

@keyframes ping-soft {
  0% { opacity: 0.55; transform: scale(0.6); }
  70%, 100% { opacity: 0; transform: scale(2.4); }
}

.vehicle-core {
  position: relative;
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: var(--coral);
  box-shadow: 0 0 0 2px var(--paper);
}

/* Driver / Fleet Status Rows */
.driver-list {
  margin-top: 0.5rem;
  padding: 0 0.25rem;
}

.driver-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--hairline);
}

.driver-row:last-child {
  border-bottom: none;
}

.driver-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  place-items: center;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
}

.avatar-coral {
  background-color: color-mix(in oklab, var(--coral) 12%, transparent);
  color: var(--coral);
}

.avatar-sage {
  background-color: color-mix(in oklab, var(--sage) 18%, transparent);
  color: var(--sage);
}

.driver-info {
  min-width: 0;
  flex: 1;
}

.driver-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.driver-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.driver-time {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--mist);
}

.driver-bottom {
  margin-top: 2px;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.driver-team {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: var(--mist);
}

.status-dot {
  width: 4px;
  height: 4px;
  flex-shrink: 0;
  border-radius: 9999px;
}

.dot-coral {
  background-color: var(--coral);
}

.dot-sage {
  background-color: var(--sage);
}

.driver-status {
  font-size: 11px;
  font-weight: 500;
}

.status-coral {
  color: var(--coral);
}

.status-sage {
  color: var(--sage);
}

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  margin: 0 auto;
  width: 100%;
  max-width: 72rem;
  padding: 0 1.5rem 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.25rem;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-copy {
  font-size: 12px;
  color: var(--mist);
}

.footer-email {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.15s ease;
}

.footer-email:hover {
  text-decoration-color: var(--coral);
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .bloom,
  .rise,
  .rise-2,
  .rise-3,
  .pulse-dot,
  .vehicle-beacon,
  .vehicle-ping {
    animation: none;
  }
}
