/* =======================================================
   River Tusk Survival — Dark Edition
   Fonts: Orbitron (display) + Montserrat (body)
   Palette: #0a0a0a, #111, #1a1a1a, #222, True Red #CC0000
   ======================================================= */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&family=Orbitron:wght@400;500;600;700;800;900&display=swap");

:root {
  --bg:          #0a0a0a;
  --bg2:         #111111;
  --bg3:         #1a1a1a;
  --bg4:         #222222;
  --border:      rgba(255,255,255,.08);
  --border2:     rgba(255,255,255,.14);
  --fg:          #f0f0f0;
  --muted:       #888;
  --muted2:      #bbb;
  --red:         #cc0000;
  --red-light:   #e60000;
  --red-dim:     rgba(204,0,0,.15);
  --red-glow:    rgba(204,0,0,.3);
  /* Legacy aliases so all existing var() references still resolve */
  --green:       #cc0000;
  --green-light: #e60000;
  --green-glow:  rgba(204,0,0,.25);
  --orange:      #cc0000;
  --orange-dim:  rgba(204,0,0,.15);
  --orange-glow: rgba(204,0,0,.3);
  --max:         1200px;
  --pad:         24px;
  --radius:      12px;
  --font-body:   "Montserrat", system-ui, sans-serif;
  --font-display:"Orbitron", "Montserrat", system-ui, sans-serif;
  --transition:  .18s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1,h2,h3,h4,h5,h6,p,span,a,div,button,input,textarea,select,li {
  font-family: inherit;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img { height: 36px; width: auto; filter: brightness(1.1); }

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

.nav a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 7px 13px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}

.nav a:hover { color: var(--fg); background: var(--bg3); }
.nav a.active { color: var(--orange); }

.icons { display: flex; gap: 6px; }

.icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--muted);
  transition: color var(--transition), background var(--transition);
}
.icon:hover { color: var(--fg); background: var(--bg3); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 520px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,10,10,.8) 0%, rgba(40,0,0,.25) 100%);
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--pad);
}

.hero__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.05;
  text-shadow: 0 2px 40px rgba(0,0,0,.6);
}

.hero__sub {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: .02em;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: var(--red-light); transform: translateY(-1px); box-shadow: 0 8px 24px var(--orange-glow); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-dim); }

.btn-green {
  background: var(--red);
  color: #fff;
}
.btn-green:hover { background: var(--red-light); transform: translateY(-1px); box-shadow: 0 8px 24px var(--red-glow); }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section--sm { padding: 48px 0; }

/* ===== TYPOGRAPHY ===== */
.h1, .h2, .h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}

.h1 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 20px; }
.h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 20px; }
.h3 { font-size: 18px; margin-bottom: 12px; }

.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.muted { color: var(--muted2); line-height: 1.75; }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--bg4);
  color: var(--muted2);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.badge--orange { background: var(--red-dim); color: var(--red); border-color: rgba(204,0,0,.3); }
.badge--green  { background: var(--red-dim); color: var(--red); border-color: rgba(204,0,0,.3); }

/* ===== PRODUCT GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}

.card__img {
  background: var(--bg3);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.card:hover .card__img img { transform: scale(1.04); }

.card__body {
  padding: 16px;
}

.card .title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 6px;
  line-height: 1.3;
}

.card .price {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
}

.card .meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== SECTION HEADER ===== */
.section-head {
  margin-bottom: 40px;
}

/* ===== SPLIT LAYOUT ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
}

/* ===== SVG ICONS =====  */
.icon-svg {
  display: inline-block;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.contact__icon .icon-svg { width: 22px; height: 22px; }
.store-icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand img { height: 32px; margin-bottom: 16px; filter: brightness(.9); }

.footer__brand p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 260px;
}

.footer__col h4 {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer__col a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--orange); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* =======================================================
   PRODUCT DETAIL PAGE
   ======================================================= */
.product-page { padding: 52px 0; }

.product-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 52px;
  align-items: start;
}

.product-gallery {}

.product-main-img {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 12px;
}

.product-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-thumbs {
  display: flex;
  gap: 10px;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition);
  background: var(--bg2);
  flex-shrink: 0;
}

.thumb.active, .thumb:hover { border-color: var(--orange); }

.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Product Info */
.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 8px;
  line-height: 1.1;
}

.product-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 20px;
}

.product-desc {
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Variant pills */
.variant-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.pill {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted2);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg3);
}

