:root {
  --oil: #12100e;
  --leather: #2a211c;
  --steel: #6e7a84;
  --chrome: #c5c0b4;
  --rust: #a84a2a;
  --cream: #ebe3d4;
  --cream-dim: #b8ae9c;
  --ink: #0c0a09;
  --font-display: "Bebas Neue", "Impact", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--oil);
  line-height: 1.5;
  overflow-x: hidden;
}

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

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 65% 50% at 50% 28%, rgba(110, 122, 132, 0.22), transparent 60%),
    linear-gradient(165deg, #2f343a 0%, #1c1a18 42%, #100e0c 100%);
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  pointer-events: none;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 9, 0.45) 0%, transparent 18%, transparent 82%, rgba(12, 10, 9, 0.45) 100%),
    radial-gradient(circle at 50% 40%, transparent 25%, rgba(12, 10, 9, 0.4) 100%);
  pointer-events: none;
}

.hero {
  display: grid;
  justify-items: center;
  align-content: center;
  text-align: center;
  gap: 1.15rem;
  min-height: min(78vh, 720px);
  padding: clamp(2rem, 6vw, 4rem) 1.25rem 2rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  animation: rise 0.65s ease 0.1s forwards;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.6rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  animation: rise 0.7s ease 0.2s forwards;
}

.hero-logo {
  margin: 0.35rem 0 0.15rem;
  width: min(220px, 48vw);
  opacity: 0;
  animation: rise 0.8s ease 0.35s forwards;
}

.hero-logo img {
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.hero-logo:hover img {
  transform: translateY(-3px);
}

.hero-lead {
  margin: 0;
  max-width: 32rem;
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--cream-dim);
  opacity: 0;
  animation: rise 0.7s ease 0.5s forwards;
}

.hero-lead::before {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 0 auto 0.9rem;
  background: linear-gradient(90deg, transparent, var(--rust), transparent);
  opacity: 0.85;
}

.tools {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto 4rem;
  padding-bottom: 2rem;
}

.tools-title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--cream-dim);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.tool-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.35rem 1.4rem 1.25rem;
  text-decoration: none;
  color: inherit;
  background: rgba(18, 16, 14, 0.55);
  border: 1px solid rgba(197, 192, 180, 0.22);
  border-left: 3px solid var(--rust);
  transition: border-color 0.2s ease, background 0.2s ease;
  opacity: 0;
  animation: rise 0.7s ease 0.6s forwards;
}

.tool-card:hover,
.tool-card:focus-visible {
  background: rgba(18, 16, 14, 0.78);
  border-color: rgba(197, 192, 180, 0.45);
  outline: none;
}

.tool-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 1.9rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
}

.tool-pitch {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--cream-dim);
}

.tool-cta {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
}

.site-footer {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto 2.5rem;
  padding-top: 0.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--cream-dim);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--chrome);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cream);
  text-decoration: underline;
}

.legal {
  width: min(720px, calc(100% - 2.5rem));
  margin: clamp(2rem, 5vw, 3.5rem) auto 3rem;
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
  display: grid;
  gap: 1.1rem;
  background: rgba(18, 16, 14, 0.72);
  border: 1px solid rgba(197, 192, 180, 0.22);
  border-left: 3px solid var(--rust);
}

.legal h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
}

.legal h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chrome);
}

.legal section {
  margin: 0;
}

.legal p,
.legal li {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.98rem;
}

.legal ul {
  margin: 0.45rem 0 0;
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.3rem;
}

.legal a {
  color: var(--cream);
}

.legal-lead {
  max-width: 48ch;
}

.legal-back {
  width: fit-content;
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.legal-back:hover {
  color: var(--cream);
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  padding-top: 1rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(197, 192, 180, 0.18);
}

.legal-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--chrome);
}

.legal-nav a:hover {
  color: var(--cream);
  text-decoration: underline;
}

.legal code {
  font-size: 0.86em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(197, 192, 180, 0.12);
  color: var(--cream);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .eyebrow,
  .hero h1,
  .hero-logo,
  .hero-lead,
  .tool-card {
    opacity: 1;
  }
}
