:root {
  --ink: #14201c;
  --muted: #5c6b64;
  --line: #d5ddd8;
  --paper: #f3f6f4;
  --brand: #0f6b5c;
  --brand-deep: #0a4d42;
  --brand-soft: #d8efe9;
  --danger: #9b2c2c;
  --ok: #1f7a45;
  --font: "Avenir Next", "Segoe UI Variable", "Helvetica Neue", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.landing {
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -8%, #cfece3 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 10%, #e4efe6 0%, transparent 50%),
    linear-gradient(180deg, #f7faf8 0%, var(--paper) 42%, #eef3f0 100%);
}

a {
  color: var(--brand-deep);
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: #b7c4bd;
}

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
}

.land-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(16px, 4vw, 40px);
  position: relative;
  z-index: 2;
}

.land-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.land-nav-brand img {
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(15, 107, 92, 0.12);
}

.land-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.land-nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.land-nav-cta {
  color: var(--brand-deep) !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

/* —— Hero: one composition, brand first —— */
.land-hero {
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(24px, 5vh, 48px) clamp(16px, 4vw, 40px) clamp(40px, 8vh, 72px);
  position: relative;
  overflow: hidden;
}

.land-hero-copy {
  max-width: 34rem;
  animation: land-rise 0.7s ease both;
}

.land-brand {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--brand-deep);
  margin-bottom: 14px;
}

.land-hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.land-lead {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  max-width: 28rem;
  margin-bottom: 22px;
  animation: land-rise 0.7s ease 0.08s both;
}

.land-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: land-rise 0.7s ease 0.16s both;
}

.land-hero-visual {
  position: relative;
  min-height: min(52vh, 420px);
  display: grid;
  place-items: center;
  animation: land-fade 1s ease 0.12s both;
}

.land-hero-mark {
  width: min(58vw, 340px);
  height: auto;
  border-radius: 28px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 50px rgba(10, 77, 66, 0.22));
  animation: land-float 7s ease-in-out infinite;
}

.land-hero-glow {
  position: absolute;
  inset: 12% 8%;
  background:
    radial-gradient(circle at 50% 45%, rgba(15, 107, 92, 0.28), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(31, 122, 69, 0.16), transparent 55%);
  filter: blur(8px);
  z-index: 0;
}

/* —— Downloads —— */
.land-downloads {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 40px) 72px;
}

.land-section-head {
  margin-bottom: 22px;
}

.land-section-head h2 {
  font-family: var(--display);
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.land-section-head p {
  color: var(--muted);
  line-height: 1.45;
}

.land-how {
  padding-bottom: 24px;
}

.land-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.land-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 52px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.land-steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--accent, #1f7a45);
  color: #fff;
}

.land-steps a {
  color: inherit;
  font-weight: 600;
}

.land-code-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.land-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.land-code-row input {
  flex: 1 1 220px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff;
  color: var(--ink);
}

.land-code-row input:focus {
  outline: 2px solid var(--brand-soft);
  border-color: var(--brand);
}

.land-error {
  margin-top: 10px;
  color: var(--danger);
  font-size: 0.9rem;
}

.land-ok {
  margin-top: 10px;
  color: var(--ok);
  font-size: 0.9rem;
}

.land-one-cmd {
  margin-top: 12px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  animation: land-rise 0.45s ease both;
}

.land-one-cmd label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.land-one-cmd textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
  background: #f7faf8;
}

.land-one-cmd-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.land-os-actions {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  animation: land-rise 0.45s ease both;
}

.land-os-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.land-os-btn:hover {
  border-color: var(--brand);
  background: #fff;
  transform: translateY(-1px);
}

.land-os-btn.preferred {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.land-os-btn strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.land-os-btn span {
  color: var(--muted);
  font-size: 0.88rem;
}

.land-alt {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.land-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 20px clamp(16px, 4vw, 40px) 32px;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid rgba(213, 221, 216, 0.7);
}

.land-foot a {
  text-decoration: none;
  font-weight: 600;
}

@keyframes land-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes land-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes land-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 860px) {
  .land-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 12px;
  }

  .land-hero-visual {
    order: -1;
    min-height: 220px;
  }

  .land-hero-mark {
    width: min(46vw, 200px);
  }

  .land-brand {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
