/* ==========================================================================
   Pinecraft — theme variables
   Pulled from the in-game pause menu (panel/button/header greens + mauve)
   and the tree-selection cyan seen in gameplay. All in one place on purpose
   — nudge any hex below and the whole site follows.
   ========================================================================== */
:root {
  /* Core game palette */
  --forest-dark:   #2f3b26; /* pause-menu panel background */
  --forest-mid:    #5a6f3d; /* pause-menu button rows */
  --forest-mauve:  #8a6a5c; /* pause-menu header bar */
  --accent-cyan:   #3fe0e8; /* tree-selection highlight — the one "special" color */
  --accent-lime:   #d6e24b; /* pause-menu button text */

  /* Supporting neutrals, pulled from the gameplay shot */
  --bark:          #5b4a3d;
  --sand:          #b99b5c;
  --sky:           #aebfc9;

  /* Content surface colors — dark chrome, light reading surface */
  --cream:         #f7f5ee;
  --cream-dim:     #eee9db;
  --ink:           #22281c;
  --ink-soft:      #4b5346;
  --white:         #ffffff;

  --font-display: "Rajdhani", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius: 10px;
  --wrap-width: 1120px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }
.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 24px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ==========================================================================
   Buttons — styled after the pause-menu rows (moss green + lime text)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(63,224,232,0.22), 0 6px 18px rgba(63,224,232,0.25);
}
.btn--primary {
  background: var(--forest-mid);
  color: var(--accent-lime);
}
.btn--primary:hover { background: #66803f; }
.btn--ghost {
  background: transparent;
  color: var(--forest-dark);
  border: 2px solid var(--forest-dark);
}
.btn--ghost:hover { background: var(--forest-dark); color: var(--cream); }
/* For ghost buttons sitting on the dark hero — plain .btn--ghost (dark
   text/border) nearly disappears against the hero's dark green overlay. */
.btn--ghost-inverse {
  background: transparent;
  color: var(--cream);
  border: 2px solid var(--accent-cyan);
}
.btn--ghost-inverse:hover {
  background: var(--accent-cyan);
  color: var(--forest-dark);
  box-shadow: 0 0 26px rgba(63,224,232,0.5);
}
.btn--cyan {
  background: var(--accent-cyan);
  color: var(--forest-dark);
}
.btn--cyan:hover { background: #63e8ee; }

/* Inline text links (e.g. "Stand Generator" mentions inline in copy) */
.text-link {
  color: var(--forest-dark);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--accent-cyan); }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  background: var(--forest-dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.brand__icon {
  height: 32px;
  width: 32px;
}
.brand__mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.site-nav ul {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--cream);
  font-weight: 500;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--accent-cyan); }
