/* =========================================================
   DashSMP — shared site styles
   Palette: logo cyan + ember orange on deep night-blue
   Fonts:   Space Grotesk (display) · Inter (body) · JetBrains Mono (addresses)
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #06080c;
  --bg-2: #0a0d13;
  --surface: #0e121a;
  --surface-2: #131926;
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --line: rgba(150, 175, 220, 0.1);
  --line-strong: rgba(150, 175, 220, 0.2);
  --text: #eef2f8;
  --muted: #8b94a7;
  --dim: #5d6578;
  --blue: #00afdc;
  --blue-light: #4fd6f5;
  --orange: #fb7a16;
  --orange-light: #ffa45c;
  --orange-deep: #e85d04;
  --discord: #5865f2;
  --green: #4ade80;
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1200px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(0, 175, 220, 0.35);
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ---------- Ambient background ---------- */

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(700px 460px at 12% -4%, rgba(0, 175, 220, 0.16), transparent 70%),
    radial-gradient(640px 480px at 100% 30%, rgba(251, 122, 22, 0.1), transparent 70%),
    radial-gradient(900px 600px at 50% 120%, rgba(0, 175, 220, 0.08), transparent 70%),
    var(--bg);
}

/* block grid, faded out toward the bottom */
.bg-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(150, 175, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 175, 220, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(120% 70% at 50% 0%, #000 10%, transparent 70%);
  mask-image: radial-gradient(120% 70% at 50% 0%, #000 10%, transparent 70%);
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: rgba(6, 8, 12, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(100%, var(--max));
  height: 68px;
  margin-inline: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  image-rendering: pixelated;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 6px 20px -4px rgba(0, 175, 220, 0.55);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-name span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-btn:hover {
  background: rgba(0, 175, 220, 0.12);
  border-color: rgba(0, 175, 220, 0.6);
}

.pill-btn:active {
  transform: scale(0.97);
}

.pill-btn .icon {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.pill-btn.is-accent {
  border-color: rgba(255, 180, 110, 0.5);
  background: linear-gradient(180deg, #ff9038, var(--orange));
  color: #1b0d02;
  box-shadow: 0 8px 24px -10px rgba(251, 122, 22, 0.9);
}

.pill-btn.is-accent:hover {
  background: linear-gradient(180deg, #ffa257, #ff8a25);
  border-color: rgba(255, 200, 140, 0.7);
}

.pill-btn.is-accent .icon {
  opacity: 1;
}

/* ---------- Buttons (shared) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn .icon {
  width: 17px;
  height: 17px;
}

.btn-primary {
  background: linear-gradient(180deg, #ff9038, var(--orange));
  border-color: rgba(255, 180, 110, 0.45);
  color: #1b0d02;
  box-shadow: 0 12px 28px -12px rgba(251, 122, 22, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffa257, #ff8a25);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe1ec;
}

.btn-ghost:hover:not(:disabled) {
  border-color: rgba(0, 175, 220, 0.55);
  background: rgba(0, 175, 220, 0.1);
  color: #fff;
}

/* ---------- Layout ---------- */

.page {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 0 28px 72px;
  flex: 1 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-light);
}

/* pixel-square bullet */
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 12px 0 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 56px;
  padding: 84px 0 72px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-copy h1 .accent {
  background: linear-gradient(100deg, #8be8ff 0%, var(--blue-light) 35%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 46ch;
  color: #a9b2c4;
  font-size: 17px;
  line-height: 1.65;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #c4ccda;
  font-size: 12.5px;
  font-weight: 500;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--blue);
}

.tag:nth-child(2)::before {
  background: var(--orange);
}

.hero-ip {
  margin-top: 34px;
  max-width: 470px;
}

.hero-ip-label {
  display: block;
  margin-bottom: 9px;
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.copy-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 62px;
  padding: 0 10px 0 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.95), rgba(12, 15, 23, 0.95));
  color: #fff;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.copy-bar:hover {
  border-color: rgba(0, 175, 220, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 175, 220, 0.1), var(--shadow-lg);
}

.copy-bar:active {
  transform: scale(0.995);
}

.copy-bar-dot {
  flex: none;
  width: 10px;
  height: 10px;
  background: var(--blue);
  box-shadow: 0 0 14px var(--blue);
}

.copy-bar .copy-bar-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.copy-bar-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff9038, var(--orange));
  color: #1b0d02;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.copy-bar-action .icon {
  width: 16px;
  height: 16px;
}

.copy-bar.is-copied .copy-bar-action {
  background: linear-gradient(180deg, #6ee7a0, #34c779);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* logo showcase */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(0, 175, 220, 0.35), transparent 70%),
    radial-gradient(closest-side at 70% 80%, rgba(251, 122, 22, 0.28), transparent 70%);
  filter: blur(30px);
}

.tile-logo {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  padding: 14px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}

.tile-logo img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
  image-rendering: pixelated;
  object-fit: contain;
}

.float-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(14, 18, 26, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.float-chip small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.float-chip .chip-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(0, 175, 220, 0.15);
  color: var(--blue-light);
}

.float-chip .chip-ico svg {
  width: 16px;
  height: 16px;
}

.float-chip.is-top {
  top: 6%;
  right: -2%;
}

.float-chip.is-bottom {
  bottom: 6%;
  left: -2%;
}

.float-chip.is-bottom .chip-ico {
  background: rgba(251, 122, 22, 0.15);
  color: var(--orange-light);
}

@keyframes float {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-10px); }
}

