:root {
  --primary: #6b1f28;
  --primary-bright: #8a2e3b;
  --gold: #c7a246;
  --gold-light: #e7d29a;
  --teal: #4f7c75;
  --parchment: #fff9f1;
  --gray-100: #f4efe7;
  --gray-200: #e6ded1;
  --ink: #2a211b;
  --off-black: #1d1a17;
  --shadow: 0 24px 70px rgba(29, 26, 23, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 18% 5%,
      rgba(199, 162, 70, 0.24),
      transparent 30rem
    ),
    linear-gradient(180deg, #fff9f1 0%, #f4efe7 44%, #fff9f1 100%);
  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 10;
  top: 16px;
  left: 50%;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 249, 241, 0.34);
  border-radius: 999px;
  background: rgba(107, 31, 40, 0.82);
  box-shadow: 0 16px 40px rgba(42, 33, 27, 0.22);
  color: var(--parchment);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
}

.brand img {
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(231, 210, 154, 0.44);
}

nav {
  display: flex;
  gap: 6px;
}

nav a {
  min-height: 40px;
  padding: 11px 16px;
  border-radius: 999px;
  color: rgba(255, 249, 241, 0.82);
  font-size: 0.93rem;
  font-weight: 700;
}

nav a:hover,
nav a:focus-visible {
  background: rgba(255, 249, 241, 0.14);
  color: var(--parchment);
  outline: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88vh;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(28px, 4vw, 76px);
  justify-items: center;
  align-items: center;
  overflow: hidden;
  padding: 130px max(24px, calc((100vw - 1120px) / 2)) 72px;
  color: var(--parchment);
  background:
    linear-gradient(
      135deg,
      rgba(107, 31, 40, 0.98),
      rgba(138, 46, 59, 0.9) 48%,
      rgba(79, 124, 117, 0.92)
    ),
    var(--primary);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 10px;
  background: linear-gradient(
    90deg,
    var(--gold),
    var(--gold-light),
    var(--teal),
    var(--gold)
  );
  content: "";
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(
      120deg,
      transparent 0 46%,
      rgba(255, 249, 241, 0.16) 46% 47%,
      transparent 47% 100%
    ),
    linear-gradient(
      30deg,
      transparent 0 48%,
      rgba(231, 210, 154, 0.18) 48% 49%,
      transparent 49% 100%
    );
  background-size: 88px 88px;
  mask-image: linear-gradient(90deg, black, transparent 80%);
}

.hero-content,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: #5d5045;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 6.8rem;
  line-height: 0.86;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 249, 241, 0.82);
  font-size: 1.35rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .button {
  flex: 0 300px;
}

.button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  outline: none;
}

.button-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
}

.button-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.button.primary {
  background: var(--gold);
  box-shadow: 0 18px 40px rgba(199, 162, 70, 0.34);
  color: #2b1612;
}

.button.primary .button-icon {
  background: rgba(42, 33, 27, 0.14);
}

.button.secondary {
  border: 1px solid rgba(255, 249, 241, 0.3);
  background: rgba(255, 249, 241, 0.1);
  color: var(--parchment);
}

.button.secondary .button-icon {
  background: rgba(255, 249, 241, 0.16);
}

.hero-visual {
  justify-self: end;
  width: min(100%, 520px);
  filter: drop-shadow(0 34px 55px rgba(29, 26, 23, 0.42));
  animation: float 5.6s ease-in-out infinite;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
}

.stat {
  padding: clamp(26px, 5vw, 52px);
  background: var(--parchment);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
}

.stat span {
  color: #5d5045;
  line-height: 1.55;
}

.section,
.download-section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 118px) 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.download-section h2 {
  margin-bottom: 16px;
  color: var(--primary);
  font-size: 3.8rem;
  line-height: 1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 274px;
  padding: 24px;
  border: 1px solid rgba(107, 31, 40, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 249, 241, 0.88),
      rgba(255, 249, 241, 0.72)
    ),
    var(--parchment);
  box-shadow: 0 16px 45px rgba(42, 33, 27, 0.08);
}

.feature-icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 42px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 1.1rem;
}

.feature-card p,
.download-section p {
  color: #5d5045;
  line-height: 1.65;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

code {
  padding: 0.14rem 0.34rem;
  border-radius: 5px;
  background: rgba(107, 31, 40, 0.08);
  color: var(--primary);
  font-size: 0.92em;
}

.download-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 249, 241, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(199, 162, 70, 0.32),
      transparent 19rem
    ),
    linear-gradient(
      135deg,
      var(--primary),
      var(--primary-bright) 64%,
      var(--teal)
    );
  box-shadow: var(--shadow);
}

.download-item {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(255, 249, 241, 0.18);
  border-radius: 8px;
  background: rgba(255, 249, 241, 0.1);
  color: var(--parchment);
}

.download-item:hover,
.download-item:focus-visible {
  background: rgba(255, 249, 241, 0.16);
  outline: none;
}

.download-item strong,
.download-item small {
  display: block;
}

.download-item strong {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.download-item small {
  color: rgba(255, 249, 241, 0.68);
  line-height: 1.4;
}

.download-item b {
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--gold);
  color: #2b1612;
  font-size: 0.82rem;
}

.site-footer {
  display: flex;
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(24px, calc((100vw - 1120px) / 2));
  background: var(--off-black);
  color: rgba(255, 249, 241, 0.74);
}

.site-footer span:first-child {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@media (max-width: 900px) {
  .hero,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 430px);
  }

  h1 {
    font-size: 5.4rem;
  }

  .section-heading h2,
  .download-section h2 {
    font-size: 3rem;
  }

  .intro-band,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 58px;
    padding: 10px 10px 10px 14px;
  }

  .brand span {
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  nav a {
    padding: 10px 11px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  h1 {
    font-size: 4.2rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .section-heading h2,
  .download-section h2 {
    font-size: 2.25rem;
  }

  .stat strong {
    font-size: 1.7rem;
  }

  .button,
  .download-item,
  .site-footer {
    width: 100%;
  }

  .intro-band,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .download-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
