/* Scratch Revel — product site styles
   Design from the provided site snapshot (dark amber scratch-card theme). */

:root {
  --bg: #131311;
  --ink: #f8f0de;
  --amber: #ffc06e;
  --line: #3d3835;
  --cream: #f4e9d7;
  --cream-ink: #201918;
  --card-ink: #d8cdbf;
  --font: Inter, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  margin: 0;
}

img { max-width: 100%; height: auto; }

section { scroll-margin-top: 90px; }

h1, h2, h3 { font-weight: 800; }

a { color: inherit; text-decoration: none; }

a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid #f29545; outline-offset: 5px; }

.wrap { width: min(1300px, calc(100% - 100px)); margin: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.055em;
}

.brand i {
  display: block;
  width: 18px;
  height: 18px;
  background: var(--amber);
  rotate: -14deg;
  border-radius: 4px;
  border-inline: 3px dotted #211a14;
}

nav { display: flex; gap: 23px; flex-wrap: wrap; font-size: 14px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 23px;
  list-style: none;
}

.nav-link {
  color: var(--ink);
  font-weight: 600;
}

.nav-link:hover, .nav-link.active { color: var(--amber); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  min-height: 690px;
  gap: 24px;
}

.hero h1 {
  font-size: clamp(65px, 10.5vw, 152px);
  line-height: 0.84;
  letter-spacing: -0.105em;
  margin: 0 0 28px;
}

.hero h1 span { display: block; color: var(--amber); }

.hero p {
  font-size: 19px;
  max-width: 420px;
  line-height: 1.55;
  color: #d1c5b9;
  margin-bottom: 30px;
}

.button {
  display: inline-block;
  color: #181410;
  background: var(--amber);
  padding: 14px 18px;
  border-radius: 5px;
  font-weight: 800;
}

.button:hover { filter: brightness(1.06); text-decoration: none; }

