/* KargoLanes coming-soon — steel dawn + amber brand (#e5a00d) */

:root {
  --accent: #e5a00d;
  --accent-strong: #c98900;
  --accent-soft: rgba(229, 160, 13, 0.18);
  --ink: #12161c;
  --ink-muted: #4a5563;
  --paper: #edf0f3;
  --steel: #1c2430;
  --steel-mid: #2a3544;
  --font-display: "Syne", ui-sans-serif, system-ui, sans-serif;
  --font-body: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --page-pad: max(1.25rem, env(safe-area-inset-left, 0px));
  --page-pad-right: max(1.25rem, env(safe-area-inset-right, 0px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- Atmosphere (full-bleed visual plane) --- */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: paint;
  background:
    linear-gradient(180deg, #dfe5eb 0%, #c8d0da 42%, #9aa8b8 78%, #6f7f92 100%);
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  will-change: transform, opacity;
}

.glow-a {
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  top: -12%;
  left: 8%;
  background: radial-gradient(circle, rgba(229, 160, 13, 0.45), transparent 68%);
  animation: drift-a 14s ease-in-out infinite alternate;
}

.glow-b {
  width: min(55vw, 560px);
  height: min(55vw, 560px);
  bottom: 8%;
  right: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 70%);
  animation: drift-b 18s ease-in-out infinite alternate;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(28, 36, 48, 0.08) 28%,
      rgba(28, 36, 48, 0.55) 72%,
      rgba(18, 22, 28, 0.88) 100%
    );
}

.route-map {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.9;
}

.lane-path {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  animation: draw-lane 2.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

.lane-node {
  fill: var(--accent);
  opacity: 0;
  transform-origin: center;
  animation: node-in 0.6s ease 1.6s forwards;
}

.node-b {
  animation-delay: 1.85s;
}

.node-c {
  animation-delay: 2.1s;
  animation-name: node-pulse-in;
}

@keyframes draw-lane {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-in {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes node-pulse-in {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  60% {
    opacity: 1;
    transform: scale(1.15);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(4%, 6%) scale(1.05);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-4%, -4%);
  }
}

/* --- Stage content --- */

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: min(52rem, 100%);
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding:
    max(1.5rem, env(safe-area-inset-top, 0px))
    var(--page-pad-right)
    5.5rem
    var(--page-pad);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-mid);
  opacity: 0;
  animation: rise 0.8s ease 0.15s forwards;
}

.brand {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  /* One word always — size scales down so it fits the viewport */
  font-size: clamp(1.85rem, 9vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
  color: var(--ink);
  opacity: 0;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.28s forwards;
}

.brand-lanes {
  color: var(--accent-strong);
}

.headline {
  margin: 1.35rem 0 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--steel);
  opacity: 0;
  animation: rise 0.85s ease 0.48s forwards;
}

.lede {
  margin: 1rem 0 0;
  max-width: min(28rem, 100%);
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-muted);
  overflow-wrap: break-word;
  opacity: 0;
  animation: rise 0.85s ease 0.62s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  max-width: 100%;
  opacity: 0;
  animation: rise 0.85s ease 0.78s forwards;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.85rem 1.4rem;
  border-radius: 6px;
  background: var(--accent);
  color: #1a1408;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(201, 137, 0, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover {
  background: #f0ad18;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(201, 137, 0, 0.34);
}

.cta:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 3px;
}

.domains {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--steel-mid);
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  width: 100%;
  max-width: 100%;
  margin-top: -4.25rem;
  padding:
    1.25rem
    var(--page-pad-right)
    max(1.75rem, env(safe-area-inset-bottom, 0px))
    var(--page-pad);
  font-size: 0.8rem;
  color: rgba(237, 240, 243, 0.72);
}

.foot .sep {
  opacity: 0.5;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glow-a,
  .glow-b,
  .lane-path,
  .lane-node,
  .eyebrow,
  .brand,
  .headline,
  .lede,
  .cta-row {
    animation: none !important;
  }

  .lane-path {
    stroke-dashoffset: 0;
  }

  .lane-node,
  .eyebrow,
  .brand,
  .headline,
  .lede,
  .cta-row {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  :root {
    --page-pad: max(1.15rem, env(safe-area-inset-left, 0px));
    --page-pad-right: max(1.15rem, env(safe-area-inset-right, 0px));
  }

  .glow {
    filter: blur(48px);
  }

  .glow-a,
  .glow-b {
    /* Keep decorative glows inside the clipped atmosphere on small screens */
    max-width: 85%;
    max-height: 55%;
  }

  .brand {
    /* ~10 chars of Syne ExtraBold need ~0.58em each → keep under phone width */
    font-size: clamp(1.75rem, 8.8vw, 2.75rem);
  }

  .foot {
    margin-top: -3rem;
    color: rgba(18, 22, 28, 0.55);
    background: linear-gradient(180deg, transparent, rgba(237, 240, 243, 0.85));
  }
}

@media (max-width: 380px) {
  .brand {
    font-size: clamp(1.65rem, 8.2vw, 2.15rem);
  }

  .eyebrow {
    letter-spacing: 0.1em;
  }
}
