/* ============================================================
   LuneBox v2 — style.css
   Adições: página de projeto, seção portfólio, LunePlay
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  --bg:           #0a0a0b;
  --bg-surface:   #111114;
  --bg-elevated:  #18181c;
  --border:       rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text-primary:   #f0f0f2;
  --text-secondary: #8b8b99;
  --text-muted:     #4a4a58;
  --lune-verse:  #7c6af7;
  --lune-dev:    #22c55e;
  --lune-hub:    #f59e0b;
  --lune-lab:    #06b6d4;
  --lune-book:   #f97316;
  --lune-store:  #ec4899;
  --lune-play:   #ef4444;
  --font-mono: 'DM Mono', monospace;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --max-w: 1080px;
  --gap: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--gap); height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo {
  font-family: var(--font-mono); font-size: 0.9rem; font-weight: 500;
  display: flex; align-items: center; gap: 0.5rem;
}
.logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--text-primary);
  animation: pulse-dot 3s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:0.4; transform:scale(0.7); }
}
.site-nav { display: flex; align-items: center; gap: 2rem; list-style: none; }
.site-nav a {
  font-size: 0.8rem; color: var(--text-secondary);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text-primary); }
.nav-cta {
  font-family: var(--font-mono); font-size: 0.75rem !important;
  color: var(--text-primary) !important;
  background: var(--bg-elevated); border: 1px solid var(--border-hover);
  padding: 0.35rem 0.85rem; border-radius: 4px;
  transition: border-color 0.15s, background 0.15s !important;
}
.nav-cta:hover { background: var(--bg-surface) !important; border-color: rgba(255,255,255,0.25) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; flex-direction: column; gap: 4px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--text-secondary); }

/* ── HERO ── */
.hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: 6rem var(--gap) 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); border: 1px solid var(--border);
  padding: 0.3rem 0.7rem; border-radius: 999px;
  margin-bottom: 2rem; animation: fade-up 0.5s ease both;
}
.badge-dot { width:5px; height:5px; border-radius:50%; background:var(--lune-dev); animation: pulse-dot 2s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 300;
  line-height: 1.1; letter-spacing: -0.03em;
  max-width: 700px; animation: fade-up 0.5s 0.08s ease both;
}
.hero h1 strong {
  font-weight: 600;
  background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  margin-top: 1.25rem; font-size: 1rem; font-weight: 300;
  color: var(--text-secondary); max-width: 480px; line-height: 1.7;
  animation: fade-up 0.5s 0.16s ease both;
}
.hero-actions {
  display: flex; gap: 0.75rem; margin-top: 2.5rem;
  flex-wrap: wrap; animation: fade-up 0.5s 0.24s ease both;
}

/* ── BOTÕES ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-sans); font-size: 0.85rem; font-weight: 500;
  padding: 0.6rem 1.25rem; border-radius: 6px; border: 1px solid transparent;
  cursor: pointer; transition: all 0.15s ease;
}
.btn-primary { background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }
.btn-primary:hover { background: #d0d0d8; border-color: #d0d0d8; }
.btn-secondary { background: transparent; color: var(--text-secondary); border-color: var(--border-hover); }
.btn-secondary:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.2); background: var(--bg-elevated); }

/* ── DIVISOR ── */
.divider { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); border: none; border-top: 1px solid var(--border); }

/* ── SEÇÃO LABEL ── */
.section-label {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 2rem;
}

/* ── LUNES GRID ── */
.lunes-section { max-width: var(--max-w); margin: 0 auto; padding: 4rem var(--gap); }
.lunes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.lune-card {
  background: var(--bg-surface); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: background 0.2s ease; position: relative; overflow: hidden;
  text-decoration: none;
}
.lune-card:hover { background: var(--bg-elevated); }
.lune-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--lune-color, var(--text-muted));
  opacity: 0; transition: opacity 0.2s ease;
}
.lune-card:hover::before { opacity: 1; }
.lune-card::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 0% 0%, var(--lune-color, transparent) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.lune-card:hover::after { opacity: 0.04; }
.lune-header { display: flex; align-items: center; justify-content: space-between; }
.lune-name { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 500; color: var(--lune-color, var(--text-primary)); }
.lune-arrow { font-size: 0.8rem; color: var(--text-muted); transition: transform 0.2s ease, color 0.2s ease; }
.lune-card:hover .lune-arrow { transform: translate(2px,-2px); color: var(--lune-color, var(--text-secondary)); }
.lune-title { font-size: 1rem; font-weight: 500; color: var(--text-primary); line-height: 1.3; }
.lune-desc { font-size: 0.85rem; font-weight: 300; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.lune-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.25rem; }
.lune-tag {
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted);
  border: 1px solid var(--border); padding: 0.15rem 0.5rem; border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}
.lune-card:hover .lune-tag { border-color: var(--border-hover); color: var(--text-secondary); }

