/* ============================================================
   51.693.702 JULIO CESAR DE LIMA - Cloud & VPS Brasil
   Design system (baseado no tema escuro verde/teal de referência)
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0d1117;
  --bg-2: #161b22;
  --bg-3: #1c2330;
  --surface: #21262d;
  --border: #30363d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --green: #2ea043;
  --green-bright: #3fb950;
  --green-dark: #1a7f37;
  --teal: #1cb5a8;
  --teal-bright: #2dd4bf;
  --blue: #388bfd;
  --purple: #a371f7;
  --orange: #db6d28;
  --yellow: #d29922;
  --red: #f85149;
  --gradient-green: linear-gradient(135deg, #2ea043 0%, #1cb5a8 100%);
  --gradient-hero: linear-gradient(180deg, #0d1117 0%, #0d1117 50%, #161b22 100%);
  --shadow-glow: 0 0 40px rgba(46, 160, 67, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
img { max-width: 100%; }
a { color: var(--teal-bright); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ===== NAVBAR ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--text);
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1rem;
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--gradient-green);
  border-radius: 10px;
  display: grid; place-items: center; font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(46, 160, 67, 0.4);
}
.brand-name { line-height: 1.1; }
.brand-name small {
  display: block; font-size: 0.7rem; color: var(--text-dim);
  font-weight: 400; letter-spacing: 0.05em;
}
.nav-links { display: flex; gap: 1.8rem; list-style: none; align-items: center; }
.nav-links a, .nav-link {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover, .nav-link:hover { color: var(--green-bright); }
.nav-cta-group { display: flex; gap: 0.9rem; align-items: center; }
.nav-btn {
  background: var(--gradient-green); color: #fff;
  padding: 0.55rem 1.3rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: all 0.2s; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; white-space: nowrap;
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(46, 160, 67, 0.4); }
.nav-user { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-weight: 600; font-size: 0.9rem; }
.nav-user .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient-green); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem;
}
.btn-ghost-sm {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); padding: 0.45rem 0.9rem;
  border-radius: 8px; font-size: 0.85rem; cursor: pointer;
  transition: all 0.2s; font-family: 'Inter', sans-serif;
}
.btn-ghost-sm:hover { color: var(--red); border-color: var(--red); }
.menu-btn {
  display: none; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 0.5rem 0.8rem; border-radius: 8px;
  font-size: 1.2rem; cursor: pointer;
}
.mobile-menu {
  display: none; flex-direction: column; gap: 1rem;
  padding: 1rem 2rem; background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.mobile-menu a:hover { color: var(--green-bright); }

/* ===== BOTÕES ===== */
.btn {
  padding: 0.9rem 1.8rem; border-radius: 10px; font-size: 0.98rem;
  font-weight: 600; text-decoration: none; display: inline-flex;
  align-items: center; gap: 0.5rem; transition: all 0.2s;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  justify-content: center;
}
.btn-primary {
  background: var(--gradient-green); color: #fff;
  box-shadow: 0 4px 14px rgba(46, 160, 67, 0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46, 160, 67, 0.5); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--green); color: var(--green-bright); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 2.2rem; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ===== SEÇÕES ===== */
.section { padding: 5.5rem 2rem; }
.section-alt { background: var(--bg-2); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--green-bright); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.9rem;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--gradient-green); border-radius: 2px; }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.section-sub { color: var(--text-muted); font-size: 1.05rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 14px; padding: 1.8rem;
  transition: all 0.25s;
}
.card:hover { border-color: var(--green-dark); transform: translateY(-4px); box-shadow: var(--shadow-glow); }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(46, 160, 67, 0.1); border: 1px solid rgba(46, 160, 67, 0.3);
  color: var(--green-bright); padding: 0.35rem 0.9rem;
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
}

/* ===== FORMULÁRIOS ===== */
.form-group { margin-bottom: 1.2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--text); }
label .req { color: var(--green-bright); }
.form-control {
  width: 100%; background: var(--bg); border: 1px solid var(--border);
  color: var(--text); border-radius: 8px; padding: 0.75rem 0.95rem;
  font-size: 0.95rem; font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 160, 67, 0.15);
}
.form-control.erro { border-color: var(--red); box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.12); }
.form-hint { font-size: 0.78rem; color: var(--text-dim); margin-top: 0.35rem; }
.form-hint-erro { font-size: 0.78rem; color: var(--red); margin-top: 0.35rem; display: none; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 110px; }
.checkbox-group { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.85rem; color: var(--text-muted); }
.checkbox-group input { margin-top: 0.28rem; accent-color: var(--green); }

/* ===== TOAST ===== */
.jc-toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--bg-3); color: var(--text); border: 1px solid var(--green-dark);
  padding: 0.85rem 1.5rem; border-radius: 10px; font-size: 0.92rem; font-weight: 500;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5); opacity: 0; transition: all 0.35s;
  z-index: 2000; max-width: min(92vw, 480px); text-align: center;
}
.jc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.jc-toast-erro { border-color: var(--red); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 3.5rem 2rem 1.5rem;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer h4 { font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); }
.footer h5 { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.55rem; font-size: 0.88rem; color: var(--text-muted); }
.footer a { color: var(--text-muted); text-decoration: none; }
.footer a:hover { color: var(--green-bright); }
.footer-org { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: 0.82rem; color: var(--text-dim);
}
.footer-bottom a { color: var(--text-dim); text-decoration: none; }
.footer-bottom a:hover { color: var(--green-bright); }

/* ===== RESPONSIVO ===== */
@media (max-width: 900px) {
  .nav-links, .nav-cta-group .nav-link { display: none; }
  .menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 4rem 1.4rem; }
  .container { padding: 0 1.4rem; }
}
@media (max-width: 560px) {
  .nav-cta-group .nav-btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
