:root {
  --forest: #183222;
  --forest-deep: #0d1d14;
  --moss: #5f7f4a;
  --meadow: #d8c989;
  --sand: #f4edda;
  --cream: #fffaf0;
  --clay: #a35f3f;
  --ink: #172018;
  --muted: #65705f;
  --line: rgba(23, 32, 24, 0.14);
  --white-glass: rgba(255, 250, 240, 0.78);
  --shadow: 0 28px 90px rgba(13, 29, 20, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at 18% 20%, rgba(216, 201, 137, 0.65), transparent 28rem),
    radial-gradient(circle at 82% 14%, rgba(95, 127, 74, 0.42), transparent 24rem),
    linear-gradient(135deg, #f8f1dc 0%, #dfe7cb 48%, #aebd8f 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(30deg, rgba(24, 50, 34, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(24, 50, 34, 0.16) 87.5%, rgba(24, 50, 34, 0.16)),
    linear-gradient(150deg, rgba(24, 50, 34, 0.16) 12%, transparent 12.5%, transparent 87%, rgba(24, 50, 34, 0.16) 87.5%, rgba(24, 50, 34, 0.16));
  background-size: 72px 126px;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  place-items: center;
}

.gate-card,
.download-page {
  width: 100%;
  border: 1px solid rgba(255, 250, 240, 0.55);
  border-radius: 34px;
  background: var(--white-glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.gate-card {
  max-width: 560px;
  padding: clamp(28px, 6vw, 56px);
  animation: rise-in 520ms ease both;
}

.download-page {
  display: none;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  animation: rise-in 560ms ease both;
}

body.is-unlocked .download-page {
  display: block;
}

body.is-unlocked .gate-card {
  display: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--clay);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.gate-card h1 {
  font-size: clamp(2.45rem, 8vw, 4.8rem);
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
  letter-spacing: -0.04em;
}

.gate-copy,
.hero-copy p,
.about-lead,
.feature-card p,
.download-card p {
  color: var(--muted);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.password-form {
  margin-top: 30px;
}

.password-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--forest);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 18px;
  color: var(--ink);
  background: rgba(255, 250, 240, 0.82);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.input-row input:focus {
  border-color: var(--moss);
  box-shadow: 0 0 0 4px rgba(95, 127, 74, 0.18);
}

.input-row button,
.download-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.input-row button,
.download-button {
  padding: 15px 22px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--forest), var(--moss));
  box-shadow: 0 14px 30px rgba(24, 50, 34, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.input-row button:hover,
.download-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(24, 50, 34, 0.28);
}

.form-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--clay);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.92rem;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  color: var(--cream);
  background: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
}

.ghost-button {
  margin-left: auto;
  padding: 11px 16px;
  color: var(--forest);
  background: rgba(255, 250, 240, 0.58);
  border: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: end;
  margin: clamp(48px, 9vw, 88px) 0 28px;
}

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

.status-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(255, 250, 240, 0.65);
  border-radius: 28px;
  color: var(--cream);
  background:
    linear-gradient(160deg, rgba(13, 29, 20, 0.2), rgba(13, 29, 20, 0.88)),
    radial-gradient(circle at 80% 14%, rgba(216, 201, 137, 0.75), transparent 7rem),
    var(--forest-deep);
  overflow: hidden;
}

.status-card::after {
  position: absolute;
  right: -32px;
  bottom: -50px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 999px;
  content: "";
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #9be073;
  box-shadow: 0 0 0 8px rgba(155, 224, 115, 0.14);
}

.status-card p {
  margin: 48px 0 8px;
  color: rgba(255, 250, 240, 0.72);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.status-card strong {
  display: block;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.status-card small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 250, 240, 0.72);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.author-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 250, 240, 0.08);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.author-pill span {
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.author-pill strong {
  display: inline;
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0;
}

.about-section {
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(24px, 4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.72), rgba(216, 201, 137, 0.2)),
    rgba(255, 250, 240, 0.5);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: end;
}

.section-heading h2 {
  max-width: 620px;
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.96;
}

.about-lead {
  max-width: 760px;
  margin: 18px 0 24px;
}

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

.feature-card {
  min-height: 220px;
  border: 1px solid rgba(23, 32, 24, 0.12);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255, 250, 240, 0.72);
}

.feature-card span {
  display: inline-flex;
  margin-bottom: 36px;
  color: var(--clay);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.feature-card h3 {
  margin: 0 0 10px;
  color: var(--forest);
  font-size: 1.35rem;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 250, 240, 0.62);
}

.download-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 4vw, 32px);
}

.platform {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--forest);
  background: rgba(216, 201, 137, 0.48);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

code {
  border-radius: 8px;
  padding: 2px 6px;
  color: var(--forest);
  background: rgba(216, 201, 137, 0.42);
  font-family: "Courier New", monospace;
  font-size: 0.92em;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 22px, 1120px);
    padding: 12px 0;
  }

  .gate-card,
  .download-page {
    border-radius: 24px;
  }

  .input-row,
  .download-grid,
  .hero-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .input-row {
    display: grid;
  }

  .hero-grid {
    margin-top: 44px;
  }

  .status-card {
    min-height: 190px;
  }

  .download-card {
    min-height: 220px;
  }

  .section-heading {
    display: block;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-card span {
    margin-bottom: 18px;
  }
}
