:root {
  --ink: #1d2a22;
  --ink-soft: #5c6d64;
  --cream: #f6eee3;
  --paper: #fff9f1;
  --honey: #edc24a;
  --terra: #2f8f6e;
  --terra-deep: #1f6d54;
  --blurple: #5865f2;
  --line: rgba(29, 42, 34, 0.1);
  --shadow: 0 24px 60px rgba(29, 42, 34, 0.1);
  --font: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.6rem; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 36% 26% at 8% 0%, rgba(228, 181, 106, 0.12), transparent 58%),
    var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  padding: 0.82rem 1.6rem;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(29, 42, 34, 0.06);
  box-shadow: 0 8px 28px rgba(29, 42, 34, 0.05);
  backdrop-filter: saturate(1.15) blur(16px);
}
.nav-bar {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.brand-text { display: grid; line-height: 1.05; }
.brand-text em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
}
.nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 2rem; }
.nav-links { display: flex; gap: 1.4rem; }
.nav-text { font-weight: 700; color: #24332c; transition: color .18s, transform .18s; }
.nav-text:hover { color: var(--terra-deep); transform: translateY(-1px); }
.nav-pills { margin-left: auto; }
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.58rem 1.2rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: var(--blurple);
  box-shadow: 0 8px 22px rgba(88, 101, 242, 0.28);
  transition: transform .22s var(--ease);
}
.nav-pill:hover { transform: translateY(-1px); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(11, 107, 102, 0.12); border-radius: 12px; background: #fff; }
.nav-toggle span { display: block; width: 16px; height: 2px; margin: 4px auto; background: #24332c; }
.nav-backdrop { display: none; }

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8rem 1.5rem 6.4rem;
  color: #fff8ee;
}
.hero-stage { position: absolute; inset: 0; background: #8a4a22; }
.hero-banner {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: saturate(1.1) contrast(1.08) brightness(1.06);
}
.hero-grade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28, 14, 6, 0.16), rgba(22, 10, 4, 0.34));
}
.hero-copy { position: relative; z-index: 2; text-align: center; width: min(720px, 100%); }
.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 5.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
  text-shadow: 0 6px 24px rgba(12, 36, 32, 0.28);
}
.hero-sub { margin: 1.1rem auto 0; max-width: 34rem; font-weight: 600; color: rgba(255, 244, 230, 0.94); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terra-deep);
}
.hero .kicker { color: rgba(255, 232, 190, 0.86); }

.hero-waves {
  position: absolute; left: 0; right: 0; bottom: -1px;
  z-index: 3; height: 92px; overflow: hidden; pointer-events: none;
}
.hero-wave { position: absolute; left: -6%; bottom: 0; width: 112%; height: 100%; }
.hero-wave--back { color: rgba(110, 179, 212, 0.34); animation: wave-drift 8s ease-in-out infinite alternate; }
.hero-wave--mid { color: rgba(47, 143, 110, 0.2); height: 86%; animation: wave-drift 11s ease-in-out infinite alternate-reverse; }
.hero-wave--front { color: var(--cream); height: 72%; animation: wave-drift 9.5s ease-in-out infinite alternate; }
@keyframes wave-drift {
  from { transform: translate3d(-2.4%, 0, 0); }
  to { transform: translate3d(2.4%, 0, 0); }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0.8rem 1.25rem; border: 0; border-radius: 999px;
  font-weight: 700; cursor: pointer;
  transition: transform .22s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-3px) scale(1.035); }