/* ---------- Explore section / bento ---------- */

.section {
  padding: 24px 0 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: minmax(0, auto);
  gap: 18px;
}

/* ---------- Tiles (shared) ---------- */

.tile {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  overflow: hidden;
  isolation: isolate;
  color: inherit;
  text-decoration: none;
}

/* top hairline highlight */
.tile::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  pointer-events: none;
}

.tile h2 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.tile-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tile-bottom {
  position: relative;
  z-index: 1;
}

.tile-bottom p {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.tile-icon svg {
  width: 22px;
  height: 22px;
}

.tile-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.tile-arrow svg {
  width: 16px;
  height: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-soon {
  background: rgba(251, 122, 22, 0.12);
  border: 1px solid rgba(251, 122, 22, 0.36);
  color: #ffb27a;
}

.chip-guide {
  background: rgba(0, 175, 220, 0.12);
  border: 1px solid rgba(0, 175, 220, 0.4);
  color: #86e6ff;
}

.chip-discord {
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.5);
  color: #c3c9ff;
}

.chip-store,
.chip-staffapp {
  background: rgba(0, 175, 220, 0.12);
  border: 1px solid rgba(0, 175, 220, 0.4);
  color: #86e6ff;
}

/* ---------- How To Join ---------- */

.tile-join {
  grid-column: span 7;
  grid-row: span 2;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(90% 110% at 100% 0%, rgba(0, 175, 220, 0.18), transparent 60%),
    radial-gradient(80% 100% at 0% 100%, rgba(251, 122, 22, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}

.tile-join::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(110% 90% at 100% 0%, #000 5%, transparent 65%);
  mask-image: radial-gradient(110% 90% at 100% 0%, #000 5%, transparent 65%);
}

.join-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  pointer-events: none;
}

.join-inner .tile-top h2 {
  font-size: clamp(26px, 2.8vw, 34px);
}

.join-intro {
  margin: 8px 0 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 14.5px;
}

.join-fields {
  margin-top: 14px;
}

.field-label {
  display: block;
  margin: 18px 0 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 54px;
  padding: 0 8px 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(6, 8, 12, 0.55);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tile-join.is-linked:hover .field {
  border-color: rgba(0, 175, 220, 0.32);
}

.field-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-btn {
  pointer-events: auto;
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: #c9d0dc;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-btn svg {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  background: rgba(0, 175, 220, 0.2);
  border-color: rgba(0, 175, 220, 0.5);
  color: #fff;
}

.icon-btn:active {
  transform: scale(0.94);
}

.join-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffc196;
}

.cta-dot {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ff9038, var(--orange));
  color: #1b0d02;
  box-shadow: 0 0 0 6px rgba(251, 122, 22, 0.14), 0 10px 24px -6px rgba(251, 122, 22, 0.8);
  transition: transform 0.25s ease;
}

.cta-dot svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.tile-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.tile-join.is-linked {
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tile-join.is-linked:hover {
  transform: translateY(-4px);
  border-color: rgba(251, 122, 22, 0.45);
  box-shadow: 0 30px 60px -30px rgba(251, 122, 22, 0.6);
}

.tile-join.is-linked:hover .cta-dot {
  transform: scale(1.08);
}

.tile-join.is-unlinked .join-cta {
  color: var(--muted);
}

.tile-join.is-unlinked .cta-dot {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  box-shadow: none;
}

/* ---------- Discord ---------- */

.tile-discord {
  grid-column: span 5;
  min-height: 220px;
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 16px;
  align-items: start;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(88, 101, 242, 0.26), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  cursor: default;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.discord-mark {
  grid-row: 1;
  width: 52px;
  height: 52px;
  padding: 11px 10px;
  border-radius: 14px;
  background: var(--discord);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(88, 101, 242, 0.9);
}

.discord-metric {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: end;
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.discord-label {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}

.tile-discord .chip {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}

.tile-discord.is-linked {
  cursor: pointer;
}

.tile-discord.is-linked:hover {
  transform: translateY(-4px);
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: 0 30px 60px -30px rgba(88, 101, 242, 0.75);
}

/* ---------- Staff applications ---------- */

.tile-staffapp {
  grid-column: span 5;
  min-height: 220px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(0, 175, 220, 0.18), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.tile-staffapp .tile-icon {
  color: var(--blue-light);
  border-color: rgba(0, 175, 220, 0.35);
  background: rgba(0, 175, 220, 0.1);
}

.tile-staffapp .tile-bottom {
  padding-right: 54px;
}

.tile-staffapp:hover,
.tile-staffapp:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 175, 220, 0.5);
  box-shadow: 0 30px 60px -30px rgba(0, 175, 220, 0.6);
}

.tile-staffapp:hover .tile-arrow {
  transform: translateX(3px);
  background: var(--blue);
  border-color: var(--blue);
  color: #02141a;
}

/* ---------- Stats (coming soon) ---------- */

.tile-stats {
  grid-column: span 12;
  min-height: 180px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--surface) url("assets/stats-bg.svg") center / cover no-repeat;
}

.tile-stats::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg, rgba(6, 8, 12, 0.92) 0%, rgba(6, 8, 12, 0.55) 55%, rgba(6, 8, 12, 0.3) 100%);
}

.tile-stats .tile-top {
  order: 2;
}

.tile-stats .tile-bottom {
  order: 1;
}

.tile-stats h2 {
  font-size: clamp(24px, 2.6vw, 32px);
}

/* ---------- Copied feedback ---------- */

.is-copied {
  border-color: rgba(74, 222, 128, 0.7) !important;
  color: #fff !important;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 12, 0.6);
  color: var(--dim);
  font-size: 13px;
}

.footer-inner {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 40px 28px 34px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 22px;
}

.footer-bottom .mono {
  font-family: var(--font-mono);
  color: var(--muted);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 18px);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 175, 220, 0.45);
  background: rgba(14, 18, 26, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 56px 0 56px;
  }

  .hero-visual {
    order: -1;
    max-width: 340px;
    margin-inline: auto;
  }

  .tile-join,
  .tile-discord,
  .tile-staffapp,
  .tile-stats {
    grid-column: span 12;
    grid-row: auto;
  }

  .tile-discord,
  .tile-staffapp {
    grid-column: span 6;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14.5px;
  }

  .nav-inner {
    height: 62px;
    padding: 0 18px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 16px;
  }

  .page {
    padding: 0 18px 56px;
  }

  .hero {
    padding: 36px 0 44px;
    gap: 36px;
  }

  .hero-visual {
    max-width: 240px;
  }

  .float-chip {
    padding: 8px 11px;
    font-size: 12px;
  }

  .float-chip .chip-ico {
    width: 26px;
    height: 26px;
  }

  .float-chip.is-top {
    right: -18%;
  }

  .float-chip.is-bottom {
    left: -18%;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .copy-bar {
    height: 58px;
    padding-left: 16px;
  }

  .copy-bar .copy-bar-value {
    font-size: 15px;
  }

  .copy-bar-action {
    padding: 0 12px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .grid {
    gap: 14px;
  }

  .tile-discord,
  .tile-staffapp {
    grid-column: span 12;
    min-height: 190px;
  }

  .tile-join,
  .tile-discord,
  .tile-staffapp,
  .tile-stats {
    padding: 22px;
  }

  .tile-stats {
    flex-direction: column;
    align-items: flex-start;
  }

  .tile-stats .tile-top {
    order: 0;
  }

  .footer-inner {
    padding: 32px 18px 28px;
  }

  .toast {
    max-width: calc(100% - 36px);
    text-align: center;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   Inner pages (staff application)
   ========================================================= */

.page-hero {
  padding: 64px 0 36px;
  max-width: 720px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.page-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16.5px;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.app-side {
  position: sticky;
  top: 92px;
}

.reqs {
  padding: 24px;
  border: 1px solid rgba(251, 122, 22, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(251, 122, 22, 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  color: #b9c1d0;
  font-size: 14px;
}

.reqs strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--orange-light);
}

.reqs ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reqs li {
  position: relative;
  padding-left: 20px;
  line-height: 1.55;
}

.reqs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--orange);
}

.reqs .note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.55;
}

.app-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-lg);
}

