:root {
  --saffron: #ff9933;
  --saffron-deep: #e8892a;
  --maroon: #800000;
  --maroon-deep: #5c0000;
  --ink: #2a1216;
  --muted: #6e4a50;
  --paper: #fffcf8;
  --line: rgba(128, 0, 0, 0.14);
  --shadow: 0 24px 60px rgba(90, 20, 30, 0.12);
  --display: "Bricolage Grotesque", Georgia, serif;
  --body: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--maroon); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--saffron-deep); }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92em;
  background: rgba(255, 153, 51, 0.12);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(255, 153, 51, 0.35), transparent 60%),
    radial-gradient(800px 480px at 92% 8%, rgba(128, 0, 0, 0.22), transparent 55%),
    linear-gradient(180deg, #fff4e6 0%, var(--paper) 42%, #fff 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.04) translate3d(-1.5%, 1%, 0); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  backdrop-filter: blur(12px);
  background: rgba(255, 252, 248, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(90, 20, 30, 0.06); }

.brand img { display: block; height: 40px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--maroon); }
.nav-cta {
  background: var(--maroon);
  color: #fff7ef !important;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--maroon-deep); color: #fff !important; }

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vh, 5rem);
  max-width: 1120px;
  margin: 0 auto;
}

.brand-signal {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  color: var(--maroon);
  line-height: 1;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 16ch;
  color: var(--ink);
}

.lede {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38ch;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn.primary {
  background: var(--saffron);
  color: var(--maroon);
  border-color: var(--saffron);
}
.btn.primary:hover { background: var(--saffron-deep); color: var(--maroon-deep); }
.btn.ghost {
  background: transparent;
  color: var(--maroon);
  border-color: rgba(128, 0, 0, 0.28);
}
.btn.ghost:hover { border-color: var(--maroon); background: rgba(128, 0, 0, 0.04); }

.visual-plane {
  position: relative;
  min-height: 280px;
  padding: 2.25rem 1.5rem;
  background:
    linear-gradient(145deg, rgba(128, 0, 0, 0.92), rgba(90, 0, 0, 0.88)),
    radial-gradient(500px 240px at 20% 20%, rgba(255, 153, 51, 0.35), transparent 60%);
  color: #fff7ef;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}
.visual-plane::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% 20%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 153, 51, 0.4), transparent 65%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.08); }
}
.path-line {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 51, 0.85), transparent);
  opacity: 0.7;
}
.node {
  position: relative;
  z-index: 1;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 247, 239, 0.22);
  background: rgba(255, 247, 239, 0.08);
  width: fit-content;
  max-width: 100%;
}
.node.local { align-self: flex-start; }
.node.arrow {
  align-self: center;
  border: 0;
  background: transparent;
  color: var(--saffron);
  font-size: 1.6rem;
  padding: 0;
  animation: nudge 2.4s ease-in-out infinite;
}
.node.url {
  align-self: flex-end;
  border-color: rgba(255, 153, 51, 0.55);
  background: rgba(255, 153, 51, 0.16);
}
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.section.tint {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  background: linear-gradient(180deg, rgba(255, 153, 51, 0.08), rgba(128, 0, 0, 0.05));
  border-block: 1px solid var(--line);
}
.section.tint > * {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}
.section-intro { max-width: 38rem; margin-bottom: 2.5rem; }
.section-intro h2, .download-panel h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-intro p, .download-panel p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.steps li { padding-top: 0.25rem; border-top: 2px solid var(--saffron); }
.step-num {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  color: var(--maroon);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.steps h3 { margin: 0 0 0.5rem; font-family: var(--display); font-size: 1.25rem; }
.steps p { margin: 0; color: var(--muted); }

.traits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}
.traits li {
  padding: 0.35rem 0 0.35rem 1rem;
  border-left: 3px solid var(--maroon);
  color: var(--muted);
}
.traits strong { color: var(--ink); font-weight: 700; }

.license-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.license-steps li { padding-top: 0.25rem; border-top: 2px solid var(--maroon); }
.license-steps h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.25rem;
}
.license-steps p { margin: 0; color: var(--muted); }
.license-steps strong { color: var(--ink); }
.license-contact {
  margin: 2.25rem 0 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}
.license-contact a { font-weight: 700; }

.download-panel { max-width: 40rem; }
.download-panel .cta-row { margin-top: 1.25rem; }
.fineprint { margin-top: 1.25rem; font-size: 0.88rem; color: var(--muted); }

.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-logo { height: 28px; width: auto; margin-bottom: 0.75rem; opacity: 0.9; }
.site-footer p { margin: 0.25rem 0; color: var(--muted); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.8s ease forwards;
}
.reveal.delay { animation-delay: 0.12s; }
.reveal.delay2 { animation-delay: 0.24s; }
.reveal.delay3 { animation-delay: 0.36s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero h1 { max-width: none; }
  .steps,
  .license-steps { grid-template-columns: 1fr; }
  .nav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere, .node.arrow, .visual-plane::after, .reveal { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
