:root {
  color-scheme: light;
  --ink: #172117;
  --muted: #5b6759;
  --cream: #fffdf4;
  --paper: #ffffff;
  --green: #1f5a38;
  --green-dark: #123d27;
  --lime: #d8ef86;
  --gold: #ffcc5c;
  --line: #dfe6d9;
  --shadow: 0 24px 60px rgba(18, 61, 39, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  color: #fff;
}

.site-header--solid {
  position: relative;
  max-width: none;
  padding-inline: max(1.5rem, calc((100% - 1120px) / 2));
  background: var(--green-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  font-weight: 850;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--green-dark);
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
}

nav { display: flex; gap: 1.25rem; }

nav a {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover, nav a:focus-visible { text-decoration: underline; text-underline-offset: 0.35rem; }

.hero {
  position: relative;
  display: grid;
  min-height: 750px;
  align-items: end;
  overflow: hidden;
  background: var(--green-dark);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(7, 31, 19, 0.76) 0%, rgba(7, 31, 19, 0.45) 38%, rgba(7, 31, 19, 0.03) 70%), linear-gradient(180deg, rgba(7, 31, 19, 0.14) 0%, rgba(7, 31, 19, 0.05) 58%, rgba(7, 31, 19, 0.48) 100%), url("/assets/game-background.png") center / cover no-repeat;
  transform: scale(1.01);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 10rem 0 5.5rem;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.7rem;
  height: 2px;
  background: currentColor;
  content: "";
}

h1, h2, h3 { margin-top: 0; line-height: 1.08; letter-spacing: -0.04em; }

h1 { max-width: 840px; margin-bottom: 1.25rem; font-size: clamp(3.2rem, 7vw, 6.6rem); }

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

.hero-logo {
  display: block;
  width: min(620px, 88vw);
  height: auto;
  margin: 0 0 1.4rem;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.36));
}

.hero-subtitle {
  max-width: 650px;
  margin: 0 0 2rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--gold);
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18); }

.button--ghost { border-color: rgba(255, 255, 255, 0.68); background: rgba(15, 48, 30, 0.38); color: #fff; backdrop-filter: blur(8px); }

.section { padding: 6rem 1.5rem; }

.section--green { background: var(--green-dark); color: #fff; }

.section--compact { padding-block: 4rem; }

.wrap { width: min(1120px, 100%); margin: 0 auto; }

.section h2 { margin-bottom: 1.25rem; font-size: clamp(2.3rem, 5vw, 4.25rem); }

.lead { max-width: 720px; color: var(--muted); font-size: 1.2rem; }

.section--green .lead { color: rgba(255, 255, 255, 0.75); }

.trials-section { background: linear-gradient(180deg, #123d27 0%, #0d321f 100%); }
.trials-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: end; }
.trials-heading-copy h2 { max-width: 820px; }
.trial-count { display: flex; align-items: center; gap: 1.1rem; padding: 1.2rem 1.35rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 1.2rem; background: rgba(255, 255, 255, 0.07); }
.trial-count strong { color: var(--lime); font-size: clamp(4rem, 8vw, 6.2rem); line-height: 0.8; letter-spacing: -0.08em; }
.trial-count span { max-width: 8rem; color: rgba(255, 255, 255, 0.72); font-weight: 750; line-height: 1.35; }

.trial-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 3rem; }
.trial-gallery figure { margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 1.35rem; background: rgba(255, 255, 255, 0.07); box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2); }
.trial-gallery img { display: block; width: 100%; aspect-ratio: 1536 / 709; object-fit: cover; }
.trial-gallery figcaption { padding: 0.85rem 1.1rem 1rem; color: rgba(255, 255, 255, 0.72); font-size: 0.94rem; }

.trial-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; margin-top: 2rem; }
.trial-item { display: grid; min-width: 0; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.8rem; align-items: start; padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 1rem; background: rgba(255, 255, 255, 0.055); }
.trial-item > span { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 0.75rem; background: var(--gold); color: var(--green-dark); font-size: 0.78rem; font-weight: 900; }
.trial-item h3 { margin: 0 0 0.3rem; color: #fff; font-size: 1.02rem; letter-spacing: -0.02em; }
.trial-item p { margin: 0; color: rgba(255, 255, 255, 0.66); font-size: 0.88rem; line-height: 1.45; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }

.feature-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(18, 61, 39, 0.06);
}

