:root {
  --bg: #130e0a;
  --bg-2: #24140c;
  --paper: #f1dca7;
  --paper-dark: #bd8843;
  --apple: #9f1f20;
  --apple-dark: #5f1215;
  --leaf: #31411f;
  --leaf-light: #607534;
  --terminal: #07110a;
  --glow: #62ff8c;
  --glow-dim: #2fc15d;
  --text: #ffe7b5;
  --muted: #c69b68;
  --line: rgba(255, 217, 149, .18);
  --shadow: rgba(0,0,0,.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 70% 10%, rgba(139, 58, 25, .55), transparent 34rem),
    radial-gradient(circle at 20% 20%, rgba(80, 32, 18, .6), transparent 30rem),
    linear-gradient(145deg, var(--bg), var(--bg-2) 52%, #070503);
  overflow-x: hidden;
}

a { color: inherit; }
.noise, .scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}
.noise {
  opacity: .08;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.scanlines {
  opacity: .16;
  background: repeating-linear-gradient(to bottom, transparent 0 4px, rgba(0,0,0,.34) 5px 6px);
}

.site-header, .site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  position: relative;
  z-index: 5;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 231, 181, .08);
  box-shadow: inset 0 0 22px rgba(255, 215, 128, .09);
  font-weight: 800;
  letter-spacing: .05em;
}
.brand strong { display: block; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; }
.brand small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.top-nav { display: flex; gap: 22px; color: var(--muted); font-size: .9rem; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { color: var(--text); }

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 34px;
  position: relative;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--paper-dark);
  letter-spacing: .18em;
  text-transform: uppercase;
  font: 700 .78rem ui-sans-serif, system-ui, sans-serif;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(4rem, 9vw, 7.7rem);
  line-height: .82;
  margin-bottom: 26px;
  max-width: 660px;
  text-shadow: 0 20px 42px rgba(0,0,0,.45);
}
.lead {
  max-width: 580px;
  color: #e5c48b;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button {
  display: inline-flex;
  padding: 13px 18px;
  border-radius: 999px;
  text-decoration: none;
  font: 800 .8rem ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 1px solid var(--line);
}
.button.primary { background: var(--paper); color: #2b170c; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.button.ghost { background: rgba(255,255,255,.04); color: var(--paper); }

.orchard-scene {
  min-height: 700px;
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 16%, rgba(255, 205, 125, .2), transparent 12rem),
    radial-gradient(ellipse at 50% 78%, rgba(122, 67, 28, .18), transparent 22rem),
    linear-gradient(to bottom, #21130f, #100907 75%);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.38);
}
.moon {
  position: absolute;
  right: 74px;
  top: 62px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff0ba, #c78344 72%);
  box-shadow: 0 0 90px rgba(255, 190, 102, .35);
}
.hills {
  position: absolute;
  inset: auto -10% 0;
  height: 160px;
  background:
    radial-gradient(ellipse at 25% 100%, #2e2213 0 42%, transparent 43%),
    radial-gradient(ellipse at 78% 100%, #23190f 0 52%, transparent 53%);
}
.tree { position: absolute; inset: 0; animation: breathe 7s ease-in-out infinite; transform-origin: 46% 70%; }
.trunk {
  position: absolute;
  left: 235px;
  bottom: 80px;
  width: 96px;
  height: 410px;
  background: linear-gradient(90deg, #2a130b, #6e351c 36%, #2f130b 70%, #120805);
  border-radius: 50% 42% 30% 34%;
  transform: rotate(3deg);
  box-shadow: 18px 0 0 rgba(0,0,0,.18) inset;
}
.trunk::before, .trunk::after {
  content: "";
  position: absolute;
  background: #180904;
  border-radius: 50%;
  opacity: .45;
}
.trunk::before { width: 34px; height: 90px; left: 42px; top: 130px; transform: rotate(-18deg); }
.trunk::after { width: 24px; height: 150px; left: 20px; top: 220px; transform: rotate(12deg); }
.branch {
  position: absolute;
  height: 45px;
  background: linear-gradient(#512612, #190b05);
  border-radius: 999px;
  transform-origin: left center;
  box-shadow: 0 12px 18px rgba(0,0,0,.25);
}
.branch-one { width: 330px; left: 285px; top: 270px; transform: rotate(-29deg); }
.branch-two { width: 260px; left: 245px; top: 245px; transform: rotate(-156deg); }
.branch-three { width: 455px; left: 275px; top: 205px; transform: rotate(-8deg); }
.canopy {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--leaf-light), var(--leaf) 62%, #141a0d 100%);
  box-shadow: inset 0 -25px 45px rgba(0,0,0,.36), 0 20px 40px rgba(0,0,0,.22);
}
.canopy-one { width: 280px; height: 250px; left: 70px; top: 130px; }
.canopy-two { width: 340px; height: 310px; left: 210px; top: 55px; }
.canopy-three { width: 280px; height: 255px; right: 65px; top: 120px; }
.canopy-four { width: 330px; height: 250px; left: 310px; top: 160px; }
.apple-cord {
  position: absolute;
  left: 584px;
  top: 242px;
  width: 10px;
  height: 124px;
  background: linear-gradient(#391909, #160804);
  border-radius: 999px;
  transform: rotate(5deg);
  box-shadow: 0 10px 16px rgba(0,0,0,.35);
}
.big-apple {
  position: absolute;
  left: 430px;
  top: 345px;
  width: 330px;
  height: 305px;
  border-radius: 50% 50% 55% 55% / 45% 45% 60% 60%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.28), transparent 10%),
    radial-gradient(circle at 55% 32%, #d6422f, var(--apple) 48%, var(--apple-dark) 100%);
  box-shadow: inset -25px -35px 55px rgba(0,0,0,.38), 0 30px 80px rgba(0,0,0,.42), 0 0 70px rgba(150, 24, 24, .35);
  animation: appleFloat 4.4s ease-in-out infinite;
}
.big-apple::before {
  content: "";
  position: absolute;
  left: 146px;
  top: -14px;
  width: 48px;
  height: 30px;
  background: #481f10;
  border-radius: 50%;
}
.apple-shine {
  position: absolute;
  left: 58px;
  top: 45px;
  width: 36px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  transform: rotate(22deg);
}
.terminal {
  position: absolute;
  left: 32px;
  right: 32px;
  top: 76px;
  min-height: 160px;
  padding: 28px 18px 16px;
  border-radius: 13px;
  background: linear-gradient(180deg, #07110a, #020503);
  border: 1px solid rgba(98,255,140,.45);
  box-shadow: inset 0 0 28px rgba(98,255,140,.1), 0 0 26px rgba(98,255,140,.18);
  transform: rotate(-1.2deg);
  overflow: hidden;
}
.terminal::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(98,255,140,.05) 0 1px, transparent 2px 5px);
  pointer-events: none;
}
.terminal-bar {
  position: absolute;
  left: 10px;
  top: 9px;
  display: flex;
  gap: 5px;
}
.terminal-bar span { width: 7px; height: 7px; border-radius: 50%; background: var(--glow-dim); opacity: .75; }
pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--glow);
  text-shadow: 0 0 9px rgba(98,255,140,.75);
  font: 700 clamp(.72rem, 1.45vw, .92rem) ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}
.cursor { animation: blink .9s steps(2, start) infinite; }

.paths-section {
  width: min(1180px, calc(100% - 32px));
  margin: 70px auto 0;
  text-align: center;
}
.centered { text-align: center; }
.paths-section h2, .about h2 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: .95;
  margin-bottom: 32px;
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: left;
}
.path-card {
  min-height: 300px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 20px 45px rgba(0,0,0,.2);
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}
.path-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 220, 160, .45);
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
}
.path-number {
  display: inline-flex;
  color: var(--paper-dark);
  font: 900 .78rem ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .18em;
  margin-bottom: 18px;
}
.path-status {
  display: block;
  width: max-content;
  margin-bottom: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(98,255,140,.22);
  border-radius: 999px;
  color: var(--glow);
  background: rgba(98,255,140,.055);
  font: 800 .66rem ui-sans-serif, system-ui, sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.path-card h3 { font-size: 1.55rem; margin-bottom: 12px; }
.path-card p { color: #d2ad7a; line-height: 1.55; }
.path-command {
  display: inline-block;
  margin-top: 12px;
  color: var(--glow);
  font: 800 .78rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.about {
  width: min(1180px, calc(100% - 32px));
  margin: 90px auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(0,0,0,.18);
}
.about p:last-child { color: #dfbd88; font-size: 1.2rem; line-height: 1.65; margin: 0; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0 50px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

@keyframes appleFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes breathe {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(.25deg) scale(1.006); }
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .orchard-scene { min-height: 620px; }
  .path-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { align-items: flex-start; gap: 18px; flex-direction: column; }
  .top-nav { gap: 16px; }
  .hero {
    width: min(100% - 22px, 520px);
    min-height: auto;
    gap: 22px;
    padding-top: 8px;
  }
  h1 { font-size: clamp(3.6rem, 18vw, 5.4rem); }
  .lead { font-size: 1.05rem; }
  .hero-actions { margin-top: 24px; }

  .orchard-scene {
    min-height: 540px;
    width: 100%;
    margin: 18px auto 0;
    transform: none;
    border-radius: 24px;
  }
  .moon { right: 38px; top: 32px; width: 118px; height: 118px; }
  .hills { height: 130px; }

  .tree {
    left: 50%;
    width: 700px;
    height: 560px;
    transform: translateX(-54%) scale(.78);
    transform-origin: top center;
    animation: mobileBreathe 7s ease-in-out infinite;
  }
  .trunk { left: 245px; bottom: 40px; height: 395px; }
  .branch-one { width: 275px; left: 292px; top: 250px; transform: rotate(-31deg); }
  .branch-two { width: 245px; left: 255px; top: 232px; transform: rotate(-156deg); }
  .branch-three { width: 425px; left: 280px; top: 190px; transform: rotate(-9deg); }

  .canopy-one { width: 245px; height: 220px; left: 85px; top: 138px; }
  .canopy-two { width: 300px; height: 270px; left: 225px; top: 70px; }
  .canopy-three { width: 250px; height: 230px; right: 55px; top: 120px; }
  .canopy-four { width: 285px; height: 220px; left: 330px; top: 160px; }

  .apple-cord { left: 558px; top: 230px; height: 112px; }
  .big-apple {
    left: 392px;
    top: 326px;
    width: 270px;
    height: 252px;
  }
  .big-apple::before { left: 119px; width: 40px; }
  .terminal {
    left: 24px;
    right: 24px;
    top: 66px;
    min-height: 136px;
    padding: 26px 13px 12px;
  }
  pre { font-size: .76rem; line-height: 1.18; }

  .path-grid { grid-template-columns: 1fr; }
  .path-card { min-height: auto; }
  .path-number { margin-bottom: 14px; }
  .path-status { margin-bottom: 26px; }
  .about { padding: 28px 24px; }
  .site-footer { flex-direction: column; }
}
@keyframes mobileBreathe {
  0%, 100% { transform: translateX(-54%) scale(.78) rotate(0deg); }
  50% { transform: translateX(-54%) scale(.785) rotate(.2deg); }
}


/* BBS production/new-tab and hidden embedded terminal dev helpers */
.path-card[target="_blank"] .path-command::after { content: ""; }
.bbs-page main { width: min(100% - 40px, 1160px); margin: 0 auto; padding: 34px 0 70px; }
.bbs-dev-wrap { display: grid; grid-template-columns: minmax(300px, 420px) minmax(420px, 1fr); gap: 28px; align-items: stretch; }
.destination-preview, .terminal-shell { border: 1px solid rgba(255, 190, 96, .22); background: linear-gradient(180deg, rgba(43, 20, 8, .88), rgba(10, 5, 2, .92)); box-shadow: 0 26px 80px rgba(0,0,0,.32); border-radius: 26px; }
.destination-preview { padding: 28px; }
.destination-preview h1 { font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: .86; margin: 18px 0 20px; }
.destination-preview p { color: var(--muted); line-height: 1.6; }
.destination-preview code { display: inline-block; margin-top: 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(75,255,130,.28); background: rgba(0,0,0,.42); color: var(--green); }
.terminal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.terminal-shell { overflow: hidden; min-height: 640px; display: flex; flex-direction: column; }
.terminal-frame-bar { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid rgba(75,255,130,.25); background: rgba(0,0,0,.52); color: var(--green); font-family: var(--mono); letter-spacing: .08em; font-size: .8rem; }
.terminal-frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(75,255,130,.72); }
.terminal-frame-bar strong { margin-left: 8px; }
.live-terminal { border: 0; width: 100%; flex: 1; min-height: 590px; background: #000; }
.dev-warning .path-status { display: inline-block; }
@media (max-width: 900px) {
  .bbs-dev-wrap { grid-template-columns: 1fr; }
  .terminal-shell { min-height: 560px; }
}
