/* 4X4 Gulf – desert dusk
   Fonts: Big Shoulders (brand / headings), Figtree (body) */

:root {
  --night: #14100e;
  --dusk: #241410;
  --sand: #f3e9db;
  --sand-deep: #e6d5bc;
  --ink: #1c1612;
  --muted: #6f6257;
  --red: #cc0000;
  --ember: #ff5a2b;

  --font-brand: "Big Shoulders", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Film grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a {
  color: var(--red);
  text-decoration: none;
  font-feature-settings: "calt" 0;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1,
h2,
h3,
.brand {
  font-family: var(--font-brand);
  letter-spacing: 0.01em;
}

/* Big Shoulders is a condensed face: it looks best in caps at large sizes */
.hero h1,
.doc-hero h1,
.section-title,
.cta h2,
.doc h2 {
  text-transform: uppercase;
}

/* ───────── Top bar ───────── */
.topbar {
  position: relative;
  z-index: 5;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.brand span b {
  color: var(--ember);
  font-weight: 700;
}

.topbar nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.topbar nav a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 999px;
  transition:
    background 0.2s,
    color 0.2s;
}
.topbar nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}
.topbar nav a.active {
  background: var(--red);
  color: #fff;
}

/* ───────── Hero (landing) ───────── */
.hero {
  position: relative;
  background:
    radial-gradient(
      900px 500px at 78% 70%,
      rgba(204, 0, 0, 0.35),
      transparent 70%
    ),
    linear-gradient(180deg, var(--night) 0%, var(--dusk) 100%);
  color: #fff;
  overflow: hidden;
  padding-bottom: 210px;
}

.hero .sun {
  position: absolute;
  right: 9%;
  bottom: 60px;
  width: clamp(220px, 34vw, 430px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8a3d 0%, var(--red) 70%);
  box-shadow: 0 0 140px 20px rgba(204, 0, 0, 0.5);
  animation: sunrise 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.dunes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 190px;
  background: url("assets/dunes.svg") center bottom / 100% 100% no-repeat;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px 0;
}

.eyebrow {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(56px, 11vw, 150px);
  line-height: 0.9;
  font-weight: 800;
  margin: 0 0 26px;
  max-width: 12ch;
}
.hero h1 em {
  font-style: normal;
  color: var(--ember);
}

.hero p.lede {
  max-width: 520px;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 34px;
}

/* Store buttons */
.stores {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
  padding: 12px 26px 12px 22px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  border: 2px solid #fff;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s,
    color 0.2s;
}
.store small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}
.store strong {
  font-family: var(--font-brand);
  font-size: 26px;
  font-weight: 700;
}
.store:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 var(--red);
  text-decoration: none;
}
.store.ghost {
  background: transparent;
  color: #fff;
}
.store.ghost:hover {
  box-shadow: 5px 5px 0 var(--ember);
}

/* ───────── Marquee strip ───────── */
.strip {
  background: var(--red);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  border-block: 3px solid var(--ink);
  transform: rotate(-1.2deg);
  margin: -34px -20px 0;
  position: relative;
  z-index: 4;
}
.strip-track {
  display: inline-flex;
  gap: 36px;
  padding: 12px 0;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: slide 26s linear infinite;
}
.strip-track span::after {
  content: "×";
  margin-left: 36px;
  color: var(--ink);
}

/* ───────── Landing sections ───────── */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.features-section {
  padding: 110px 0 60px;
}

.section-title {
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.95;
  font-weight: 800;
  margin: 0 0 14px;
  max-width: 14ch;
}
.section-sub {
  color: var(--muted);
  max-width: 480px;
  margin: 0 0 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.feature {
  position: relative;
  grid-column: span 6;
  padding: 30px 30px 32px;
  background: #fff9ef;
  border: 2px solid var(--ink);
  border-radius: 18px;
  box-shadow: 6px 6px 0 var(--ink);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  overflow: hidden;
}
.feature:nth-child(2) {
  margin-top: 34px;
}
.feature:nth-child(3) {
  margin-top: -10px;
}
.feature:nth-child(4) {
  margin-top: 24px;
}
.feature:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 var(--red);
}

