/* ═══════════════════════════════════════════════════════════════════════════
   Mine Tricagono — Minecraft Deep Design System
   Inspirado no universo Minecraft: blocos, pixel art, escuridão aconchegante
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --bg:       #0c0f14;
  --bg-2:     #161a20;
  --bg-3:     #1e232b;
  --text:     #ececec;
  --text-dim: #8b8d91;
  --grass:    #3fb950;
  --grass-h:  #56d364;
  --grass-d:  #2d8a3a;
  --gold:     #e6b422;
  --gold-dim: #9e7a1a;
  --diamond:  #58a6ff;
  --diamond-d:#3d8ad4;
  --dirt:     #8b6914;
  --dirt-l:   #b8942e;
  --stone:    #6b7280;
  --stone-d:  #4b5260;
  --redstone: #e53935;
  --online:   #3fb950;
  --offline:  #e53935;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'DM Mono', monospace;
  --radius: 2px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-width: 1100px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Ambient background animation ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(63, 185, 80, 0.04), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(88, 166, 255, 0.03), transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(230, 180, 34, 0.02), transparent 50%);
  animation: ambientShift 12s var(--ease) infinite alternate;
}
@keyframes ambientShift {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.6;
    transform: scale(1.03);
  }
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(3rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
.accent { color: var(--grass); }
a { color: var(--grass); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--grass-h); }
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-3);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: var(--radius);
}
p { margin-bottom: 1rem; }

/* ── Header / Nav ── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(12, 15, 20, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--stone-d);
}
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.nav-logo:hover { color: var(--grass); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--grass); }
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  white-space: nowrap;
}

/* ── Status Dot (square, Minecraft style) ── */
.status-dot {
  display: inline-block;
  width: 10px; height: 10px;
  background: var(--offline);
  transition: background 0.4s var(--ease);
}
.status-dot.online {
  background: var(--online);
  box-shadow: 0 0 6px rgba(63, 185, 80, 0.5);
}
.status-dot.pulse { animation: status-pulse 2s infinite; }
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Sections ── */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 32px;
}
.section + .section {
  border-top: 1px solid rgba(107, 114, 128, 0.10);
}
.section-title {
  text-align: center;
  margin-bottom: 12px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--grass);
  margin: 12px auto 0;
}
.section-desc {
  text-align: center;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto 56px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── Buttons ── */
.btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 22px;
  border: 2px solid var(--grass);
  background: transparent;
  color: var(--grass);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.btn:hover {
  background: var(--grass);
  color: var(--bg);
}
.btn-copy {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-copy:hover {
  background: var(--gold);
  color: var(--bg);
}
.btn-copy.copied {
  border-color: var(--online);
  color: var(--online);
}
.btn-cta:disabled {
  border-style: dashed;
  border-color: var(--stone-d);
  color: var(--text-dim);
  cursor: not-allowed;
  opacity: 0.55;
}

/* ═══════════ HERO (full-width) ═══════════ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 32px 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(63, 185, 80, 0.08), transparent 65%),
    var(--bg);
}

/* Pixel grid overlay */
.hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(107, 114, 128, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 114, 128, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 40%, transparent 75%);
}

.hero-content { position: relative; z-index: 2; }

/* SVG Logo centerpiece */
.hero-logo { margin-bottom: 28px; }
.hero-logo img {
  width: 420px; height: 420px;
  filter: drop-shadow(0 0 32px rgba(63, 185, 80, 0.25));
  animation: logoFloat 4s var(--ease) infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-title {
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 0 40px rgba(63, 185, 80, 0.2);
}
.hero-subtitle {
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-ip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.ip-display {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  color: var(--gold);
  background: var(--bg-2);
  border: 2px solid var(--gold-dim);
  padding: 14px 28px;
  user-select: all;
  letter-spacing: 0.03em;
  box-shadow: inset 0 0 0 3px var(--bg), 0 0 24px rgba(230, 180, 34, 0.06);
}
.hero-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.status-separator { color: var(--stone-d); }
.status-minecraft { color: var(--text-dim); }

/* ═══════════ SOBRE ═══════════ */
.sobre-text {
  max-width: 720px;
  margin: 0 auto;
}
.sobre-text p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}
.sobre-text strong {
  color: var(--text);
}

/* ═══════════ CARACTERÍSTICAS ═══════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Card Minecraft: sem fundo, só borda, clip-path pixelado */
.feature-item {
  text-align: center;
  padding: 28px 18px;
  border: 2px solid var(--stone-d);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
  animation: featureFloat 5s var(--ease) infinite;
  clip-path: polygon(
    0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px)
  );
}
.feature-item:hover {
  border-color: var(--grass);
  transform: translateY(-4px);
  animation: none;
}
/* Staggered float delays */
.feature-item:nth-child(1) { animation-delay: 0s; }
.feature-item:nth-child(2) { animation-delay: 0.6s; }
.feature-item:nth-child(3) { animation-delay: 1.2s; }
.feature-item:nth-child(4) { animation-delay: 1.8s; }
.feature-item:nth-child(5) { animation-delay: 0.3s; }
.feature-item:nth-child(6) { animation-delay: 0.9s; }
.feature-item:nth-child(7) { animation-delay: 1.5s; }
.feature-item:nth-child(8) { animation-delay: 2.1s; }

@keyframes featureFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.feature-badge {
  font-size: 1.8rem;
  color: var(--diamond);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  transition: color 0.3s var(--ease);
}
.feature-item:hover .feature-badge { color: var(--grass); }

.feature-item h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-item p {
  color: var(--text-dim);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}

/* ═══════════ CONEXÃO ═══════════ */
.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  max-width: 900px;
  margin: 0 auto;
}
.connect-card {
  border: 2px solid var(--stone-d);
  padding: 36px;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  clip-path: polygon(
    0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0,
    calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px)
  );
}
.connect-card:hover {
  border-color: var(--grass);
  transform: translateY(-2px);
}
.connect-icon {
  font-size: 2.2rem;
  color: var(--grass);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}
