/* Horizon Bound: shared design system.
   Brand accents, page backgrounds, and text have separate roles.
   Component-specific effects stay in the component rules below.
   The logo gradient remains in logo.png. */
:root {
  --color-primary: #ff8600;
  --color-secondary: #2d91ed;
  --color-tertiary: #00ffee;
  --color-background-1: #272727;
  --color-background-2: #081f2b;
  --color-text: #fffaf1;

  --font-family: Arial, Helvetica, sans-serif;
  --font-h1: var(--font-family);
  --font-h2: var(--font-family);
  --font-h3: var(--font-family);
  --font-p: var(--font-family);
  --size-h1: clamp(40px, 4.35vw, 74px);
  --size-h2: calc(var(--size-h1) * 2 / 3);
  --size-h3: clamp(18px, 1.4vw, 22px);
  --size-p: 16px;
  --line-height-h1: 1.06;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
}
/* Match the footer when mobile browsers reveal the page canvas. */
html {
  background: #141414;
}

body {
  background: #141414;
  color: var(--color-text);
  font-family: var(--font-family);
}
/* Content keeps its own surface above the soft-black page canvas. */
body > main,
body > header {
  background-color: var(--color-background-1);
}

h1 {
  font-family: var(--font-h1);
  font-size: var(--size-h1);
  color: var(--color-text);
  font-weight: 600;
  line-height: var(--line-height-h1);
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h2 {
  font-family: var(--font-h2);
  font-size: var(--size-h2);
  color: var(--color-text);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin: 0 0 1em;
  text-wrap: pretty;
}
h3 {
  font-family: var(--font-h3);
  font-size: var(--size-h3);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 1em;
}
p {
  font-family: var(--font-p);
  font-size: var(--size-p);
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 1em;
}
a {
  color: var(--color-text);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 5px;
}
/* Shared logo component: shadows follow the transparent letter shapes. */
.brand {
  position: relative;
  isolation: isolate;
  display: block;
  width: 200px;
  height: 56px;
}
/* The logo backing fades outward from the page corner. */
.brand::before {
  content: "";
  position: absolute;
  top: -16px;
  left: -16px;
  width: min(400px, 90vw);
  height: 220px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at top left,
    rgb(0 0 0 / 48%) 0%,
    rgb(0 0 0 / 22%) 38%,
    transparent 72%
  );
}

.brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(2, 12, 20, 0.65))
    drop-shadow(0 0 10px rgba(2, 12, 20, 0.35));
}
/* Button component: use the primary accent for its fill. */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 17px 29px;
  border: 1px solid #000000;
  border-radius: 6px;
  background: var(--color-primary);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.cta:hover {
  transform: scale(1.01);
}
@media (max-width: 800px) {
  :root {
    --size-h1: clamp(32px, 7.5vw, 55px);
    --size-h2: clamp(28px, 5vw, 37px);
    --size-h3: 18px;
    --line-height-h1: 1.075;
  }
  .brand {
    width: 150px;
    height: 44px;
  }
  .cta {
    min-height: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}

/* Shared footer: quiet utility links on a soft-black background. */
.site-footer {
  background: #141414;
  color: color-mix(in srgb, var(--color-text) 65%, #141414);
  padding: 24px 5vw;
  font-size: 14px;
}

.site-footer::before {
  content: "";
  display: block;
  width: 90%;
  max-width: 1404px;
  margin: 0 auto 24px;
  height: 1px;
  background: currentColor;
  transform: scaleY(0.25);
  transform-origin: center;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 1560px;
  margin-inline: auto;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 24px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Header navigation: compact desktop links and a mobile disclosure. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header .brand {
  flex-shrink: 0;
}
.site-navigation {
  position: relative;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: clamp(460px, 31vw, 580px);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0 8px;
}
.nav-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(18px, 1.2vw, 22px);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
  text-shadow: 0 1px 6px rgb(0 0 0 / 45%);
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-toggle {
  display: none;
}
@media (max-width: 800px) {
  .site-navigation {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
  }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6.25px;
    width: 55px;
    height: 55px;
    padding: 12.5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
  }
  .nav-toggle span {
    width: 30px;
    height: 2.5px;
    background: currentColor;
  }
  .nav-links {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: min(240px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid rgb(255 250 241 / 12%);
    border-radius: 8px;
    background: rgb(8 31 43 / 97%);
    box-shadow: 0 12px 32px rgb(0 0 0 / 25%);
  }
  .nav-toggle[aria-expanded="true"] + .nav-links {
    display: block;
  }
  .nav-links a {
    font-size: 20px;
    padding: 4px 12px;
    min-height: 48px;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8.75px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8.75px) rotate(-45deg);
  }
}
