@import url("tokens.css");

::selection {
  background: rgba(29, 95, 191, 0.18);
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--chart);
  outline-offset: 2px;
}

/* Landing — brand-first first viewport; not a dashboard. */
.landing {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(29, 95, 191, 0.12), transparent 60%),
    linear-gradient(165deg, #e8edf4 0%, var(--ground) 42%, #f7f8fa 100%);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 48px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand-mark .glyph {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.landing-nav .links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.landing-nav a.quiet {
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-body);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 140ms ease, transform 140ms ease;
}

.btn:hover {
  opacity: 0.93;
}

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

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.hero {
  display: grid;
  align-content: center;
  padding: clamp(32px, 8vh, 96px) clamp(20px, 4vw, 48px) 64px;
  max-width: 960px;
}

.hero .brand-hero {
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0 0 20px;
  animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 22ch;
  color: var(--text);
  animation: rise 700ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero > p {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 38ch;
  font-size: 16px;
  animation: rise 700ms 140ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 700ms 200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Full-bleed ledger plane — product atmosphere, not a card collage */
.hero-plane {
  margin-top: clamp(36px, 6vh, 56px);
  margin-left: calc(-1 * clamp(20px, 4vw, 48px));
  margin-right: calc(-1 * clamp(20px, 4vw, 48px));
  width: calc(100% + 2 * clamp(20px, 4vw, 48px));
  height: min(38vh, 300px);
  border-radius: 0;
  background:
    linear-gradient(118deg, #121417 0%, #1a2740 48%, #163a6e 100%),
    repeating-linear-gradient(
      -14deg,
      transparent,
      transparent 20px,
      rgba(255, 255, 255, 0.035) 20px,
      rgba(255, 255, 255, 0.035) 21px
    );
  animation: fade-in 900ms 240ms ease both;
  position: relative;
  overflow: hidden;
}

.hero-plane .ledger-mark {
  position: absolute;
  left: clamp(20px, 4vw, 48px);
  bottom: 28px;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.hero-plane .ledger-mark strong {
  display: block;
  font-size: clamp(22px, 3vw, 32px);
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 4px;
}

.hero-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  transform: translateX(-100%);
  animation: sheen 3.2s 1.1s ease-in-out infinite;
}

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

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes sheen {
  0%,
  100% {
    transform: translateX(-100%);
  }
  40% {
    transform: translateX(100%);
  }
}

@media (max-width: 640px) {
  .landing-nav .links .quiet {
    display: none;
  }

  .hero .brand-hero {
    font-size: clamp(42px, 14vw, 56px);
  }
}