.btn-primary { background: var(--terra); color: #fff9f1; box-shadow: 0 14px 32px rgba(31, 109, 84, 0.28); }
.btn-primary:hover { background: var(--terra-deep); }
.btn-discord { background: var(--blurple); color: #fff; }
.btn-soft { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.section { width: min(1080px, calc(100% - 2.5rem)); margin: 0 auto; padding: 5.6rem 0 1.4rem; }
.section-head { max-width: 28rem; margin-bottom: 2.4rem; }
.section-head h2, .cta-card h2, .apply-head h2, .apply-done h2 {
  margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.jobs, .steps { display: grid; gap: 1rem; }
.jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.job, .steps article {
  padding: 1.4rem 1.3rem 1.5rem;
  border-radius: 22px;
  background: rgba(247, 252, 248, 0.86);
  border: 1px solid rgba(29, 42, 34, 0.07);
  box-shadow: 0 16px 40px rgba(29, 42, 34, 0.05);
}
.job h3, .steps h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.job p, .steps p { margin: 0; color: var(--ink-soft); }
.job ul { margin: 0.85rem 0 1.1rem; padding-left: 1.1rem; color: var(--ink-soft); }
.steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps span { display: block; font-size: 1.35rem; font-weight: 800; color: var(--terra); }

.cta-card {
  padding: clamp(2rem, 5vw, 3.2rem);
  border-radius: 28px;
  background: linear-gradient(160deg, #16382c, #1f5c46 55%, #2a7a58);
  color: #fff8ee;
  box-shadow: var(--shadow);
}
.cta-card .kicker { color: rgba(255, 232, 160, 0.86); }
.cta-card p:not(.kicker) { color: rgba(255, 244, 230, 0.82); }
.cta-card .btn { margin-top: 1.2rem; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: #f7f4ee; }
.footer-inner {
  width: min(720px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.4rem 0 1.8rem;
  display: grid;
  justify-items: center;
  gap: 1.15rem;
  text-align: center;
}
.footer-brand { display: grid; gap: 0.12rem; }
.footer-brand span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--terra); }
.footer-main-nav, .footer-legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; }
.footer-main-nav a, .footer-legal-nav a {
  min-height: 38px; padding: 0.45rem 1.05rem; border-radius: 999px; background: #ece8e0; font-size: 0.86rem; font-weight: 700;
}
.footer-legal-nav a:last-child { background: var(--terra); color: #fff; }
.footer-copy { margin: 0.35rem 0 0; font-size: 0.8rem; color: #6b7d74; }

.apply-overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(21, 13, 18, 0.38);
  backdrop-filter: blur(8px);
  display: flex; justify-content: flex-end;
}
.apply-overlay[hidden] { display: none !important; }
.apply-panel {
  position: relative;
  width: min(520px, 100vw);
  height: 100%;
  background: linear-gradient(145deg, #fffffff5, #fff9f1);
  padding: 2rem 1.4rem 2.4rem;
  overflow: auto;
  box-shadow: -32px 0 80px rgba(37, 20, 31, 0.18);
  animation: slide-in .35s var(--ease);
}
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
.apply-close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--terra-deep);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.apply-head { padding-right: 3rem; }
.progress { height: 8px; margin: 1.2rem 0 0; border-radius: 999px; background: rgba(32, 22, 28, 0.09); overflow: hidden; }
.progress span { display: block; height: 100%; width: 33%; background: linear-gradient(90deg, var(--terra), var(--honey)); transition: width .24s; }
.apply-panel fieldset { border: 0; padding: 1.2rem 0 0; display: grid; gap: 0.85rem; }
.apply-panel legend { font-weight: 800; font-size: 1.15rem; }
.apply-panel label { display: grid; gap: 0.4rem; font-size: 0.86rem; font-weight: 750; }
.apply-panel input, .apply-panel textarea {
  min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.apply-panel textarea { min-height: 150px; padding: 15px; resize: vertical; }
.poste-picks { display: grid; gap: 0.7rem; }
.poste-picks label {
  grid-template-columns: 22px 1fr; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer;
}
.poste-picks label:has(input:checked) { border-color: var(--terra); box-shadow: 0 0 0 4px rgba(47, 143, 110, 0.12); }
.check { grid-template-columns: 22px 1fr; align-items: start; font-weight: 650; }
.check a { text-decoration: underline; }
.apply-error { color: #9f2864; background: #d74e8e1a; border-radius: 8px; padding: 0.8rem 1rem; font-weight: 750; }
.apply-actions { display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 1.2rem; }
.apply-done { padding-top: 2rem; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; margin-left: auto; }
  .nav { display: none; position: fixed; top: 72px; left: 0.75rem; right: 0.75rem; flex-direction: column; padding: 0.85rem; border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
  .nav.is-open { display: flex; }
  .nav-links, .nav-pills { flex-direction: column; width: 100%; }
  .jobs, .steps { grid-template-columns: 1fr; }
  .hero { min-height: 78svh; padding-top: 7.2rem; }
  .hero-waves { height: 72px; }
  .apply-panel { width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-wave, .apply-panel { animation: none !important; }
}
