:root {
  --ground: #f4efe4;
  --text: #241d15;
  --muted: rgba(36, 29, 21, 0.6);
  --line: rgba(36, 29, 21, 0.16);
  --terrace: #3f5a45;
  --seed: #a8791f;
  --ochre: #7a3420;
  --hill-1: #4a6650;
  --hill-2: #3f5a45;
  --hill-3: #354c3b;
  --hill-4: #2b3f31;
  --hill-5: #223327;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #221a12;
    --text: #efe6d5;
    --muted: rgba(239, 230, 213, 0.62);
    --line: rgba(239, 230, 213, 0.18);
    --terrace: #7d9c82;
    --seed: #d3a244;
    --ochre: #c47a51;
    --hill-1: #3c5342;
    --hill-2: #344839;
    --hill-3: #2c3e31;
    --hill-4: #253429;
    --hill-5: #1e2a22;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* terraced hillside */
.hills {
  position: fixed;
  inset: auto 0 0 0;
  height: 58%;
  z-index: 0;
  pointer-events: none;
}

.hills span {
  position: absolute;
  bottom: 0;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  display: block;
}

.hills span:nth-child(1) { height: 100%; background: var(--hill-1); left: -14%; right: -14%; }
.hills span:nth-child(2) { height: 82%;  background: var(--hill-2); left: -22%; right: -6%; }
.hills span:nth-child(3) { height: 64%;  background: var(--hill-3); left: -4%;  right: -24%; }
.hills span:nth-child(4) { height: 44%;  background: var(--hill-4); left: -18%; right: -10%; }
.hills span:nth-child(5) { height: 26%;  background: var(--hill-5); left: -8%;  right: -20%; }

/* contour lines cut across the slope */
.hills::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(244, 239, 228, 0.13) 0,
    rgba(244, 239, 228, 0.13) 1px,
    transparent 1px,
    transparent 15px
  );
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 100%);
}

/* language toggle */
.lang {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 3;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.lang:hover { border-color: var(--text); }
.lang:focus-visible { outline: 3px solid var(--seed); outline-offset: 3px; }

main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
}

.copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 32px;
}

/* app teaser */
.peek {
  margin: 0;
  align-self: center;
  max-height: 52vh;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #1c1a16;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

.peek img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 900px) {
  main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 52px;
    align-items: center;
  }

  .copy { padding-bottom: 0; }
  .peek { max-height: 60vh; }
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: flex-start;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--seed);
  margin: 0 0 20px;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--seed);
}

.lockup {
  font-family: "Arial Narrow", "Oswald", "Haettenschweiler", sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 17vw, 176px);
  line-height: 0.82;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin: 0;
}

.lockup span { display: block; color: var(--terrace); }

.gloss {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 20px 0 0;
}

.gloss b { color: var(--text); font-weight: 600; }

.promise {
  font-size: clamp(19px, 2.7vw, 26px);
  line-height: 1.3;
  max-width: 22ch;
  margin: 22px 0 0;
  text-wrap: balance;
}

.promise-sub {
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.5;
  max-width: 34ch;
  margin: 12px 0 0;
  color: var(--muted);
  text-wrap: balance;
}

.cta {
  align-self: flex-start;
  margin-top: 30px;
  background: var(--terrace);
  color: var(--ground);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 2px solid var(--terrace);
  transition: background 0.18s ease, color 0.18s ease;
}

.cta:hover { background: transparent; color: var(--text); }
.cta:focus-visible { outline: 3px solid var(--seed); outline-offset: 3px; }

footer {
  position: relative;
  z-index: 2;
  background: var(--ground);
  border-top: 1px solid var(--line);
  width: 100%;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 15px 24px;
  font-size: 12.5px;
  color: var(--muted);
}

/* discreet credit: reads as plain text, still a real link */
.by {
  letter-spacing: 0.02em;
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

.by:hover { color: var(--text); }
.by:focus-visible { outline: 3px solid var(--seed); outline-offset: 3px; }

.domain {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: ui-monospace, Consolas, monospace;
}

@media (max-width: 899px) {
  body { overflow-y: auto; height: auto; min-height: 100%; }
  .hills { height: 46%; }
  main { padding-top: 88px; padding-bottom: 32px; align-content: start; }
  .copy { padding-bottom: 30px; }
  .peek { max-height: 38vh; }
  .promise { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lang, .cta { transition: none; }
}
