/* ── OnlineCraft — design tokens ──────────────────────────────
   Color:
     --bg-deep:    #0b1a0e   (night-forest background)
     --bg-panel:   #122616   (raised block panels)
     --green-dark: #175c00   (existing header start)
     --green-mid:  #159a00   (existing header end)
     --green-glow: #5be24a   (bright leaf — accents, focus)
     --dirt:       #6b4a2b   (blocky divider accent)
     --cream:      #eef7ea   (primary text on dark)
     --cream-dim:  #a9c2a2   (secondary text)
   Type:
     display / eyebrow: "Press Start 2P" — used sparingly (eyebrows, buttons, IP tag)
     body / headings:   "Rubik" — carries all real reading text
   Signature:
     A pixel-stepped "block edge" divider (clip-path staircase) marks section
     boundaries, standing in for a Minecraft grass-block edge without literally
     drawing one.
──────────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Press Start 2P";
  src: local("Press Start 2P");
}

:root {
  --bg-deep: #0b1a0e;
  --bg-panel: #122616;
  --bg-panel-2: #16301b;
  --green-dark: #175c00;
  --green-mid: #159a00;
  --green-glow: #5be24a;
  --green-glow-dim: #3fae35;
  --dirt: #6b4a2b;
  --dirt-light: #8a6339;
  --cream: #eef7ea;
  --cream-dim: #a9c2a2;
  --radius: 10px;
}

* {
  list-style: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--cream);
  font-family: "Rubik", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

::selection {
  background: var(--green-glow);
  color: #06110a;
}

:focus-visible {
  outline: 3px solid var(--green-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header / nav ──────────────────────────────────────────── */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-image: linear-gradient(to right, var(--green-dark), var(--green-mid));
  width: 100%;
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

#logo {
  border-radius: 10px;
  display: block;
  width: 52px;
  height: 52px;
  background: var(--bg-deep);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--cream);
  text-transform: lowercase;
  font-variant: small-caps;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}

nav ul li {
  margin: 0;
}

nav ul li a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  cursor: pointer;
  font-family: "Rubik", sans-serif;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

nav ul li a:hover {
  background: rgba(0, 0, 0, 0.2);
  color: var(--green-glow);
}

.nav-cta {
  background: var(--bg-deep);
  border: 2px solid var(--green-glow);
  color: var(--green-glow) !important;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--green-glow) !important;
  color: #06110a !important;
}

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  width: 100%;
  padding: 90px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(21, 154, 0, 0.28), transparent 60%),
    var(--bg-deep);
}

.eyebrow {
  font-family: "Press Start 2P", "Rubik", sans-serif;
  font-size: 11px;
  color: var(--green-glow);
  letter-spacing: 2px;
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--green-glow-dim);
  border-radius: 6px;
  background: rgba(91, 226, 74, 0.08);
  margin-bottom: 28px;
}

#och1 {
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 11vw, 150px);
  line-height: 1;
  text-align: center;
  background: linear-gradient(to right, rgb(0, 175, 0), rgb(0, 93, 0));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant: small-caps;
  padding-top: 10px;
  margin: 0 0 18px;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--cream-dim);
  font-size: 18px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}

.btn {
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(to right, var(--green-mid), var(--green-glow-dim));
  color: #06110a;
  box-shadow: 0 6px 0 var(--green-dark);
}

.btn-primary:hover {
  box-shadow: 0 8px 0 var(--green-dark);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--cream);
}

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

/* server IP pill */

.ip-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--green-glow);
}

.ip-pill button {
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: var(--green-glow);
  color: #06110a;
  border: none;
  border-radius: 5px;
  padding: 7px 12px;
  cursor: pointer;
}

.ip-pill button:hover {
  background: var(--cream);
}

/* ── Pixel-step divider (signature element) ──────────────────
   A staircase clip-path stands in for a grass-block edge between
   the dark hero and the panel sections below. */

.block-divider {
  width: 100%;
  height: 22px;
  background: var(--bg-panel);
  clip-path: polygon(
    0% 100%, 0% 40%, 5% 40%, 5% 0%, 10% 0%, 10% 40%,
    15% 40%, 15% 100%, 20% 100%, 20% 40%, 25% 40%, 25% 0%,
    30% 0%, 30% 40%, 35% 40%, 35% 100%, 40% 100%, 40% 40%,
    45% 40%, 45% 0%, 50% 0%, 50% 40%, 55% 40%, 55% 100%,
    60% 100%, 60% 40%, 65% 40%, 65% 0%, 70% 0%, 70% 40%,
    75% 40%, 75% 100%, 80% 100%, 80% 40%, 85% 40%, 85% 0%,
    90% 0%, 90% 40%, 95% 40%, 95% 100%, 100% 100%, 100% 40%
  );
}

/* ── Sections ──────────────────────────────────────────────── */

section.panel {
  background: var(--bg-panel);
  padding: 70px 24px;
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  margin: 6px 0 12px;
}

.section-head p {
  color: var(--cream-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* feature grid */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-panel-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.feature-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green-mid), var(--dirt));
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* join steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  background: var(--bg-deep);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px 20px 22px;
  text-align: left;
}

.step .num {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--dirt-light);
  margin-bottom: 14px;
  display: block;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.step p {
  margin: 0;
  color: var(--cream-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* footer */

footer {
  background: var(--bg-deep);
  padding: 46px 24px 30px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer .foot-brand {
  font-variant: small-caps;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}

footer p {
  color: var(--cream-dim);
  font-size: 14px;
  margin: 0 0 18px;
}

footer .foot-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  padding: 0;
  margin: 0 0 18px;
}

footer .foot-links a {
  text-decoration: none;
  color: var(--cream-dim);
  font-size: 14px;
}

footer .foot-links a:hover {
  color: var(--green-glow);
}

footer .copyright {
  color: rgba(169, 194, 162, 0.5);
  font-size: 12px;
}

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 720px) {
  header {
    padding: 12px 16px;
  }
  .brand-name {
    font-size: 17px;
  }
  nav ul {
    gap: 2px;
  }
  nav ul li a {
    padding: 8px 9px;
    font-size: 14px;
  }
  .features,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 60px 16px 50px;
  }
  section.panel {
    padding: 50px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