.connect-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.connect-card > p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 24px;
}
.connect-steps { padding-left: 22px; }
.connect-steps li {
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.connect-steps li strong { color: var(--text); }
.connect-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(107, 114, 128, 0.12);
  font-size: 0.8rem;
  color: var(--grass);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ═══════════ REGRAS ═══════════ */
.rules-list {
  max-width: 720px;
  margin: 0 auto;
}
.rule-item {
  display: flex;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(107, 114, 128, 0.1);
}
.rule-item:last-child { border-bottom: none; }
.rule-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--grass-d);
}
.rule-content h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}
.rule-content p {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 0;
}

/* ═══════════ FAQ ═══════════ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(107, 114, 128, 0.1); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.faq-question:hover { color: var(--grass); }
.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--grass);
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--grass-d);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
}
.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--grass);
  color: var(--bg);
  border-color: var(--grass);
}
.faq-answer {
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  max-height: 0;
}
.faq-answer.open {
  max-height: 300px;
  padding-bottom: 22px;
}
.faq-answer p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ═══════════ MC/ORCH ═══════════ */
.mc-orch-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.feature-card {
  border: 2px solid var(--stone-d);
  padding: 28px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  clip-path: polygon(
    0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0,
    calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px,
    100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%,
    6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px)
  );
}
.feature-card:hover {
  border-color: var(--grass);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.6rem;
  color: var(--diamond);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  transition: color 0.3s var(--ease);
}
.feature-card:hover .feature-icon { color: var(--grass); }
.feature-card h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 0;
  line-height: 1.6;
}
.mc-orch-cta { text-align: center; }
.mc-orch-cta .btn-cta {
  font-size: 0.95rem;
  padding: 14px 38px;
  margin-bottom: 14px;
}
.cta-note {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  text-align: center;
  padding: 20px 32px;
  border-top: 2px solid var(--stone-d);
  color: var(--text-dim);
  font-size: 0.78rem;
}
.footer a {
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.footer a:hover { color: var(--grass); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-grid { grid-template-columns: 1fr; }
  .mc-orch-features { grid-template-columns: 1fr; }
  .hero-ip { flex-direction: column; }
  .section { padding: 64px 20px; }
  .hero { padding: 100px 20px 80px; }
  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }
  .ip-display { font-size: 1.1rem; padding: 12px 20px; }
  .hero-logo img { width: 200px; height: 200px; }
  .hero-grid { background-size: 24px 24px; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .rule-item { flex-direction: column; gap: 12px; }
  .rule-num { width: 36px; height: 36px; font-size: 1.2rem; }
}
