:root {
  --treasure-gold: #f2b23d;
  --bandana-red: #d62e14;
  --chest-brown: #7a4a26;
  --parchment: #faebc7;
  --deep-sea: #0d2640;
  --rope-tan: #c2996b;
  --ink-black: #1f1a14;
  --ocean-blue: #3373a6;
  --white: #fffdf7;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 45px rgba(31, 26, 20, 0.16);
  --shadow-tight: 0 10px 24px rgba(31, 26, 20, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink-black);
  font-family: "IM Fell English", serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 178, 61, 0.18), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(214, 46, 20, 0.12), transparent 38%),
    radial-gradient(circle at 20% 80%, rgba(122, 74, 38, 0.14), transparent 40%),
    linear-gradient(180deg, #fff8e1 0%, #faebc7 45%, #f0d7a9 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      -35deg,
      rgba(31, 26, 20, 0.03),
      rgba(31, 26, 20, 0.03) 1px,
      transparent 1px,
      transparent 5px
    ),
    radial-gradient(circle at 30% 20%, rgba(31, 26, 20, 0.08), transparent 42%),
    radial-gradient(circle at 70% 70%, rgba(31, 26, 20, 0.08), transparent 40%);
  mix-blend-mode: multiply;
  opacity: 0.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ocean-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--bandana-red);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(250, 235, 199, 0.85);
  border-bottom: 1px solid rgba(122, 74, 38, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Pirata One", serif;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--chest-brown);
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid rgba(122, 74, 38, 0.3);
  background: var(--white);
}

.nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
}

.nav-links a {
  color: var(--chest-brown);
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 64px 0 32px;
  align-items: center;
}

.hero-copy h1 {
  font-family: "Pirata One", serif;
  font-size: clamp(40px, 6vw, 68px);
  margin: 8px 0 12px;
  color: var(--chest-brown);
}

.hero-copy p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 22px;
  color: rgba(31, 26, 20, 0.85);
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(214, 46, 20, 0.12);
  color: var(--bandana-red);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
  background: var(--bandana-red);
  color: var(--white);
  box-shadow: var(--shadow-tight);
}

.button.ghost {
  border-color: var(--chest-brown);
  color: var(--chest-brown);
  background: rgba(255, 253, 247, 0.8);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-card {
  background: rgba(255, 253, 247, 0.9);
  border-radius: var(--radius-lg);
  padding: 18px;
  border: 2px solid rgba(122, 74, 38, 0.25);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: calc(var(--radius-lg) + 16px);
  border: 2px dashed rgba(194, 153, 107, 0.5);
  z-index: -1;
}

.hero-card img {
  border-radius: var(--radius-md);
}

.section {
  padding: 48px 0;
}

.section h2 {
  font-family: "Pirata One", serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--chest-brown);
  margin-bottom: 12px;
}

.section p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.split {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.feature-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(255, 253, 247, 0.88);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid rgba(122, 74, 38, 0.2);
  box-shadow: var(--shadow-tight);
}

.card h3 {
  font-family: "Pirata One", serif;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--chest-brown);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.badge {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(51, 115, 166, 0.14);
  color: var(--ocean-blue);
  font-weight: 700;
  font-size: 13px;
}

.screens-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.screen-card {
  background: rgba(255, 253, 247, 0.88);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid rgba(122, 74, 38, 0.2);
  box-shadow: var(--shadow-tight);
  text-align: center;
}

.screen-card img {
  border-radius: 18px;
  border: 2px solid rgba(122, 74, 38, 0.2);
  background: rgba(250, 235, 199, 0.6);
}

.screen-card figcaption {
  margin-top: 12px;
  font-weight: 700;
  color: var(--chest-brown);
}

.callout {
  background: rgba(242, 178, 61, 0.18);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid rgba(122, 74, 38, 0.2);
}

.cta-band {
  background: rgba(31, 26, 20, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(122, 74, 38, 0.2);
  color: rgba(31, 26, 20, 0.7);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.legal-page {
  padding: 48px 0 64px;
}

.legal-page h1 {
  font-family: "Pirata One", serif;
  font-size: clamp(34px, 5vw, 52px);
  color: var(--chest-brown);
  margin-bottom: 16px;
}

.legal-page h2 {
  font-family: "Pirata One", serif;
  color: var(--chest-brown);
  margin-top: 28px;
}

.legal-page ul {
  padding-left: 20px;
}

.notice {
  font-size: 14px;
  color: rgba(31, 26, 20, 0.6);
}

.hero-copy > * {
  animation: fadeUp 0.7s ease both;
}

.hero-copy > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > *:nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy > *:nth-child(5) {
  animation-delay: 0.32s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .hero {
    padding-top: 40px;
  }

  .cta-band {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    animation: none;
  }

  .button {
    transition: none;
  }
}