.pill:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-dim); }
.pill.active { border-color: var(--orange); color: var(--orange); background: var(--orange-dim); }
.pill.green { border-color: var(--red); color: var(--red); background: var(--red-dim); }

/* Qty */
.qty-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border2);
  border-radius: 999px;
  overflow: hidden;
  height: 44px;
  margin-bottom: 20px;
}

.qty button {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--bg3);
  color: var(--fg);
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: background var(--transition);
}

.qty button:hover { background: var(--bg4); }

.qty input {
  width: 44px;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

/* Product actions */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.cart-btn, .buy-btn {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.cart-btn {
  background: var(--bg3);
  color: var(--fg);
  border: 1px solid var(--border2);
}
.cart-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-dim); }

.buy-btn {
  background: var(--orange);
  color: #fff;
}
.buy-btn:hover { background: var(--red-light); box-shadow: 0 6px 20px var(--orange-glow); transform: translateY(-1px); }

/* Customization field on product pages */
.custom-section {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.custom-section h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.custom-section p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.custom-input {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--fg);
  outline: none;
  transition: border-color var(--transition);
}

.custom-input:focus { border-color: var(--orange); }
.custom-input::placeholder { color: var(--muted); }

/* =======================================================
   CONTACT PAGE
   ======================================================= */
.contact { max-width: 560px; }

.contact h1 { margin-bottom: 16px; }

.contact__card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--orange-dim);
  border: 1px solid rgba(255,107,26,.3);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact__email {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange);
  transition: color var(--transition);
}
.contact__email:hover { color: var(--red-light); }

/* =======================================================
   FIELD GUIDE / BOOK PAGE
   ======================================================= */
.book-wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}

.book-cover {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px var(--border);
  position: relative;
}

.book-cover img { width: 100%; height: auto; display: block; }

.book-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.book-list li {
  padding: 10px 0 10px 24px;
  position: relative;
  font-size: 14px;
  color: var(--muted2);
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

.book-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

.book-list li:last-child { border-bottom: none; }

.buy-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all var(--transition);
}

.amazon {
  background: var(--bg3);
  color: var(--fg);
  border: 1px solid var(--border2);
}
.amazon:hover { background: var(--red-dim); border-color: var(--red); color: var(--red); transform: translateY(-1px); box-shadow: 0 6px 20px var(--red-glow); }

/* =======================================================
   APP PAGE
   ======================================================= */
.app-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

.app-mockup {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 1px var(--border);
  position: sticky;
  top: 90px;
}

.app-mockup img { width: 100%; height: auto; display: block; }

.app-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.screenshot-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  transition: border-color var(--transition), transform var(--transition);
}

.screenshot-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.screenshot-card img { width: 100%; height: auto; display: block; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.feature-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition);
}

.feature-item:hover { border-color: var(--red-light); }

.feature-item h4 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* =======================================================
   CUSTOMIZE PAGE
   ======================================================= */
.customize-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.customize-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.customize-card:hover { border-color: var(--border2); transform: translateY(-2px); }

.customize-card__img {
  aspect-ratio: 1 / 1;
  background: var(--bg3);
  overflow: hidden;
}

.customize-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.customize-card:hover .customize-card__img img { transform: scale(1.04); }

.customize-card__body {
  padding: 20px;
}

.customize-card__body h3 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg);
  margin-bottom: 6px;
}

.customize-card__body p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.55;
}

.customize-form label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.char-count {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-top: 4px;
}

.customize-cta {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customize-cta .price {
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
}

.customize-cta .btn {
  height: 38px;
  padding: 0 20px;
  font-size: 11px;
}

/* =======================================================
   ORANGE ACCENT STRIP
   ======================================================= */
.accent-strip {
  background: linear-gradient(135deg, var(--red) 0%, #880000 100%);
  padding: 56px 0;
  text-align: center;
}

.accent-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 10px;
}

.accent-strip p { color: rgba(255,255,255,.75); font-size: 15px; margin-bottom: 24px; }

/* =======================================================
   RESPONSIVE
   ======================================================= */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .product-wrap { grid-template-columns: 1fr; gap: 32px; }
  .book-wrap { grid-template-columns: 1fr; }
  .app-wrap { grid-template-columns: 1fr; }
  .app-mockup { position: static; max-width: 260px; margin: 0 auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav { gap: 2px; }
  .nav a { padding: 6px 9px; font-size: 10px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero { height: 400px; }
  .section { padding: 52px 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .app-screenshots { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .product-thumbs { gap: 6px; }
  .thumb { width: 60px; height: 60px; }
  .customize-grid { grid-template-columns: 1fr; }
}
