/* ------------------------------------------------------------------
   dogzz.xyz — design tokens
   Display: Chakra Petch (blocky, geometric — used sparingly, headings only)
   Body:    Inter
   Utility: JetBrains Mono (eyebrows, labels, tags)
------------------------------------------------------------------- */
:root {
  --bg:          #120D0A;
  --bg-panel:    #1B140E;
  --bg-panel-2:  #241A12;
  --border:      #3A2A1C;
  --border-soft: #2A1F16;

  --orange:      #FF7A1A;
  --orange-deep: #C2410C;
  --ember:       #FFB454;
  --cream:       #F5EEE3;
  --muted:       #A9998A;

  --font-display: 'Chakra Petch', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------------------------- buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-deep) 100%);
  color: #180F08;
  box-shadow: 0 6px 20px -8px rgba(255, 122, 26, 0.65);
}
.btn-primary:hover { background: linear-gradient(180deg, #ff8a35 0%, var(--orange-deep) 100%); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn-badge {
  background: var(--bg-panel-2);
  border: 1px dashed var(--border);
  color: var(--muted);
  cursor: default;
}
.btn-badge:hover { transform: none; }

.btn-discord {
  background: var(--bg-panel-2);
  border-color: var(--border);
  color: var(--cream);
}
.btn-discord:hover { border-color: #5865F2; color: #8E98FF; }
.icon-discord {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-lg { padding: 0.85rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ------------------------------ nav ------------------------------ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 13, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.brand-mark {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  border-radius: 3px;
  box-shadow: inset -3px -3px 0 rgba(0,0,0,0.25);
}
.brand-dot { color: var(--orange); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a.active { color: var(--orange); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-user {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.nav-user strong { color: var(--ember); font-weight: 500; }

/* ------------------------------ hero ------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 0;
  text-align: center;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 122, 26, 0.22), transparent 65%);
  z-index: -1;
  animation: emberPulse 6s ease-in-out infinite;
}
@keyframes emberPulse {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

.hero-inner { max-width: 720px; margin: 0 auto; padding-bottom: 4rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 1.1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.1rem;
  color: var(--cream);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

.skyline {
  display: block;
  width: 100%;
  height: 140px;
}
.skyline-blocks rect {
  fill: var(--bg-panel);
  stroke: var(--border-soft);
  stroke-width: 1;
}
.skyline-torches .torch {
  fill: var(--ember);
  animation: torchFlicker 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--orange));
}
.skyline-torches .torch:nth-child(2) { animation-delay: 0.6s; }
.skyline-torches .torch:nth-child(3) { animation-delay: 1.1s; }
.skyline-torches .torch:nth-child(4) { animation-delay: 1.7s; }
@keyframes torchFlicker {
  0%, 100% { opacity: 0.55; }
  45%      { opacity: 1; }
  55%      { opacity: 0.85; }
}

/* ------------------------------ join ------------------------------ */
.join { padding: 0 1.5rem 6rem; }
.join-card {
  max-width: 420px;
  margin: -2.5rem auto 0;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 20px 60px -25px rgba(0,0,0,0.6);
}
.join-tabs {
  display: flex;
  background: var(--bg-panel-2);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 1.5rem;
}
.join-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem;
  border-radius: 7px;
  cursor: pointer;
}
.join-tab.is-active {
  background: linear-gradient(180deg, var(--orange), var(--orange-deep));
  color: #180F08;
}

.join-panel.is-hidden { display: none; }

/* ------------------------------ forms ------------------------------ */
.form { display: flex; flex-direction: column; gap: 0.4rem; }
.form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-top: 0.6rem;
}
.form input,
.form select,
.form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--cream);
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  width: 100%;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--orange);
}
.form textarea { resize: vertical; }
.form button { margin-top: 1.25rem; }

/* ------------------------------ flash ------------------------------ */
.flash {
  position: sticky;
  top: 0;
  z-index: 60;
  text-align: center;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
}
.flash-success { background: #1F3D2A; color: #B7E4C7; border-bottom: 1px solid #2D5A3D; }
.flash-error   { background: #3D1F1F; color: #F2BABA; border-bottom: 1px solid #5A2D2D; }

/* ------------------------------ apply page ------------------------------ */
.apply-page {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
.apply-card {
  max-width: 480px;
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.apply-card h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0.3rem 0 0.6rem;
}
.apply-note { color: var(--muted); margin-bottom: 1rem; }

/* ------------------------------ coming soon page ------------------------------ */
.soon-page {
  min-height: calc(100vh - 130px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}
.soon-card { max-width: 480px; }
.soon-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}
.soon-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.75rem;
}
.soon-card p { color: var(--muted); }

/* ------------------------------ footer ------------------------------ */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

/* ------------------------------ motion & mobile ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .skyline-torches .torch { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 720px) {
  .nav-inner { flex-wrap: wrap; row-gap: 0.6rem; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .nav-user { display: none; }
  .hero { padding-top: 3.5rem; }
}