.lune-verse  { --lune-color: var(--lune-verse); }
.lune-dev    { --lune-color: var(--lune-dev); }
.lune-hub    { --lune-color: var(--lune-hub); }
.lune-lab    { --lune-color: var(--lune-lab); }
.lune-book   { --lune-color: var(--lune-book); }
.lune-store  { --lune-color: var(--lune-store); }
.lune-play   { --lune-color: var(--lune-play); }

/* ── PORTFÓLIO GRID ── */
.portfolio-section { max-width: var(--max-w); margin: 0 auto; padding: 4rem var(--gap); }
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.portfolio-card {
  background: var(--bg-surface); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  text-decoration: none; transition: background 0.2s ease; position: relative;
}
.portfolio-card:hover { background: var(--bg-elevated); }
.portfolio-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--border-hover); opacity: 0; transition: opacity 0.2s;
}
.portfolio-card:hover::before { opacity: 1; }
.portfolio-client {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
}
.portfolio-title { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }
.portfolio-desc { font-size: 0.82rem; font-weight: 300; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.portfolio-link {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.3rem; margin-top: 0.25rem;
  transition: color 0.15s ease;
}
.portfolio-card:hover .portfolio-link { color: var(--text-secondary); }

/* ── SOBRE ── */
.sobre-section {
  max-width: var(--max-w); margin: 0 auto;
  padding: 4rem var(--gap);
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start;
}
.sobre-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; padding-top: 0.3rem; }
.sobre-texto p { font-size: 0.95rem; font-weight: 300; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1rem; }
.sobre-texto p:last-child { margin-bottom: 0; }
.sobre-texto strong { color: var(--text-primary); font-weight: 500; }

/* ============================================================
   PÁGINA DE PROJETO (lunebox.com.br/luneverse/, etc.)
   ============================================================ */
.projeto-hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: 4rem var(--gap) 2rem;
  border-bottom: 1px solid var(--border);
}

/* Breadcrumb */
.projeto-breadcrumb {
  font-family: var(--font-mono); font-size: 0.7rem;
  color: var(--text-muted); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.projeto-breadcrumb a { color: var(--text-muted); transition: color 0.15s; }
.projeto-breadcrumb a:hover { color: var(--text-secondary); }

.projeto-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 0.25rem 0.65rem; border-radius: 999px;
  border: 1px solid; margin-bottom: 1.25rem;
  /* cor herdada via style inline */
}

.projeto-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 300;
  letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 1rem; max-width: 640px;
}
.projeto-hero h1 strong { font-weight: 600; }

.projeto-hero p {
  font-size: 1rem; font-weight: 300; color: var(--text-secondary);
  max-width: 560px; line-height: 1.75; margin-bottom: 2rem;
}

.projeto-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Sites do projeto */
.projeto-sites {
  max-width: var(--max-w); margin: 0 auto;
  padding: 3rem var(--gap);
}

.sites-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  margin-top: 1.5rem;
}

.site-card {
  background: var(--bg-surface); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  text-decoration: none; transition: background 0.2s; position: relative;
}
.site-card:hover { background: var(--bg-elevated); }
.site-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--accent, var(--text-muted));
  opacity: 0; transition: opacity 0.2s;
}
.site-card:hover::before { opacity: 1; }

.site-card-label {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
}
.site-card-title { font-size: 0.95rem; font-weight: 500; color: var(--text-primary); }
.site-card-desc { font-size: 0.82rem; font-weight: 300; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.site-card-url {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.3rem; margin-top: 0.25rem;
  transition: color 0.15s;
}
.site-card:hover .site-card-url { color: var(--accent, var(--text-secondary)); }

/* Status badges inline */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono); font-size: 0.62rem;
  padding: 0.15rem 0.5rem; border-radius: 3px;
  border: 1px solid var(--border); color: var(--text-muted);
}
.status-live   { border-color: rgba(34,197,94,0.3);  color: #22c55e; }
.status-soon   { border-color: rgba(245,158,11,0.3);  color: #f59e0b; }
.status-wip    { border-color: rgba(6,182,212,0.3);   color: #06b6d4; }

/* ── FOOTER ── */
.site-footer { border-top: 1px solid var(--border); margin-top: 4rem; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 2rem var(--gap);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-copy { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: var(--text-muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text-secondary); }

/* ── ANIMAÇÕES ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVO ── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.aberto {
    display: flex; flex-direction: column;
    position: absolute; top: 56px; left: 0; right: 0;
    background: var(--bg-surface); border-bottom: 1px solid var(--border);
    padding: 1.5rem; gap: 1.25rem;
  }
  .nav-toggle { display: flex; }
  .hero { padding: 3rem var(--gap) 2.5rem; }
  .sobre-section { grid-template-columns: 1fr; gap: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
