/**
 * Landing page only. Deliberately separate from styles.css: this is a different
 * design language (orange on navy, Oswald/Barlow, bracket buttons) and the app
 * itself is untouched for now.
 */

:root {
  --orange: #ff6a00;
  --orange-bright: #ff8533;
  --navy: #0b0e18;
  --navy-2: #0f1220;
  --navy-3: #141828;
  --navy-4: #1a1f30;
  --navy-5: #1f2538;
  --white: #ffffff;
  --light: #e8ecf0;
  --muted: #98a1b5;
  --border: rgba(255, 106, 0, 0.25);
  --border-dim: rgba(255, 255, 255, 0.07);
  --glow: 0 0 20px rgba(255, 106, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', system-ui, sans-serif;
  background: var(--navy);
  color: var(--light);
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  min-height: 54px;
  background: rgba(11, 14, 24, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 106, 0, 0.2);
}

.nav-item {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item::before {
  content: '[';
  color: var(--orange);
}

.nav-item::after {
  content: ']';
  color: var(--orange);
}

.nav-item:hover,
.nav-item:focus-visible {
  border-color: var(--orange);
  color: var(--white);
  box-shadow: var(--glow);
}

.nav-cta {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  padding: 7px 16px;
  border: 1px solid var(--orange);
  border-radius: 100px;
  transition: all 0.2s;
  margin-left: 8px;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--orange);
  color: var(--navy);
  box-shadow: var(--glow);
}

.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand:hover,
.nav-brand:focus-visible {
  color: var(--white);
}

.nav-toggle {
  display: none;
}

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

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: min(100vh, 860px);
  min-height: min(100dvh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 54px;
}

.hero-photo {
  position: absolute;
  inset: 0;
  background: url('/img/hero.jpg') center 55% / cover no-repeat;
  filter: brightness(0.5) saturate(0.7);
}

/* Dark panel down the left, where the headline sits. */
.hero-panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(11, 14, 24, 0.97) 0%,
    rgba(11, 14, 24, 0.88) 30%,
    rgba(11, 14, 24, 0.4) 55%,
    transparent 68%
  );
}

.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-lines::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, rgba(255, 106, 0, 0.3) 60%, transparent 100%);
}

.hero-lines::after {
  content: '';
  position: absolute;
  top: 54px;
  left: 0;
  width: 4px;
  height: 120px;
  background: linear-gradient(to bottom, var(--orange), transparent);
}

.crosshair {
  position: absolute;
  bottom: 80px;
  right: 60px;
  z-index: 3;
  opacity: 0.55;
  animation: rotate-slow 12s linear infinite;
}

@keyframes rotate-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-content {
  position: relative;
  z-index: 4;
  padding: 80px 60px;
  max-width: 720px;
}

.hero-h1 {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-h1 .line1 {
  color: var(--orange);
  display: block;
}

.hero-h1 .line2 {
  color: var(--white);
  display: block;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(232, 236, 240, 0.8);
  line-height: 1.6;
  max-width: 34rem;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-bracket {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 12px 26px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-bracket::before {
  content: '[';
  color: var(--orange);
}

.btn-bracket::after {
  content: ']';
  color: var(--orange);
}

.btn-bracket:hover,
.btn-bracket:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: var(--glow);
}

.btn-bracket.primary {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
  font-weight: 800;
}

.btn-bracket.primary::before,
.btn-bracket.primary::after {
  color: var(--navy);
}

.btn-bracket.primary:hover,
.btn-bracket.primary:focus-visible {
  background: var(--orange-bright);
  color: var(--navy);
  box-shadow: 0 0 30px rgba(255, 106, 0, 0.5);
}

/* ─── Ticker ─── */
.ticker {
  background: var(--orange);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  gap: 40px;
  animation: tick 26s linear infinite;
}

.ticker-item {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  flex-shrink: 0;
}

@keyframes tick {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ─── Features ─── */
.features-strip {
  background: var(--navy-2);
  border-top: 1px solid rgba(255, 106, 0, 0.2);
  border-bottom: 1px solid rgba(255, 106, 0, 0.2);
  padding: 56px 60px;
}

.features-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.fstrip-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--orange);
  position: relative;
}

.fstrip-icon svg {
  width: 38px;
  height: 38px;
}

.fstrip-icon::before,
.fstrip-icon::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--orange);
}

.fstrip-icon::before {
  top: -2px;
  left: -2px;
}

.fstrip-icon::after {
  bottom: -2px;
  right: -2px;
}

.fstrip-title {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
}

.fstrip-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── Section shells ─── */
.stripe {
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0%, rgba(255, 106, 0, 0.3) 70%, transparent 100%);
}

.sessions {
  background: var(--navy-2);
  padding: 70px 60px;
}

.sessions-header {
  text-align: center;
  margin-bottom: 48px;
}

.sessions-label {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.sessions-h2 {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
}

.sessions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  max-width: 1000px;
  margin: 0 auto;
}

