/* ========================================================================
   Munday Servers — modern + technical, darker sibling to Repairs.
   ====================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #0a0b10;
  --bg-elevated: #12141c;
  --bg-soft: #181b26;
  --bg-ink: #f4f5f8;
  --text: #f4f5f8;
  --text-soft: #b5b9c4;
  --text-muted: #7a7f8c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent: #22d3ee;            /* cyan */
  --accent-ink: #031013;
  --accent-glow: rgba(34, 211, 238, 0.35);
  --signal: #f6b650;            /* warm amber for featured/highlight */
  --good: #34d399;              /* operational status */
  --ring: rgba(34, 211, 238, 0.5);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --max: 1240px;
  --nav-h: 60px;

  --mono: 'Geist Mono', ui-monospace, 'JetBrains Mono', 'SFMono-Regular', monospace;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse at 20% -10%, rgba(34, 211, 238, 0.08), transparent 50%),
    radial-gradient(ellipse at 80% 0%, rgba(139, 92, 246, 0.05), transparent 45%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; height: auto; }
svg { display: inline-block; flex-shrink: 0; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--text);
}

p { margin: 0 0 1em; color: var(--text-soft); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }

/* ================================================================
   NAV (techie with faint grid line underlay)
   ================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.nav-inner {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav-brand .mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 7px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
}
.nav-brand .slash { color: var(--text-muted); font-family: var(--mono); margin: 0 2px; }
.nav-brand .role { color: var(--text-muted); font-family: var(--mono); font-size: 13px; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-soft); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] {
  color: var(--accent);
}
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-cta {
  padding: 9px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 7px;
  font-weight: 500;
  font-size: 13.5px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-elevated);
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    gap: 14px;
  }
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  padding: clamp(80px, 14vh, 160px) 0 clamp(60px, 10vh, 120px);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  background: var(--bg-elevated);
  margin-bottom: 28px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--good);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.05); }
}

.hero h1 {
  font-size: clamp(42px, 7.5vw, 88px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  max-width: 16ch;
  margin-bottom: 26px;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--text-soft);
  max-width: 58ch;
  margin-bottom: 40px;
  line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat { }
.hero-stat .num {
  font-family: var(--mono);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat .num .unit {
  color: var(--accent);
  font-size: 0.7em;
}
.hero-stat .label {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 720px) { .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; } }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
  text-decoration: none;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-elevated); border-color: var(--text-soft); }

/* ================================================================
   SECTIONS
   ================================================================ */
section { padding: clamp(60px, 10vh, 120px) 0; }

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  max-width: 22ch;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 48px;
}
.section-head { margin-bottom: 56px; }

/* ================================================================
   FEATURE GRID
   ================================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

.feat {
  position: relative;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-glow), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.feat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.feat:hover::before { opacity: 0.15; }
.feat-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.feat h3 {
  font-size: 22px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.feat p { font-size: 15px; color: var(--text-soft); margin: 0; }

/* ================================================================
   PLANS
   ================================================================ */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

.plan {
  position: relative;
  padding: 36px 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 8%, var(--bg-elevated)) 0%, var(--bg-elevated) 60%);
}
.plan-featured .plan-badge {
  position: absolute;
  top: -11px;
  left: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.plan-name {
  font-size: 26px;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}
.plan-tag { font-size: 14px; color: var(--text-muted); margin-bottom: 26px; }

.plan-price {
  font-family: var(--mono);
  font-size: 34px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.1;
}
.plan-price .per { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.plan-quote {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.plan-specs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.plan-specs li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  font-family: var(--mono);
}
.plan-specs li::before {
  content: "";
  width: 12px; height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.plan-feats {
  list-style: none;
  margin: 20px 0 24px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}
.plan-feats li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.5;
}
.plan-feats li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.plan .btn { margin-top: auto; justify-content: center; }

/* ================================================================
   GAMES GRID
   ================================================================ */
.games-section { }
.games-categories { display: grid; gap: 48px; }
.games-cat h3 {
  font-size: 18px;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
}
.games-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.game-chip {
  padding: 18px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
}
.game-chip:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent) 6%, var(--bg-elevated));
}
.game-chip .name { font-size: 15px; color: var(--text); font-weight: 500; }
.game-chip .arrow { color: var(--text-muted); font-family: var(--mono); }
.game-chip:hover .arrow { color: var(--accent); }

/* ================================================================
   PANEL CALLOUT
   ================================================================ */
.panel-callout {
  padding: 48px clamp(32px, 5vw, 64px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.panel-callout::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, var(--accent-glow), transparent 45%);
  opacity: 0.18;
  pointer-events: none;
}
.panel-callout h3 {
  font-size: clamp(28px, 3.2vw, 38px);
  margin-bottom: 14px;
  letter-spacing: -0.025em;
}
.panel-preview {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
}
.panel-preview .line { display: flex; gap: 12px; padding: 4px 0; color: var(--text-soft); }
.panel-preview .line .k { color: var(--accent); }
.panel-preview .line .s { color: var(--good); }
.panel-preview .prompt { color: var(--text-muted); margin-right: 6px; }
.panel-preview .caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: middle;
  animation: blink 1.1s steps(1) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 860px) {
  .panel-callout { grid-template-columns: 1fr; padding: 32px; }
}

/* ================================================================
   FAQ (reuse idea; scoped)
   ================================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  cursor: pointer;
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding-top: 14px; color: var(--text-soft); max-width: 70ch; font-size: 15.5px; }

/* ================================================================
   CONTACT FORM (scoped)
   ================================================================ */
.form {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form .row-2 { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}
.field input, .field textarea {
  font: inherit;
  padding: 13px 14px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}
.field textarea { resize: vertical; min-height: 140px; font-family: var(--sans); }

.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.form-note { color: var(--text-muted); font-size: 13px; font-family: var(--mono); }

.flash { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 15px; border: 1px solid; }
.flash-ok { background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.4); color: var(--good); }
.flash-err { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }

.honeypot { position: absolute; left: -9999px; top: -9999px; opacity: 0; }

/* ================================================================
   LEGAL / PROSE
   ================================================================ */
.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16.5px;
  color: var(--text-soft);
  line-height: 1.7;
}
.prose h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 22px; letter-spacing: -0.035em; color: var(--text); }
.prose h2 { font-size: 24px; margin: 48px 0 12px; color: var(--text); }
.prose h3 { font-size: 19px; margin: 32px 0 10px; color: var(--text); }
.prose p, .prose ul { margin: 0 0 18px; }
.prose ul { padding-left: 1.2em; }
.prose ul li { margin: 6px 0; }
.prose a { color: var(--accent); }
.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--bg-soft);
  border-radius: 5px;
  color: var(--accent);
}

/* ================================================================
   FOOTER
   ================================================================ */
.foot {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
  font-size: 14px;
  color: var(--text-muted);
}
.foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.foot-col h5 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--mono);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--text-muted); transition: color 0.2s var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-brand { max-width: 36ch; }
.foot-brand p { color: var(--text-muted); }
.foot-bot {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
}
@media (max-width: 720px) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: span 2; }
}
@media (max-width: 480px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-brand { grid-column: span 1; }
}

/* ================================================================
   REVEAL
   ================================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