.feature-icon { display: grid; width: 3rem; height: 3rem; margin-bottom: 1.4rem; place-items: center; border-radius: 0.9rem; background: #edf6cf; color: var(--green-dark); font-size: 1.4rem; }
.feature-card h3 { margin-bottom: 0.7rem; font-size: 1.35rem; }
.feature-card p { margin: 0; color: var(--muted); }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.65fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 35rem; margin: 0 0 0.45rem; color: var(--muted); font-size: 1.08rem; }

.dog-section { background: linear-gradient(180deg, #fffdf4 0%, #f5ead2 100%); }
.dog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }

.dog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dccdad;
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 15px 38px rgba(66, 43, 16, 0.08);
}

.dog-portrait {
  display: grid;
  min-height: 235px;
  place-items: end center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 32%, #fff8df 0%, #e7d29f 68%, #d2b77e 100%);
}

.dog-portrait img { display: block; width: 100%; height: 235px; object-fit: contain; object-position: center bottom; }
.dog-card-copy { display: flex; flex: 1; flex-direction: column; padding: 1.15rem 1.2rem 1.3rem; }
.dog-name-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.7rem; }
.dog-name-row h3 { margin: 0; color: var(--green-dark); font-size: 1.45rem; }
.dog-card-copy > p { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.96rem; line-height: 1.55; }

.unlock-badge {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 1.8rem;
  align-items: center;
  gap: 0.28rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid #e3b23f;
  border-radius: 999px;
  background: #fff3c7;
  color: #67420b;
  font-size: 0.75rem;
  font-weight: 850;
  white-space: nowrap;
}