.feature .num {
  font-family: var(--font-brand);
  font-size: 104px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 34px;
  margin: 0 0 8px;
}
.feature p {
  margin: 0;
  color: #4a3f36;
}

/* CTA band */
.cta {
  margin-top: 90px;
  background: var(--night);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 90px 0 100px;
}
.cta::before {
  content: "";
  position: absolute;
  left: -120px;
  top: -160px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 0, 0, 0.7), transparent 65%);
}
.cta .wrap {
  position: relative;
}
.cta h2 {
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.95;
  margin: 0 0 28px;
  max-width: 13ch;
}

.quick-links {
  margin-top: 50px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.quick-links a {
  color: rgba(255, 255, 255, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 500;
  font-size: 15px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.quick-links a:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  text-decoration: none;
}

/* ───────── Document pages ───────── */
.doc-hero {
  position: relative;
  background: linear-gradient(180deg, var(--night), var(--dusk));
  color: #fff;
  overflow: hidden;
  padding-bottom: 130px;
}
.doc-hero .dunes {
  height: 110px;
}
.doc-hero .hero-inner {
  padding-top: 34px;
}
.doc-hero h1 {
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.95;
  font-weight: 800;
  margin: 0;
}
.doc-hero .eyebrow {
  margin-bottom: 12px;
}

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 20px;
}

.stamp {
  display: inline-block;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 38px;
  color: var(--red);
  margin: 48px 0 12px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.doc h2:first-of-type {
  margin-top: 28px;
}
.doc h3 {
  font-size: 28px;
  margin: 28px 0 6px;
}
.doc p {
  margin: 0 0 16px;
}
.doc ul {
  margin: 0 0 18px;
  padding-left: 22px;
}
.doc li {
  margin-bottom: 8px;
}
.doc li::marker {
  color: var(--red);
}
.doc a {
  font-weight: 600;
}

/* FAQ */
details {
  background: #fff9ef;
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 12px;
  box-shadow: 4px 4px 0 var(--ink);
}
summary {
  cursor: pointer;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 24px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  color: var(--red);
  font-size: 26px;
  line-height: 1;
}
details[open] summary::after {
  content: "–";
}
details p {
  margin: 12px 0 2px;
}

.contact-card {
  background: var(--night);
  color: #fff;
  border-radius: 18px;
  padding: 28px 30px;
  margin: 10px 0 10px;
}
.contact-card a {
  font-feature-settings: "calt" 0;
  font-variant-ligatures: none;
  color: var(--ember);
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  word-break: break-all;
}
.contact-card p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.75);
}

/* ───────── Footer ───────── */
footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.6);
  padding: 40px 24px 46px;
  margin-top: 70px;
  text-align: center;
  font-size: 14px;
}
.cta + footer {
  margin-top: 0;
}
footer .brand {
  font-size: 22px;
  margin-bottom: 16px;
}
footer .links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
footer .links a {
  color: rgba(255, 255, 255, 0.8);
}

/* ───────── Motion ───────── */
.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sunrise {
  from {
    transform: translateY(160px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .hero .sun,
  .strip-track {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ───────── Mobile ───────── */
@media (max-width: 760px) {
  body {
    font-size: 16px;
  }
  .topbar {
    padding: 18px 18px;
  }
  .topbar nav a {
    font-size: 14px;
    padding: 5px 11px;
  }
  .hero {
    padding-bottom: 170px;
  }
  .hero-inner {
    padding: 40px 18px 0;
  }
  .hero .sun {
    right: -60px;
    bottom: 90px;
    opacity: 0.85;
  }
  .dunes {
    height: 140px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature,
  .feature:nth-child(n) {
    grid-column: auto;
    margin-top: 0;
  }
  .feature .num {
    font-size: 76px;
  }
  .strip-track {
    font-size: 22px;
  }
  .features-section {
    padding-top: 90px;
  }
  .wrap {
    padding: 0 18px;
  }
  .doc {
    padding: 30px 18px 10px;
  }
  .doc h2 {
    font-size: 32px;
  }
}
