:root {
  --bg: #0f1a17;
  --bg-2: #152420;
  --surface: #1a2e28;
  --ink: #e8f2ee;
  --muted: #8aa89a;
  --accent: #c4a35a;
  --accent-soft: rgba(196, 163, 90, 0.18);
  --line: rgba(232, 242, 238, 0.1);
  --max: 68rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 60% at 10% -10%, rgba(196, 163, 90, 0.16), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(60, 120, 100, 0.22), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.nav {
  padding: calc(1rem + var(--safe-t)) 0 1rem;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 26, 23, 0.72);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero {
  min-height: calc(100svh - 4.5rem);
  display: grid;
  align-items: end;
  padding: 4rem 0 5rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(15, 26, 23, 0.55));
  pointer-events: none;
}

.kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin-bottom: 1.25rem;
}

.hero__lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  position: relative;
  z-index: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--accent);
  color: #0f1a17;
}

.btn--primary:hover { background: #d4b56e; color: #0f1a17; }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}

.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.sec-lead {
  color: var(--muted);
  max-width: 38rem;
  margin-bottom: 2rem;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .split { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

.split article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.split h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.split p { color: var(--muted); font-size: 0.98rem; }

.form-block {
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 1.75rem;
  max-width: 32rem;
}

.form-block label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.form-block input,
.form-block textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  background: rgba(15, 26, 23, 0.55);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit;
}

.form-block input:focus,
.form-block textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 calc(2rem + var(--safe-b));
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand a { color: var(--accent); }

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
}

.fade-in:nth-child(2) { animation-delay: 0.08s; }
.fade-in:nth-child(3) { animation-delay: 0.16s; }

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

.list-plain {
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.list-plain a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.list-plain a span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.status-ok { color: var(--accent); }
.code {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--line);
}
