:root {
  --ink: #f5f1e9;
  --muted: #bcc3c5;
  --night: #06151d;
  --night-deep: #041016;
  --line: rgba(168, 192, 201, 0.2);
  --gold: #dfa960;
  --gold-light: #f0c983;
  --serif: Iowan Old Style, Baskerville, Times New Roman, serif;
  --sans: Avenir Next, Avenir, Segoe UI, sans-serif;
  --mono: SFMono-Regular, Consolas, Liberation Mono, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--night-deep);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 73% 10%, rgba(18, 64, 79, 0.28), transparent 32rem),
    radial-gradient(circle at 12% 34%, rgba(22, 53, 66, 0.22), transparent 28rem),
    linear-gradient(145deg, #081c26 0%, var(--night-deep) 70%);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  min-width: 320px;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.22;
  background-image: url("assets/denim.webp");
  background-size: 640px;
  mix-blend-mode: soft-light;
  content: "";
  pointer-events: none;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  color: #09151a;
  background: var(--gold-light);
  border-radius: 0.4rem;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0, 0, 0, 0); overflow: hidden; }

.site-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  padding: 1rem 5vw;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; font-size: 2rem; font-weight: 700; letter-spacing: -0.04em; }
.brand img { width: 60px; height: 60px; image-rendering: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 3.2rem); font-size: 0.92rem; }
.site-nav > a:not(.button), .site-footer nav a { color: #e8e8e5; transition: color 180ms ease; }
.site-nav > a:not(.button):hover, .site-footer nav a:hover { color: var(--gold-light); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.8rem 1.45rem;
  color: #1e1b17;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border: 1px solid rgba(255, 229, 177, 0.45);
  border-radius: 0.7rem;
  box-shadow: inset 0 1px rgba(255,255,255,0.28), 0 10px 30px rgba(0,0,0,0.22);
  font-weight: 650;
  transition: transform 180ms ease, filter 180ms ease;
}
.button:hover { filter: brightness(1.08); transform: translateY(-2px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.button svg { width: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.button-small { min-height: 46px; padding: 0.65rem 1.25rem; }
.button-outline { display: none; color: var(--ink); background: transparent; border-color: rgba(200, 219, 224, 0.55); box-shadow: none; }
.mobile-download { display: none; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(620px, 1.32fr);
  align-items: start;
  gap: 0;
  max-width: 1500px;
  min-height: 700px;
  margin: 0 auto;
  padding: 7rem 5vw 4rem;
}

.ambient { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); }
.ambient-one { top: 8%; right: 7%; width: 30rem; height: 25rem; background: rgba(23, 83, 98, 0.16); }
.eyebrow { margin: 0 0 1rem; color: #d9dcdb; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.3em; text-transform: uppercase; }
.hero h1, .closing h2, .plain-text h2, .feature h2 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -0.035em; line-height: 0.96; }
.hero h1 { max-width: 560px; font-size: clamp(4rem, 6.2vw, 6.6rem); }
em { color: var(--gold); font-weight: 500; }
.hero h1 em { font-size: clamp(4rem, 6.2vw, 6.1rem); }
.lede { max-width: 530px; margin: 1.6rem 0 1.8rem; color: #e0e3e2; font-size: clamp(1.08rem, 1.5vw, 1.35rem); line-height: 1.45; }
.hero-actions { display: flex; gap: 0.75rem; }
.fine-print { margin: 0.9rem 0 0; color: #b9c2c4; font-size: 0.82rem; }

.hero-preview {
  position: relative;
  width: min(860px, 100%);
  aspect-ratio: 2578 / 1866;
  margin: 0;
}
.hero-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 28px 32px rgba(0,0,0,0.44));
}

.features {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
  padding: 5rem 5vw 3rem;
  border-top: 1px solid var(--line);
}
.feature {
  display: grid;
  grid-template-columns: minmax(0, 530px) minmax(300px, 1fr);
  align-items: center;
  gap: clamp(3rem, 7vw, 3rem);
  min-height: 430px;
  padding: 3.8rem 0;
}
.feature:nth-child(2) { grid-template-columns: minmax(300px, 1fr) minmax(0, 600px); }
.feature:nth-child(3) { grid-template-columns: minmax(0, 700px) minmax(300px, 1fr); }
.feature + .feature { border-top: 1px solid rgba(168, 192, 201, 0.1); }
.feature-reverse .product-shot { order: 2; }
.feature-number { margin: 0 0 0.8rem; color: var(--gold); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.feature h2 { font-size: clamp(2.2rem, 3.5vw, 3.8rem); line-height: 1.03; }
.feature-copy > p:last-child { max-width: 520px; margin: 1.1rem 0 0; color: var(--muted); font-size: 1.08rem; }

.product-shot {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #1b2024;
  border: 1px solid rgba(155, 180, 190, 0.35);
  border-radius: 0.85rem;
  box-shadow: 0 24px 55px rgba(0,0,0,0.28), inset 0 1px rgba(255,255,255,0.03);
}
.product-shot-landmarks { max-width: 530px; }
.product-shot-tools { max-width: 600px; justify-self: end; }
.product-shot-history { max-width: 700px; }
.product-shot::after { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 30px rgba(3,11,15,0.3); content: ""; pointer-events: none; }
.product-shot img { width: 100%; height: auto; }
.product-shot-landmarks { aspect-ratio: 784 / 388; }
.product-shot-tools { aspect-ratio: 1462 / 506; }
.product-shot-history { aspect-ratio: 2078 / 1049; }
.product-shot img { width: 100%; height: 100%; object-fit: contain; }

.plain-text { max-width: 800px; margin: 3rem auto 7rem; padding: 3.5rem 2rem; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plain-text h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.plain-text > p:last-child { max-width: 650px; margin: 1.2rem auto 0; color: var(--muted); }

.closing {
  position: relative;
  min-height: 380px;
  padding: 2rem 5vw 7rem;
  text-align: center;
}
.closing-content { max-width: 900px; margin: 0 auto; }
.closing h2 { font-size: clamp(3.2rem, 6vw, 6rem); }
.closing p { max-width: 650px; margin: 1rem auto 1.5rem; color: #d0d5d4; }

.site-footer {
  position: relative;
  margin-top: -1px;
  padding: 6rem 5vw 2.2rem;
  background-color: #06243a;
  background-image: linear-gradient(rgba(4,34,55,0.42), rgba(3,29,48,0.18)), url("assets/denim.webp");
  background-size: auto, 520px;
}
.site-footer::before {
  position: absolute;
  top: -35px;
  right: -2%;
  left: -2%;
  height: 70px;
  background: var(--night-deep);
  border-bottom: 3px dashed var(--gold);
  border-radius: 0 0 50% 45%;
  box-shadow: 0 5px 0 rgba(4, 13, 17, 0.75);
  content: "";
  transform: rotate(0.6deg);
}
.footer-inner { display: flex; align-items: center; gap: 2rem; max-width: 1400px; margin: 0 auto; }
.footer-brand { font-size: 1.55rem; }
.footer-brand img { width: 46px; height: 46px; }
.footer-inner > p { margin: 0; color: #bfc9cc; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; }
.site-footer nav { display: flex; align-items: center; gap: 2rem; margin-left: auto; font-size: 0.78rem; }
.site-footer nav a:last-child { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(255,255,255,0.26); border-radius: 50%; font-size: 1rem; }

@media (max-width: 900px) {
  body { font-size: 15px; }
  .site-header { position: absolute; padding: 0.8rem 5vw; }
  .brand { font-size: 1.55rem; }
  .brand img { width: 48px; height: 48px; }
  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 3;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .menu-toggle span:not(.sr-only) { width: 24px; height: 2px; background: var(--ink); transition: transform 180ms ease, opacity 180ms ease; }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav {
    position: absolute;
    top: 0.4rem;
    right: 3vw;
    display: none;
    width: min(280px, 92vw);
    padding: 4.5rem 1.25rem 1.25rem;
    background: rgba(5, 21, 29, 0.97);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  }
  .site-nav.is-open { display: grid; gap: 0; }
  .site-nav > a { padding: 0.85rem; }
  .site-nav .button { margin-top: 0.5rem; }
  .hero {
    display: block;
    min-height: 0;
    padding: 7rem 5vw 2.5rem;
  }
  .hero-copy { max-width: 650px; }
  .hero h1 { font-size: clamp(3.8rem, 12vw, 6rem); }
  .lede { max-width: 560px; margin: 1.25rem 0; }
  .button-outline { display: inline-flex; }
  .fine-print { display: none; }
  .hero-preview { width: 100%; margin: 1.5rem 0 0; }
  .features { padding-top: 1rem; }
  .feature, .feature.feature-reverse {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    min-height: 0;
    padding: 2.4rem 0;
  }
  .feature-reverse .product-shot { order: 0; }
  .product-shot-landmarks,
  .product-shot-tools,
  .product-shot-history { max-width: none; }
  .feature h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
  .feature-copy > p:last-child { font-size: 0.94rem; }
  .plain-text { margin-bottom: 5rem; }
  .footer-inner { flex-wrap: wrap; }
  .site-footer nav { margin-left: auto; }
  .footer-inner > p { order: 3; width: 100%; }
}

@media (max-width: 750px) {
  .feature {
    display: block;
  }

  .feature .product-shot {
    margin-bottom: 3rem;
  }
}

@media (max-width: 560px) {
  .site-header { padding-top: 0.7rem; }
  .nav-shell { align-items: center; }
  .menu-toggle { order: 3; }
  .mobile-download {
    display: inline-flex;
    order: 2;
    min-height: 40px;
    margin-left: auto;
    margin-right: 0.25rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
  }
  .mobile-download svg { width: 17px; }
  .site-nav .button { display: none; }
  .hero { padding-top: 6.4rem; }
  .hero h1 { font-size: clamp(3.3rem, 15vw, 4.7rem); }
  .eyebrow { font-size: 0.63rem; letter-spacing: 0.26em; }
  .lede { font-size: 1.02rem; }
  .hero-actions { display: grid; max-width: 260px; }
  .button { min-height: 48px; }
  .hero-preview {
    width: 100%;
    height: auto;
    aspect-ratio: 2578 / 1866;
    margin: 1rem 0 0;
  }
  .hero-preview img {
    width: 100%;
    height: 100%;
  }
  .features { padding-right: 4vw; padding-left: 4vw; }
  .feature, .feature.feature-reverse { grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: 1rem; padding: 1.4rem 0; }
  .feature-number { display: none; }
  .feature h2 { font-size: clamp(1.25rem, 6.2vw, 1.75rem); line-height: 1.02; }
  .feature-copy > p:last-child { margin-top: 0.55rem; font-size: 0.77rem; line-height: 1.36; }
  .product-shot { border-radius: 0.55rem; }
  .product-shot-landmarks { aspect-ratio: 784 / 388; }
  .product-shot-tools { aspect-ratio: 1462 / 506; }
  .product-shot-history { aspect-ratio: 2078 / 1049; }
  .plain-text { margin: 2rem 4vw 5rem; padding: 2.2rem 0.5rem; }
  .plain-text h2 { font-size: 2.3rem; }
  .plain-text > p:last-child { font-size: 0.85rem; }
  .closing { min-height: 340px; padding-bottom: 6rem; }
  .closing h2 { font-size: 2.7rem; }
  .closing p { font-size: 0.9rem; }
  .site-footer { padding-top: 4.5rem; }
  .footer-inner { gap: 1rem; }
  .footer-brand { font-size: 1.25rem; }
  .footer-brand img { width: 38px; height: 38px; }
  .site-footer nav { gap: 1rem; }
  .site-footer nav a:first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
