:root {
  color-scheme: dark;
  --ink: #fff8e8;
  --muted: #d9c8a9;
  --night: #15120f;
  --bark: #31251c;
  --leaf: #2f5e45;
  --gold: #e5b84f;
  --clay: #a95536;
  --line: rgba(255, 248, 232, 0.18);
  --shadow: rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 5vw, 64px);
  background: rgba(16, 14, 12, 0.82);
  border-bottom: 1px solid rgba(255, 248, 232, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.site-header.compact {
  background: rgba(28, 24, 20, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 96px;
  flex: 0 0 auto;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-header nav,
footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.site-header a,
footer a {
  text-decoration: none;
}

.site-header nav a,
footer nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-header nav a:hover,
footer nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 150px clamp(18px, 5vw, 64px) 72px;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(12, 10, 8, 0.92), rgba(12, 10, 8, 0.58) 44%, rgba(12, 10, 8, 0.18)),
    linear-gradient(0deg, var(--night), rgba(21, 18, 15, 0) 34%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 42%;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero-copy p:not(.eyebrow) {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.4vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: #1b1309;
  border-color: var(--gold);
}

.button.secondary {
  background: rgba(255, 248, 232, 0.08);
  color: var(--ink);
}

.section {
  padding: 88px clamp(18px, 5vw, 64px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: #1c1814;
}

.split > div:first-child p:not(.eyebrow),
.showcase p,
.updates p,
.legal p {
  color: var(--muted);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-list article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.04);
}

.feature-list article:nth-child(2) {
  border-top-color: rgba(229, 184, 79, 0.7);
}

.feature-list article:nth-child(3) {
  border-top-color: rgba(47, 94, 69, 0.9);
}

.showcase {
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(0, 650px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  background: linear-gradient(180deg, #15120f, #241b15);
}

.showcase img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  object-position: 52% 36%;
  border-radius: 8px;
  box-shadow: 0 22px 64px var(--shadow);
}

.updates {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  background: var(--leaf);
}

.updates div {
  max-width: 720px;
}

.legal {
  width: min(820px, calc(100% - 36px));
  margin: 0 auto;
  padding: 74px 0 90px;
}

.legal h1 {
  font-size: clamp(2.6rem, 8vw, 5rem);
}

.legal h2 {
  margin-top: 38px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.legal-list {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--muted);
}

.legal-list li + li {
  margin-top: 8px;
}

.legal-note {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.support-form {
  display: grid;
  gap: 12px;
  margin: 34px 0 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.04);
}

.form-honeypot {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.support-form label {
  color: var(--ink);
  font-weight: 800;
}

.support-form input,
.support-form select,
.support-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 248, 232, 0.24);
  border-radius: 6px;
  background: #100e0c;
  color: var(--ink);
  font: inherit;
}

.support-form textarea {
  resize: vertical;
}

.support-form input:focus,
.support-form select:focus,
.support-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.support-form button {
  margin-top: 8px;
  cursor: pointer;
}

.support-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.5em;
  margin: 0;
  font-weight: 800;
}

.form-status[data-tone="success"] {
  color: #8ee6aa;
}

.form-status[data-tone="error"] {
  color: #ffb0a6;
}

.contact-fallback {
  font-size: 0.96rem;
}

.back-to-top {
  position: fixed;
  right: clamp(18px, 4vw, 34px);
  bottom: clamp(18px, 4vw, 34px);
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 248, 232, 0.24);
  border-radius: 999px;
  background: rgba(16, 14, 12, 0.88);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.back-to-top:hover {
  background: var(--gold);
  color: #1b1309;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.back-to-top[hidden] {
  display: none;
}

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 64px);
  background: #100e0c;
  border-top: 1px solid var(--line);
}

footer p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header {
    align-items: center;
    gap: 16px;
  }

  .brand {
    width: 84px;
  }

  .hero {
    min-height: 88vh;
    padding-top: 126px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(12, 10, 8, 0.96), rgba(12, 10, 8, 0.38) 72%),
      linear-gradient(90deg, rgba(12, 10, 8, 0.75), rgba(12, 10, 8, 0.12));
  }

  .split,
  .showcase {
    grid-template-columns: 1fr;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-list article {
    min-height: auto;
  }

  .updates,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .brand {
    width: 66px;
  }

  .site-header nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .site-header nav a {
    font-size: 0.82rem;
  }

  footer nav {
    gap: 8px 14px;
  }

  .button {
    width: 100%;
  }

  .back-to-top {
    width: 44px;
    height: 44px;
  }
}
