/* CrewLanes marketing — mirrors design-tokens.json */
:root {
  --color-ink: #142033;
  --color-ink-soft: #2a3a52;
  --color-mist: #ffffff;
  --color-fog: #e4e9ef;
  --color-paper: #ffffff;
  --color-lane: #0e7c86;
  --color-lane-deep: #0a5c63;
  --color-signal: #e4a01a;
  --color-muted: #5c6b7e;
  --font-display: "Syne", "Avenir Next", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --space: clamp(1rem, 3vw, 2rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-lane-deep);
}

/* —— Header —— */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--space);
}

.site-header__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.site-header__link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-header__link:hover {
  color: #fff;
}

/* —— Hero (full-bleed visual plane) —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  color: #fff;
  overflow: hidden;
  background: #0b1626;
}

.hero__visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 70% 20%, rgba(14, 124, 134, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(228, 160, 26, 0.18), transparent 50%),
    linear-gradient(165deg, #0b1626 0%, #142033 42%, #0a3d42 100%);
}

/* Lane motif — routes across the field */
.hero__lanes {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(
      105deg,
      transparent 0,
      transparent 46px,
      rgba(255, 255, 255, 0.04) 46px,
      rgba(255, 255, 255, 0.04) 48px
    ),
    repeating-linear-gradient(
      105deg,
      transparent 0,
      transparent 140px,
      rgba(14, 124, 134, 0.35) 140px,
      rgba(14, 124, 134, 0.35) 148px
    );
  animation: lane-drift 28s linear infinite;
}

@keyframes lane-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 220px 0, 220px 0;
  }
}

.hero__glow {
  position: absolute;
  width: min(48rem, 90vw);
  height: min(48rem, 90vw);
  right: -10%;
  top: -15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 124, 134, 0.35), transparent 68%);
  filter: blur(8px);
  animation: glow-pulse 8s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from {
    opacity: 0.7;
    transform: scale(1);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 7.5rem var(--space) 4.5rem;
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 10vw, 5.75rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 1.25rem;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 0 0.85rem;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero__lead {
  margin: 0 0 1.25rem;
  max-width: 36ch;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.82);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.22s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.hero__hint {
  margin: 1rem 0 0;
  max-width: 42ch;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.hero__hint code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--color-signal);
  color: var(--color-ink);
}

.btn--primary:hover {
  background: #f0b33a;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) var(--space);
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.65rem;
  color: var(--color-ink);
}

.section__lead {
  margin: 0 0 2rem;
  max-width: 42ch;
  color: var(--color-muted);
  font-size: 1.1rem;
}

/* Split: copy + image in content width — image is the media, no wrapper box */
.section--ink {
  background: var(--color-ink);
  color: #fff;
}

.section--ink .section__title {
  color: #fff;
}

.section--ink .section__lead {
  color: rgba(255, 255, 255, 0.74);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: start;
}

.section--ink .split {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
}

.split__copy {
  min-width: 0;
}

/* Cropped product shot — no wrapper, no fill color behind the img */
.split__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.section--ink .split__copy .feature-list h3 {
  color: #fff;
}

.section--ink .split__copy .feature-list p {
  color: rgba(255, 255, 255, 0.7);
}

.section--ink .split__copy .lane-mark {
  background: var(--color-signal);
}

@media (max-width: 839px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split__img {
    order: -1;
  }
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.35rem;
}

.feature-list h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.feature-list p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.lane-mark {
  display: block;
  width: 2.5rem;
  height: 0.28rem;
  background: var(--color-lane);
  margin-bottom: 0.75rem;
  border-radius: 2px;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.closing .btn--primary {
  background: var(--color-lane);
  color: #fff;
}

.closing .btn--primary:hover {
  background: #1296a1;
}

.closing__hint {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.closing__hint code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(0, 35, 71, 0.06);
}

/* —— Alongside accounting —— */
.alongside .section__lead {
  max-width: 52ch;
}

.alongside__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .alongside__points {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem 2rem;
  }
}

.alongside__points li {
  margin: 0;
  padding: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

.alongside__points strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: 0.35rem;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem var(--space) 2.5rem;
  border-top: 1px solid var(--color-fog);
  background: var(--color-paper);
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.site-footer strong {
  font-family: var(--font-display);
  color: var(--color-ink);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .hero__lanes,
  .hero__glow,
  .hero__brand,
  .hero__headline,
  .hero__lead,
  .hero__cta {
    animation: none;
  }
}
