/* Reset simples */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0f172a; /* slate-900 */
  background: #0b1020; /* fundo escuro elegante */
}

/* Paleta */
:root{
  --bg: #0b1020;
  --card: #0f172a;
  --soft: #111827;
  --muted: #9ca3af;
  --primary: #4f46e5; /* indigo-600 */
  --primary-2: #6366f1;
  --success: #22c55e;
  --danger: #ef4444;
  --ring: rgba(99,102,241,.35);
  --white: #fff;
}

/* Containers */
.nx-container{ width:min(1100px, 92%); margin-inline:auto; }

/* Header */
.nx-header{
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,16,32,.6);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nx-header .nx-container{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
}
.nx-brand{ display:flex; align-items:center; gap:10px; color:var(--white); text-decoration:none; font-weight:700; }
.nx-brand.small span{ font-size: 18px; }
.nx-logo{ width:28px; height:28px; filter: drop-shadow(0 0 6px rgba(99,102,241,.4)); }

.nx-nav a{
  color:#e5e7eb; text-decoration:none; margin:0 10px; font-weight:500;
  padding:8px 10px; border-radius:10px;
}
.nx-nav a.active, .nx-nav a:hover{ background: rgba(99,102,241,.15); color:#fff; }

/* Botões */
.btn{
  border:0; border-radius:14px; padding:12px 16px; font-weight:600; cursor:pointer;
  transition:.2s transform, .2s filter, .2s background;
}
.btn:active{ transform: translateY(1px); }
.btn.primary{ background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:white; }
.btn.ghost{ background: transparent; color:#e5e7eb; border:1px solid rgba(255,255,255,.12); }
.btn.link{ background: transparent; color:#c7d2fe; text-decoration: underline; padding: 10px 6px; }
.round{ width:60px; height:60px; border-radius:999px; border:0; display:grid; place-items:center; background:#1f2937; color:white; }
.round.success{ background:linear-gradient(135deg,#16a34a,#22c55e); }
.round.danger{ background:linear-gradient(135deg,#ef4444,#f97316); }
.round.secondary{ background:#334155; }

/* Hero */
.hero{ padding: 64px 0 40px; color: #e5e7eb; background:
 radial-gradient(700px 500px at 80% -10%, rgba(99,102,241,.25), transparent 70%),
 radial-gradient(600px 400px at -10% 10%, rgba(34,197,94,.2), transparent 70%); }
.hero-grid{ display:grid; grid-template-columns: 1.1fr .9fr; gap:44px; align-items:center; }
.hero h1{ font-size: clamp(28px, 4vw, 46px); line-height:1.08; color:#fff; }
.highlight{ color:#a5b4fc; text-shadow: 0 0 18px rgba(99,102,241,.45); }
.hero p{ margin-top:14px; color:#d1d5db; }
.hero-cta{ margin-top:22px; display:flex; gap:12px; flex-wrap:wrap; }
.badges{ list-style:none; display:flex; gap:14px; margin-top:18px; color:#cbd5e1; }
.badges li{ background:#111827; border:1px solid rgba(255,255,255,.08); padding:8px 12px; border-radius:999px; }

/* Phone frame & swipe */
.phone-frame{
  width:min(360px, 92vw); height:620px; margin-inline:auto; position:relative;
  border-radius:30px; padding:16px; background: #0b1226;
  border:1px solid rgba(255,255,255,.08); box-shadow: 0 20px 60px rgba(0,0,0,.55);
  display:flex; flex-direction:column; justify-content:flex-end; overflow:hidden;
}
.card-stack{ position:absolute; inset:16px; display:grid; }
.swipe-card{
  position:absolute; inset:0; background:#0f172a; color:#e5e7eb;
  border-radius:22px; padding:14px; border:1px solid rgba(255,255,255,.08);
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
  display:flex; flex-direction:column; overflow:hidden; will-change: transform;
}
.swipe-card .photo{
  flex:1; background:#111827 url('./img/placeholder-avatar.png') center/cover no-repeat;
  border-radius:16px;
}
.swipe-card .meta{ margin-top:12px; display:flex; align-items:center; gap:10px; }
.meta .name{ font-weight:700; color:#fff; }
.meta .tags{ margin-left:auto; display:flex; gap:8px; flex-wrap:wrap; }
.tag{ font-size:12px; padding:6px 10px; border-radius:999px; background:#1f2937; color:#d1d5db; border:1px solid rgba(255,255,255,.08); }

.swipe-actions{ display:flex; justify-content:center; gap:16px; margin-top:14px; }

/* Seções */
.howitworks, .about{ padding:64px 0; color:#e5e7eb; }
.howitworks h2, .about h2{ color:#fff; margin-bottom:22px; }
.steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap:18px; }
.step{ background:#0f172a; border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:18px; }
.step-icon{ width:42px; height:42px; border-radius:12px; display:grid; place-items:center; background:#111827; margin-bottom:8px; }

/* Footer */
.nx-footer{ color:#cbd5e1; border-top:1px solid rgba(255,255,255,.06); background:#0b1020; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr .8fr .8fr; gap:18px; padding:34px 0; }
.nx-footer h4{ color:#fff; margin-bottom:10px; }
.nx-footer a{ color:#cbd5e1; text-decoration:none; }
.nx-subfooter{ border-top:1px solid rgba(255,255,255,.06); padding:12px 0; color:#94a3b8; }

/* Modal */
.modal{ position:fixed; inset:0; display:none; align-items:center; justify-content:center; background:rgba(2,6,23,.7); }
.modal[aria-hidden="false"]{ display:flex; }
.modal-content{ background:#0f172a; color:#e5e7eb; border:1px solid rgba(255,255,255,.08); border-radius:18px; padding:22px; width:min(460px, 92vw); }
.modal-actions{ display:flex; gap:10px; margin-top:14px; }

/* Acessibilidade e navegação por âncora */
:target { scroll-margin-top: 84px; }
:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }

/* Responsivo */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
}



/* footer */
/* Remove bullets e organiza */
.nx-footer nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nx-footer nav a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.nx-footer nav a:hover {
  color: #007bff; /* ou a cor principal do projeto */
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.nx-subfooter {
  margin-top: 2rem;
  padding: 1rem 0;
  text-align: center; /* Centraliza o copyright */
  border-top: 1px solid #e0e0e0;
}

/* --- Perfil/Cadastro --- */
.profile-main { display:grid; place-items:center; min-height: calc(100dvh - 140px); padding: 32px 12px; }
.profile-wrapper { width:min(920px, 100%); }
.profile-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.profile-header h1{ color:#fff; margin-bottom:6px; }
.profile-header p{ color:#cbd5e1; margin-bottom:14px; }
.profile-form{ display:grid; gap:14px; }

.field label { display:block; font-weight:600; color:#fff; margin-bottom:6px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="password"],
.field textarea{
  width:100%; background:#0b1226; color:#e5e7eb;
  border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:12px 14px;
}
.field textarea{ resize: vertical; }
.field .error { display:block; color:#fca5a5; min-height: 18px; margin-top:4px; }
.field .hint { display:block; color:#9ca3af; margin-top:4px; }

.row { display:flex; gap:10px; align-items:center; }
.row.wrap { flex-wrap:wrap; }
.row.between { justify-content: space-between; }
.chk { display:flex; align-items:center; gap:8px; color:#cbd5e1; }

.grid2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width: 640px){ .grid2{ grid-template-columns: 1fr; } }

/* Tags input */
.tags-shell{
  display:flex; align-items:center; flex-wrap:wrap; gap:8px;
  background:#0b1226; border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:8px;
}
.tags-list{ display:flex; gap:8px; flex-wrap:wrap; }
.tags-editor{
  flex:1; min-width:160px; background:transparent; border:0; color:#e5e7eb; outline:none; padding:6px;
}
.tag-chip{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px; border-radius:999px; background:#1f2937; color:#d1d5db;
  border:1px solid rgba(255,255,255,.08); font-size:12px;
}
.tag-chip button{
  background:transparent; border:0; color:#9ca3af; cursor:pointer; font-size:14px; line-height:1;
}

.is-invalid{ border-color:#fca5a5 !important; }

/* --- Auth (login/cadastro) --- */
.auth-main { display:grid; place-items:center; min-height: calc(100dvh - 140px); padding: 32px 12px; }
.auth-wrapper { width:min(860px, 100%); }
.auth-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.auth-tabs { display:flex; gap:10px; margin-bottom: 14px; }
.auth-tab {
  background:#111827; color:#e5e7eb; border:1px solid rgba(255,255,255,.08);
  padding:10px 14px; border-radius: 12px; cursor:pointer; font-weight:600;
}
.auth-tab.is-active { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color:#fff; border-color: transparent; }

.auth-form { display:grid; gap:14px; }
.auth-form.is-hidden { display:none; }
.field label { display:block; font-weight:600; color:#fff; margin-bottom:6px; }
.input-with-action{ position:relative; display:flex; align-items:center; }
.input-with-action input{ flex:1; }
.input-with-action .showpass{
  position:absolute; right:8px; top:50%; transform: translateY(-50%);
  background:transparent; border:0; cursor:pointer; font-size:16px; color:#cbd5e1;
}
.btn.full{ width:100%; }