.form-section {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.form-section + .form-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.form-section legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.form-section legend + * {
  clear: both;
}

.legend-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(0, 175, 220, 0.4);
  background: rgba(0, 175, 220, 0.12);
  color: var(--blue-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
}

.app-card label {
  display: block;
  margin: 18px 0 0;
  color: #c4ccda;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.app-card .req {
  color: #ff7b7b;
}

.app-card input,
.app-card textarea,
.app-card select {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(6, 8, 12, 0.6);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.app-card input::placeholder,
.app-card textarea::placeholder {
  color: var(--dim);
}

.app-card input:hover,
.app-card textarea:hover,
.app-card select:hover {
  border-color: rgba(150, 175, 220, 0.32);
}

.app-card input:focus,
.app-card textarea:focus,
.app-card select:focus {
  border-color: rgba(0, 175, 220, 0.75);
  background: rgba(6, 8, 12, 0.85);
  box-shadow: 0 0 0 4px rgba(0, 175, 220, 0.14);
}

.app-card textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

.app-card select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b94a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}

.app-card .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.app-card label.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.app-card label.check:hover {
  border-color: var(--line-strong);
}

.app-card label.check:has(input:checked) {
  border-color: rgba(0, 175, 220, 0.45);
  background: rgba(0, 175, 220, 0.06);
}

.app-card label.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--orange);
  box-shadow: none;
}

.app-card .submit-btn {
  width: 100%;
  min-height: 54px;
  margin-top: 30px;
  font-size: 15.5px;
}

.app-card .status {
  margin: 14px 0 0;
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

@media (max-width: 900px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-hero {
    padding: 40px 0 26px;
  }

  .app-card {
    padding: 22px 18px;
  }

  .app-card .row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