.hero-art {
  height: 610px;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-art:before {
  content: "";
  position: absolute;
  inset: 8%;
  z-index: -2;
  background: radial-gradient(ellipse, #693c8d 3%, #1c1720 65%, transparent 75%);
}

.shot {
  width: min(47%, 246px);
  height: auto;
  position: absolute;
  border-radius: 22px;
  border: 2px solid #837481;
  box-shadow: 0 19px 55px #000a;
}

.shot.back { transform: translate(44%, 0) rotate(11deg); z-index: -1; }

.shot.front { transform: translate(-33%, -3%) rotate(-9deg); }

/* ---------- collection (cards) ---------- */

.collection {
  background: var(--cream);
  color: var(--cream-ink);
  padding: 85px 0 96px;
}

.collection h2, .legal h2 {
  font-size: clamp(45px, 7vw, 92px);
  letter-spacing: -0.085em;
  line-height: 0.97;
  margin: 0 0 18px;
}

.collection p { font-size: 17px; line-height: 1.6; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.cards figure { margin: 0; min-width: 0; }

.cards img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #221433;
}

.cards figcaption { font-weight: 800; margin-top: 12px; font-size: 17px; }

/* ---------- download ---------- */

.download { padding: 110px 0 120px; }

.download h2 {
  font-size: clamp(45px, 7vw, 92px);
  letter-spacing: -0.085em;
  line-height: 0.97;
  margin: 0 0 18px;
  color: var(--ink);
}

.section-sub {
  max-width: 850px;
  color: #d1c5b9;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

.download-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  margin-top: 56px;
  text-align: center;
}

.appstore-card {
  display: block;
  width: min(430px, 88%);
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--cream);
  box-shadow: 0 19px 55px #000a;
  transition: transform 0.2s;
}

.appstore-card:hover { transform: scale(1.03); }

.appstore-card img { display: block; width: 100%; }

.availability {
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.dl-contact { margin-top: -18px; font-size: 16px; font-weight: 600; color: #d1c5b9; }

.dl-mail { color: var(--amber); }

/* ---------- contact ---------- */

.contact-section {
  background: var(--cream);
  color: var(--cream-ink);
  padding: 85px 0 96px;
}

.contact-section h2 {
  font-size: clamp(45px, 7vw, 92px);
  letter-spacing: -0.085em;
  line-height: 0.97;
  margin: 0 0 18px;
  text-align: center;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
  width: min(980px, 100%);
  margin: 56px auto 0;
  padding: 56px 64px;
  border-radius: 24px;
  background: var(--bg);
  color: var(--ink);
}

.form-field span {
  display: block;
  margin-bottom: 10px;
  color: var(--amber);
  font-size: 15px;
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  padding: 14px 18px;
  background: #1d1a17;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  transition: border-color 0.18s ease;
}

.form-field input { height: 56px; }

.form-field textarea { min-height: 140px; resize: vertical; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: #8d8177; }

.form-field input:focus,
.form-field textarea:focus { border-color: var(--amber); }

.message-field { grid-column: 1 / -1; }

.consent-field {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #d8cdbf;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.consent-field input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
}

.consent-field a { color: var(--amber); font-weight: 700; }

.form-error {
  grid-column: 1 / -1;
  color: #f29545;
  font-size: 14px;
  font-weight: 700;
}

.submit-button {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 44px;
  border: 0;
  border-radius: 5px;
  background: var(--amber);
  color: #181410;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.2s;
}

.submit-button:hover { filter: brightness(1.06); }

/* ---------- legal pages (privacy / terms) ---------- */

.legal-page { background: var(--bg); }

.legal { padding: 72px 0; scroll-margin-top: 18px; }

.legal h1 {
  font-size: clamp(45px, 7vw, 92px);
  letter-spacing: -0.085em;
  line-height: 0.97;
  margin: 0 0 18px;
}

.legal .copy { max-width: 760px; color: var(--card-ink); line-height: 1.65; }

.copy h3 { margin: 28px 0 4px; color: var(--ink); }

.copy p { margin: 0 0 9px; }

.version { font-size: 14px; color: var(--amber); }

.privacy-mail { color: var(--amber); font-weight: 700; }

.privacy-email { margin-top: 9px; }

.privacy-email a { color: var(--amber); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 36px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

footer small { color: #bdafa0; }

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
}

/* ---------- reveal animation (visible by default: works without JS) ---------- */

.reveal.in { animation: reveal-in 0.6s ease both; }

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.in { animation: none; }
  .feature-card, .appstore-card, .submit-button { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1295px) {
  .wrap, .header-inner .wrap { width: calc(100% - 40px); }

  .wrap { width: calc(100% - 40px); }

  .hero-copy h1 { font-size: min(152px, 11vw); }

  .hero-copy p { font-size: min(19px, 1.6vw); }
}

@media (max-width: 790px) {
  .wrap { width: calc(100% - 36px); }

  section { scroll-margin-top: 80px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -18px;
    right: -18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 14px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav-menu.open { display: flex; }

  .nav-menu li { width: 100%; }

  .nav-link {
    display: block;
    padding: 12px 4px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-link:hover, .nav-link.active { background: none; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
    padding-top: 52px;
  }

  .hero h1 { font-size: clamp(60px, 14vw, 105px); }

  .hero p { font-size: 17px; }

  .hero-art { height: clamp(280px, 68vw, 440px); }

  .shot { width: min(47%, 218px); }

  .collection, .legal, .contact-section { padding: 52px 0; }

  .download { padding: 72px 0; }

  .download h2, .contact-section h2 { font-size: clamp(34px, 9vw, 52px); }

  .section-sub { font-size: 15px; }

  .cards { gap: 10px; }

  .cards figcaption { font-size: 13px; }

  nav { gap: 11px; font-size: 12px; }

  .brand { font-size: 19px; }

  .contact-form { padding: 24px 18px; gap: 18px; }

  .form-field input { height: 48px; padding: 0 14px; font-size: 15px; }

  .form-field textarea { min-height: 110px; padding: 12px 14px; font-size: 15px; }

  .consent-field { font-size: 13px; }

  .submit-button { width: 100%; }
}

@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr 1fr; }

  .cards figure:last-child { grid-column: 1; }

  .shot { width: 43%; }

  .brand-name { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.in { animation: none; }
  .feature-card, .appstore-card, .submit-button { transition: none; }
}