.unlock-badge--starter { border-color: #85aa72; background: #e5f4d5; color: #234c27; }

.sheep-heading-wrap { max-width: 750px; margin-bottom: 2.5rem; }
.sheep-intro { max-width: 42rem; margin: -0.2rem 0 0; color: rgba(255, 255, 255, 0.72); font-size: 1.08rem; }
.sheep-card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.sheep-card { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 1.25rem; background: rgba(255, 255, 255, 0.07); }
.sheep-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f7f2e9; }
.sheep-card > div { padding: 1rem 1rem 1.15rem; }
.sheep-card h3 { margin: 0.25rem 0 0.45rem; color: #fff; font-size: 1.08rem; letter-spacing: -0.02em; }
.sheep-card p { margin: 0; color: rgba(255, 255, 255, 0.7); font-size: 0.91rem; line-height: 1.5; }
.sheep-number { color: var(--gold); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.08em; }

.trailer-panel { display: grid; grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr); align-items: center; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 1.5rem; background: rgba(255, 255, 255, 0.06); }
.trailer-copy .eyebrow { margin-bottom: 0.8rem; }
.trailer-panel h2 { margin-bottom: 0.75rem; font-size: clamp(2rem, 4vw, 3.2rem); }
.trailer-panel p { margin: 0; color: rgba(255, 255, 255, 0.76); }
.trailer-frame { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 1rem; background: #071f13; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32); }
.trailer-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #071f13; object-fit: contain; }

.site-footer { padding: 2.4rem 1.5rem; background: #0c291b; color: rgba(255, 255, 255, 0.72); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width: min(1120px, 100%); margin: 0 auto; }
.footer-inner p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: #fff; font-weight: 700; }

.legal-hero { padding: 5.5rem 1.5rem 3.5rem; background: #eaf3d0; }
.legal-hero .wrap, .legal { width: min(820px, 100%); }
.legal-hero h1 { margin-bottom: 0.75rem; color: var(--green-dark); font-size: clamp(2.7rem, 6vw, 4.8rem); }
.legal-hero p { margin: 0; color: var(--muted); }
.legal { margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.legal h2 { margin: 2.5rem 0 0.8rem; color: var(--green-dark); font-size: 1.55rem; }
.legal p { margin: 0.75rem 0; }
.legal a { color: var(--green); font-weight: 700; }
.legal-note { padding: 1.2rem 1.35rem; border-left: 4px solid var(--gold); border-radius: 0 0.8rem 0.8rem 0; background: #fff8dc; }

.feedback-wrap {
  display: grid;
  width: min(1020px, 100%);
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 2rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
  align-items: start;
}

.feedback-form,
.feedback-aside {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(18, 61, 39, 0.07);
}

.feedback-form { padding: clamp(1.4rem, 4vw, 2.5rem); }
.feedback-aside { padding: 1.7rem; }
.feedback-aside h2 { margin-bottom: 0.75rem; font-size: 1.45rem; }
.feedback-aside p { margin: 0; color: var(--muted); }
.feedback-aside p + p { margin-top: 1rem; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.25rem; }
.form-field--full { grid-column: 1 / -1; }
.form-field label, .form-legend { color: var(--green-dark); font-weight: 800; }
.form-hint { color: var(--muted); font-size: 0.9rem; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 3.1rem;
  border: 1px solid #bfcab9;
  border-radius: 0.8rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.72rem 0.85rem;
}

.form-field textarea { min-height: 10rem; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 3px solid rgba(31, 90, 56, 0.22); border-color: var(--green); }

.check-row { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0.25rem 0 1.4rem; }
.check-row input { width: 1.15rem; height: 1.15rem; margin-top: 0.28rem; accent-color: var(--green); }
.check-row label { color: var(--muted); }
.feedback-form .button { border: 0; cursor: pointer; font: inherit; }
.feedback-form .button:disabled { cursor: wait; opacity: 0.62; transform: none; }
.form-status { min-height: 1.7rem; margin: 1rem 0 0; font-weight: 750; }
.form-status[data-state="success"] { color: #17663d; }
.form-status[data-state="error"] { color: #a52a2a; }
.bot-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 1050px) {
  .trial-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheep-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .site-header { align-items: flex-start; background: linear-gradient(180deg, rgba(7, 31, 19, 0.72), rgba(7, 31, 19, 0)); }
  nav { gap: 0.8rem; }
  .hero { min-height: 0; align-items: stretch; }
  .hero::before {
    inset: 0 0 auto;
    height: 56.28vw;
    background: linear-gradient(180deg, rgba(7, 31, 19, 0.05) 50%, var(--green-dark) 100%), url("/assets/game-background.png") center top / contain no-repeat;
    transform: none;
  }
  .hero-content { width: min(100% - 2rem, 1120px); padding: calc(56.28vw + 1.5rem) 0 3.8rem; }
  .hero-logo { width: min(520px, 88vw); }
  .trials-intro, .feature-grid, .section-heading { grid-template-columns: 1fr; }
  .trial-count { width: fit-content; }
  .trial-gallery { grid-template-columns: 1fr; }
  .dog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheep-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trailer-panel { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .feedback-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand > span:last-child { display: none; }
  .site-header { padding-inline: 1rem; }
  .site-header--solid { padding-inline: 1rem; }
  nav { gap: 0.65rem; }
  nav a { font-size: 0.8rem; }
  .hero-content { width: min(100% - 2rem, 1120px); }
  .hero-logo { width: min(100%, 430px); }
  .section { padding: 4.5rem 1rem; }
  .trial-list { grid-template-columns: 1fr; }
  .dog-grid { grid-template-columns: 1fr; }
  .dog-portrait, .dog-portrait img { height: 260px; }
  .dog-portrait { min-height: 260px; }
  .sheep-card-grid { grid-template-columns: 1fr; }
  .feature-card, .trailer-panel { padding: 1.5rem; }
  .feedback-wrap { padding: 3rem 1rem 4.5rem; }
  .form-grid { grid-template-columns: 1fr; }
}

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