/* ==========================================================================
   FLEET360 — PRODUCT LAUNCH PAGE
   An Aethel Solutions Product (https://aethelsolutions.ie/)
   ========================================================================== */

: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);
  --amber: oklch(76% 0.15 70);

  --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 {
  min-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-x: hidden;
  background-color: var(--paper);
  color: var(--ink);
}

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

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

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

.bloom-peach {
  top: 4rem;
  right: -6rem;
  width: 500px;
  height: 500px;
  background-color: color-mix(in oklab, var(--peach) 40%, transparent);
  filter: blur(110px);
  animation-delay: -4s;
}

.bloom-butter {
  bottom: 8rem;
  left: 10%;
  width: 540px;
  height: 540px;
  background-color: color-mix(in oklab, var(--butter) 50%, transparent);
  filter: blur(130px);
  animation-delay: -8s;
}

.bloom-sage {
  bottom: -6rem;
  right: 5%;
  width: 480px;
  height: 480px;
  background-color: color-mix(in oklab, var(--sage) 35%, transparent);
  filter: blur(120px);
  animation-delay: -12s;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-monogram {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 9999px;
  background-color: var(--card-surface);
  box-shadow: 0 2px 8px -2px rgba(28, 26, 23, 0.12);
  outline: 1px solid var(--hairline);
  color: var(--coral);
}

.brand-icon {
  width: 18px;
  height: 18px;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.brand-parent {
  font-size: 11px;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.15s ease;
}

.brand-parent:hover {
  color: var(--coral);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9999px;
  border: 1px solid var(--hairline);
  background-color: color-mix(in oklab, var(--card-surface) 90%, transparent);
  padding: 0.35rem 0.85rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  backdrop-filter: blur(8px);
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1.5rem 4rem;
  text-align: center;
}

/* 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.28s both;
}

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

/* Eyebrow 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) 85%, transparent);
  padding: 0.4rem 1.1rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--mist);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--coral);
  animation: pulse-soft 3s 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.3);
  }
}

/* Main Typography */
.main-title {
  margin-top: 1.75rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}

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

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

.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

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

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

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

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

.card-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.card-bullet {
  color: var(--hairline);
}

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

.badge-stage {
  border-radius: 9999px;
  background-color: color-mix(in oklab, var(--coral) 12%, transparent);
  color: var(--coral);
  padding: 0.2rem 0.65rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

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

/* Transit / Radar Visual Container */
.transit-box {
  margin-top: 1.35rem;
  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.55rem 0.85rem;
  background-color: color-mix(in oklab, var(--card-surface) 70%, transparent);
}

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

.transit-metrics {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metric-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mist);
}

.metric-green {
  color: var(--sage);
  font-weight: 600;
}

.transit-map-area {
  position: relative;
  height: 180px;
  overflow: hidden;
}

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

.map-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.75;
  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;
}

/* Radar scope overlay */
.radar-scope {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.radar-ring {
  position: absolute;
  border-radius: 9999px;
  border: 1px dashed color-mix(in oklab, var(--coral) 18%, transparent);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring-1 {
  width: 60px;
  height: 60px;
}

.radar-ring-2 {
  width: 130px;
  height: 130px;
}

.radar-ring-3 {
  width: 200px;
  height: 200px;
  border-style: solid;
  border-color: color-mix(in oklab, var(--coral) 12%, transparent);
}

.radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 280deg,
    color-mix(in oklab, var(--coral) 16%, transparent) 360deg
  );
  animation: radar-spin 6s linear infinite;
}

@keyframes radar-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

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

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

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

.node-3 {
  left: 58%;
  top: 67%;
}

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

@keyframes route-walk {
  0% { top: 81%; left: 5%; }
  14.5% { top: 81%; left: 23%; }
  25.5% { top: 44%; left: 23%; }
  45.3% { top: 44%; left: 48%; }
  52.9% { top: 20%; left: 48%; }
  77.6% { top: 20%; left: 80%; }
  90.9% { top: 63%; left: 80%; }
  100% { top: 63%; left: 95%; }
}

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

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

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

.radar-overlay-badge {
  position: absolute;
  bottom: 0.6rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: color-mix(in oklab, var(--card-surface) 88%, transparent);
  border: 1px solid var(--hairline);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.radar-coord {
  font-size: 10px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: var(--ink);
}

.radar-speed {
  font-size: 9px;
  color: var(--sage);
  font-weight: 500;
}

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

.driver-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 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: 700;
}

.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);
}

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

.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: 600;
  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.4rem;
}

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

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

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

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

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

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

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

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

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

/* Features Grid */
.features-grid {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
  }
}

.feature-item {
  background-color: color-mix(in oklab, var(--paper) 60%, transparent);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.85rem;
  text-align: left;
}

.feature-icon {
  width: 22px;
  height: 22px;
  color: var(--coral);
  margin-bottom: 0.45rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.feature-desc {
  font-size: 11px;
  line-height: 1.45;
  color: var(--mist);
}

/* Launch Early Access CTA */
.launch-signup {
  margin-top: 1.5rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, color-mix(in oklab, var(--paper) 85%, transparent), color-mix(in oklab, var(--peach) 15%, transparent));
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

@media (min-width: 600px) {
  .launch-signup {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}

.signup-header {
  flex: 1;
}

.signup-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.signup-desc {
  font-size: 12px;
  color: var(--mist);
  margin-top: 2px;
  line-height: 1.45;
}

.signup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) - 2px);
  border: none;
  background-color: var(--ink);
  color: var(--card-surface);
  padding: 0.55rem 1.15rem;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-start;
  transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

@media (min-width: 600px) {
  .signup-button {
    align-self: center;
  }
}

.signup-button:hover {
  background-color: color-mix(in oklab, var(--coral) 80%, black);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px color-mix(in oklab, var(--coral) 20%, transparent);
}

.signup-button:active {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 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: 1rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
}

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

.footer-left {
  text-align: left;
}

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

.footer-subcopy {
  font-size: 11px;
  color: var(--mist);
  margin-top: 2px;
}

.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.footer-sep {
  font-size: 11px;
  color: var(--hairline);
  user-select: none;
}

.footer-link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

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

.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, color 0.15s ease;
}

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

.footer-link-parent {
  font-size: 12px;
  font-weight: 500;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-link-parent:hover {
  color: var(--coral);
}

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