.badge {
  background: var(--forest-mauve);
  color: var(--white);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1px 6px;
  border-radius: 999px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

/* Eight nav links (most tagged "Soon") don't comfortably fit next to the
   brand on typical desktop widths, so the hamburger kicks in well before
   the usual mobile breakpoint — this is about link count, not screen size. */
@media (max-width: 1200px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest-dark);
    padding: 12px 24px 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 16px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--cream);
  padding: 72px 0 88px;
}
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Same gradient the hero used before video — keeps it looking right even
     with no video file yet, and keeps hero text readable over any footage. */
  background: linear-gradient(180deg, rgba(47,59,38,0.88) 0%, rgba(36,48,29,0.92) 100%);
}
@media (max-width: 700px) {
  /* Skip the video on small screens — saves mobile data, and the plain
     gradient (still shown via .hero__overlay) looks fine on its own. */
  .hero__bg-video { display: none; }
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}
.hero__inner {
  display: grid;
  gap: 20px;
  max-width: 700px;
}
.hero__logo {
  width: 260px;
  height: auto;
  opacity: 0.9;
  justify-self: end;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__logo { display: none; }
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 0.2em;
}
.hero p.lede {
  font-size: 1.15rem;
  color: var(--cream-dim);
  max-width: 620px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

/* ==========================================================================
   Sections / cards
   ========================================================================== */
section.section {
  padding: 64px 0;
}
section.section--alt {
  background: var(--cream-dim);
}
.section__heading {
  max-width: 640px;
  margin-bottom: 32px;
}
.section__heading h2 {
  font-size: 2rem;
  color: var(--forest-dark);
}
.section__heading p {
  color: var(--ink-soft);
}

.video-frame {
  background: var(--forest-dark);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-frame video, .video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.video-placeholder {
  color: var(--cream-dim);
  text-align: center;
  padding: 24px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.grid {
  display: grid;
  gap: 20px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid #e3ddc9;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 26px rgba(63,224,232,0.2);
}
.card h3 {
  font-size: 1.1rem;
  color: var(--forest-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
/* "Coming soon" cards get a corner ribbon instead of the header-badge
   treatment other cards would get — kept deliberately different from a
   plain striped background, which read as a generic placeholder pattern. */
.card--soon {
  position: relative;
  overflow: hidden;
  background: var(--cream-dim);
  border: 1px solid var(--forest-mauve);
}
.card--soon::before {
  content: "Coming soon";
  position: absolute;
  top: 16px;
  right: -38px;
  width: 150px;
  transform: rotate(45deg);
  background: var(--forest-mauve);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 4px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

/* Feature bullet dots "breathe" (scale + glow) to draw a little life into
   the list, then pop harder on hover as direct feedback. */
.tag-mark {
  display: inline-block;
  color: var(--accent-cyan);
  animation: tag-breathe 2s ease-in-out infinite;
}
@keyframes tag-breathe {
  0%, 100% { transform: scale(1); text-shadow: 0 0 3px rgba(63,224,232,0.3); }
  50% { transform: scale(2); text-shadow: 0 0 20px rgba(63,224,232,1); }
}
.card:hover .tag-mark {
  animation-play-state: paused;
  transform: scale(2.2);
  text-shadow: 0 0 22px rgba(63,224,232,1);
  transition: transform 0.18s ease, text-shadow 0.18s ease;
}
/* Coming-soon cards stay hands-off — no breathing dot, no hover pop, no
   glow, no card lift — so they visibly read as "not yet interactive" next
   to the live features around them. */
.card--soon .tag-mark {
  color: var(--forest-mauve);
  animation: none;
  transform: none;
  text-shadow: none;
}
.card--soon:hover {
  transform: none;
  border-color: var(--forest-mauve);
  box-shadow: none;
}
.card--soon:hover .tag-mark {
  transform: none;
  text-shadow: none;
}

.heading-icon {
  display: inline-block;
  height: 0.85em;
  width: auto;
  vertical-align: -0.1em;
  margin-right: 0.35em;
}

table.specs {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
}
table.specs th, table.specs td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e3ddc9;
}
table.specs th {
  width: 220px;
  color: var(--forest-dark);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-form {
  max-width: 520px;
  margin-top: 32px;
}
.form-field {
  margin-bottom: 20px;
}
.form-field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--forest-dark);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #e3ddc9;
  border-radius: var(--radius);
  padding: 10px 14px;
}
.form-field textarea { resize: vertical; }

/* ==========================================================================
   Coming-soon page layout
   ========================================================================== */
.page-header {
  padding: 56px 0 12px;
}
.page-header h1 { color: var(--forest-dark); }
.page-header .lede { color: var(--ink-soft); font-size: 1.1rem; }

.coming-soon-panel {
  padding-bottom: 56px;
}
.coming-soon-badge {
  display: inline-block;
  background: var(--forest-mauve);
  color: var(--white);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Footer / credits
   ========================================================================== */
.site-footer {
  background: var(--forest-dark);
  color: var(--cream-dim);
  padding: 48px 0 28px;
  margin-top: 40px;
}
.credits__label {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
}
.credits__logos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 0 0 32px;
}
.credits__logos a { text-decoration: none; }
.credit-logo {
  height: 48px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--accent-cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  font-size: 0.85rem;
}
.footer-bottom a { color: var(--accent-cyan); text-decoration: none; }