.scard {
  background: var(--navy-3);
  padding: 44px 40px;
  border: 1px solid var(--border-dim);
  border-top: 2px solid var(--orange);
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.scard:hover {
  background: var(--navy-4);
}

.scard-num {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.scard-icon {
  display: block;
  margin-bottom: 16px;
}

.scard-icon svg {
  width: 34px;
  height: 34px;
}

.scard-title {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--white);
}

.scard-title span {
  color: var(--orange);
}

.scard-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.scard-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scard-tag {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.2s;
}

.scard:hover .scard-tag {
  border-color: rgba(255, 106, 0, 0.4);
  color: var(--orange);
}

.scard-bg-num {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 106, 0, 0.05);
  line-height: 1;
  pointer-events: none;
}

/* ─── Hold card showcase ─── */
.showcase {
  background: var(--navy-3);
  padding: 70px 60px;
}

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: center;
}

.showcase h2 {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.showcase p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.showcase-card {
  background: var(--navy-4);
  border: 1px solid var(--border-dim);
  border-top: 2px solid var(--orange);
  padding: 28px;
}

/* A real card on a real rifle, edge to edge in the card's frame. */
.showcase-photo {
  margin: 0;
  padding: 0;
}

.showcase-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.showcase-photo figcaption {
  padding: 12px 16px;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Register interest ─── */
.interest {
  background: var(--navy-2);
  padding: 70px 60px;
}

.interest-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.interest h2 {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.interest p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
}

.interest-form {
  display: grid;
  gap: 14px;
  margin: 28px 0 18px;
  text-align: left;
}

.interest-form label span {
  display: block;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.interest-form input {
  width: 100%;
  font: inherit;
  /* 16px or more, or iOS zooms the page when the field is tapped. */
  font-size: 1rem;
  color: var(--white);
  background: var(--navy-3);
  border: 1px solid var(--navy-5);
  border-radius: 0;
  padding: 12px 14px;
}

.interest-form input:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 1px;
}

.interest-form button {
  justify-self: center;
  margin-top: 8px;
  cursor: pointer;
}

/* The honeypot: off-screen rather than display:none, which some bots skip. */
.interest-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.interest-errors {
  list-style: none;
  margin-top: 20px;
  color: #ff5a52;
  font-weight: 600;
}

.interest p.interest-thanks {
  margin-top: 8px;
  color: var(--light);
}

.interest p.interest-privacy {
  font-size: 0.8rem;
}

/* ─── Footer ─── */
footer {
  background: var(--navy);
  border-top: 2px solid rgba(255, 106, 0, 0.3);
  padding: 52px 60px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col-title {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-family: 'Oswald', system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-decoration: none;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(152, 161, 181, 0.6);
}

/* ─── Responsive ───
   Most of this gets read one-handed on a phone at the range, so below 900px the
   nav becomes a single swipeable row, buttons go full width, and the hero loads
   a 193KB photo instead of the 559KB one. */
@media (max-width: 900px) {
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid rgba(255, 106, 0, 0.3);
    cursor: pointer;
  }

  .nav-toggle span:not(.visually-hidden) {
    display: block;
    height: 2px;
    background: var(--orange);
    transition: transform 0.2s, opacity 0.2s;
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding-bottom: 12px;
  }

  .nav-links.is-open {
    display: flex;
  }

  /* Solid behind an open menu, so the hero doesn't show through the links. */
  nav:has(.nav-links.is-open) {
    background: var(--navy);
  }

  .nav-item,
  .nav-cta {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin: 0;
  }

  .hero-photo {
    /* Smaller file, and framed right of centre so the rifle survives the crop. */
    background-image: url('/img/hero-small.jpg');
    background-position: 68% center;
  }

  .hero-content {
    padding: 44px 20px 56px;
  }

  .crosshair {
    width: 56px;
    height: 56px;
    bottom: 22px;
    right: 16px;
  }

  .features-strip {
    padding: 44px 20px;
  }

  .features-strip-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .sessions,
  .showcase,
  .interest {
    padding: 52px 20px;
  }

  .sessions-grid,
  .showcase-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .scard {
    padding: 32px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  footer {
    padding: 40px 20px 24px;
  }

  /* Comfortable thumb targets in the footer lists. */
  .footer-links a {
    display: inline-block;
    padding: 6px 0;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-top: 56px;
  }

  .hero-h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
    margin-bottom: 16px;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 26px;
  }

  /* Full-width buttons: easier to hit than a pair of small ones side by side. */
  .hero-btns {
    gap: 12px;
  }

  .hero-btns .btn-bracket {
    flex: 1 1 100%;
    justify-content: center;
    min-height: 50px;
    font-size: 0.95rem;
  }

  .showcase .btn-bracket {
    flex: 0 0 auto;
    min-height: 50px;
  }

  .ticker-item {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .sessions-h2,
  .showcase h2 {
    font-size: 1.7rem;
  }

  .scard-title {
    font-size: 1.5rem;
  }

  .scard-tag {
    padding: 6px 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Landscape on a phone: the hero would otherwise take the whole screen. */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 32px 20px 40px;
  }

  .crosshair {
    display: none;
  }
}

/* ─── Scroll reveal ─── */
/* Only hide things when the script is there to reveal them again: without the
   class (JS blocked or failed) the page renders fully, just without the fade. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal .reveal.visible {
  opacity: 1;
  transform: none;
}

.rd1 {
  transition-delay: 0.1s;
}

/* Motion is decoration here: none of it carries meaning. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .crosshair,
  .ticker-inner {
    animation: none;
  }

  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
